/* ============================================================
   Grok Imagine 2.0 — стили страницы
   Скелет/дизайн/кнопки — 1-в-1 со страницы gpt-image-2
   (gemini-layout, dashboard-card, mode-tabs, btn-gradient).
   ============================================================ */

/* ================= Layout (как gpt-image-2) ================= */
.gemini-layout {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.gemini-form-section {
    flex: 1;
    min-width: 0;
}
.gemini-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ================= Режим: mode-tabs (как gpt-image-2) ================= */
.mode-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.mode-tab {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 0.75rem;
    background: rgba(30, 20, 50, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.mode-tab:hover {
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
}
.mode-tab.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
}
.tab-icon-mobile { display: none; align-items: center; gap: 2px; }

/* ================= Компактная форма (как gpt-image-2) ================= */
.compact-form .form-label { font-size: 0.85rem; margin-bottom: 0.3rem; }
.compact-form .form-control { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
.compact-form textarea.form-control { min-height: 90px; width: 100%; }
.compact-form .mb-4 { margin-bottom: 0.75rem !important; }

/* Параметры в одну строку (как settings-row у gpt) */
.ov-two-col { display: flex; gap: 1rem; flex-wrap: wrap; }
.ov-two-col > div { flex: 1; min-width: 200px; }
.ov-card {
    background: linear-gradient(180deg, rgba(28,19,52,0.72), rgba(17,11,34,0.72));
    border: 1px solid rgba(196,181,253,0.16);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ov-card:last-child { margin-bottom: 0; }

.ov-prompt-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; font-size: 0.78rem; color: rgba(245,241,255,0.55);
}
.ov-counter { font-variant-numeric: tabular-nums; }

.ov-ref-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
.ov-ref-grid.has-thumbs { grid-template-columns: 1fr 1fr; }
.ov-ref-preview {
    border: 1px solid rgba(196, 181, 253, 0.12); border-radius: 14px;
    background: rgba(13, 8, 28, 0.42); padding: 12px;
    display: flex; flex-wrap: wrap; gap: 0.6rem; align-content: flex-start;
    min-height: 118px;
}
.go-thumb { position: relative; width: 84px; height: 84px; }
.go-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); display: block; }
.go-thumb-x {
    position: absolute; top: -7px; right: -7px;
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 5, 20, 0.92); color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer;
    display: grid; place-items: center; padding: 0;
}
.go-thumb-x:hover { background: #8b5cf6; }
.go-add-tile {
    width: 84px; height: 84px; border-radius: 12px;
    border: 1.5px dashed rgba(196, 181, 253, 0.3); background: rgba(139, 92, 246, 0.06);
    color: #d8b4fe; display: grid; place-items: center; cursor: pointer; padding: 0;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.go-add-tile:hover { border-color: rgba(139, 92, 246, 0.6); color: #fff; background: rgba(139, 92, 246, 0.12); }
.go-add-tile svg { width: 22px; height: 22px; }
.ov-quota-note { font-size: 0.78rem; color: rgba(245,241,255,0.38); margin-top: 0.55rem; }
@media (max-width: 720px) { .ov-ref-grid.has-thumbs { grid-template-columns: 1fr; } }

.ov-field-label { font-weight: 600; display: block; margin-bottom: 0.35rem; font-size: 0.84rem; color: rgba(245, 241, 255, 0.82); }

/* ================= Выбор формата (пилюли, как в Nano Banana) ================= */
.aspect-ratio-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.aspect-ratio-btn {
    padding: 0.55rem 1rem;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(196, 181, 253, 0.22);
    border-radius: 11px;
    color: rgba(245,241,255,0.55);
    font-weight: 600; font-size: 0.88rem;
    cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.aspect-ratio-btn:hover { border-color: rgba(139, 92, 246, 0.5); color: #fff; }
.aspect-ratio-btn.is-active {
    background: linear-gradient(135deg, #8b5cf6 0%, #8b5cf6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* ================= Ползунок количества (как на gpt-image-2/flux2) ================= */
.variant-slider-wrap {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
}
.variant-slider {
    flex: 1; height: 6px;
    -webkit-appearance: none; appearance: none;
    background: rgba(139, 92, 246, 0.25);
    border-radius: 3px; outline: none; cursor: pointer;
}
.variant-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #8b5cf6 0%, #8b5cf6 100%);
    border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.45);
    transition: transform 0.15s ease;
}
.variant-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.variant-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #8b5cf6 0%, #8b5cf6 100%);
    border: none; border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.45);
}
.variant-value {
    min-width: 26px; text-align: center;
    font-weight: 700; font-size: 1rem; color: #d8b4fe;
}

/* Выбор исходной генерации (режим редактирования) */
.gr-src { cursor: pointer; transition: transform 0.15s ease; border-radius: 12px; }
.gr-src:hover { transform: scale(1.04); }
.gr-src.is-active img {
    border: 2px solid #a78bfa;
    box-shadow: 0 0 0 3px rgba(232, 121, 249, 0.25), 0 6px 18px rgba(139, 92, 246, 0.35);
}


/* ================= SEO-секции ================= */
.grok-seo { margin-top: 28px; display: grid; gap: 16px; }
.grok-seo h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; color: #f5f1ff; }
.grok-seo p { color: rgba(245,241,255,0.55); line-height: 1.65; margin: 0 0 10px; }
.grok-seo p:last-child { margin-bottom: 0; }
.grok-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .grok-seo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grok-seo-grid { grid-template-columns: 1fr; } }
.grok-seo-grid figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(196,181,253,0.16); background: rgba(139,92,246,0.08); }
.grok-seo-grid img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; }
.grok-seo-grid figcaption { padding: 8px 12px; font-size: 0.8rem; color: rgba(245,241,255,0.55); }
.grok-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .grok-steps { grid-template-columns: 1fr; } }
.grok-step { border: 1px solid rgba(196,181,253,0.16); border-radius: 14px; padding: 16px; background: rgba(139,92,246,0.08); font-size: 0.9rem; color: rgba(245,241,255,0.55); line-height: 1.55; }
.grok-step b { display: block; margin-bottom: 6px; color: #f5f1ff; }
.grok-faq details { border: 1px solid rgba(196,181,253,0.16); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: rgba(139,92,246,0.08); }
.grok-faq summary { cursor: pointer; font-weight: 700; color: #f5f1ff; }
.grok-faq details p { margin: 8px 0 0; }


/* ===== Панель заказов + fullscreen viewer: порт 1-в-1 из gpt-image-2.php ===== */
        .sidebar-card {
            background: rgba(30, 20, 50, 0.6);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 14px;
            padding: 1rem;
            position: sticky;
            top: 1rem;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(139, 92, 246, 0.5) rgba(30, 20, 50, 0.3);
        }
        .sidebar-card::-webkit-scrollbar { width: 6px; }
        .sidebar-card::-webkit-scrollbar-track { background: rgba(30, 20, 50, 0.3); border-radius: 3px; }
        .sidebar-card::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8b5cf6, #ec4899); border-radius: 3px; }
        .sidebar-card::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a78bfa, #f472b6); }
        .sidebar-title {
            font-size: 1rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .sidebar-title svg { width: 18px; height: 18px; color: #a78bfa; }
        .sidebar-orders {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        .sidebar-order {
            background: rgba(20, 10, 40, 0.5);
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        .sidebar-order:hover { border-color: rgba(139, 92, 246, 0.5); }
        .sidebar-order.new-order {
            animation: newOrderPulse 2s ease-out;
            border-color: #8b5cf6;
        }
        @keyframes newOrderPulse {
            0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
            100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
        }
        .sidebar-order-image {
            aspect-ratio: 16/10;
            background: rgba(139, 92, 246, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .sidebar-order-image img { width: 100%; height: 100%; object-fit: cover; }
        .sidebar-order-info { padding: 0.6rem; }
        .sidebar-order-status {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            display: inline-block;
        }
        .sidebar-order-status.completed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .sidebar-order-status.processing { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
        .sidebar-order-status.pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
        .sidebar-order-status.queued { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
        .sidebar-order-status.submitting { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
        .sidebar-order-status.failed { background: rgba(239, 68, 68, 0.2); color: #f87171; }
        .sidebar-order-prompt {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 0.3rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
        }
        .sidebar-order-prompt-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }
        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
            50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
        }
        .sidebar-order.processing,
        .sidebar-order.queued,
        .sidebar-order.submitting {
            animation: pulse-glow 2s infinite;
        }
        .generating-overlay {
            position: absolute;
            inset: 0;
            background: rgba(20, 10, 40, 0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        .generating-spinner {
            width: 24px;
            height: 24px;
            border: 2px solid rgba(139, 92, 246, 0.3);
            border-top-color: #8b5cf6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .generating-text { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
        .fullscreen-viewer {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.98);
            z-index: 10150;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .fullscreen-viewer.active { display: flex; }
        .fullscreen-content {
            display: flex;
            flex-direction: column;
            max-width: 100%;
            max-height: 100%;
            width: auto;
            position: relative;
        }
        .fullscreen-header {
            position: fixed;
            top: 1rem;
            right: 1.5rem;
            padding: 0;
            z-index: 10100;
        }
        .fullscreen-close {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .fullscreen-close:hover { background: rgba(255, 255, 255, 0.25); }
        .fullscreen-image-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            touch-action: pinch-zoom pan-x pan-y;
            max-height: calc(100vh - 120px);
            padding: 0.5rem;
        }
        .fullscreen-image {
            max-width: 100%;
            max-height: calc(100vh - 140px);
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 8px;
            cursor: zoom-in;
            transition: transform 0.3s ease;
        }
        .fullscreen-image.zoomed {
            cursor: zoom-out;
            max-width: none;
            max-height: none;
        }
        .fullscreen-image-container.zoomed {
            overflow: auto;
            cursor: grab;
            align-items: flex-start;
            justify-content: flex-start;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x pan-y;
        }
        .fullscreen-image-container.zoomed:active { cursor: grabbing; }
        .fullscreen-actions {
            padding: 1rem 0.5rem;
            display: flex;
            gap: 0.75rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        .fullscreen-btn {
            padding: 0.75rem 1.25rem;
            border-radius: 10px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }
        .fullscreen-btn.primary {
            background: linear-gradient(135deg, #8b5cf6, #ec4899);
            color: white;
        }
        .fullscreen-btn.secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .fullscreen-btn svg { width: 18px; height: 18px; }
        @media (max-width: 576px) {
            .fullscreen-viewer { padding: 40px 20px; }
            .fullscreen-image-container { max-height: calc(100vh - 160px); padding: 20px; }
            .fullscreen-image { max-width: calc(100vw - 60px); max-height: calc(100vh - 200px); border-radius: 4px; }
            .fullscreen-actions { padding: 0.5rem 0; gap: 0.4rem; }
            .fullscreen-btn { padding: 0.5rem 0.7rem; font-size: 0.75rem; gap: 0.25rem; }
            .fullscreen-btn svg { width: 14px; height: 14px; }
            .fullscreen-header { position: fixed; top: 0.75rem; right: 0.75rem; padding: 0; }
            .fullscreen-close { width: 36px; height: 36px; font-size: 1.25rem; }
            .fullscreen-single-viewer { padding: 40px 20px; }
            .fullscreen-single-container { max-width: calc(100vw - 60px); }
            .fullscreen-single-container img { max-width: calc(100vw - 60px); max-height: calc(100vh - 200px); }
        }
        .copy-prompt-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: transparent;
            border: none;
            color: rgba(139, 92, 246, 0.6);
            cursor: pointer;
            padding: 0;
            margin-left: 4px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .copy-prompt-btn:hover { color: #a78bfa; transform: scale(1.1); }
        .copy-prompt-btn.copied { color: #10b981; }
        .copy-prompt-btn svg { width: 12px; height: 12px; }
        .repeat-order-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: transparent;
            border: none;
            color: rgba(236, 72, 153, 0.6);
            cursor: pointer;
            padding: 0;
            margin-left: 2px;
            margin-right: 4px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .repeat-order-btn:hover { color: #f472b6; transform: scale(1.1); }
        .repeat-order-btn.applied { color: #10b981; }
        .repeat-order-btn svg { width: 12px; height: 12px; }
        .sidebar-order-actions {
            display: flex;
            align-items: center;
            gap: 2px;
            flex-shrink: 0;
        }
        .toast-notification {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            padding: 0.75rem 1.25rem;
            border-radius: 10px;
            color: white;
            font-size: 0.9rem;
            z-index: 10001;
            animation: toastIn 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .toast-notification.success { background: linear-gradient(135deg, #10b981, #059669); }
        .toast-notification.error { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ================= Адаптив ================= */
@media (max-width: 992px) {
    .gemini-layout { flex-direction: column; }
    .gemini-sidebar { width: 100%; }
}
@media (max-width: 576px) {
    .container.my-5 {
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .gemini-layout { gap: 0.5rem; }
    .gemini-form-section .card-header-custom { border-radius: 16px 16px 0 0 !important; padding: 0.75rem 1rem !important; }
    .gemini-form-section .card-header-custom h1 { font-size: 1.3rem !important; }
    .gemini-form-section .card-header-custom p { font-size: 0.8rem !important; margin-top: 0.25rem !important; }
    .gemini-form-section .card-body-custom { padding: 0.75rem !important; }
    .mode-tabs { gap: 0.75rem; }
    .mode-tab { padding: 1rem; font-size: 0.7rem; min-width: auto; flex: 1 1 0; }
    .ov-two-col { flex-direction: column; }
    .compact-form textarea.form-control { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .mode-tab, .aspect-ratio-btn, .btn-gradient, .sidebar-order { transition: none; }
}

/* Help-«?» и модалка редактирования (порт с gpt-image-2) */
.help-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
background: transparent;
border: 1px solid rgba(139, 92, 246, 0.5);
border-radius: 50%;
color: rgba(139, 92, 246, 0.7);
font-size: 0.6rem;
font-weight: 600;
cursor: pointer;
margin-left: 4px;
transition: all 0.2s;
text-decoration: none;
vertical-align: middle;
}
.help-btn:hover { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.help-modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 9998;
justify-content: center;
align-items: center;
padding: 1rem;
}
.help-modal.active { display: flex; }
.help-modal-content {
background: linear-gradient(135deg, rgba(30, 20, 50, 0.98) 0%, rgba(20, 10, 40, 0.98) 100%);
border: 1px solid rgba(139, 92, 246, 0.3);
border-radius: 16px;
padding: 1.5rem;
max-width: 400px;
width: 100%;
}
.help-modal-title {
font-size: 1.1rem;
font-weight: 600;
color: white;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.help-modal-text {
color: rgba(255, 255, 255, 0.8);
font-size: 0.9rem;
line-height: 1.6;
}
.help-modal-close {
margin-top: 1rem;
width: 100%;
padding: 0.75rem;
background: linear-gradient(135deg, #8b5cf6, #ec4899);
border: none;
border-radius: 10px;
color: white;
font-weight: 500;
cursor: pointer;
}

/* Кнопки шаблонов у промпта (порт с gpt-image-2) */
.btn-templates-modal { display: inline-flex !important; align-items: center !important; gap: 5px !important; background: rgba(139, 92, 246, 0.15) !important; border: 1px solid rgba(139, 92, 246, 0.3) !important; color: rgba(139, 92, 246, 0.9) !important; font-size: 0.85rem !important; cursor: pointer !important; padding: 6px 12px !important; border-radius: 8px !important; transition: all 0.2s !important; }
.btn-templates-modal:hover { background: rgba(139, 92, 246, 0.25) !important; border-color: rgba(139, 92, 246, 0.5) !important; color: #a78bfa !important; }
.btn-clear-template { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: rgba(239, 68, 68, 0.9); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.btn-clear-template:hover { background: rgba(239, 68, 68, 0.22); }

/* Фото → фото: зона загрузки исходного фото (порт с gpt-image-2) */
.upload-zone { border: 2px dashed rgba(139,92,246,0.4); border-radius: 10px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.3s ease; margin-top: 0.75rem; position: relative; }
.upload-zone:hover { border-color: rgba(139,92,246,0.8); background: rgba(139,92,246,0.05); }
.upload-zone.has-image { border-style: solid; border-color: #10b981; cursor: default; }
.upload-zone.drag-over { border-color: #8b5cf6; background: rgba(139,92,246,0.15); box-shadow: 0 0 15px rgba(139,92,246,0.3); }
.upload-preview-single img { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; margin: 0 auto; }
.remove-upload-btn { display: none; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; background: rgba(239,68,68,0.9); border: none; border-radius: 8px; color: #fff; font-size: 13px; cursor: pointer; z-index: 10; }
.upload-zone.has-image .remove-upload-btn { display: block; }
