
    /* =========================================
       SCAN QR CODE — 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: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
    .usage-lbl { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; color: #ef4444; }

    /* ---------- STATS STRIP ---------- */
    .stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
    .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; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
    .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(16, 185, 129, 0.1); color: #10b981; }
    .sc-ico.p { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
    
    .sc-val { font-size: 24px; font-weight: 900; color: var(--text-main); line-height: 1; margin-bottom: 4px; transition: transform 0.3s; font-family: 'Space Mono', monospace; }
    .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: var(--primary-color); }

    /* ---------- WORKSPACE GRID ---------- */
    .workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
    @media (max-width: 900px) { .workspace-grid { grid-template-columns: 1fr; } }

    .glass-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.02); height: 100%; }
    
    .panel-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; margin-bottom: 4px; }
    .panel-title { font-size: 16px; font-weight: 900; color: var(--text-main); display: flex; align-items: center; gap: 8px; }

    /* Viewfinder Container */
    .viewfinder-container { position: relative; width: 100%; height: 300px; background: #000; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
    #scannerVideo { width: 100%; height: 100%; object-fit: cover; }
    .hidden-canvas { display: none; }
    
    /* Scan Overlay */
    .scan-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; z-index: 10; }
    .scan-frame { position: relative; width: 200px; height: 200px; }
    .scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #ef4444; box-shadow: 0 0 10px #ef4444; opacity: 0; }
    .is-scanning .scan-line { opacity: 1; animation: sSweep 2s ease-in-out infinite alternate; }
    @keyframes sSweep { 0% { top: 0%; } 100% { top: 100%; } }
    
    /* Corner Markers */
    .corner-marker { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.4); transition: border-color 0.3s; }
    .is-scanning .corner-marker { border-color: #ef4444; }
    .c-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
    .c-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
    .c-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
    .c-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

    /* Drop Zone */
    .drop-zone { border: 2px dashed var(--border-color); background: var(--bg-body); border-radius: 16px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .drop-zone:hover, .drop-zone.dragover { border-color: #ef4444; background: rgba(239, 68, 68, 0.02); }
    .dz-text { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; display: flex; align-items: center; }
    .dz-sub { font-size: 11px; font-weight: 700; color: var(--text-muted); }

    /* Result Box */
    .result-box { flex: 1; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow 0.3s; position: relative; }
    
    .result-type-badge { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 8px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 800; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-muted); }
    
    .decoded-text { flex: 1; min-height: 150px; font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.6; word-break: break-all; overflow-y: auto; padding-right: 8px; }
    
    .flex-col { display: flex; flex-direction: column; }
    .gap-3 { gap: 12px; }

    /* Buttons */
    .act-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; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s; width: 100%; }
    .act-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
    .act-btn.primary { background: var(--primary-color); color: #fff; border: none; box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2); }
    .act-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3); color: #fff; }

    /* Custom Scroll */
    .custom-scroll::-webkit-scrollbar { width: 6px; }
    .custom-scroll::-webkit-scrollbar-track { background: transparent; }
    .custom-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
    .custom-scroll::-webkit-scrollbar-thumb:hover { background: #888; }

    /* 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 { 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); }
    .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;
    }

    .sc-ico i {
        width: 18px;
        height: 18px;
    }

    .sc-val.val-green {
        color: #10b981;
    }

    .panel-title i.icon-camera-red {
        color: #ef4444;
    }

    .panel-title i.icon-binary-blue {
        color: #3b82f6;
    }

    .act-btn.btn-camera-toggle {
        width: auto;
        padding: 6px 12px;
        font-size: 11px;
    }

    .btn-camera-toggle i {
        width: 14px;
        height: 14px;
    }

    .btn-camera-toggle i.icon-power-red {
        color: #ef4444;
    }

    .dz-text i {
        vertical-align: middle;
        margin-right: 8px;
        width: 16px;
    }

    #fileInp {
        display: none;
    }

    .act-btn i {
        width: 16px;
        height: 16px;
    }

    .res-panel-note {
        font-size: 11px;
        color: var(--text-muted);
        text-align: center;
        margin-top: 20px;
        line-height: 1.5;
    }

    .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;
    }



