    /* =========================================
       YOUTUBE QR SCANNER — PREMIUM UI
       ========================================= */
    .da-wrapper {
        --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        justify-content: center;
            padding: clamp(0px, 5vw, 0px) 20px;
    }

    .da-panel {
        position: relative;                
        width: 100%;
        max-width: 1200px;
        border-radius: 28px;
        padding: clamp(28px, 5vw, 56px);
    }

    



    /* ---------- OPTIONS BAR ---------- */
    .options-bar { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 12px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); flex-wrap: wrap; }
    
    .ob-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .f-btn { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-muted); outline: none; cursor: pointer; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; }
    .f-btn:hover { background: var(--bg-body); color: var(--text-main); }
    .f-btn.on { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    
    .ob-sep { width: 1px; height: 24px; background: var(--border-color); margin: 0 4px; }
    
    .dir-toggle { display: flex; align-items: center; gap: 8px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 12px; font-size: 11px; font-weight: 800; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
    .dir-toggle:hover { border-color: #ef4444; }
    .d-ltr, .d-rtl { transition: color 0.2s; }
    .dir-toggle.rtl .d-rtl { color: #ef4444; }
    .dir-toggle:not(.rtl) .d-ltr { color: #ef4444; }
    
    .usage-meter { margin-left: auto; display: flex; align-items: center; gap: 12px; }
    .usage-pips { display: flex; gap: 4px; }
    .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); }
    .pip.used { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
    .usage-lbl { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: #10b981; }

    /* ---------- CINEMA WORKSPACE ---------- */
    .cinema-workspace { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; position: relative; perspective: 1200px; }
    
    .lens-wrapper { width: 100%; max-width: 800px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.05); transition: all 0.5s var(--ease-spring); }
    .has-payload .lens-wrapper { opacity: 0; pointer-events: none; position: absolute; transform: scale(0.9); }

    .lens-controls { display: flex; padding: 12px; gap: 8px; background: var(--card-bg); border-bottom: 1px solid var(--border-color); }
    .lc-tab { flex: 1; padding: 12px; background: transparent; border: 1px solid var(--border-color); border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s; }
    .lc-tab:hover { background: var(--bg-body); color: var(--text-main); }
    .lc-tab.active { background: var(--bg-body); border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color); }

    .cam-viewport { position: relative; width: 100%; aspect-ratio: 21/9; background: var(--bg-body); overflow: hidden; display: flex; align-items: center; justify-content: center; }
    @media (max-width: 768px) { .cam-viewport { aspect-ratio: 16/9; } }
    @media (max-width: 480px) { .cam-viewport { aspect-ratio: 1/1; } }

    /* HUD */
    .cam-hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; opacity: 0.8; }
    .ch-rec { position: absolute; top: 20px; left: 24px; font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 900; color: #ef4444; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
    .ch-rec::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }
    @keyframes blink { 50% { opacity: 0; } }
    .ch-time { position: absolute; top: 20px; right: 24px; font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
    
    .bracket { position: absolute; width: 40px; height: 40px; border: 2px solid rgba(255,255,255,0.5); transition: all 0.3s; }
    .bracket.tl { top: 20%; left: 15%; border-right: none; border-bottom: none; }
    .bracket.tr { top: 20%; right: 15%; border-left: none; border-bottom: none; }
    .bracket.bl { bottom: 20%; left: 15%; border-right: none; border-top: none; }
    .bracket.br { bottom: 20%; right: 15%; border-left: none; border-top: none; }
    
    .cam-viewport.scanning-active .bracket { border-color: #10b981; }
    .cam-viewport.scanning-active .bracket.tl { transform: translate(10px, 10px); }
    .cam-viewport.scanning-active .bracket.tr { transform: translate(-10px, 10px); }
    .cam-viewport.scanning-active .bracket.bl { transform: translate(10px, -10px); }
    .cam-viewport.scanning-active .bracket.br { transform: translate(-10px, -10px); }
    
    .cam-scanline { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(16, 185, 129, 0.5); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); display: none; }
    .cam-viewport.scanning-active .cam-scanline { display: block; animation: scanH 2.5s linear infinite; }
    @keyframes scanH { 0% { top: 0; } 100% { top: 100%; } }

    /* Upload Mode */
    .lens-upload { position: absolute; inset: 0; background: var(--bg-body); z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: pointer; transition: all 0.3s; }
    .lens-upload:hover, .lens-upload.dragover { background: var(--card-bg); }
    .lu-icon { color: var(--text-muted); transition: color 0.3s; }
    .lens-upload:hover .lu-icon { color: var(--primary-color); }
    .lu-text { color: var(--text-muted); font-size: 14px; font-weight: 800; text-align: center; line-height: 1.5; }
    
    /* Loader */
    .lens-loader { position: absolute; inset: 0; background: rgba(0,0,0,0.8); z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .lens-loader.active { opacity: 1; pointer-events: auto; }
    .ll-spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #ef4444; border-radius: 50%; animation: spin 1s linear infinite; }
    .ll-text { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 2px; }

    #reader { width: 100%; height: 100%; background: var(--bg-body); }
    #reader video { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    #reader__dashboard_section_csr, #reader__dashboard_section_swaplink { display: none !important; }

    /* THEATER STAGE (Result Mode) */
    .theater-stage { width: 100%; max-width: 900px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; position: relative; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.5s var(--ease-spring); }
    .has-payload .theater-stage { opacity: 1; pointer-events: auto; transform: translateY(0); }
    
    .theater-glow { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 80%; height: 80%; background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(255,255,255,0) 70%); pointer-events: none; z-index: 0; }
    
    .video-frame-wrap { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); position: relative; z-index: 1; display: none; }
    .video-frame-wrap.active { display: block; }
    #ytIframe { width: 100%; height: 100%; border: none; }
    
    .data-card { width: 100%; max-width: 500px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; display: none; }
    .data-card.active { display: flex; }
    .dc-icon { width: 72px; height: 72px; background: rgba(239, 68, 68, 0.1); color: #ef4444; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
    .dc-type { font-size: 13px; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 8px; }
    .dc-url { font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; color: var(--text-main); word-break: break-all; }
    
    .vcr-controls { display: flex; gap: 12px; margin-top: 24px; position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; }
    .vcr-btn { padding: 12px 20px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s; }
    .vcr-btn:hover { background: var(--card-bg); border-color: var(--primary-color); }
    .vcr-btn.primary { background: #ef4444; border-color: #ef4444; color: #fff; }
    .vcr-btn.primary:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
    
    .rescan-trigger { margin-top: 32px; background: transparent; border: none; font-size: 13px; font-weight: 800; color: var(--text-muted); text-decoration: underline; cursor: pointer; transition: color 0.2s; position: relative; z-index: 1; }
    .rescan-trigger:hover { color: var(--text-main); }

    /* ---------- STATS STRIP ---------- */
    .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
    .sc { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.2s; }
    .sc:hover { transform: translateY(-2px); }
    .sc-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
    
    .sc-ico.r { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .sc-ico.b { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
    .sc-ico.g { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
    .sc-ico.p { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
    
    .sc-val { font-size: 28px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; transition: transform 0.3s; }
    .sc-lbl { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .sc-val.popped { transform: scale(1.3); color: #ef4444; }

    /* Toast */
    /* ── Comparison Panel & Analytics ── */
    .comparison-panel {
        background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px;
        padding: 28px; margin-top: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); margin-bottom: 40px;
    }
    .cp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
    .cp-title { font-size: 16px; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
    .cp-badge { font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 100px; }
    .badge-high { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); border: 1px solid color-mix(in srgb, var(--success, #10b981) 30%, transparent); }

    .cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .cp-card { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
    .cpc-header { display: flex; justify-content: space-between; align-items: center; }
    .cpc-title { font-size: 13.5px; font-weight: 800; color: var(--text-main); }
    .cpc-tag { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 6px; }
    .cpc-tag.success { background: color-mix(in srgb, var(--success, #10b981) 15%, transparent); color: var(--success, #10b981); }

    .cpc-body { display: flex; flex-direction: column; gap: 10px; }
    .cpc-stat-row { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; }
    .cpc-stat-row strong { color: var(--text-main); font-weight: 700; }
    .cpc-progress-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 100px; overflow: hidden; margin-top: 4px; }
    .cpc-progress-fill { height: 100%; background: var(--primary-color); border-radius: 100px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .cpc-progress-fill.bg-gradient { background: linear-gradient(90deg, var(--primary-color), var(--primary-gradient-end)); }

    /* Toast */
    .toast { position: fixed; bottom: 24px; right: 24px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--text-main); box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 100000; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s var(--ease-spring); }
    .toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .toast.success { border-left: 4px solid #10b981; }
    .toast.error { border-left: 4px solid #ef4444; }
    .toast.warn { border-left: 4px solid #f59e0b; }
    .toast.info { border-left: 4px solid #3b82f6; }

    /* =========================================
       ZERO INLINE STYLES EXTENSIONS
       ========================================= */
    #bgCv {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
    }

    .icon-hero-badge {
        width: 14px;
        height: 14px;
    }

    .icon-type-muted {
        width: 12px;
        height: 12px;
        color: var(--text-muted);
    }

    .dir-divider {
        opacity: 0.3;
    }

    .lc-tab i {
        width: 14px;
        height: 14px;
    }

    .lu-icon {
        width: 48px;
        height: 48px;
    }

    .lu-sub {
        font-size: 11px;
        color: var(--text-muted);
        font-weight: 400;
    }

    #fileInput {
        display: none;
    }

    .dc-icon i {
        width: 32px;
        height: 32px;
    }

    .vcr-btn i {
        width: 16px;
        height: 16px;
    }

    .sc-ico i {
        width: 18px;
        height: 18px;
    }

    .info-div-t {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 20px;
        margin-top: 40px;
    }

    .icon-star-primary {
        width: 16px;
        height: 16px;
        color: var(--primary-color);
    }

    .toast i {
        width: 18px;
        height: 18px;
    }

    .toast.success i {
        color: #10b981;
    }

    .toast.error i {
        color: #ef4444;
    }

    .toast.warn i {
        color: #f59e0b;
    }

    .toast.info i {
        color: #3b82f6;
    }