        /* ═══════════════════════════════════════════════
           RESET & CSS TOKENS
        ═══════════════════════════════════════════════ */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --bg-base:       #0a0a0c;
            --bg-elevated:   #0c0e18;
            --bg-card:       rgba(255,255,255,0.045);
            --bg-card-hover: rgba(255,255,255,0.075);
            --border:        rgba(255,255,255,0.085);
            --border-strong: rgba(255,255,255,0.16);
            --text-primary:  #f3f4fb;
            --text-muted:    rgba(238,240,252,0.56);
            --text-faint:    rgba(238,240,252,0.30);
            --accent:        #65d69e;
            --accent-dim:    rgba(101,214,158,0.13);
            --accent-border: rgba(101,214,158,0.32);
            --accent-glow:   rgba(101,214,158,0.45);
            --accent-grad:   linear-gradient(135deg, #46d99a 0%, #65d69e 48%, #7be8c4 100%);
            --indigo:        #7c84ff;
            --indigo-dim:    rgba(124,132,255,0.15);
            --indigo-border: rgba(124,132,255,0.34);
            --gold:          #f5c842;
            --red:           #f87171;
            --green:         #34d399;
            --radius-lg:     22px;
            --radius-md:     14px;
            --shadow-soft:   0 18px 44px -22px rgba(0,0,0,0.8);
            --shadow-card:   0 30px 70px -30px rgba(0,0,0,0.88);
            --shadow-pop:    0 40px 90px -32px rgba(0,0,0,0.92);
        }

        html { background: var(--bg-base); }
        body {
            background:
                radial-gradient(120% 90% at 85% -8%, rgba(101,214,158,0.10), transparent 52%),
                radial-gradient(100% 80% at 8% 105%, rgba(124,132,255,0.10), transparent 55%),
                radial-gradient(80% 60% at 50% 50%, rgba(101,214,158,0.03), transparent 70%),
                var(--bg-base);
            color: var(--text-primary);
            font-family: 'Geist', 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
            overflow: hidden;
        }

        /* ── Scrollbar ── */
        ::-webkit-scrollbar { width: 4px; height: 4px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        /* ── Noise overlay ── */
        body::before {
            content: '';
            position: fixed; inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none; z-index: 1; opacity: 0.35;
        }

        /* ── Ambient orbs (aurora) ── */
        .orb { position: fixed; border-radius: 50%; filter: blur(140px); pointer-events: none; z-index: 0; opacity: 0.9; }
        .orb-1 { width: 720px; height: 720px; background: radial-gradient(circle, rgba(101,214,158,0.13) 0%, transparent 70%); top: -280px; right: -160px; animation: orbFloat 22s ease-in-out infinite; }
        .orb-2 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(124,132,255,0.12) 0%, transparent 70%); bottom: -200px; left: -40px; animation: orbFloat 28s ease-in-out infinite reverse; }
        .orb-3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(101,214,158,0.06) 0%, transparent 70%); top: 36%; left: 34%; animation: orbFloat 25s ease-in-out infinite; }
        @keyframes orbFloat { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(28px,-26px); } }

        /* ═══════════════════════════════════════════════
           MODAL — Login
        ═══════════════════════════════════════════════ */
        #login-modal {
            display: none; position: fixed; inset: 0;
            background: rgba(7,7,15,0.88); backdrop-filter: blur(24px);
            z-index: 99999; align-items: center; justify-content: center;
            opacity: 0; transition: opacity .3s;
        }
        #login-modal.show { display: flex; opacity: 1; }
        .modal-content {
            background: linear-gradient(145deg, #111120 0%, #0d0d1c 100%);
            border: 1px solid var(--border-strong); border-radius: 26px;
            padding: 48px 40px 40px; text-align: center; max-width: 420px; width: 90%;
            transform: translateY(28px); transition: .4s cubic-bezier(0.16,1,0.3,1);
            box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(101,214,158,0.08);
            position: relative;
        }
        #login-modal.show .modal-content { transform: translateY(0); }

        /* ═══════════════════════════════════════════════
           NAV
        ═══════════════════════════════════════════════ */
        .nav-glass {
            background: rgba(10,10,20,0.82); border: 1px solid var(--border);
            backdrop-filter: blur(24px); border-radius: 20px;
        }

        /* ═══════════════════════════════════════════════
           SIDEBAR
        ═══════════════════════════════════════════════ */
        .sidebar-glass {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 16%),
                linear-gradient(180deg, rgba(13,15,24,0.92), rgba(8,9,15,0.96));
            border: 1px solid var(--border);
            backdrop-filter: blur(22px) saturate(1.2);
            box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
        }
        /* Fără linii despărțitoare între secțiuni — look curat (Higgsfield) */
        .panel-s { padding: 16px 20px; overflow: visible; }

        .field-label {
            font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.1em; color: var(--text-faint);
            margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
        }
        .field-label i { color: var(--accent); font-size: 0.62rem; }

        /* ═══════════════════════════════════════════════
           MODE TABS
        ═══════════════════════════════════════════════ */
        .mode-tab {
            padding: 9px 14px; border-radius: 10px; font-size: 0.76rem; font-weight: 700;
            cursor: pointer; transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
            display: flex; align-items: center; justify-content: center; gap: 7px;
            border: 1px solid transparent; background: none; color: var(--text-faint);
            line-height: 1; overflow: hidden; position: relative;
        }
        .mode-tab.active {
            background: var(--accent-dim); color: var(--accent);
            border-color: var(--accent-border); box-shadow: 0 0 20px rgba(101,214,158,0.1);
        }
        .mode-tab:not(.active):hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
        #tab-video.active {
            background: var(--indigo-dim); color: #a5a8ff;
            border-color: var(--indigo-border); box-shadow: 0 0 20px rgba(99,102,241,0.1);
        }

        /* ═══════════════════════════════════════════════
           MODEL SELECT
        ═══════════════════════════════════════════════ */
        .styled-select {
            background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
            border: 1px solid var(--border);
            border-radius: 13px; padding: 12px 36px 12px 14px;
            font-size: 0.84rem; font-weight: 600; color: var(--text-primary);
            outline: none; width: 100%; -webkit-appearance: none; cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
            transition: all 0.2s; font-family: 'Geist', 'Inter', sans-serif;
        }
        .styled-select:hover { border-color: var(--border-strong); }
        .styled-select:focus {
            border-color: var(--accent-border); background: var(--accent-dim);
            box-shadow: 0 0 0 3px rgba(101,214,158,0.07);
        }
        .styled-select option { background: #111120; color: var(--text-primary); padding: 8px; }
        .styled-select optgroup { background: #111120; color: var(--accent); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
        .select-wrap { position: relative; }
        .select-wrap::after {
            content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
            position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
            color: var(--text-faint); font-size: 0.6rem; pointer-events: none;
        }

        /* ── Model Info Card ── */
        #model-info-card {
            margin-top: 10px; border-radius: 13px;
            border: 1px solid var(--border); background: var(--bg-card);
            overflow: hidden; transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
        }
        .mic-header {
            padding: 10px 13px 9px; display: flex; align-items: center; gap: 9px;
            border-bottom: 1px solid var(--border);
        }
        .mic-icon {
            width: 30px; height: 30px; border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; font-size: 0.75rem;
        }
        .mic-name  { font-size: 0.8rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
        .mic-provider { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
        .mic-body  { padding: 10px 13px 12px; }
        .mic-desc  { font-size: 0.72rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 9px; }
        .mic-tags  { display: flex; flex-wrap: wrap; gap: 5px; }
        .mic-tag {
            padding: 3px 9px; border-radius: 99px; font-size: 0.6rem; font-weight: 700;
            display: flex; align-items: center; gap: 4px;
        }
        .mic-tag-accent { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
        .mic-tag-indigo { background: var(--indigo-dim); color: #a5a8ff; border: 1px solid var(--indigo-border); }
        .mic-tag-gold   { background: rgba(245,200,66,0.1); color: var(--gold); border: 1px solid rgba(245,200,66,0.22); }
        .mic-tag-muted  { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border); }
        .mic-tag-red    { background: rgba(248,113,113,0.1); color: #fca5a5; border: 1px solid rgba(248,113,113,0.22); }
        .mic-tag-violet { background: rgba(167,139,250,0.1); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.25); }

        /* ── ETA Chip ── */
        #model-eta-chip .eta-chip {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 12px; border-radius: 99px; font-size: 0.67rem; font-weight: 700;
            background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
        }
        #model-eta-chip .eta-chip i { color: var(--accent); font-size: 0.58rem; }

        /* ═══════════════════════════════════════════════
           PROMPT
        ═══════════════════════════════════════════════ */
        .prompt-wrap {
            border: 1px solid var(--border); border-radius: 13px;
            background: var(--bg-card); transition: all 0.25s;
        }
        .prompt-wrap:focus-within {
            border-color: var(--accent-border); background: rgba(101,214,158,0.03);
            box-shadow: 0 0 0 3px rgba(101,214,158,0.06), 0 0 28px rgba(101,214,158,0.07);
        }
        #prompt-in {
            color: var(--text-primary); font-family: 'Geist', 'Inter', sans-serif;
            font-size: 0.87rem; line-height: 1.65;
            max-height: 50vh; min-height: 90px;
            overflow-y: auto; resize: none;
        }
        #prompt-in::placeholder { color: var(--text-faint); }
        /* scrollbar discret pentru prompt */
        #prompt-in::-webkit-scrollbar { width: 4px; }
        #prompt-in::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
        #char-count { font-family: 'JetBrains Mono', monospace; }

        /* ═══════════════════════════════════════════════
           RATIO PILLS
        ═══════════════════════════════════════════════ */
        .ratio-pill input[type=radio] { display: none; }
        .ratio-pill input:checked + span {
            background: var(--accent-dim); color: var(--accent);
            border-color: var(--accent-border); box-shadow: 0 0 12px rgba(101,214,158,0.1);
        }
        .ratio-pill span {
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
            padding: 8px 4px; border-radius: 9px; font-size: 0.63rem; font-weight: 700;
            color: var(--text-faint); cursor: pointer; transition: all 0.2s;
            border: 1px solid transparent; user-select: none;
        }
        .ratio-pill span:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

        /* ═══════════════════════════════════════════════
           COUNT BUTTONS
        ═══════════════════════════════════════════════ */
        .count-btn {
            width: 34px; height: 34px; border-radius: 10px;
            background: var(--bg-card); border: 1px solid var(--border);
            font-size: 1.1rem; font-weight: 700; color: var(--text-muted);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.15s;
        }
        .count-btn:hover { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }
        .count-btn:active { transform: scale(0.9); }
        #count-val, #vcount-val { font-family: 'JetBrains Mono', monospace; }

        /* ═══════════════════════════════════════════════
           GENERATE BUTTON
        ═══════════════════════════════════════════════ */
        .gen-btn {
            background: linear-gradient(135deg, #3ecf8e 0%, #65d69e 50%, #4ade80 100%);
            background-size: 200% 200%; animation: genGrad 5s ease infinite;
            transition: all 0.3s; position: relative; overflow: hidden; color: #072215;
        }
        @keyframes genGrad { 0%,100%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } }
        .gen-btn::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
            transform: translateX(-100%); transition: transform 0.6s;
        }
        .gen-btn:not(:disabled):hover::before { transform: translateX(100%); }
        .gen-btn:not(:disabled):hover {
            box-shadow: 0 20px 40px rgba(101,214,158,0.35), 0 0 0 1px rgba(255,255,255,0.1);
            transform: translateY(-2px);
        }
        .gen-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

        /* ═══════════════════════════════════════════════
           JOB CARDS
        ═══════════════════════════════════════════════ */
        /* Galeria de joburi — feed de batch-uri seamless (fără carduri grele). */
        #jobs-area, #history-grid { display: flex; flex-direction: column; gap: 22px; }
        /* Jobul în lucru și Istoricul sunt containere FRAȚI: fără marja asta,
           cardul nou (care intră cu translateY) se suprapunea peste primul card
           din istoric. Doar când există job — altfel rămâne un gol în feed. */
        #jobs-area:not(:empty) { margin-bottom: 22px; }
        .job-card {
            position: relative; border-radius: 0; overflow: visible;
            animation: cardIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
        }
        /* translateY mic (6px): animația mută cardul PESTE vecinul de dedesubt,
           spațiul din layout fiind deja rezervat la poziția finală. */
        @keyframes cardIn { from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }

        /* Header slim de batch */
        .job-head {
            display: flex; align-items: center; gap: 10px;
            padding: 0 2px 10px; margin-bottom: 2px;
        }
        .job-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
        .job-prompt {
            font-size: 0.82rem; font-weight: 500; color: var(--text-primary);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
            opacity: 0.85;
        }
        .job-meta {
            display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
            font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
            color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border);
            padding: 4px 9px; border-radius: 99px;
        }
        .job-meta i { font-size: 0.6rem; color: var(--accent); }
        .job-state { font-size: 0.68rem; font-weight: 700; color: var(--text-faint); flex-shrink: 0; }
        .job-state.is-done { color: var(--accent); }
        .job-eta {
            display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
            font-size: 0.68rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--text-faint);
        }
        .job-close-btn {
            flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-size: 0.6rem;
            background: var(--bg-card); border: 1px solid var(--border); color: var(--text-faint);
            transition: all 0.2s;
        }
        .job-close-btn:hover { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); color: #f87171; transform: scale(1.08); }

        /* Bară de progres subțire sub header */
        .job-progress { height: 2px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 14px; }
        .job-progress-bar { display: block; height: 100%; width: 0; border-radius: 99px;
            background: linear-gradient(90deg, var(--accent), #4ade80); transition: width 0.9s ease; }
        .job-card.done .job-progress, .job-card.error .job-progress { display: none; }
        /* Cât se generează: doar scheletul (fără header „Video · 1 / Se generează / 20s”
           și fără barele de progres). Când e gata (.done) headerul reapare cu promptul,
           exact ca în Istoric. */
        .job-card.processing .job-head,
        .job-card.processing .job-progress { display: none; }

        .pulse-ring { position: relative; }
        .pulse-ring::before, .pulse-ring::after {
            content: ''; position: absolute; inset: -4px; border-radius: 50%;
            border: 1px solid rgba(101,214,158,0.5); animation: pulseRing 2s ease-out infinite;
        }
        .pulse-ring::after { animation-delay: 1s; }
        @keyframes pulseRing { 0%{ opacity:1; transform:scale(1); } 100%{ opacity:0; transform:scale(1.8); } }

        /* ═══════════════════════════════════════════════
           MEDIA GALLERY — grid responsive + tile-uri premium
        ═══════════════════════════════════════════════ */
        .media-grid {
            display: grid; gap: 12px;
            grid-template-columns: repeat(auto-fill, minmax(var(--tile-min, 200px), 1fr));
        }
        .media-grid[data-orient="portrait"]  { --tile-min: 150px; }
        .media-grid[data-orient="landscape"] { --tile-min: 250px; }
        .media-grid[data-orient="square"]    { --tile-min: 180px; }
        /* Dimensiune UNIFORMĂ indiferent de câte rezultate sunt (1/2/3/4): toate tile-urile
           au aceeași lățime ca la 4. auto-fill păstrează coloanele goale, deci un singur
           rezultat NU se mai întinde pe tot ecranul, ci rămâne aliniat la stânga, mic. */
        .media-grid { justify-content: start; }

        .media-tile {
            position: relative; border-radius: 16px; overflow: hidden;
            aspect-ratio: var(--ar, 1/1); background: #07070d;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-soft);
            transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s, border-color 0.3s;
        }
        .media-in { animation: mediaIn 0.45s cubic-bezier(0.16,1,0.3,1) both; }
        @keyframes mediaIn { from{ opacity:0; transform:translateY(10px) scale(0.97); } to{ opacity:1; transform:none; } }
        .media-tile:hover {
            transform: translateY(-4px);
            border-color: var(--accent-border);
            box-shadow: 0 22px 48px -12px rgba(0,0,0,0.65), 0 0 0 1px var(--accent-border), 0 0 32px rgba(101,214,158,0.12);
            z-index: 2;
        }
        .media-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
        .media-tile-video .media-media { cursor: pointer; background: #000; }
        .media-grad {
            position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 45%);
        }
        .media-tile:hover .media-grad { opacity: 1; }

        .media-play {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
            width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            background: rgba(10,10,18,0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25);
            color: #fff; font-size: 0.85rem; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
        }
        .media-play i { margin-left: 2px; }
        .media-tile-video:hover .media-play { opacity: 0; transform: translate(-50%,-50%) scale(0.7); }

        /* Butoanele de acțiune (descarcă / mărește / extinde) sunt mereu vizibile —
           descărcare directă fără să deschizi media. Pe hover doar le accentuăm. */
        .media-actions {
            position: absolute; top: 10px; right: 10px; display: flex; gap: 6px;
            opacity: 0.92; transform: none; transition: opacity 0.25s, transform 0.25s;
        }
        .media-tile:hover .media-actions { opacity: 1; }
        .media-btn {
            width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-size: 0.78rem;
            background: rgba(12,12,20,0.62); backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.92);
            transition: all 0.18s; box-shadow: 0 4px 12px rgba(0,0,0,0.35);
        }
        .media-btn:hover { background: rgba(20,20,32,0.92); transform: scale(1.1); color: #fff; }
        /* Pe telefon (fără hover) — ținte de atingere mai mari, mereu vizibile */
        @media (hover: none), (pointer: coarse) {
            .media-actions { opacity: 1; top: 8px; right: 8px; gap: 7px; }
            .media-btn { width: 40px; height: 40px; font-size: 0.9rem; border-radius: 11px; }
        }
        .media-btn-accent { color: #072215; background: var(--accent); border-color: transparent; }
        .media-btn-accent:hover { background: #7ee0ad; }

        /* Skeleton de încărcare (înlocuiește .shimmer-box) */
        .media-skeleton {
            position: relative; border-radius: 16px; overflow: hidden;
            aspect-ratio: var(--ar, 1/1); border: 1px solid var(--border);
            background: linear-gradient(110deg, rgba(255,255,255,0.025) 8%, rgba(255,255,255,0.07) 22%, rgba(255,255,255,0.025) 38%);
            background-size: 200% 100%; animation: skeletonSweep 1.5s linear infinite;
        }
        @keyframes skeletonSweep { 0%{ background-position: 150% 0; } 100%{ background-position: -50% 0; } }

        /* ═══════════════════════════════════════════════
           CONTENT AREA
        ═══════════════════════════════════════════════ */
        .content-glass {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 18%),
                radial-gradient(130% 70% at 50% -12%, rgba(101,214,158,0.06), transparent 58%),
                rgba(9,10,17,0.62);
            border: 1px solid var(--border); backdrop-filter: blur(16px) saturate(1.1);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow-card);
        }

        /* ═══════════════════════════════════════════════
           DROPZONE
        ═══════════════════════════════════════════════ */
        .dropzone {
            border: 1.5px dashed rgba(255,255,255,0.09); border-radius: 13px;
            background: var(--bg-card); transition: all 0.2s; cursor: pointer;
        }
        .dropzone:hover { border-color: var(--accent-border); background: var(--accent-dim); }
        .dropzone.has-file { border-color: var(--accent-border); background: var(--accent-dim); border-style: solid; }

        .frame-preview { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--accent-border); }
        .frame-preview img { width: 100%; height: 100%; object-fit: cover; }
        .frame-preview .remove-btn { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(239,68,68,0.88); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
        .frame-preview:hover .remove-btn { opacity: 1; }

        /* ═══════════════════════════════════════════════
           TOAST
        ═══════════════════════════════════════════════ */
        #toast {
            position: fixed; bottom: 30px; left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(12,12,22,0.96); backdrop-filter: blur(20px);
            border: 1px solid var(--border-strong); color: white;
            padding: 12px 24px; border-radius: 99px; font-size: 0.86rem; font-weight: 600;
            z-index: 200000; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
            opacity: 0; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        }
        #toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

        /* ═══════════════════════════════════════════════
           LIGHTBOX
        ═══════════════════════════════════════════════ */
        #lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.97); backdrop-filter: blur(20px); z-index: 300000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
        #lightbox.show { display: flex; opacity: 1; }

        /* Panou detalii generare (model, prompt, format, dată) în lightbox */
        #lb-info { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 310000; width: min(720px, 92vw); background: rgba(18,18,24,0.82); border: 1px solid rgba(255,255,255,0.09); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 18px; padding: 14px 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.6); }
        #lb-info.hidden { display: none; }
        #lb-info .lb-info-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
        #lb-info .lb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.66); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); padding: 5px 11px; border-radius: 999px; white-space: nowrap; letter-spacing: 0.01em; }
        #lb-info .lb-chip i { font-size: 0.7rem; opacity: 0.8; }
        #lb-info .lb-chip-model { font-weight: 700; color: #fff; background: linear-gradient(135deg, rgba(139,92,246,0.42), rgba(59,130,246,0.32)); border-color: rgba(139,92,246,0.45); box-shadow: 0 2px 12px rgba(139,92,246,0.22); }
        #lb-info .lb-chip-model i { opacity: 0.95; }
        #lb-info .lb-chip-copy { cursor: pointer; margin-left: auto; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); transition: background 0.15s, color 0.15s; }
        #lb-info .lb-chip-copy:hover { background: rgba(139,92,246,0.28); color: #fff; border-color: rgba(139,92,246,0.4); }
        #lb-info .lb-info-prompt { margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.8); max-height: 96px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
        @media (max-width: 640px){ #lb-info { bottom: 12px; padding: 12px 13px; width: 94vw; border-radius: 16px; } #lb-info .lb-info-prompt { max-height: 72px; } #lb-info .lb-chip-copy span { display: none; } }

        /* ═══════════════════════════════════════════════
           CREDITS BADGE
        ═══════════════════════════════════════════════ */
        .credits-badge {
            background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.22);
            color: var(--gold); border-radius: 99px; padding: 2px 10px;
            font-size: 0.66rem; font-weight: 800; font-family: 'JetBrains Mono', monospace;
        }

        /* ═══════════════════════════════════════════════
           AUTOCOMPLETE
        ═══════════════════════════════════════════════ */
        #autocomplete-menu { display: none; position: absolute; bottom: calc(100% + 5px); left: 10px; background: #111120; border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); z-index: 50; max-height: 200px; overflow-y: auto; width: max-content; min-width: 150px; }
        #autocomplete-menu.show { display: block; }
        .autocomplete-item { padding: 8px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.82rem; }
        .autocomplete-item:last-child { border-bottom: none; }
        .autocomplete-item:hover { background: var(--accent-dim); color: var(--accent); }

        /* ═══════════════════════════════════════════════
           ANIMATIONS
        ═══════════════════════════════════════════════ */
        @keyframes spin { to{ transform:rotate(360deg); } }
        .spin { animation: spin 1s linear infinite; }
        @keyframes slideUp { from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:translateY(0); } }
        .animate-slide-up { animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
        @keyframes fadeInUp { from{ opacity:0; transform:translateY(12px) scale(0.96); } to{ opacity:1; transform:translateY(0) scale(1); } }
        .animate-fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
        @keyframes float { 0%,100%{ transform:translateY(0px); } 50%{ transform:translateY(-8px); } }
        .float { animation: float 4s ease-in-out infinite; }

        /* ═══════════════════════════════════════════════
           HISTORY
        ═══════════════════════════════════════════════ */
        /* .history-group folosește acum stilul seamless .job-card (galerie unificată) */

        /* ═══════════════════════════════════════════════
           THEME TOGGLE
        ═══════════════════════════════════════════════ */
        #theme-toggle {
            width: 38px; height: 38px; border-radius: 11px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
            border: 1px solid var(--border); background: var(--bg-card);
            color: var(--text-muted); flex-shrink: 0; position: relative; overflow: hidden;
        }
        #theme-toggle:hover { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); transform: scale(1.05); }
        #theme-toggle .icon-sun, #theme-toggle .icon-moon { transition: all 0.3s; position: absolute; }
        #theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
        #theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

        /* ═══════════════════════════════════════════════
           VEO MODE TABS
        ═══════════════════════════════════════════════ */
        .veo-tab {
            padding: 7px 10px; border-radius: 9px; font-size: 0.7rem; font-weight: 700; cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
            display: flex; align-items: center; justify-content: center; gap: 5px;
            border: 1px solid transparent; background: none; color: var(--text-faint); line-height: 1;
        }
        .veo-tab.active { background: var(--indigo-dim); color: #c4b5fd; border-color: var(--indigo-border); box-shadow: 0 0 14px rgba(139,92,246,0.12); }
        .veo-tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.05); }

        /* ═══════════════════════════════════════════════
           TOGGLE SWITCH
        ═══════════════════════════════════════════════ */
        .toggle-switch { position: relative; width: 42px; height: 24px; display: inline-block; flex-shrink: 0; }
        .toggle-switch input { display: none; }
        .toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.08); border-radius: 12px; cursor: pointer; transition: all 0.25s; border: 1px solid var(--border); }
        .toggle-slider:before { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,0.4); top: 2.5px; left: 3px; transition: all 0.25s cubic-bezier(0.16,1,0.3,1); }
        .toggle-switch input:checked + .toggle-slider { background: var(--accent-dim); border-color: var(--accent-border); }
        .toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); background: var(--accent); }

        /* ── Agent select options ── */
        .agent-styled-sel { color: #e8e8f4; }
        .agent-styled-sel option { background: #111120 !important; color: #e8e8f4 !important; padding: 8px; font-weight: 600; }
        .agent-styled-sel option:checked { background: rgba(101,214,158,0.15) !important; color: var(--accent) !important; }

        /* ── Agent storyboard scene cards ── */
        .agent-sb-card {
            padding: 11px 13px;
            border-radius: 12px;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.06);
            transition: all 0.2s;
            text-align: left;
        }
        .agent-sb-card:hover {
            background: rgba(255,255,255,0.045);
            border-color: rgba(101,214,158,0.2);
        }
        .agent-sb-card .sb-head {
            display: flex; align-items: center; justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
        }
        .agent-sb-card .sb-num {
            display: inline-flex; align-items: center; justify-content: center;
            width: 22px; height: 22px; border-radius: 6px;
            background: var(--accent-dim);
            color: var(--accent);
            font-size: 0.66rem; font-weight: 900;
            font-family: 'JetBrains Mono', monospace;
            flex-shrink: 0;
        }
        .agent-sb-card .sb-label {
            font-size: 0.78rem; font-weight: 700; color: white;
            flex: 1; min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .agent-sb-card .sb-duration {
            font-size: 0.6rem; font-weight: 700;
            color: rgba(255,255,255,0.4);
            font-family: 'JetBrains Mono', monospace;
        }
        .agent-sb-card .sb-row {
            display: flex; gap: 8px; margin-top: 5px;
            font-size: 0.7rem; line-height: 1.4;
        }
        .agent-sb-card .sb-icon {
            flex-shrink: 0;
            width: 16px; height: 16px;
            display: flex; align-items: center; justify-content: center;
            color: rgba(255,255,255,0.35);
            font-size: 0.6rem;
            margin-top: 2px;
        }
        .agent-sb-card .sb-text {
            flex: 1; min-width: 0;
            color: rgba(255,255,255,0.55);
            word-wrap: break-word;
        }
        .agent-sb-card .sb-icon.img { color: rgba(245,200,66,0.6); }
        .agent-sb-card .sb-icon.vid { color: rgba(165,168,255,0.7); }

        /* ── Agent chat bubbles ── */
        .agent-chat-msg {
            max-width: 88%;
            padding: 8px 12px;
            border-radius: 14px;
            font-size: 0.8rem;
            line-height: 1.45;
            word-wrap: break-word;
            animation: fadeInUp 0.3s ease forwards;
        }
        .agent-chat-msg.user {
            align-self: flex-end;
            background: linear-gradient(135deg, rgba(101,214,158,0.18), rgba(74,222,128,0.12));
            border: 1px solid rgba(101,214,158,0.25);
            color: white;
            border-bottom-right-radius: 4px;
        }
        .agent-chat-msg.agent {
            align-self: flex-start;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.85);
            border-bottom-left-radius: 4px;
        }
        .agent-chat-msg.thinking {
            color: rgba(255,255,255,0.5);
            font-style: italic;
        }
        .agent-chat-msg.thinking .dots::after {
            content: '';
            animation: thinkDots 1.4s infinite;
        }
        @keyframes thinkDots {
            0%   { content: ''; }
            25%  { content: '.'; }
            50%  { content: '..'; }
            75%  { content: '...'; }
            100% { content: ''; }
        }

        /* ── Agent production scene flow (vertical, connected) ── */
        .agent-pp-scene {
            position: relative;
            display: flex;
            gap: 10px;
            padding: 10px 12px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            margin-bottom: 12px;
            transition: all 0.3s;
        }
        .agent-pp-scene:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 28px; bottom: -12px;
            width: 2px; height: 12px;
            background: linear-gradient(to bottom, var(--accent-border, rgba(101,214,158,0.4)), transparent);
        }
        .agent-pp-scene.processing {
            border-color: rgba(101,214,158,0.25);
            background: rgba(101,214,158,0.03);
            box-shadow: 0 0 18px rgba(101,214,158,0.06);
        }
        .agent-pp-scene.done {
            border-color: rgba(52,211,153,0.25);
        }
        .agent-pp-scene.error {
            border-color: rgba(248,113,113,0.3);
            background: rgba(248,113,113,0.04);
        }
        .agent-pp-scene .pp-num {
            flex-shrink: 0;
            width: 32px; height: 32px;
            border-radius: 8px;
            background: var(--accent-dim);
            color: var(--accent);
            display: flex; align-items: center; justify-content: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.76rem; font-weight: 900;
        }
        .agent-pp-scene.processing .pp-num {
            animation: ppPulse 1.6s ease-in-out infinite;
        }
        @keyframes ppPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(101,214,158,0.5); }
            50%      { box-shadow: 0 0 0 8px rgba(101,214,158,0); }
        }
        .agent-pp-scene .pp-body {
            flex: 1;
            min-width: 0;
            display: flex; flex-direction: column; gap: 4px;
        }
        .agent-pp-scene .pp-label {
            font-size: 0.78rem; font-weight: 700; color: white;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .agent-pp-scene .pp-status {
            font-size: 0.66rem; color: rgba(255,255,255,0.5);
            display: flex; align-items: center; gap: 5px;
        }
        .agent-pp-scene .pp-status i {
            font-size: 0.6rem;
        }
        .agent-pp-scene.processing .pp-status { color: var(--accent); }
        .agent-pp-scene.done .pp-status { color: #34d399; }
        .agent-pp-scene.error .pp-status { color: #fca5a5; }
        .agent-pp-scene .pp-preview {
            margin-top: 4px;
            display: flex; gap: 6px;
            align-items: flex-start;
        }
        .agent-pp-scene .pp-thumb {
            width: 64px; aspect-ratio: 9/16;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            flex-shrink: 0;
            position: relative;
        }
        .agent-pp-scene .pp-thumb img,
        .agent-pp-scene .pp-thumb video {
            width: 100%; height: 100%; object-fit: cover;
            display: block;
        }
        .agent-pp-scene .pp-thumb.skeleton {
            background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 100%);
            background-size: 200% 100%;
            animation: shimmer 1.6s linear infinite;
        }
        .agent-pp-scene .pp-thumb-label {
            position: absolute; bottom: 3px; left: 3px;
            font-size: 0.52rem; font-weight: 800;
            padding: 1px 5px; border-radius: 99px;
            background: rgba(0,0,0,0.6); color: white;
            backdrop-filter: blur(4px);
        }

        /* ═══════════════════════════════════════════════
           AGENT TAB / MODAL
        ═══════════════════════════════════════════════ */
        /* Agentul e experiență de desktop — pe mobil rămân doar Imagini și Video */
        @media (max-width: 767px) {
            #tab-agent-wrap { display: none !important; }
        }
        .agent-tab.active { background: linear-gradient(135deg, rgba(99,102,241,0.22) 0%, rgba(236,72,153,0.22) 100%) !important; color: #f3a8ff !important; border-color: rgba(236,72,153,0.38) !important; box-shadow: 0 0 22px rgba(236,72,153,0.14) !important; }
        .agent-tab.active i { color: #ec4899 !important; }
        .agent-tab-pulse { position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ec4899; box-shadow: 0 0 8px #ec4899; animation: agentPulse 1.6s ease-in-out infinite; }
        @keyframes agentPulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.4; transform:scale(0.6); } }
        .mode-tab.agent-tab-soon { cursor: not-allowed !important; opacity: 0.5; pointer-events: none; }
        .agent-soon-badge { position: absolute; top: -7px; right: -6px; padding: 2px 6px; font-size: 0.5rem; font-weight: 900; letter-spacing: 0.08em; line-height: 1; color: white; background: linear-gradient(135deg, #ec4899, #f5c842); border: 1px solid rgba(255,255,255,0.18); border-radius: 99px; box-shadow: 0 3px 8px rgba(236,72,153,0.4); text-transform: uppercase; animation: agentSoonPulse 2s ease-in-out infinite; }
        @keyframes agentSoonPulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.06); } }
        #agent-modal { position: fixed; inset: 0; z-index: 9998; display: none; background: rgba(4,4,10,0.82); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); opacity: 0; transition: opacity .35s cubic-bezier(0.16,1,0.3,1); }
        #agent-modal.show { display: flex; opacity: 1; }
        #agent-modal .agent-canvas { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
        .agent-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%); animation: gridDrift 26s linear infinite; pointer-events: none; }
        @keyframes gridDrift { 0%{ background-position:0 0,0 0; } 100%{ background-position:44px 44px,44px 44px; } }
        .agent-grid-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(101,214,158,0.2) 1.2px, transparent 1.5px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0) 65%); pointer-events: none; }
        .agent-orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: 0.5; }
        .agent-orb-a { width: 480px; height: 480px; background: radial-gradient(circle, rgba(101,214,158,0.5) 0%, transparent 70%); top: -120px; left: -80px; }
        .agent-orb-b { width: 420px; height: 420px; background: radial-gradient(circle, rgba(236,72,153,0.45) 0%, transparent 70%); bottom: -100px; right: -60px; }
        .agent-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; z-index: 10; }
        .agent-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }
        .agent-header { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(10px); z-index: 5; }
        .agent-header .badge { font-size: 0.58rem; padding: 3px 8px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), #4ade80); color: #072215; font-weight: 900; }
        .agent-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
        .agent-line { fill: none; stroke: url(#agentLineGrad); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; filter: drop-shadow(0 0 4px rgba(101,214,158,0.5)); }
        .agent-line.drawn { animation: drawLine 1.1s cubic-bezier(0.65,0,0.35,1) forwards; }
        @keyframes drawLine { to{ stroke-dashoffset:0; } }
        .agent-line-pulse { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 1000; opacity: 0; }
        .agent-line-pulse.active { opacity: 1; animation: pulseAlong 2.4s linear infinite; }
        @keyframes pulseAlong { 0%{ stroke-dashoffset:1000; } 100%{ stroke-dashoffset:0; } }
        .agent-core { position: relative; z-index: 5; width: min(520px, 88vw); padding: 28px 28px 22px; background: rgba(12,12,22,0.9); border: 1px solid var(--border-strong); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(101,214,158,0.08); backdrop-filter: blur(20px); transform: translateY(20px) scale(0.96); opacity: 0; transition: all 0.45s cubic-bezier(0.16,1,0.3,1); }
        #agent-modal.show .agent-core { transform: translateY(0) scale(1); opacity: 1; }
        .agent-core-icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #3ecf8e, #65d69e, #4ade80); background-size: 200% 200%; animation: genGrad 5s ease infinite; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #072215; box-shadow: 0 12px 28px -8px rgba(101,214,158,0.4); margin: 0 auto 16px; }
        .agent-core h2 { text-align: center; font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
        .agent-core .sub { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; }
        .agent-prompt-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; transition: all 0.25s; }
        .agent-prompt-wrap:focus-within { border-color: var(--accent-border); background: var(--accent-dim); }
        #agent-prompt-in { width: 100%; background: transparent; border: none; outline: none; resize: none; color: var(--text-primary); font-size: 0.92rem; font-weight: 500; font-family: 'Geist', 'Inter', sans-serif; padding: 14px 16px; line-height: 1.5; }
        #agent-prompt-in::placeholder { color: var(--text-faint); }
        .agent-launch-btn { margin-top: 14px; width: 100%; padding: 13px; border-radius: 14px; background: linear-gradient(135deg, #3ecf8e, #65d69e, #4ade80); background-size: 200% 200%; animation: genGrad 4s ease infinite; color: #072215; font-weight: 800; font-size: 0.88rem; border: none; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 14px 30px -10px rgba(101,214,158,0.4); }
        .agent-launch-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -10px rgba(101,214,158,0.55); }
        .agent-launch-btn:disabled { opacity: 0.55; cursor: not-allowed; }
        .agent-node { position: absolute; z-index: 3; width: 132px; background: rgba(12,12,22,0.9); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(14px); box-shadow: 0 10px 26px -10px rgba(0,0,0,0.6); transform: scale(0.7); opacity: 0; transition: all 0.5s cubic-bezier(0.16,1,0.3,1); }
        .agent-node.appear { transform: scale(1); opacity: 1; }
        .agent-node.thinking { border-color: var(--accent-border); box-shadow: 0 0 22px rgba(101,214,158,0.2); }
        .agent-node.done     { border-color: rgba(52,211,153,0.4); box-shadow: 0 0 22px rgba(52,211,153,0.18); }
        .agent-node .scene-num { font-size: 0.58rem; font-weight: 800; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
        .agent-node .scene-num .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(101,214,158,0.5); }
        .agent-node.thinking .scene-num .dot { background: var(--accent); animation: nodePulse 1.4s ease-in-out infinite; }
        .agent-node.done .scene-num { color: rgba(110,231,183,0.95); }
        .agent-node.done .scene-num .dot { background: #34d399; animation: none; }
        @keyframes nodePulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(0.7); } }
        .agent-node .scene-label { font-size: 0.72rem; font-weight: 600; color: var(--text-primary); line-height: 1.35; min-height: 28px; }
        .agent-node .scene-skeleton { height: 10px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 100%); background-size: 200% 100%; animation: shimmerSlide 1.4s linear infinite; margin-top: 4px; }
        .agent-node .scene-skeleton.short { width: 60%; }
        @keyframes shimmerSlide { 0%{ background-position:-200% 0; } 100%{ background-position:200% 0; } }
        .agent-footer { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; font-size: 0.7rem; color: var(--text-faint); z-index: 5; }
        .agent-footer kbd { padding: 3px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 700; color: var(--text-muted); }

        /* ═══════════════════════════════════════════════
           SUPPORT PILL
        ═══════════════════════════════════════════════ */
        .support-pill { background: rgba(9,9,18,0.92); backdrop-filter: blur(20px); border: 1px solid var(--border); }

        /* ═══════════════════════════════════════════════
           CHIP BAR — Higgsfield-style settings row
        ═══════════════════════════════════════════════ */
        .chip-bar {
            display: flex !important;
            gap: 8px;
            padding: 0;
            background: transparent;
            border: none;
            overflow: visible;
        }
        /* .chip-btn = WRAPPER (div) — relative positioning context for popover */
        .chip-btn {
            position: relative;
            flex: 1 1 0;
            min-width: 0;
            overflow: visible;
        }
        /* ratio chip: center popover under/over chip */
        .chip-btn[data-chip="ratio-image"] .chip-pop,
        .chip-btn[data-chip="ratio-video"] .chip-pop {
            left: 50%;
            transform: translateX(-50%) translateY(4px);
        }
        .chip-btn[data-chip="ratio-image"].chip-open .chip-pop,
        .chip-btn[data-chip="ratio-video"].chip-open .chip-pop {
            transform: translateX(-50%) translateY(0);
        }
        /* quality chip: align popover to right edge */
        .chip-btn[data-chip="quality"] .chip-pop {
            left: auto;
            right: 0;
        }
        .chip-btn.chip-disabled { display: none !important; }

        /* .chip-trigger = actual clickable button */
        .chip-trigger {
            display: flex !important;
            align-items: center; justify-content: center;
            gap: 7px;
            width: 100%;
            height: 40px;
            padding: 0 10px;
            border-radius: 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid transparent;
            color: var(--text-primary);
            font-size: 0.78rem; font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
            font-family: 'Geist','Inter',sans-serif;
            line-height: 1;
            white-space: nowrap;
            outline: none;
        }
        .chip-trigger:hover { background: rgba(255,255,255,0.08); }
        .chip-btn.chip-open .chip-trigger {
            background: rgba(101,214,158,0.1);
            border-color: var(--accent-border);
        }
        .chip-trigger .chip-icon {
            font-size: 0.82rem; flex-shrink: 0;
            color: var(--text-primary);
        }
        .chip-trigger .chip-val {
            font-size: 0.78rem; font-weight: 600;
            color: var(--text-primary);
            text-overflow: ellipsis; overflow: hidden; max-width: 100%;
        }

        /* Popover — absolute positioning relative to .chip-btn (already position:relative) */
        .chip-pop {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 0;
            min-width: 160px;
            padding: 6px;
            display: flex !important;
            flex-direction: column !important;
            background: rgba(15,15,26,0.97);
            backdrop-filter: blur(24px);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7), 0 8px 22px -6px rgba(0,0,0,0.5);
            opacity: 0; pointer-events: none;
            transform: translateY(4px);
            transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.16,1,0.3,1);
            z-index: 9999;
            visibility: hidden;
        }
        .chip-btn.chip-open .chip-pop {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
            visibility: visible;
        }
        .chip-pop-arrow {
            position: absolute;
            bottom: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
            width: 10px; height: 10px;
            background: rgba(15,15,26,0.97);
            border-right: 1px solid rgba(255,255,255,0.08);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .chip-pop-item {
            display: flex !important;
            align-items: center; justify-content: space-between;
            gap: 10px;
            width: 100%;
            padding: 10px 11px;
            border-radius: 9px;
            font-size: 0.8rem; font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.12s ease;
            font-family: 'Geist','Inter',sans-serif;
            line-height: 1.1;
            text-align: left;
            background: transparent; border: none;
        }
        .chip-pop-item:hover { background: rgba(255,255,255,0.06); }
        .chip-pop-item.chip-pop-active {
            background: rgba(101,214,158,0.12);
            color: var(--accent);
        }
        .chip-pop-item .ci-glyph {
            display: flex; align-items: center; gap: 9px;
            font-size: 0.8rem;
        }
        .chip-pop-item .ci-glyph .ci-box {
            border: 1.5px solid currentColor; border-radius: 2px; opacity: 0.55;
            flex-shrink: 0;
        }
        .chip-pop-item .ci-check {
            font-size: 0.7rem; color: var(--accent);
            opacity: 0;
        }
        .chip-pop-item.chip-pop-active .ci-check { opacity: 1; }
        .chip-pop-title {
            font-size: 0.56rem; font-weight: 800;
            letter-spacing: 0.16em; text-transform: uppercase;
            color: var(--text-faint);
            padding: 6px 11px 8px;
        }

        /* ═══════════════════════════════════════════════
           VARIANT PILLS (legacy — kept for back-compat) hidden when chip bar active
        ═══════════════════════════════════════════════ */
        .variant-label {
            display: flex; align-items: center; justify-content: space-between;
            font-size: 0.6rem; font-weight: 800;
            letter-spacing: 0.12em; text-transform: uppercase;
            color: var(--text-faint);
            margin-bottom: 7px; padding: 0 2px;
        }
        .variant-hint {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.58rem; font-weight: 700;
            letter-spacing: 0.04em; color: var(--text-muted);
            text-transform: none;
        }
        .variant-row {
            display: flex; gap: 5px;
            padding: 4px; border-radius: 12px;
            background: var(--bg-card); border: 1px solid var(--border);
        }
        .variant-pill {
            flex: 1; padding: 9px 10px; border-radius: 8px;
            font-size: 0.74rem; font-weight: 700; letter-spacing: -0.005em;
            color: var(--text-muted); cursor: pointer;
            background: transparent; border: 1px solid transparent;
            transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
            text-align: center; line-height: 1;
            font-family: 'Geist', 'Inter', sans-serif;
        }
        .variant-pill:hover:not(.active) {
            color: var(--text-primary); background: rgba(255,255,255,0.04);
        }
        .variant-pill.active {
            color: var(--accent);
            background: var(--accent-dim);
            border-color: var(--accent-border);
            box-shadow: 0 0 14px -4px rgba(101,214,158,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
        }

        /* ═══════════════════════════════════════════════
           STUDIO TABS (top of content area: History | How it works)
        ═══════════════════════════════════════════════ */
        /* Sticky bar — rămâne mereu sus când scrollezi galeria/istoricul */
        /* Fără bandă întunecată — sticky transparent, doar un blur subtil ca să rămână
           lizibil când scrollezi galeria pe sub el. Pastila tab-urilor are fundal propriu. */
        .studio-tabs-sticky {
            position: sticky; top: 0; z-index: 30;
            margin: -0.5rem 0 1.4rem; padding: 0.85rem 0 0.95rem;
            background: transparent;
            backdrop-filter: blur(14px) saturate(1.1);
            -webkit-backdrop-filter: blur(14px) saturate(1.1);
        }
        .studio-tabs-wrap {
            display: flex; align-items: center; gap: 4px;
            padding: 5px; border-radius: 14px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--border);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px -16px rgba(0,0,0,0.7);
            width: fit-content;
        }
        .studio-tab {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 9px 18px; border-radius: 10px;
            font-size: 0.78rem; font-weight: 700; letter-spacing: -0.01em;
            color: var(--text-faint); cursor: pointer;
            background: transparent; border: 1px solid transparent;
            transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
            position: relative; line-height: 1;
        }
        .studio-tab i { font-size: 0.72rem; opacity: 0.85; }
        .studio-tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.05); }
        .studio-tab.active {
            background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
            border-color: rgba(255,255,255,0.12);
            color: #fff;
            box-shadow: 0 6px 18px -8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.09);
        }
        .studio-tab.active i { color: var(--accent); opacity: 1; }

        /* ═══════════════════════════════════════════════
           HOW IT WORKS — Premium 3-step panel
        ═══════════════════════════════════════════════ */
        .howto-panel {
            position: relative;
            border-radius: 26px;
            background:
                radial-gradient(130% 100% at 100% 0%, rgba(101,214,158,0.10), transparent 46%),
                radial-gradient(120% 90% at 0% 100%, rgba(124,132,255,0.09), transparent 50%),
                linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.012) 100%);
            border: 1px solid var(--border-strong);
            padding: clamp(2.25rem, 4vw, 3.75rem) clamp(1.5rem, 3vw, 3rem) clamp(2.25rem, 4vw, 3.25rem);
            overflow: hidden;
            backdrop-filter: blur(8px);
            box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
        }
        /* Linie accent sus, luminoasă */
        .howto-panel::after {
            content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; z-index: 2;
            background: linear-gradient(90deg, transparent, var(--accent), rgba(124,132,255,0.9), transparent);
            opacity: 0.8;
        }
        .howto-panel::before {
            content: ''; position: absolute; inset: 0;
            background:
                radial-gradient(circle at 18% 12%, rgba(101,214,158,0.05), transparent 38%),
                radial-gradient(circle at 82% 88%, rgba(124,132,255,0.05), transparent 42%);
            pointer-events: none;
        }
        .howto-panel > * { position: relative; z-index: 1; }

        .howto-header { margin-bottom: 2.75rem; }
        .howto-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 13px; border-radius: 99px;
            font-size: 0.58rem; font-weight: 900;
            letter-spacing: 0.2em; text-transform: uppercase;
            color: var(--accent);
            background: var(--accent-dim);
            border: 1px solid var(--accent-border);
            box-shadow: 0 0 24px -6px rgba(101,214,158,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
            margin-bottom: 1.3rem;
        }
        .howto-eyebrow .dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--accent); box-shadow: 0 0 10px var(--accent);
            animation: dotPulse 2s ease-in-out infinite;
        }
        @keyframes dotPulse { 0%,100%{ opacity: 1; transform: scale(1); } 50%{ opacity: 0.45; transform: scale(0.75); } }
        .howto-title {
            font-family: 'Fraunces', serif;
            font-size: clamp(2.2rem, 4.4vw, 3.6rem);
            font-weight: 900; line-height: 0.98;
            letter-spacing: -0.04em;
            color: #fff;
            margin-bottom: 0.85rem;
            text-shadow: 0 2px 30px rgba(0,0,0,0.4);
        }
        .howto-title em {
            font-style: italic;
            background: linear-gradient(110deg, var(--accent) 0%, #7be8c4 45%, #9aa0ff 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 26px rgba(101,214,158,0.35));
        }
        .howto-sub {
            font-size: 0.95rem; line-height: 1.6;
            color: var(--text-muted);
            max-width: 620px;
        }

        .howto-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.25rem;
        }
        .howto-grid.howto-grid-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            max-width: 720px;
            margin: 0 auto;
        }
        .howto-step {
            position: relative;
            border-radius: 18px;
            background: transparent;
            border: none;
            padding: 0 0 0.5rem;
            transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
            overflow: visible;
        }
        .howto-step:hover { transform: translateY(-4px); }
        .howto-step-visual {
            position: relative;
            aspect-ratio: 4/3;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 100%);
            border: 1px solid var(--border-strong);
            margin-bottom: 1.1rem;
            overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.05);
            transition: border-color 0.35s, box-shadow 0.35s;
        }
        .howto-step:hover .howto-step-visual {
            border-color: var(--accent-border);
            box-shadow: 0 26px 60px -26px rgba(0,0,0,0.7), 0 0 30px -6px rgba(101,214,158,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
        }
        .howto-step:nth-child(2):hover .howto-step-visual {
            border-color: var(--indigo-border);
            box-shadow: 0 26px 60px -26px rgba(0,0,0,0.7), 0 0 30px -6px rgba(124,132,255,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
        }
        .howto-step-visual::after {
            content: ''; position: absolute; inset: 0;
            background-image: radial-gradient(circle, rgba(101,214,158,0.05) 1px, transparent 1px);
            background-size: 16px 16px;
            -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
            mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
            pointer-events: none;
        }
        /* Media (img / video) umple slotul — contain ca să se vadă complet */
        .howto-step-media {
            position: absolute; inset: 0;
            width: 100%; height: 100%;
            object-fit: contain;
            z-index: 1;
            border-radius: inherit;
        }
        /* Dacă există media în slot: ascunde icon fallback, dot-grid, border și background */
        .howto-step-visual:has(.howto-step-media) .howto-step-icon-fallback { display: none; }
        .howto-step-visual:has(.howto-step-media)::after { opacity: 0; }
        .howto-step-visual:has(.howto-step-media) {
            border: none;
            background: transparent;
        }
        /* Subtilă vignettă în jurul badge-ului 01/02 când există media */
        .howto-step-visual:has(.howto-step-media) .howto-step-num {
            box-shadow: 0 4px 14px rgba(0,0,0,0.5);
        }
        .howto-step-num {
            position: absolute; top: 12px; left: 12px;
            z-index: 2;
            width: 26px; height: 26px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem; font-weight: 800;
            background: rgba(9,9,18,0.85); backdrop-filter: blur(8px);
            border: 1px solid var(--border-strong);
            color: var(--text-primary);
        }
        .howto-step-icon {
            position: relative; z-index: 1;
            width: 58px; height: 58px; border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--accent-dim) 0%, rgba(101,214,158,0.04) 100%);
            border: 1px solid var(--accent-border);
            color: var(--accent);
            box-shadow: 0 8px 30px -10px rgba(101,214,158,0.4);
        }
        .howto-step:nth-child(2) .howto-step-icon {
            background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.04) 100%);
            border-color: var(--indigo-border); color: #a5a8ff;
            box-shadow: 0 8px 30px -10px rgba(99,102,241,0.4);
        }
        .howto-step:nth-child(3) .howto-step-icon {
            background: linear-gradient(135deg, rgba(245,200,66,0.15) 0%, rgba(245,200,66,0.04) 100%);
            border-color: rgba(245,200,66,0.3); color: var(--gold);
            box-shadow: 0 8px 30px -10px rgba(245,200,66,0.4);
        }
        .howto-step-title {
            font-size: 0.88rem; font-weight: 800; letter-spacing: -0.01em;
            color: var(--text-primary); margin-bottom: 0.35rem;
            display: flex; align-items: center; gap: 8px;
        }
        .howto-step-kind {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.54rem; font-weight: 800; letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 3px 7px; border-radius: 5px;
        }
        .howto-step-kind.kind-image { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-border); }
        .howto-step-kind.kind-preset { color: #a5a8ff; background: var(--indigo-dim); border: 1px solid var(--indigo-border); }
        .howto-step-kind.kind-video { color: var(--gold); background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.3); }
        .howto-step-desc {
            font-size: 0.75rem; line-height: 1.55;
            color: var(--text-muted);
        }
        .howto-arrow {
            position: absolute; top: 50%; transform: translateY(-50%);
            right: -16px; z-index: 3;
            width: 28px; height: 28px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            background: var(--bg-elevated);
            border: 1px solid var(--border-strong);
            color: var(--text-faint);
            font-size: 0.6rem;
        }

        .howto-footer {
            margin-top: 2.25rem; padding-top: 1.75rem;
            border-top: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between;
            gap: 1rem; flex-wrap: wrap;
        }
        .howto-stats {
            display: flex; align-items: center; gap: 1.4rem;
        }
        .howto-stat-val {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.15rem; font-weight: 900;
            color: var(--text-primary); line-height: 1;
            letter-spacing: -0.025em;
        }
        .howto-stat-lbl {
            font-size: 0.55rem; font-weight: 800;
            color: var(--text-faint);
            text-transform: uppercase; letter-spacing: 0.14em;
            margin-top: 4px;
        }
        .howto-stat-sep { width: 1px; height: 28px; background: var(--border); }

        @media (max-width: 900px) {
            .howto-grid { grid-template-columns: 1fr; }
            .howto-arrow { display: none; }
            .howto-stats { gap: 1rem; }
            .howto-footer { flex-direction: column; align-items: flex-start; }
        }

        /* ═══════════════════════════════════════════════
           MODE TABS — Premium underline style override
        ═══════════════════════════════════════════════ */
        .mode-tab {
            position: relative;
            background: transparent !important;
            border: none !important;
            border-radius: 0;
            padding: 11px 6px 13px;
            color: var(--text-faint);
            box-shadow: none !important;
            transition: color 0.2s ease;
        }
        .mode-tab::after {
            content: ''; position: absolute;
            left: 50%; bottom: 0;
            width: 0; height: 2.5px;
            background: var(--accent-grad);
            transform: translateX(-50%);
            transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
            border-radius: 3px;
            box-shadow: 0 0 14px var(--accent);
        }
        .mode-tab:not(.active):hover { color: var(--text-primary); background: transparent !important; }
        .mode-tab.active {
            background: transparent !important;
            color: var(--text-primary) !important;
            font-weight: 800;
        }
        .mode-tab.active::after { width: calc(100% - 14px); }
        #tab-video.active {
            background: transparent !important;
            color: var(--text-primary) !important;
        }
        #tab-video.active::after { background: #a5a8ff; box-shadow: 0 0 12px #a5a8ff; }

        /* container wrapper for new look — premium underline bar */
        .mode-tabs-bar {
            display: flex; gap: 8px;
            background: transparent !important;
            border: none !important;
            border-bottom: 1px solid var(--border) !important;
            padding: 0 !important;
            border-radius: 0 !important;
        }

        /* ═══════════════════════════════════════════════
           MOBILE
        ═══════════════════════════════════════════════ */
        @media (max-width: 720px) {
            .agent-node { width: 108px; padding: 8px 10px; }
            .agent-node .scene-label { font-size: 0.66rem; }
            .agent-core { width: 92vw; padding: 22px 20px 18px; }
        }

        /* ═══════════════════════════════════════════════
           ✦ ANIMAȚII ULTRA-MODERNE
        ═══════════════════════════════════════════════ */

        /* — Sidebar glass shimmer pe hover — */
        .sidebar-glass {
            position: relative;
        }
        /* Pe mobil, sidebarul de setări e un bottom-sheet `fixed` (vezi clasa Tailwind
           `fixed` din markup). `.sidebar-glass{position:relative}` îl suprascria și îl
           ținea în flux, strivind zona de Istoric la ~0px. Restaurăm `fixed` sub `md`. */
        @media (max-width: 767.98px) {
            #sidebar-settings.sidebar-glass { position: fixed; }
        }
        .sidebar-glass::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(101,214,158,0.03) 0%, transparent 50%, rgba(99,102,241,0.03) 100%);
            pointer-events: none;
            z-index: 0;
        }

        /* — Panel hover highlight — */
        .panel-s {
            position: relative;
            transition: background 0.2s;
        }
        .panel-s:hover {
            background: rgba(101,214,158,0.015);
        }

        /* — Mode tabs: slide indicator — */
        .mode-tabs-wrap {
            position: relative;
        }

        /* — Buton Generate: glow pulse când e activ — */
        .gen-btn:not(:disabled) {
            box-shadow: 0 0 0 0 rgba(101,214,158,0);
            animation: genGrad 5s ease infinite, genGlow 3s ease-in-out infinite;
        }
        @keyframes genGlow {
            0%, 100% { box-shadow: 0 4px 20px rgba(101,214,158,0.2); }
            50%       { box-shadow: 0 4px 32px rgba(101,214,158,0.42); }
        }

        /* — Model info card: fade slide-in la schimbare — */
        #model-info-card {
            animation: micIn 0.3s cubic-bezier(0.16,1,0.3,1);
        }
        @keyframes micIn {
            from { opacity:0.4; transform: translateY(6px); }
            to   { opacity:1;   transform: translateY(0); }
        }
        .mic-swap {
            animation: micIn 0.28s cubic-bezier(0.16,1,0.3,1);
        }

        /* — Tags bounce-in — */
        .mic-tag {
            animation: tagIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
        }
        .mic-tag:nth-child(1) { animation-delay: 0.05s; }
        .mic-tag:nth-child(2) { animation-delay: 0.12s; }
        .mic-tag:nth-child(3) { animation-delay: 0.19s; }
        @keyframes tagIn {
            from { opacity:0; transform: scale(0.7) translateY(4px); }
            to   { opacity:1; transform: scale(1) translateY(0); }
        }

        /* — Accent glow pe focus textarea — */
        .prompt-wrap:focus-within::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 14px;
            background: transparent;
            animation: promptGlow 2s ease-in-out infinite;
            pointer-events: none;
            z-index: -1;
        }
        @keyframes promptGlow {
            0%, 100% { box-shadow: 0 0 0 3px rgba(101,214,158,0.06); }
            50%       { box-shadow: 0 0 0 5px rgba(101,214,158,0.14); }
        }

        /* — Cost badge: count-up shimmer — */
        #total-cost {
            transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
            display: inline-block;
        }
        .cost-pop {
            animation: costPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
        }
        @keyframes costPop {
            0%  { transform: scale(1); }
            50% { transform: scale(1.35); color: var(--accent); }
            100%{ transform: scale(1); }
        }

        /* — Ratio pill check-in — */
        .ratio-pill input:checked + span {
            animation: pillCheck 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }
        @keyframes pillCheck {
            0%  { transform: scale(0.88); }
            60% { transform: scale(1.08); }
            100%{ transform: scale(1); }
        }

        /* — Dropzone pulse când dragover — */
        .dropzone.drag-over {
            border-color: var(--accent) !important;
            background: rgba(101,214,158,0.1) !important;
            animation: dropPulse 0.8s ease-in-out infinite;
        }
        @keyframes dropPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(101,214,158,0); }
            50%       { box-shadow: 0 0 0 6px rgba(101,214,158,0.12); }
        }

        /* — Mode tab transition — */
        .mode-tab {
            transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
        }
        .mode-tab.active {
            animation: tabActive 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }
        @keyframes tabActive {
            0%  { transform: scale(0.94); }
            60% { transform: scale(1.03); }
            100%{ transform: scale(1); }
        }

        /* — History group: fade-in on load — */
        .history-group {
            animation: histIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
        }
        @keyframes histIn {
            from { opacity:0; transform: translateY(8px); }
            to   { opacity:1; transform: translateY(0); }
        }

        /* — Sidebar scrollbar accent — */
        .sidebar-glass ::-webkit-scrollbar-thumb {
            background: rgba(101,214,158,0.18);
        }
        .sidebar-glass ::-webkit-scrollbar-thumb:hover {
            background: rgba(101,214,158,0.35);
        }

        /* — Count btn micro-bounce — */
        .count-btn:active {
            animation: btnPress 0.18s cubic-bezier(0.34,1.56,0.64,1);
        }
        @keyframes btnPress {
            0%  { transform: scale(0.82); }
            100%{ transform: scale(1); }
        }

        /* — Empty state: dots float animation — */
        @keyframes dotsFloat {
            0%, 100% { transform: translateY(0px);   opacity: 1;    }
            50%       { transform: translateY(-8px);  opacity: 0.75; }
        }
        /* — Empty state heading: gradient shimmer loop — */
        #st-empty [style*="background:linear-gradient(120deg"] {
            animation: gradShimmer 5s ease-in-out infinite;
            background-size: 200% 100%;
        }
        @keyframes gradShimmer {
            0%, 100% { background-position: 0% 50%; }
            50%       { background-position: 100% 50%; }
        }

        /* — Accent scanning line pe sidebar la hover — */
        @keyframes scanLine {
            0%   { transform: translateY(-100%); opacity:0; }
            10%  { opacity: 0.6; }
            90%  { opacity: 0.6; }
            100% { transform: translateY(100vh); opacity:0; }
        }

        /* (Border-trace pe job-card eliminat — galeria seamless folosește dot pulsant + bară de progres) */

        /* — Gen bar accent line top — */
        #gen-bar {
            position: relative;
        }
        #gen-bar::before {
            content: '';
            position: absolute;
            top: 0; left: 20%; right: 20%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
        }

        /* — Smooth fade pentru model info card la swap — */
        @keyframes micFadeSwap {
            0%  { opacity:0; transform: scale(0.97) translateY(4px); }
            100%{ opacity:1; transform: scale(1) translateY(0); }
        }

        /* ══════════════════════════════════════════════════════
           VIDEO MODEL PICKER — card demo in sidebar + modal
        ══════════════════════════════════════════════════════ */
        #video-model-card { margin-bottom: 2px; }
        .vmc-fig {
            position: relative; width: 100%; aspect-ratio: 2.3 / 1;
            overflow: hidden; border-radius: 14px; cursor: pointer;
            user-select: none; margin: 0;
            border: 1px solid var(--border); background: #0b0b12;
            transition: border-color 0.2s;
        }
        .vmc-fig:hover { border-color: rgba(255,255,255,0.22); }
        .vmc-fig:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
        .vmc-video { width: 100%; height: 100%; object-fit: cover; display: block; }
        /* Hero pentru modele-imagini (fără demo video): gradient + logo mare centrat */
        .vmc-hero { position: absolute; inset: 0; display: grid; place-items: center; }
        .vmc-hero-logo { width: 44px; height: 44px; opacity: 0.96; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55)); }
        .vmc-hero-logo svg { width: 100%; height: 100%; display: block; }
        .vmc-shade {
            position: absolute; inset: 0; pointer-events: none;
            background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%);
            transition: background 0.2s;
        }
        .vmc-fig:hover .vmc-shade { background: linear-gradient(rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.78) 100%); }
        .vmc-cap {
            position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
            display: flex; align-items: center; justify-content: space-between;
            gap: 8px; padding: 0 10px 9px 12px;
        }
        .vmc-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
        .vmc-logo { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; }
        .vmc-logo svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
        .vmc-name {
            font-size: 0.82rem; font-weight: 700; color: #fff; margin: 0;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            text-shadow: 0 1px 3px rgba(0,0,0,0.55);
        }
        .vmc-change {
            flex-shrink: 0; font-size: 0.64rem; font-weight: 700;
            color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.15); padding: 3px 9px;
            border-radius: 8px; backdrop-filter: blur(6px);
            transition: background 0.2s, color 0.2s;
        }
        .vmc-fig:hover .vmc-change { background: rgba(255,255,255,0.24); color: #fff; }

        /* — Flyout picker: cascada provideri -> modele (stil Higgsfield) — */
        .vmf-root { position: fixed; inset: 0; z-index: 100000; opacity: 0; transition: opacity 0.14s ease; }
        .vmf-root.vmf-open { opacity: 1; }
        .vmf-menu {
            position: fixed; width: 240px; max-height: min(62vh, 460px);
            display: flex; flex-direction: column;
            background: rgba(15,16,23,0.88);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px; overflow: hidden;
            backdrop-filter: blur(24px) saturate(1.2);
            -webkit-backdrop-filter: blur(24px) saturate(1.2);
            box-shadow: 0 24px 70px -20px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06);
        }
        .vmf-menu.vmf-dim { filter: brightness(0.55); pointer-events: none; }
        .vmf-sub { width: 250px; }
        .vmf-search {
            display: flex; align-items: center; gap: 8px;
            margin: 8px; padding: 8px 10px; border-radius: 10px; flex-shrink: 0;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
        }
        .vmf-search i { font-size: 0.68rem; color: var(--text-faint); }
        .vmf-search input {
            flex: 1; min-width: 0; background: transparent; border: none; outline: none;
            color: var(--text-primary); font-size: 0.76rem; font-weight: 600;
        }
        .vmf-search input::placeholder { color: var(--text-faint); }
        .vmf-list { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
        .vmf-sub-head {
            padding: 10px 12px 6px; font-size: 0.64rem; font-weight: 800;
            text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); flex-shrink: 0;
        }
        .vmf-row {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 10px; border-radius: 10px; border: none; width: 100%;
            background: transparent; cursor: pointer; text-align: left;
            transition: background 0.15s;
        }
        .vmf-row:hover, .vmf-row.vmf-row-open { background: rgba(255,255,255,0.06); }
        .vmf-ico {
            width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
            display: grid; place-items: center;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
        }
        .vmf-ico svg { width: 16px; height: 16px; display: block; }
        .vmf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
        .vmf-name { font-size: 0.76rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .vmf-name-active { color: var(--accent); }
        .vmf-count { font-size: 0.62rem; font-weight: 600; color: var(--text-faint); }
        .vmf-chev { font-size: 0.6rem; color: var(--text-faint); flex-shrink: 0; }
        .vmf-chk { font-size: 0.7rem; color: var(--accent); flex-shrink: 0; }
        .vmf-model.vmf-active { background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-border); }
        .vmf-model.vmf-active .vmf-name { color: var(--accent); }
        .vmf-model.vmf-wip { opacity: 0.55; cursor: default; }
        .vmf-model.vmf-wip:hover { background: transparent; }
        .vmf-wip-badge {
            flex-shrink: 0; padding: 2px 7px; border-radius: 999px;
            font-size: 0.54rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
            color: #fbbf24; background: rgba(251,191,36,0.10); border: 1px solid rgba(251,191,36,0.30);
        }
        .vmf-wip-badge i { font-size: 0.5rem; margin-right: 2px; }
        .vmf-empty { padding: 14px 10px; font-size: 0.7rem; color: var(--text-faint); text-align: center; }

        /* — Cadre video (Start/End frame) sub model — glass — */
        .vframe-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
            padding: 5px; border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.07);
            background: rgba(255,255,255,0.02);
        }
        .vframe-cell {
            position: relative; border-radius: 14px; min-height: 116px; overflow: hidden;
            border: 1.5px dashed rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.03);
            transition: border-color 0.2s, background 0.2s;
        }
        .vframe-cell:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
        .vframe-badge {
            position: absolute; top: 6px; right: 6px; z-index: 2; pointer-events: none;
            font-size: 0.56rem; font-weight: 700; color: var(--text-faint);
            padding: 3px 8px; border-radius: 99px;
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        }
        .vframe-zone {
            position: absolute; inset: 0; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 8px; cursor: pointer;
        }
        .vframe-ico {
            width: 40px; height: 40px; border-radius: 50%;
            display: grid; place-items: center;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            box-shadow: 0 20px 20px rgba(0,0,0,0.09), 0 5px 11px rgba(0,0,0,0.1), inset 0 -0.3px 5px rgba(185,185,185,0.35);
            color: rgba(255,255,255,0.55); font-size: 0.8rem;
        }
        .vframe-label { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.45); }
        .vframe-preview { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 12px; z-index: 3; }

        /* — Zona referinte video (sub chips) — */
        .vref-zone {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 6px; min-height: 92px; border-radius: 14px; cursor: pointer;
            border: 1.5px dashed rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
            transition: border-color 0.2s, background 0.2s;
        }
        .vref-zone:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
        .vref-max { font-size: 0.6rem; font-weight: 600; color: var(--text-faint); letter-spacing: 0.01em; }

        /* — Stepper „Număr" deasupra butonului Generează (stil Higgsfield) — */
        .gen-count {
            display: flex; align-items: center; height: 40px;
            border-radius: 12px; padding: 0 6px 0 14px; margin-bottom: 10px;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
        }
        .gen-count-label {
            font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-right: auto;
        }
        .gen-count-ctrls { display: flex; align-items: center; gap: 2px; }
        .gen-count-btn {
            width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
            color: var(--text-faint); background: transparent; border: none; cursor: pointer;
            transition: color 0.15s, background 0.15s;
        }
        .gen-count-btn:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,0.06); }
        .gen-count-btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .gen-count-btn svg { width: 18px; height: 18px; }
        .gen-count-val {
            min-width: 42px; text-align: center; font-size: 0.82rem; font-weight: 700; color: #fff;
        }
        .gen-count-max { color: var(--text-faint); font-weight: 600; }

        /* — Caseta „Unlimited" (doar pe modelele gratis pe planul userului) —
             Aceeași cutie ca stepperul „Număr", ca să stea în același rând vizual.
             Explicația NU stă în pagină: intră în popoverul de la butonul (i).
             Stilurile trăiesc AICI, nu în studio.css: index.html nu încarcă studio.css
             și chipul ieșea nestilat (textul de ajutor revărsat peste tot). */
        .unl-box {
            position: relative;
            display: flex; align-items: center; gap: 8px; height: 40px;
            border-radius: 12px; padding: 0 6px 0 12px; margin-bottom: 10px;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
            transition: border-color 0.2s, background 0.2s;
        }
        .unl-box.hidden { display: none; }
        .unl-box.on { background: var(--accent-dim); border-color: var(--accent-border); }
        .unl-ico { font-size: 0.9rem; line-height: 1; color: var(--text-faint); }
        .unl-box.on .unl-ico { color: var(--accent); }
        .unl-name { font-size: 0.72rem; font-weight: 700; color: var(--text-primary); }
        /* Mint și când e OPRIT: acolo scrie „pornește-l = 0 credite", adică exact
           motivul pentru care userul ar apăsa. Gri s-ar pierde. */
        .unl-state {
            font-size: 0.64rem; font-weight: 600; color: var(--accent);
            margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .unl-why {
            width: 24px; height: 24px; border: 0; background: transparent; padding: 0;
            display: grid; place-items: center; cursor: pointer; border-radius: 6px;
            color: var(--text-faint); font-size: 0.72rem; flex-shrink: 0;
        }
        .unl-why:hover { color: #fff; background: rgba(255,255,255,0.06); }
        .unl-sw {
            position: relative; width: 42px; height: 24px; border-radius: 12px;
            border: 1px solid var(--border); padding: 0; cursor: pointer; flex-shrink: 0;
            background: rgba(255,255,255,0.08); transition: background 0.25s, border-color 0.25s;
        }
        .unl-sw::after {
            content: ''; position: absolute; top: 2.5px; left: 3px;
            width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,0.4);
            transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s;
        }
        .unl-sw.on { background: var(--accent-dim); border-color: var(--accent-border); }
        .unl-sw.on::after { transform: translateX(18px); background: var(--accent); }
        /* Popover cu explicația — deschis din (i), ancorat DEASUPRA (caseta stă jos de tot) */
        .unl-tip {
            position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
            padding: 10px 12px; border-radius: 12px; z-index: 80;
            background: #14151c; border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 12px 32px rgba(0,0,0,0.5);
            font-size: 0.66rem; font-weight: 500; line-height: 1.5; color: var(--text-muted);
            opacity: 0; visibility: hidden; transform: translateY(4px);
            transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
        }
        .unl-box.tip-open .unl-tip { opacity: 1; visibility: visible; transform: translateY(0); }
        .unl-tip b { color: var(--text-primary); font-weight: 700; }
        .unl-tip-row + .unl-tip-row { margin-top: 6px; }

        /* — GLASS pe controale: chips, dropzone-uri, tile-uri — */
        .glass-tile {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.09);
            backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
        }
        .chip-trigger {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
        }
        .chip-trigger:hover { background: rgba(255,255,255,0.09); }
        .dropzone {
            background: rgba(255,255,255,0.04);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        }

        /* — Bara sticky Istoric / Cum functioneaza: FĂRĂ bandă/dreptunghi în spate —
             sticky complet transparent, rămân doar cele două pastile (butoanele). — */
        .studio-tabs-sticky {
            background: transparent !important;
            backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
            mask-image: none !important; -webkit-mask-image: none !important;
        }
        .studio-tabs-wrap {
            background: rgba(13,14,21,0.72);
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        }

        /* ═══ CAMPANIE PRET VIDEO — pretul de lista taiat + pretul redus ═══════
             Markup: <s class="promo-was">7</s><span class="promo-now">3.5</span>
             Apare in: picker (randurile de model), popover-ul de durata/rezolutie,
             cardul de info si butonul GENEREAZA. Fereastra + procentul stau in
             js/promo.js (si, pentru incasare, in providers/promo.js).
             Taietura o desenam noi, in DIAGONALA (::after): text-decoration
             line-through iese o ata de 1px care se pierde complet la 0.6rem pe
             fundal inchis — userul nici n-ar vedea ca e taiat. */
        .promo-was {
            position: relative;
            display: inline-block;
            text-decoration: none;
            color: inherit;
            font-weight: 700;
            opacity: 0.5;
            margin-right: 4px;
        }
        .promo-was::after {
            content: '';
            position: absolute;
            left: -2px; right: -2px; top: 50%;
            border-top: 1.5px solid currentColor;
            transform: rotate(30deg);
            pointer-events: none;
        }
        .promo-now { color: var(--accent, #65d69e); font-weight: 800; }
        /* In picker randul e deja gri-sters (.vmf-count) — daca mai punem 50% peste,
           pretul de lista dispare de tot. Il urcam la culoarea „muted". */
        .vmf-count .promo-was, .promo-cr .promo-was, .mic-tag .promo-was {
            color: var(--text-muted, rgba(238,240,252,0.56));
            opacity: 0.85;
        }
        /* Pretul pe pastila de durata/rezolutie (popover) — discret, la dreapta */
        .promo-cr {
            margin-left: auto; padding-left: 10px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.6rem; white-space: nowrap;
        }
        /* Badge-ul „-50%" din picker — self-contained, ca sa arate la fel pe toate paginile */
        .vmf-badge-promo {
            display: inline-flex; align-items: center; justify-content: center;
            height: 15px; padding: 0 5px; margin-left: 6px;
            border-radius: 3px; transform: skewX(-12deg);
            font-size: 9px; font-weight: 800; letter-spacing: 0.02em;
            vertical-align: middle; line-height: 1;
            color: #fff; background: linear-gradient(95deg, #f43f5e 0%, #fb923c 100%);
            box-shadow: 0 2px 8px rgba(244,63,94,0.35);
        }
        /* Butonul GENEREAZA: pretul de lista la aceeasi marime ca cel nou — daca e
           mai mic, taietura devine invizibila. Se distinge prin opacitate. */
        #total-cost .promo-now { color: inherit; }

        /* ═══ BARA DE CAMPANIE (sub nav) ═══════════════════════════════════════
             Rand propriu in body-ul `flex flex-col`, nu `fixed`: asa stramteaza
             continutul in loc sa stea peste composer pe telefon. O monteaza
             js/promo.js si dispare singura cand expira ceasul. */
        #vpromo-bar {
            position: relative;
            flex: 0 0 auto;
            z-index: 30;
            display: flex; align-items: center; justify-content: center;
            gap: 10px; flex-wrap: wrap;
            padding: 7px 14px;
            overflow: hidden;
            border-bottom: 1px solid rgba(244,63,94,0.22);
            background: linear-gradient(90deg, rgba(244,63,94,0.14) 0%, rgba(251,146,60,0.12) 52%, rgba(244,63,94,0.14) 100%);
            font-size: 0.76rem; line-height: 1.25; color: var(--text-primary, #f3f4fb);
        }
        .vpromo-glow {
            position: absolute; inset: -60% -20% auto -20%; height: 220%;
            background: radial-gradient(60% 100% at 50% 0%, rgba(251,146,60,0.30), transparent 70%);
            pointer-events: none;
        }
        #vpromo-bar > *:not(.vpromo-glow) { position: relative; z-index: 1; }
        .vpromo-tag {
            display: inline-flex; align-items: center; height: 19px; padding: 0 7px;
            border-radius: 4px; transform: skewX(-12deg);
            font-size: 11px; font-weight: 900; letter-spacing: 0.01em;
            color: #fff; background: linear-gradient(95deg, #f43f5e 0%, #fb923c 100%);
            box-shadow: 0 3px 12px rgba(244,63,94,0.42);
        }
        .vpromo-txt { display: inline-flex; align-items: center; gap: 7px; }
        .vpromo-txt b { font-weight: 800; letter-spacing: -0.01em; }
        .vpromo-sep { color: var(--text-faint, rgba(238,240,252,0.30)); }
        .vpromo-sub { color: var(--text-muted, rgba(238,240,252,0.56)); font-weight: 600; }
        .vpromo-clock {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 3px 9px; border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.28);
            color: var(--text-muted, rgba(238,240,252,0.56)); font-weight: 700; font-size: 0.7rem;
        }
        .vpromo-clock strong {
            color: #fff; font-weight: 800;
            font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
        }
        /* Sub 640px bara trebuie sa ramana pe UN rand: pagina are inaltime fixa,
           iar al doilea rand ar manca din composer. Taiem tot ce nu e esential. */
        @media (max-width: 640px) {
            #vpromo-bar { gap: 7px; padding: 6px 10px; font-size: 0.68rem; flex-wrap: nowrap; }
            .vpromo-sep, .vpromo-sub, .vpromo-lead { display: none; }
            .vpromo-txt b { white-space: nowrap; }
            .vpromo-clock { padding: 3px 7px; font-size: 0.66rem; }
        }
