
    /* ═══════════════════════════════════════════════════════════════════════
       MICRO-ANIMATIONS — state transitions for 2026 polish
       ═══════════════════════════════════════════════════════════════════════ */

    /* Scorecard reveal */
    @keyframes scoreReveal {
        from { opacity: 0; transform: translateY(20px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .scorecard-container { animation: scoreReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

    /* Mastering report panel slide-in */
    @keyframes reportSlideIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
    #masteringReport { animation: reportSlideIn 0.4s ease-out; }

    /* A/B toggle crossfade */
    #integratedABToggle {
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    #integratedABToggle.visible { opacity: 1; transform: scale(1); }

    /* Status pill transitions */
    .ai-status-pill {
        transition: all 0.4s ease;
    }
    .ai-status-pill.processing {
        animation: statusPulse 1.5s ease-in-out infinite;
    }
    @keyframes statusPulse {
        0%, 100% { box-shadow: 0 0 8px rgba(212, 169, 78, 0.3); }
        50% { box-shadow: 0 0 20px rgba(212, 169, 78, 0.6), 0 0 40px rgba(212, 169, 78, 0.2); }
    }

    /* Waveform reveal — left-to-right wipe */
    @keyframes waveformReveal {
        from { clip-path: inset(0 100% 0 0); }
        to { clip-path: inset(0 0 0 0); }
    }
    .waveform-container canvas { animation: waveformReveal 0.8s ease-out; }

    /* Meter value glow-in */
    @keyframes meterGlowIn {
        from { opacity: 0.3; text-shadow: none; }
        to { opacity: 1; }
    }

    /* Fix All button pulse — gold brand */
    #floatingFixAllBtn {
        animation: fixAllPulse 2s ease-in-out infinite;
    }
    @keyframes fixAllPulse {
        0%, 100% { box-shadow: 0 0 8px rgba(212, 169, 78, 0.3); }
        50% { box-shadow: 0 0 16px rgba(212, 169, 78, 0.5), 0 0 32px rgba(212, 169, 78, 0.2); }
    }

    /* v10.20: .track-type-pill removed — AI decides fresh vs re-master internally */

    /* Toast Notification System */
    .luvlang-toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 99999999;
        display: flex;
        flex-direction: column;
        gap: 8px;
        pointer-events: none;
    }
    .luvlang-toast {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #e0e0e0;
        padding: 14px 20px;
        border-radius: 8px;
        border: 1px solid rgba(212, 169, 78, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        line-height: 1.4;
        max-width: 400px;
        pointer-events: auto;
        animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
    }
    .luvlang-toast.toast-exit {
        animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    @keyframes toastSlideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    @keyframes toastSlideOut {
        from { transform: translateX(0); opacity: 1; }
        to { transform: translateX(100%); opacity: 0; }
    }
    @media (max-width: 480px) {
        .luvlang-toast-container {
            top: 10px;
            right: 10px;
            left: 10px;
        }
        .luvlang-toast {
            max-width: none;
        }
    }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: hidden;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #0a0a0f;
            color: #ffffff;
            min-height: 100vh;
            overflow-x: hidden;
            max-width: 100vw;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROFESSIONAL 3-COLUMN LAYOUT - State of the Art High-End Design
           Balanced proportions inspired by premium DAW interfaces
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .app-container {
            display: grid;
            /* Balanced 3-column layout: ~22% | ~56% | ~22% ratio */
            grid-template-columns: minmax(300px, 22vw) 1fr minmax(320px, 24vw);
            height: 100vh;
            overflow: hidden;
            gap: 2px;
            background: linear-gradient(180deg, #0a0a0f 0%, #0d0d14 100%);
        }

        /* Ultra-wide screens (2000px+) - Generous sidebars */
        @media screen and (min-width: 2000px) {
            .app-container {
                grid-template-columns: minmax(380px, 400px) 1fr minmax(400px, 420px);
                max-width: 3000px;
                margin: 0 auto;
            }
        }

        /* Large screens (1600px - 2000px) - Wider sidebars */
        @media screen and (min-width: 1600px) and (max-width: 1999px) {
            .app-container {
                grid-template-columns: minmax(340px, 360px) 1fr minmax(360px, 380px);
            }
        }

        /* Standard desktop (1200px - 1600px) */
        @media screen and (min-width: 1200px) and (max-width: 1599px) {
            .app-container {
                grid-template-columns: minmax(300px, 320px) 1fr minmax(320px, 340px);
            }
        }

        /* Tablet landscape (768px - 1199px) — prevent sidebar overflow */
        @media screen and (min-width: 768px) and (max-width: 1199px) {
            .app-container {
                grid-template-columns: minmax(220px, 240px) 1fr minmax(230px, 260px);
            }
        }

        /* Mobile + small tablet (≤767px) — single-column stack.
           The 300px/320px sidebar minmax() hard-minimums overflow 600px phones
           and cause ~20px of horizontal scroll. Collapse to a vertical stack. */
        @media screen and (max-width: 767px) {
            .app-container {
                display: flex;
                flex-direction: column;
                grid-template-columns: 1fr;
                height: auto;
                min-height: 100vh;
                overflow: visible;
            }
            .left-sidebar,
            .right-sidebar {
                border-right: none;
                border-left: none;
                padding: 16px;
                padding-bottom: 24px;
                max-height: none;
            }
            .left-sidebar {
                border-bottom: 1px solid rgba(212, 169, 78, 0.08);
            }
            .right-sidebar {
                border-top: 1px solid rgba(212, 169, 78, 0.08);
            }
            .center-main {
                padding: 12px;
                min-height: 50vh;
            }
        }

        /* Prevent iOS auto-zoom on form focus (≥16px threshold) */
        @media screen and (max-width: 767px) {
            input[type="text"],
            input[type="email"],
            input[type="number"],
            input[type="password"],
            input[type="search"],
            input[type="tel"],
            input[type="url"],
            textarea,
            select {
                font-size: 16px !important;
                min-height: 44px;
            }
        }

        /* LEFT SIDEBAR - Upload, Controls, Presets */
        .left-sidebar {
            background: linear-gradient(180deg, #101018 0%, #0a0a10 100%);
            overflow-y: auto;
            padding: 24px 20px;
            padding-bottom: 100px;
            border-right: 1px solid rgba(212, 169, 78, 0.08);
        }

        /* CENTER MAIN - EQ Graph, Waveform, EQ, Dynamics */
        .center-main {
            background: linear-gradient(180deg, #0c0c12 0%, #070710 100%);
            overflow-y: auto;
            /* top padding clears the floating .ai-command-bar (fixed, top:12px, ~44px tall)
               so the spectrum analyzer title + badges (32K FFT / 20Hz-20kHz) aren't
               covered by the A/B toggle bubble */
            padding: 72px 28px 24px;
            scroll-padding-top: 80px;
        }

        /* RIGHT SIDEBAR - Meters & Master Controls */
        .right-sidebar {
            background: linear-gradient(180deg, #101018 0%, #0a0a10 100%);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 24px 16px 80px;
            border-left: 1px solid rgba(158, 122, 40, 0.08);
            min-width: 0;
        }

        /* Section styling - Premium High-End Look */
        .section-title {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-title::before {
            content: '';
            width: 3px;
            height: 14px;
            background: linear-gradient(180deg, #d4a94e, #9e7a28);
            border-radius: 2px;
        }

        /* Active step pulse — guides user through sidebar sections */
        .section-title.step-active {
            color: #f0cc6b;
            animation: stepPulse 1.2s ease-in-out infinite;
        }
        .section-title.step-active::before {
            background: linear-gradient(180deg, #f0cc6b, #d4a94e);
            box-shadow: 0 0 8px rgba(212,169,78,0.5);
        }
        .section-title.step-done {
            color: rgba(255,255,255,0.5);
            animation: none;
        }
        @keyframes stepPulse {
            0%, 100% { color: #f0cc6b; text-shadow: 0 0 6px rgba(212,169,78,0.3); }
            50% { color: #fff; text-shadow: 0 0 14px rgba(212,169,78,0.6); }
        }

        /* Card/Panel styling - State of the Art */
        .panel-card {
            background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px;
            padding: 20px;
            margin-bottom: 20px;
            transition: all 0.25s ease;
            position: relative;
        }

        .panel-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(212, 169, 78, 0.2), transparent);
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .panel-card:hover {
            border-color: rgba(212, 169, 78, 0.2);
            background: linear-gradient(145deg, rgba(212, 169, 78, 0.04) 0%, rgba(255,255,255,0.02) 100%);
        }

        .panel-card:hover::before {
            opacity: 1;
        }

        /* Sidebar section spacing */
        .left-sidebar > div,
        .right-sidebar > div {
            margin-bottom: 24px;
        }

        .left-sidebar > div:last-child,
        .right-sidebar > div:last-child {
            margin-bottom: 0;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           🚀 2027 FUTURISTIC UI - FLOATING AI COMMAND BAR
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .ai-command-bar {
            position: fixed;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000; /* Below modals (50000), above content */
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 16px;
            background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(20, 20, 40, 0.98));
            border: 1px solid rgba(212, 169, 78, 0.3);
            border-radius: 50px;
            backdrop-filter: blur(20px);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(212, 169, 78, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            white-space: nowrap;
        }

        .ai-command-bar::before {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 52px;
            background: linear-gradient(135deg, #d4a94e, #9e7a28, #d4a94e);
            z-index: -1;
            opacity: 0.4;
        }

        .ai-master-btn-floating {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 7px 16px;
            background: linear-gradient(135deg, rgba(212, 169, 78, 0.1) 0%, rgba(158, 122, 40, 0.06) 100%);
            border: 1px solid rgba(212, 169, 78, 0.35);
            border-radius: 8px;
            color: #fff;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            white-space: nowrap;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px);
            box-shadow:
                0 4px 20px rgba(212, 169, 78, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .ai-master-btn-floating:hover {
            background: linear-gradient(135deg, rgba(212, 169, 78, 0.18) 0%, rgba(158, 122, 40, 0.12) 100%);
            border-color: rgba(212, 169, 78, 0.6);
            transform: translateY(-1px);
            box-shadow:
                0 8px 32px rgba(212, 169, 78, 0.25),
                0 0 40px rgba(158, 122, 40, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .ai-master-btn-floating:active,
        .ai-master-btn-floating.pressed {
            transform: scale(0.91) translateY(2px);
            transition: transform 0.06s ease;
            box-shadow:
                0 1px 6px rgba(212, 169, 78, 0.15),
                inset 0 2px 8px rgba(0, 0, 0, 0.35);
            border-color: rgba(240, 204, 107, 0.8);
            background: linear-gradient(135deg, rgba(240, 204, 107, 0.2) 0%, rgba(212, 169, 78, 0.15) 100%);
        }

        /* Processing state */
        .ai-master-btn-floating.processing {
            pointer-events: none;
            border-color: rgba(212, 169, 78, 0.5);
            background: linear-gradient(135deg, rgba(212, 169, 78, 0.08) 0%, rgba(158, 122, 40, 0.06) 100%);
            animation: processingPulse 1.5s ease-in-out infinite;
        }

        .ai-master-btn-floating.processing::after {
            content: '';
            position: absolute;
            inset: -2px;
            border: 2px solid transparent;
            border-top-color: #f0cc6b;
            border-radius: 14px;
            animation: processingSpinner 0.8s linear infinite;
        }

        @keyframes processingPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        @keyframes processingSpinner {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Attention flash — pulsing glow to guide user after skipping tour */
        .ai-master-btn-floating.attention-flash {
            animation: masterAttentionFlash 1.2s ease-in-out 4;
        }
        @keyframes masterAttentionFlash {
            0%, 100% {
                border-color: rgba(212, 169, 78, 0.35);
                box-shadow: 0 4px 20px rgba(212, 169, 78, 0.12);
            }
            50% {
                border-color: rgba(240, 204, 107, 0.9);
                box-shadow: 0 0 30px rgba(212, 169, 78, 0.5), 0 0 60px rgba(240, 204, 107, 0.25);
                transform: scale(1.05);
            }
        }

        .ai-master-btn-floating::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.04) 50%,
                transparent 100%
            );
        }



        /* v10.20: Track-type toggle pill and button styles removed — AI decides internally */

        /* Master-type badge — shown in command bar after mastering.
           Two states via class: .master-badge-fresh (MASTERED, blue)
           and .master-badge-remaster (RE-MASTERED, gold). JS sets className at render time. */
        #remasterModeBadge {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            padding: 5px 12px;
            border-radius: 6px;
            display: none;
            transition: all 0.25s ease;
            white-space: nowrap;
        }
        #remasterModeBadge.master-badge-fresh {
            background: rgba(0, 212, 255, 0.15);
            border: 1px solid rgba(0, 212, 255, 0.5);
            color: #00d4ff;
            box-shadow: 0 0 12px rgba(0, 212, 255, 0.25), inset 0 0 8px rgba(0, 212, 255, 0.08);
            text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
        }
        #remasterModeBadge.master-badge-remaster {
            background: rgba(212, 169, 78, 0.18);
            border: 1px solid rgba(212, 169, 78, 0.6);
            color: #f0cc6b;
            box-shadow: 0 0 12px rgba(212, 169, 78, 0.3), inset 0 0 8px rgba(212, 169, 78, 0.1);
            text-shadow: 0 0 6px rgba(212, 169, 78, 0.5);
        }

        .ai-btn-icon {
            font-size: 1.3rem;
        }

        .ai-status-pill {
            padding: 6px 14px;
            background: rgba(0, 255, 136, 0.15);
            border: 1px solid rgba(0, 255, 136, 0.4);
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            color: #f0cc6b;
            letter-spacing: 0.5px;
        }

        .ai-status-pill.processing {
            background: rgba(255, 170, 0, 0.15);
            border-color: rgba(255, 170, 0, 0.4);
            color: #ffaa00;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           HEADER & BRANDING - Clean Minimal Design
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .header-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 28px;
            padding: 24px 0 20px;
        }
        .header-logo img {
            max-width: 240px;
            width: 100%;
            height: auto;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           SECTION TITLES - Subtle & Clean
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .section-title {
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 14px;
            color: rgba(255,255,255,0.55);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           🎯 ENHANCED METER READABILITY - Premium Display
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

        /* Main LUFS display - larger, bolder */
        #liveLufsValue, #measuredLufsValue {
            font-size: 2.4rem !important;
            font-weight: 800 !important;
            letter-spacing: -1px;
            text-shadow: 0 0 30px currentColor, 0 2px 10px rgba(0,0,0,0.5) !important;
        }

        /* Secondary meter values - more readable */
        #shortLufsValue, #momentaryLufsValue, #lraValue, #crestValue,
        #truePeakValue, #psrValue, #plrValue, #correlationValue {
            font-size: 1.6rem !important;
            font-weight: 700 !important;
            letter-spacing: -0.5px;
            text-shadow: 0 0 15px currentColor !important;
        }

        /* Meter labels - increased from 0.55rem to 0.7rem */
        .meters-container [style*="font-size: 0.55rem"],
        .meters-container [style*="font-size: 0.5rem"] {
            font-size: 0.7rem !important;
            font-weight: 600 !important;
            letter-spacing: 1.5px !important;
        }

        /* Unit labels (LUFS, dBTP, etc.) - more visible */
        .meters-container div[style*="margin-top: 2px"] {
            font-size: 0.65rem !important;
            font-weight: 500 !important;
            opacity: 0.8 !important;
        }

        /* Meter card hover effect */
        .meters-container [style*="border-radius: 8px"][style*="padding: 10px"] {
            transition: all 0.2s ease !important;
        }

        .meters-container [style*="border-radius: 8px"][style*="padding: 10px"]:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           UPLOAD AREA
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .upload-area {
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 24px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 20px;
            background: rgba(255,255,255,0.02);
        }

        .upload-area:hover {
            border-color: rgba(212, 169, 78, 0.3);
            background: rgba(212, 169, 78, 0.04);
        }

        .upload-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            opacity: 0.6;
        }

        .upload-text {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.65);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           GENRE & PLATFORM SELECTORS - Clean Grid
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .selector-group {
            margin-bottom: 20px;
            background: rgba(0,0,0,0.25);
            border: 1px solid rgba(0,180,220,0.15);
            border-radius: 10px;
            padding: 14px;
        }

        .selector-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .selector-btn {
            padding: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.75rem;
            color: white;
            text-align: center;
        }

        .selector-btn:hover {
            border-color: #d4a94e;
            background: rgba(212, 169, 78, 0.1);
        }

        .selector-btn.active {
            border-color: #d4a94e;
            background: rgba(212, 169, 78, 0.15);
            box-shadow: 0 0 12px rgba(212, 169, 78, 0.35), 0 0 24px rgba(212, 169, 78, 0.12), inset 0 0 8px rgba(212, 169, 78, 0.08);
            color: #d4a94e;
        }
        .selector-btn.active-flash {
            animation: selectorStrobe 0.5s ease-out;
        }
        @keyframes selectorStrobe {
            0%   { box-shadow: 0 0 35px rgba(212, 169, 78, 1), 0 0 60px rgba(212, 169, 78, 0.5); transform: scale(1.12); background: rgba(212, 169, 78, 0.4); }
            20%  { box-shadow: 0 0 6px rgba(212, 169, 78, 0.2); transform: scale(1.0); background: rgba(212, 169, 78, 0.05); }
            40%  { box-shadow: 0 0 30px rgba(212, 169, 78, 0.9), 0 0 50px rgba(212, 169, 78, 0.4); transform: scale(1.08); background: rgba(212, 169, 78, 0.35); }
            60%  { box-shadow: 0 0 6px rgba(212, 169, 78, 0.15); transform: scale(1.0); background: rgba(212, 169, 78, 0.05); }
            80%  { box-shadow: 0 0 20px rgba(212, 169, 78, 0.6), 0 0 35px rgba(212, 169, 78, 0.25); transform: scale(1.04); background: rgba(212, 169, 78, 0.2); }
            100% { box-shadow: 0 0 12px rgba(212, 169, 78, 0.35), 0 0 24px rgba(212, 169, 78, 0.12), inset 0 0 8px rgba(212, 169, 78, 0.08); transform: scale(1); background: rgba(212, 169, 78, 0.15); }
        }

        /* Console platform buttons — lit up glow when selected */
        .console-platform-btn.active {
            box-shadow: 0 0 12px rgba(29, 185, 84, 0.5), 0 0 24px rgba(29, 185, 84, 0.2), inset 0 0 6px rgba(29, 185, 84, 0.1) !important;
            transform: scale(1.04);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           QUICK ACTIONS - Premium High-End Plugin Aesthetic
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .action-btn {
            width: 100%;
            padding: 14px;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 8px;
        }

        .action-btn-primary {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.2) 0%, rgba(92, 184, 92, 0.1) 100%);
            border-color: rgba(92, 184, 92, 0.4);
            color: #8fd98f;
        }

        .action-btn-primary:hover:not(:disabled) {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.3) 0%, rgba(92, 184, 92, 0.15) 100%);
            border-color: rgba(92, 184, 92, 0.6);
        }

        .action-btn-secondary {
            background: linear-gradient(180deg, rgba(100, 180, 255, 0.15) 0%, rgba(100, 180, 255, 0.08) 100%);
            border-color: rgba(100, 180, 255, 0.35);
            color: #7cb8ff;
        }

        .action-btn-secondary:hover:not(:disabled) {
            background: linear-gradient(180deg, rgba(100, 180, 255, 0.25) 0%, rgba(100, 180, 255, 0.12) 100%);
            border-color: rgba(100, 180, 255, 0.5);
        }

        .action-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        /* Ensure buttons are always clickable - prevent tooltip/overlay blocking */
        .action-btn,
        .complete-btn,
        .guide-action-btn,
        .export-bar-btn {
            position: relative;
            z-index: 100;
            pointer-events: auto !important;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROFESSIONAL EQ GRAPH (CRITICAL - User specifically wants this)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        /* ═══════════════════════════════════════════════════════════════════════════
           STATE-OF-THE-ART VISUALIZATION PANELS - Premium Broadcast Design
           Glass morphism, LED indicators, professional aesthetics
           ═══════════════════════════════════════════════════════════════════════════ */
        .viz-panel {
            background:
                linear-gradient(145deg, rgba(6, 6, 14, 0.98) 0%, rgba(12, 12, 24, 0.95) 50%, rgba(6, 6, 14, 0.98) 100%);
            border-radius: 16px;
            padding: 0;
            margin-bottom: 12px;
            border: 1px solid rgba(212, 169, 78, 0.12);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.04),
                inset 0 -1px 0 rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            z-index: 0;
        }

        .viz-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(212, 169, 78, 0.5) 20%,
                rgba(0, 255, 136, 0.4) 50%,
                rgba(158, 122, 40, 0.5) 80%,
                transparent 100%);
            pointer-events: none;
        }

        .viz-panel::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                linear-gradient(90deg, rgba(30, 30, 40, 0.15) 1px, transparent 1px),
                linear-gradient(0deg, rgba(30, 30, 40, 0.15) 1px, transparent 1px);
            background-size: 25px 25px;
            pointer-events: none;
            opacity: 0.5;
        }

        .panel-title {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            padding: 12px 15px;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(90deg, rgba(212, 169, 78, 0.06), transparent 50%, rgba(158, 122, 40, 0.06));
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            z-index: 10;
        }

        .panel-title::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: radial-gradient(circle, #f0cc6b 0%, #00cc66 100%);
            box-shadow: 0 0 10px #f0cc6b, 0 0 20px rgba(0, 255, 136, 0.4);
            margin-right: 10px;
        }

        .spectrum-panel {
            border-color: rgba(212, 169, 78, 0.2);
        }

        .spectrum-panel .panel-title::before {
            background: radial-gradient(circle, #d4a94e 0%, #0099cc 100%);
            box-shadow: 0 0 6px rgba(212, 169, 78, 0.2);
        }

        .spectrum-panel canvas#spectrumCanvas {
            width: 100%;
            height: 220px;
            background: linear-gradient(180deg,
                rgba(0, 0, 0, 1) 0%,
                rgba(5, 5, 12, 1) 30%,
                rgba(8, 8, 18, 1) 50%,
                rgba(5, 5, 12, 1) 70%,
                rgba(0, 0, 0, 1) 100%);
            border-radius: 0 0 12px 12px;
            display: block;
            position: relative;
            z-index: 5;
        }

        /* Pro Overlay canvas for grid, labels, and peak hold envelope */
        .spectrum-panel canvas#spectrumOverlayCanvas {
            position: absolute;
            top: 42px;
            left: 0;
            width: 100%;
            height: 220px;
            pointer-events: none;
            background: transparent;
            z-index: 100;
            border-radius: 0 0 12px 12px;
        }

        .viz-panel {
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 0 40px rgba(0, 0, 0, 0.8),
                inset 0 2px 4px rgba(0, 0, 0, 0.5);
            position: relative;
            z-index: 1;
        }

        .meters-panel-viz {
            background: linear-gradient(145deg, rgba(8, 8, 16, 0.98), rgba(15, 15, 28, 0.95));
            border-color: rgba(156, 39, 176, 0.2);
        }

        .meters-panel-viz .panel-title::before {
            background: radial-gradient(circle, #9c27b0 0%, #7b1fa2 100%);
            box-shadow: 0 0 10px #9c27b0, 0 0 20px rgba(156, 39, 176, 0.4);
        }

        .correlation-panel {
            border-color: rgba(255, 152, 0, 0.2);
        }

        .correlation-panel .panel-title::before {
            background: radial-gradient(circle, #ff9800 0%, #f57c00 100%);
            box-shadow: 0 0 10px #ff9800, 0 0 20px rgba(255, 152, 0, 0.4);
        }

        .waveform-panel-viz {
            border-color: rgba(0, 255, 136, 0.2);
            border-radius: 10px 10px 0 0;
            margin-bottom: 0;
        }

        .waveform-panel-viz .panel-title::before {
            background: radial-gradient(circle, #f0cc6b 0%, #00cc66 100%);
            box-shadow: 0 0 10px #f0cc6b, 0 0 20px rgba(0, 255, 136, 0.4);
        }

        .waveform-panel-viz canvas {
            background: linear-gradient(180deg, #000000 0%, #050508 50%, #000000 100%);
            border-radius: 8px;
            box-shadow:
                inset 0 0 20px rgba(0, 0, 0, 0.8),
                inset 0 2px 4px rgba(0, 0, 0, 0.6),
                0 1px 0 rgba(255, 255, 255, 0.02);
            transition: box-shadow 0.2s ease, transform 0.1s ease;
        }

        .waveform-panel-viz canvas:hover {
            box-shadow:
                inset 0 0 20px rgba(0, 0, 0, 0.8),
                inset 0 2px 4px rgba(0, 0, 0, 0.6),
                0 0 15px rgba(212, 169, 78, 0.3),
                0 1px 0 rgba(255, 255, 255, 0.02);
        }

        .waveform-panel-viz canvas:active {
            transform: scale(0.998);
        }

        /* OLD CLASSES - Keep for compatibility */
        .eq-graph-container {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 15px;
            border: 1px solid rgba(212, 169, 78, 0.2);
            position: relative;
        }

        .eq-graph-canvas {
            width: 100%;
            height: 400px;
            background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
            border-radius: 10px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(0, 0, 0, 0.8);
            border: 1px solid #000;
            display: block;
        }

        .waveform-container {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(212, 169, 78, 0.2);
        }

        .waveform-canvas {
            width: 100%;
            height: 100px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 10px;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           TRANSPORT CONTROLS
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .transport-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 10px;
            margin-bottom: 15px;
        }

        .play-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, #d4a94e, #0088cc);
            border: none;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .play-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 169, 78, 0.1);
        }

        .progress-bar {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            cursor: pointer;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #d4a94e, #9e7a28);
            width: 0%;
            transition: width 0.1s;
        }

        .time-display {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            opacity: 0.7;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROFESSIONAL PLAYBACK CONTROLS (Reference, Loop, Mono, Loudness Match)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

        /* Extended Transport Bar */
        .transport-extended {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            flex-wrap: wrap;
        }

        .transport-btn {
            padding: 6px 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            color: #fff;
            font-size: 0.7rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .transport-btn:hover {
            background: rgba(212, 169, 78, 0.15);
            border-color: rgba(212, 169, 78, 0.5);
        }

        .transport-btn.active {
            background: rgba(212, 169, 78, 0.25);
            border-color: #d4a94e;
            color: #d4a94e;
        }

        .transport-btn.mono-active {
            background: rgba(255, 165, 0, 0.25);
            border-color: #ffa500;
            color: #ffa500;
        }

        .transport-btn.loop-active {
            background: rgba(0, 255, 136, 0.25);
            border-color: #f0cc6b;
            color: #f0cc6b;
        }

        .transport-btn.reference-active {
            background: rgba(158, 122, 40, 0.25);
            border-color: #9e7a28;
            color: #9e7a28;
        }

        /* Loop Region Markers */
        .loop-region {
            position: absolute;
            top: 0;
            height: 100%;
            background: rgba(0, 255, 136, 0.15);
            border-left: 2px solid #f0cc6b;
            border-right: 2px solid #f0cc6b;
            pointer-events: none;
            display: none;
        }

        .loop-marker {
            position: absolute;
            top: 0;
            width: 3px;
            height: 100%;
            cursor: ew-resize;
            z-index: 10;
        }

        .loop-marker.loop-in {
            background: linear-gradient(to right, #f0cc6b, transparent);
        }

        .loop-marker.loop-out {
            background: linear-gradient(to left, #f0cc6b, transparent);
        }

        /* Reference Track Section */
        .reference-section {
            margin-top: 10px;
            padding: 10px 12px;
            background: rgba(158, 122, 40, 0.08);
            border-radius: 8px;
            border: 1px solid rgba(158, 122, 40, 0.2);
        }

        .reference-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .reference-file-input {
            display: none;
        }

        .reference-load-btn {
            padding: 6px 14px;
            background: linear-gradient(135deg, rgba(158, 122, 40, 0.3), rgba(158, 122, 40, 0.1));
            border: 1px solid rgba(158, 122, 40, 0.5);
            border-radius: 6px;
            color: #9e7a28;
            font-size: 0.7rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .reference-load-btn:hover {
            background: linear-gradient(135deg, rgba(158, 122, 40, 0.5), rgba(158, 122, 40, 0.2));
        }

        .reference-info {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.7);
        }

        .reference-gain-control {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .reference-gain-slider {
            width: 80px;
            height: 4px;
            -webkit-appearance: none;
            background: rgba(158, 122, 40, 0.3);
            border-radius: 2px;
            outline: none;
        }

        .reference-gain-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 12px;
            height: 12px;
            background: #9e7a28;
            border-radius: 50%;
            cursor: pointer;
        }

        .reference-gain-slider::-moz-range-thumb {
            width: 12px;
            height: 12px;
            background: #9e7a28;
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }

        /* Loudness Match Indicator */
        .loudness-match-indicator {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            background: rgba(0, 255, 136, 0.15);
            border-radius: 4px;
            font-size: 0.6rem;
            color: #f0cc6b;
        }

        .loudness-match-indicator.inactive {
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.4);
        }

        /* Mono Check Visual Feedback */
        .mono-indicator {
            position: fixed;
            top: 70px;
            left: 50%;
            transform: translateX(-50%);
            padding: 8px 16px;
            background: rgba(255, 165, 0, 0.9);
            border-radius: 20px;
            color: #000;
            font-weight: 700;
            font-size: 0.8rem;
            z-index: 9999;
            display: none;
            animation: monoFlash 0.5s ease-in-out infinite alternate;
        }

        @keyframes monoFlash {
            from { opacity: 0.8; }
            to { opacity: 1; }
        }

        /* Loop Time Display */
        .loop-time-display {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem;
            color: #f0cc6b;
            padding: 2px 6px;
            background: rgba(0, 255, 136, 0.1);
            border-radius: 4px;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROFESSIONAL 7-BAND EQ WITH VERTICAL DRAGGABLE FADERS
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .eq-section {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 15px;
            border: 1px solid rgba(212, 169, 78, 0.2);
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        /* Highlight effect when preset is applied */
        .eq-section.preset-highlight {
            border-color: rgba(0, 255, 136, 0.6);
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
        }

        .eq-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .eq-bypass-btn {
            padding: 6px 14px;
            border: 1px solid #d4a94e;
            background: rgba(212, 169, 78, 0.1);
            border-radius: 6px;
            color: #d4a94e;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .eq-bypass-btn:hover {
            background: rgba(212, 169, 78, 0.2);
        }

        /* ON state — brand cyan→purple gradient. The class name "bypassed" is
           misleading (it's actually the ACTIVE/ON state per the toggle JS) but
           kept for backward compat. Was red `rgba(255,0,0,0.2)` — replaced
           2026-05-05 evening to match the AI-bypass path's gradient + look
           uniformly professional across multiband/M/S/de-noise toggles. */
        .eq-bypass-btn.bypassed {
            background: linear-gradient(135deg, #00d4ff 0%, #7c5cff 100%);
            border-color: rgba(124, 92, 255, 0.5);
            color: #fff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
        }

        .eq-bypass-btn.active {
            background: linear-gradient(135deg, #00d4ff 0%, #7c5cff 100%);
            border-color: rgba(124, 92, 255, 0.5);
            color: #fff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
        }

        /* Feature Cards for 24 Mastering Features */
        .feature-card {
            background: linear-gradient(135deg, rgba(30,30,35,0.95) 0%, rgba(20,20,25,0.98) 100%);
            border: 1px solid rgba(212, 169, 78, 0.2);
            border-radius: 10px;
            padding: 12px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .feature-card:hover {
            border-color: rgba(212, 169, 78, 0.6);
            background: linear-gradient(135deg, rgba(40,40,50,0.95) 0%, rgba(25,25,35,0.98) 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .feature-icon {
            font-size: 1.5rem;
            margin-bottom: 6px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        }

        .feature-name {
            font-size: 0.7rem;
            font-weight: 600;
            color: #e0e0e0;
            margin-bottom: 4px;
            letter-spacing: 0.3px;
        }

        .feature-status {
            font-size: 0.6rem;
            color: #f0cc6b;
            font-weight: 500;
            opacity: 0.9;
        }

        .feature-status.inactive {
            color: #888;
        }

        /* Custom tooltip for feature cards */
        .feature-card::after {
            content: attr(title);
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%) translateY(5px);
            background: linear-gradient(135deg, rgba(0, 20, 40, 0.98) 0%, rgba(10, 30, 50, 0.98) 100%);
            color: #fff;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 0.65rem;
            font-weight: 400;
            line-height: 1.4;
            white-space: normal;
            width: 180px;
            text-align: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.25s ease;
            pointer-events: none;
            z-index: 1000;
            border: 1px solid rgba(212, 169, 78, 0.4);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        }

        .feature-card:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .eq-faders {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 12px;
            align-items: end;
            padding: 15px 8px;
            background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #141414 100%);
            border-radius: 10px;
            min-height: 280px;
        }

        .eq-fader-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .eq-fader-label {
            font-size: 0.7rem;
            font-weight: 600;
            text-align: center;
            color: #d4a94e;
            min-height: 28px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .eq-fader-track {
            position: relative;
            width: 32px;
            height: 180px;
            background: linear-gradient(180deg,
                rgba(212, 169, 78, 0.1) 0%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(158, 122, 40, 0.1) 100%
            );
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
        }

        .eq-fader-thumb {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 20px;
            background: linear-gradient(135deg, #d4a94e, #0088cc);
            border-radius: 10px;
            cursor: grab;
            /* Smooth animation for preset changes */
            transition: top 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, transform 0.15s ease;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 6px rgba(212, 169, 78, 0.1);
        }

        .eq-fader-thumb:hover {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 8px rgba(212, 169, 78, 0.15);
        }

        .eq-fader-thumb:active {
            cursor: grabbing;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 169, 78, 0.2);
        }

        /* Preset applied state */
        .eq-fader-thumb.preset-active {
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           REACTIVE EQ GLOW - Spectrum-reactive fader animation
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .eq-fader-track.reactive {
            transition: box-shadow 0.08s ease-out, border-color 0.08s ease-out;
        }

        .eq-fader-track.reactive-active {
            border-color: rgba(212, 169, 78, 0.6);
        }

        .eq-fader-container {
            transition: transform 0.1s ease-out;
        }

        .eq-fader-container.pulse {
            transform: scale(1.02);
        }


        .eq-fader-value.active {
            color: #f0cc6b;
            text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
        }

        .eq-fader-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            font-weight: 600;
            color: #d4a94e;
            text-align: center;
            min-width: 55px;
        }

        .eq-fader-center {
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            height: 2px;
            background: rgba(255, 255, 255, 0.2);
            pointer-events: none;
        }

        .eq-fader-freq {
            font-size: 0.65rem;
            opacity: 0.6;
            text-align: center;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           DYNAMICS SECTION
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .dynamics-section {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
            border-radius: 15px;
            padding: 18px;
            border: 1px solid rgba(158, 122, 40, 0.2);
            margin-bottom: 15px;
        }

        .dynamics-controls {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }

        .control-item {
            background: rgba(0, 0, 0, 0.3);
            padding: 12px;
            border-radius: 10px;
        }

        .control-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .control-name {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .control-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            font-weight: 700;
            color: #9e7a28;
        }

        .slider {
            width: 100%;
            height: 6px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            outline: none;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: linear-gradient(135deg, #e6c378, #c8a44e);
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 0 4px rgba(200, 164, 78, 0.20);
        }

        .slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 6px rgba(158, 122, 40, 0.2);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROFESSIONAL METERS (RIGHT SIDEBAR - 9 BROADCAST-GRADE METERS)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .meters-container {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(212, 169, 78, 0.2);
        }

        .meter-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .meter-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .meter-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            opacity: 1.0;
            margin-bottom: 6px;
            color: #ffffff;
            font-weight: 600;
        }

        .meter-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.1rem;
            font-weight: 700;
            color: #d4a94e;
            text-shadow: 0 0 6px rgba(212, 169, 78, 0.05);
        }

        .meter-bar {
            width: 100%;
            height: 8px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 6px;
        }

        .meter-bar-fill {
            height: 100%;
            transition: width 0.1s ease;
            border-radius: 6px;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           MASTER SECTION
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .master-section {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.9));
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(158, 122, 40, 0.2);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           ANALYSIS RESULTS PANEL (NEW - INDUSTRY LEADING)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .analysis-panel {
            background: linear-gradient(135deg, rgba(212, 169, 78, 0.05), rgba(158, 122, 40, 0.05));
            border: 1px solid rgba(212, 169, 78, 0.3);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            display: none;
            width: 100%;
            box-sizing: border-box;
        }

        .analysis-panel.visible {
            display: block;
            animation: slideIn 0.4s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Feature Tiles - Professional Interactive Design */
        .feature-tile {
            position: relative;
            overflow: hidden;
        }

        .feature-tile::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 169, 78, 0.15), transparent);
            transition: left 0.5s ease;
        }

        .feature-tile:hover {
            background: rgba(212, 169, 78, 0.15) !important;
            border-color: rgba(212, 169, 78, 0.5) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .feature-tile:hover::before {
            left: 100%;
        }

        .feature-tile:active {
            transform: translateY(0);
        }

        /* Custom Tooltip for Feature Tiles - INSTANT */
        .feature-tooltip-popup {
            position: fixed;
            background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
            border: 1px solid rgba(212, 169, 78, 0.4);
            border-radius: 10px;
            padding: 12px 16px;
            max-width: 280px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            z-index: 99999;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
        }
        .feature-tooltip-popup.visible {
            opacity: 1;
            visibility: visible;
        }
        .feature-tooltip-popup .tooltip-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: #d4a94e;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .feature-tooltip-popup .tooltip-desc {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
        }

        .analysis-results h4 {
            font-size: 1.1rem;
            margin-bottom: 20px;
            color: #d4a94e;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            letter-spacing: 0.3px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(212, 169, 78, 0.3);
        }

        .analysis-section {
            padding: 14px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.85rem;
        }

        .analysis-section:last-child {
            border-bottom: none;
        }

        .analysis-section > strong {
            color: #d4a94e;
            margin-right: 8px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            display: block;
            margin-bottom: 6px;
            opacity: 0.8;
        }

        .analysis-section .confidence {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.7rem;
            margin-left: 8px;
            font-weight: 300;
        }

        .analysis-section .warning {
            color: #ff9500;
        }

        .analysis-section .good {
            color: #f0cc6b;
        }

        .analysis-section .critical {
            color: #ff4444;
        }

        /* Modern metric display */
        .metric-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #ffffff;
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 4px;
        }

        .metric-value .unit {
            font-size: 0.9rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.6);
        }

        .metric-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .metric-badge.good {
            background: rgba(0, 255, 136, 0.2);
            color: #f0cc6b;
            border: 1px solid rgba(0, 255, 136, 0.3);
        }

        .metric-badge.warning {
            background: rgba(255, 149, 0, 0.2);
            color: #ff9500;
            border: 1px solid rgba(255, 149, 0, 0.3);
        }

        .metric-badge.critical {
            background: rgba(255, 68, 68, 0.2);
            color: #ff4444;
            border: 1px solid rgba(255, 68, 68, 0.3);
        }

        /* Visual progress bars */
        .visual-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 8px;
            position: relative;
        }

        .visual-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #d4a94e, #f0cc6b);
            border-radius: 4px;
            transition: width 0.5s ease;
            box-shadow: 0 0 4px rgba(212, 169, 78, 0.1);
        }

        .visual-bar-fill.warning {
            background: linear-gradient(90deg, #ff9500, #ffb84d);
            box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
        }

        .visual-bar-fill.critical {
            background: linear-gradient(90deg, #ff4444, #ff6b6b);
            box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
        }

        /* ═══ Track Analysis Report Card ═══ */
        .report-card {
            background: linear-gradient(135deg, rgba(12,12,24,0.97), rgba(20,16,32,0.97));
            border: 1px solid rgba(0,212,255,0.15);
            border-radius: 14px;
            padding: 20px;
            margin: 14px 0;
            backdrop-filter: blur(12px);
            opacity: 0;
            transform: translateY(12px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .report-card.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .report-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .report-card-header .rc-title {
            font-size: 13px;
            font-weight: 700;
            color: rgba(255,255,255,0.9);
            letter-spacing: 0.5px;
        }
        .rc-grade-badge {
            font-size: 18px;
            font-weight: 800;
            padding: 4px 14px;
            border-radius: 10px;
            letter-spacing: 1px;
            display: none;
        }
        .rc-grade-badge.visible {
            display: inline-block;
        }
        .rc-metric-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.03);
        }
        .rc-metric-row:last-child { border-bottom: none; }
        .rc-metric-label {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            min-width: 100px;
        }
        .rc-metric-values {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            justify-content: flex-end;
        }
        .rc-metric-value {
            font-size: 13px;
            font-weight: 600;
            font-family: 'SF Mono', 'Fira Code', monospace;
        }
        .rc-metric-value.before {
            color: rgba(255,255,255,0.3);
            text-decoration: line-through;
            font-size: 11px;
        }
        .rc-metric-value.after {
            color: #00e676;
            text-shadow: 0 0 8px rgba(0,230,118,0.3);
        }
        .rc-badge {
            font-size: 9px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 6px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .rc-badge.good { background: rgba(0,230,118,0.15); color: #00e676; border: 1px solid rgba(0,230,118,0.3); }
        .rc-badge.warn { background: rgba(255,193,7,0.15); color: #ffc107; border: 1px solid rgba(255,193,7,0.3); }
        .rc-badge.bad { background: rgba(255,82,82,0.15); color: #ff5252; border: 1px solid rgba(255,82,82,0.3); }
        .rc-badge.target { background: rgba(0,212,255,0.15); color: #d4a94e; border: 1px solid rgba(0,212,255,0.3); }
        .rc-delta {
            font-size: 10px;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 4px;
        }
        .rc-delta.improved { background: rgba(0,230,118,0.12); color: #00e676; }
        .rc-delta.neutral { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
        .rc-delta.degraded { background: rgba(255,82,82,0.12); color: #ff5252; }
        .rc-spectrum-bars {
            display: flex;
            align-items: flex-end;
            gap: 3px;
            height: 36px;
            padding: 4px 6px;
            background: rgba(0,0,0,0.25);
            border-radius: 6px;
            flex: 1;
            max-width: 160px;
        }
        .rc-spectrum-bar {
            flex: 1;
            border-radius: 2px 2px 0 0;
            min-height: 3px;
            transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @media (max-width: 600px) {
            .report-card { padding: 14px; }
            .rc-metric-row { flex-wrap: wrap; gap: 4px; }
            .rc-metric-label { min-width: 80px; font-size: 10px; }
            .rc-spectrum-bars { max-width: 120px; }
        }

        /* Frequency balance bars */
        .freq-balance-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-top: 12px;
        }

        .freq-bar {
            text-align: center;
        }

        .freq-bar-label {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            margin-bottom: 6px;
            font-weight: 500;
        }

        .freq-bar-container {
            height: 80px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .freq-bar-fill {
            position: absolute;
            bottom: 0;
            width: 100%;
            background: linear-gradient(180deg, rgba(212, 169, 78, 0.8), rgba(212, 169, 78, 0.3));
            transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 4px 4px 0 0;
        }

        .freq-bar-value {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.9rem;
            font-weight: 700;
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            z-index: 1;
        }

        /* Genre card */
        .genre-card {
            background: linear-gradient(135deg, rgba(212, 169, 78, 0.1), rgba(0, 255, 136, 0.1));
            border: 1px solid rgba(212, 169, 78, 0.3);
            border-radius: 8px;
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .genre-name {
            font-size: 1.2rem;
            font-weight: 700;
            color: #d4a94e;
        }

        .problems-detected {
            background: rgba(255, 69, 0, 0.1);
            border: 1px solid rgba(255, 69, 0, 0.3);
            border-radius: 8px;
            padding: 10px;
            margin-top: 8px;
        }

        .problems-detected strong {
            color: #ff9500;
        }

        .problems-detected ul {
            list-style: none;
            margin-top: 8px;
        }

        .problems-detected li {
            padding: 6px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .problems-detected li:last-child {
            border-bottom: none;
        }

        .problems-detected small {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.7rem;
        }

        .problem-critical {
            color: #ff4444;
        }

        .problem-warning {
            color: #ff9500;
        }

        .problem-info {
            color: #d4a94e;
        }

        .all-good {
            color: #f0cc6b;
            padding: 8px;
            background: rgba(0, 255, 136, 0.1);
            border-radius: 6px;
            margin-top: 8px;
            text-align: center;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           EXPORT SECTION
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .export-section {
            background: rgba(255,255,255,0.02);
            border-radius: 12px;
            padding: 16px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .export-format-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            margin-bottom: 14px;
        }

        .export-format-btn {
            padding: 10px 8px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.02);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            font-size: 0.7rem;
            text-align: center;
            color: rgba(255,255,255,0.6);
        }

        .export-format-btn:hover {
            border-color: rgba(212, 169, 78, 0.3);
            background: rgba(212, 169, 78, 0.05);
        }

        .export-format-btn.active {
            border-color: rgba(212, 169, 78, 0.5);
            background: rgba(212, 169, 78, 0.1);
            color: #d4a94e;
        }

        /* Export button styles removed — export lives in persistent bottom bar */

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           SCROLLBAR STYLING
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .left-sidebar::-webkit-scrollbar,
        .center-main::-webkit-scrollbar,
        .right-sidebar::-webkit-scrollbar {
            width: 8px;
        }

        .left-sidebar::-webkit-scrollbar-track,
        .center-main::-webkit-scrollbar-track,
        .right-sidebar::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
        }

        .left-sidebar::-webkit-scrollbar-thumb,
        .center-main::-webkit-scrollbar-thumb,
        .right-sidebar::-webkit-scrollbar-thumb {
            background: rgba(212, 169, 78, 0.3);
            border-radius: 10px;
        }

        .left-sidebar::-webkit-scrollbar-thumb:hover,
        .center-main::-webkit-scrollbar-thumb:hover,
        .right-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(212, 169, 78, 0.5);
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROGRESS OVERLAY
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .progress-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse at center, rgba(6, 6, 20, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100015;
            backdrop-filter: blur(20px);
        }

        /* During post-payment finalize, hide the app's mastering progress screens
           so the stash re-render runs invisibly behind the "Finalizing your
           master…" modal. z-index layering proved unreliable across stacking
           contexts, so we remove the overlay from view outright. Toggled by
           STRIPE_PAYMENT_INTEGRATION.js around renderStashedSource.
           TWO separate overlay elements exist here — #progressOverlay (app-core.js)
           and #masteringProcessOverlay (ai-features.js runActualMastering(), the
           "Mastering Engine" full-screen ring/stage-grid UI) — renderStashedSource's
           re-render fires runActualMastering() again, so both must be covered or
           the buyer sees the full 24-stage screen replay after paying. */
        body.ll-checkout-finalizing #progressOverlay,
        body.ll-checkout-finalizing #masteringProcessOverlay { display: none !important; }

        .progress-content {
            text-align: center;
            max-width: 520px;
            width: 90%;
            padding: 40px 50px;
            border-radius: 24px;
            background: linear-gradient(165deg,
                rgba(15, 15, 30, 0.95) 0%,
                rgba(10, 10, 25, 0.98) 50%,
                rgba(5, 5, 20, 0.99) 100%);
            border: 1px solid rgba(212, 169, 78, 0.2);
            box-shadow:
                0 0 80px rgba(212, 169, 78, 0.15),
                0 0 40px rgba(158, 122, 40, 0.1),
                0 25px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           PROFESSIONAL RENDER UI — v10.28
           DAW-grade multi-stage render overlay
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
        .progress-content-pro {
            max-width: 580px;
            padding: 44px 52px 36px;
            text-align: left;
            animation: proFadeIn 0.4s ease-out;
        }
        @keyframes proFadeIn {
            from { opacity: 0; transform: translateY(12px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* Brand header */
        .progress-brand {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(212, 169, 78, 0.1);
        }
        .progress-brand-mark {
            width: 52px; height: 52px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 0 24px rgba(212, 169, 78, 0.25);
            flex-shrink: 0;
        }
        .progress-brand-mark img { display: block; width: 100%; height: 100%; }
        .progress-brand-text { flex: 1; }
        .progress-brand-title {
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.15em;
            color: rgba(255,255,255,0.35);
            margin-bottom: 4px;
        }
        .progress-brand-sub {
            font-size: 1.1rem;
            font-weight: 700;
            background: linear-gradient(135deg, #fff 0%, #d4a94e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.01em;
        }

        /* Animated waveform visualizer */
        .progress-wave-container {
            height: 60px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.3);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.04);
            padding: 0 20px;
            overflow: hidden;
            position: relative;
        }
        .progress-wave-container::before {
            content: '';
            position: absolute;
            top: 50%; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(212,169,78,0.15), transparent);
        }
        .progress-wave {
            display: flex;
            align-items: center;
            gap: 4px;
            height: 100%;
            width: 100%;
            justify-content: space-between;
        }
        .progress-wave span {
            display: block;
            flex: 1;
            background: linear-gradient(180deg, #d4a94e, #9e7a28);
            border-radius: 2px;
            min-width: 3px;
            animation: waveBounce 1.2s ease-in-out infinite;
            box-shadow: 0 0 8px rgba(212,169,78,0.3);
        }
        .progress-wave span:nth-child(1) { animation-delay: 0s; height: 30%; }
        .progress-wave span:nth-child(2) { animation-delay: 0.05s; height: 55%; }
        .progress-wave span:nth-child(3) { animation-delay: 0.1s; height: 40%; }
        .progress-wave span:nth-child(4) { animation-delay: 0.15s; height: 70%; }
        .progress-wave span:nth-child(5) { animation-delay: 0.2s; height: 45%; }
        .progress-wave span:nth-child(6) { animation-delay: 0.25s; height: 85%; }
        .progress-wave span:nth-child(7) { animation-delay: 0.3s; height: 60%; }
        .progress-wave span:nth-child(8) { animation-delay: 0.35s; height: 75%; }
        .progress-wave span:nth-child(9) { animation-delay: 0.4s; height: 50%; }
        .progress-wave span:nth-child(10) { animation-delay: 0.45s; height: 80%; }
        .progress-wave span:nth-child(11) { animation-delay: 0.5s; height: 65%; }
        .progress-wave span:nth-child(12) { animation-delay: 0.55s; height: 90%; }
        .progress-wave span:nth-child(13) { animation-delay: 0.6s; height: 55%; }
        .progress-wave span:nth-child(14) { animation-delay: 0.65s; height: 70%; }
        .progress-wave span:nth-child(15) { animation-delay: 0.7s; height: 40%; }
        .progress-wave span:nth-child(16) { animation-delay: 0.75s; height: 60%; }
        .progress-wave span:nth-child(17) { animation-delay: 0.8s; height: 35%; }
        .progress-wave span:nth-child(18) { animation-delay: 0.85s; height: 50%; }
        .progress-wave span:nth-child(19) { animation-delay: 0.9s; height: 25%; }
        .progress-wave span:nth-child(20) { animation-delay: 0.95s; height: 15%; }
        @keyframes waveBounce {
            0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
            50% { transform: scaleY(1.0); opacity: 1; }
        }

        /* Stage detail text */
        .progress-stage-detail {
            font-size: 0.82rem;
            color: rgba(255,255,255,0.55);
            margin-bottom: 18px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 500;
            letter-spacing: 0.02em;
            min-height: 1.4em;
            text-align: center;
            transition: opacity 0.2s;
        }

        /* Bottom row: stage counter + percentage */
        .progress-bottom-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 14px;
        }
        .progress-stage-counter {
            font-size: 0.68rem;
            font-weight: 600;
            color: rgba(212, 169, 78, 0.65);
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        /* Pipeline indicators */
        .progress-pipeline {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 28px;
            padding: 16px 8px;
            background: rgba(0,0,0,0.25);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.03);
        }
        .progress-pipe-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .progress-pipe-dot {
            width: 10px; height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.4s ease;
        }
        .progress-pipe-step.active .progress-pipe-dot {
            background: #d4a94e;
            border-color: #d4a94e;
            box-shadow: 0 0 12px rgba(212,169,78,0.6), 0 0 24px rgba(212,169,78,0.3);
            animation: pipeDotPulse 1.5s ease-in-out infinite;
        }
        .progress-pipe-step.complete .progress-pipe-dot {
            background: #00ff88;
            border-color: #00ff88;
            box-shadow: 0 0 8px rgba(0,255,136,0.4);
        }
        @keyframes pipeDotPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.25); }
        }
        .progress-pipe-label {
            font-size: 0.58rem;
            font-weight: 700;
            color: rgba(255,255,255,0.35);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            transition: color 0.3s;
        }
        .progress-pipe-step.active .progress-pipe-label { color: #d4a94e; }
        .progress-pipe-step.complete .progress-pipe-label { color: #00ff88; }
        .progress-pipe-connector {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
            margin: 0 4px;
            margin-bottom: 16px;
            position: relative;
        }

        /* Footer meta */
        .progress-footer {
            margin-top: 24px;
            text-align: center;
            font-size: 0.6rem;
            color: rgba(255,255,255,0.25);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-weight: 600;
        }
        .progress-dot-sep {
            margin: 0 10px;
            color: rgba(212,169,78,0.3);
        }

        /* Hide old spinner (kept for compat, overridden) */
        .progress-content-pro .progress-spinner { display: none; }
        .progress-content-pro .progress-text { display: none; } /* text moves to brand-sub */
        .progress-content-pro .progress-detail { display: none; } /* moves to progress-stage-detail */

        @media (max-width: 600px) {
            .progress-content-pro { padding: 28px 22px 24px; }
            .progress-brand-mark { width: 44px; height: 44px; font-size: 1.2rem; }
            .progress-brand-sub { font-size: 0.95rem; }
            .progress-pipe-label { font-size: 0.5rem; }
            .progress-pipe-step { gap: 4px; }
        }

        .progress-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(212, 169, 78, 0.5) 30%,
                rgba(158, 122, 40, 0.5) 70%,
                transparent 100%);
        }

        .progress-spinner {
            font-size: 3.5rem;
            margin-bottom: 20px;
            animation: spinGlow 2s linear infinite;
            filter: drop-shadow(0 0 15px rgba(212, 169, 78, 0.5));
        }

        @keyframes spinGlow {
            0% { transform: rotate(0deg); filter: drop-shadow(0 0 15px rgba(212, 169, 78, 0.5)); }
            50% { filter: drop-shadow(0 0 25px rgba(158, 122, 40, 0.6)); }
            100% { transform: rotate(360deg); filter: drop-shadow(0 0 15px rgba(212, 169, 78, 0.5)); }
        }

        .progress-text {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #fff 0%, #d4a94e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 0.02em;
        }

        .progress-detail {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 30px;
            line-height: 1.5;
            min-height: 1.5em;
        }

        /* Modern AI Progress Bar */
        .ai-progress-container {
            margin-top: 25px;
            width: 100%;
        }

        .ai-progress-bar {
            position: relative;
            width: 100%;
            height: 12px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid rgba(212, 169, 78, 0.15);
            box-shadow:
                inset 0 2px 8px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(212, 169, 78, 0.1);
        }

        .ai-progress-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg,
                #f0cc6b 0%,
                #d4a94e 40%,
                #d4a94e 60%,
                #9e7a28 100%);
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 6px;
            box-shadow:
                0 0 20px rgba(212, 169, 78, 0.6),
                0 0 40px rgba(0, 255, 136, 0.3);
        }

        .ai-progress-glow {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.3) 40%,
                rgba(255, 255, 255, 0.5) 50%,
                rgba(255, 255, 255, 0.3) 60%,
                transparent 100%);
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 6px;
        }

        .ai-progress-percentage {
            margin-top: 15px;
            font-size: 2rem;
            font-weight: 800;
            font-family: 'JetBrains Mono', 'SF Mono', monospace;
            background: linear-gradient(135deg, #d4a94e 0%, #f0cc6b 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: none;
        }




        .ai-progress-percentage {
            margin-top: 12px;
            font-size: 2.5rem;
            font-weight: 900;
            color: #d4a94e;
            text-shadow: 0 0 8px rgba(212, 169, 78, 0.05);
            font-family: 'Courier New', monospace;
        }

        /* ═══════════════════════════════════════════════════════════════════════════
           MASTERING COMPLETE OVERLAY - Premium High-End Plugin Aesthetic
           ═══════════════════════════════════════════════════════════════════════════ */
        .mastering-complete-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(30px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100020;
            animation: fadeIn 0.3s ease;
            padding: 20px;
            box-sizing: border-box;
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .mastering-complete-card {
            background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0;
            text-align: center;
            max-width: 580px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255,255,255,0.1) inset;
            animation: slideUp 0.4s ease;
        }
        @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

        .complete-icon {
            width: 80px; height: 80px;
            background: linear-gradient(135deg, #d4a94e 0%, #f0cc6b 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: #0d0d1a;
            margin: 0 auto 24px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 169, 78, 0.05);
        }

        .complete-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #fff;
            margin: 0 0 32px 0;
            letter-spacing: -0.5px;
        }

        .complete-stats {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 32px;
        }

        .stat-box {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 16px 24px;
            min-width: 120px;
        }
        .stat-box.highlight {
            background: rgba(212, 169, 78, 0.1);
            border-color: rgba(212, 169, 78, 0.3);
        }

        .stat-label {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }

        .stat-value {
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff;
            font-family: 'JetBrains Mono', monospace;
        }
        .stat-box.highlight .stat-value { color: #d4a94e; }

        .stat-arrow {
            font-size: 1.5rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .complete-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin-bottom: 20px;
        }

        .complete-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.03em;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }

        .complete-btn.secondary {
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .complete-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }
        .complete-btn.secondary.active {
            background: rgba(100, 180, 255, 0.1);
            border-color: rgba(100, 180, 255, 0.3);
            color: #7cb8ff;
        }

        .complete-btn.primary {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.2) 0%, rgba(92, 184, 92, 0.1) 100%);
            border: 1px solid rgba(92, 184, 92, 0.4);
            color: #8fd98f;
        }
        .complete-btn.primary:hover {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.3) 0%, rgba(92, 184, 92, 0.15) 100%);
            border-color: rgba(92, 184, 92, 0.6);
        }

        .export-cta {
            width: 100%;
            justify-content: center;
            padding: 14px 28px;
            font-size: 0.75rem;
            margin-bottom: 16px;
        }

        .complete-link {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.35);
            font-size: 0.7rem;
            letter-spacing: 0.05em;
            cursor: pointer;
            padding: 8px;
            transition: color 0.2s;
        }
        .complete-link:hover { color: rgba(255, 255, 255, 0.6); }

        /* ═══════════════════════════════════════════════════════════════════════════
           PERSISTENT EXPORT BAR - Premium High-End Plugin Aesthetic
           ═══════════════════════════════════════════════════════════════════════════ */
        .persistent-export-bar {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 12px 24px;
            z-index: 9000;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
        }

        .export-bar-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .export-bar-status {
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.7rem;
            font-weight: 500;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .status-dot {
            width: 8px; height: 8px;
            background: #5cb85c;
            border-radius: 50%;
            box-shadow: 0 0 6px rgba(92, 184, 92, 0.6);
        }

        .export-bar-actions {
            display: flex;
            gap: 10px;
        }

        .export-bar-btn {
            padding: 10px 18px;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.03em;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .export-bar-btn.secondary {
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .export-bar-btn.secondary:hover { background: rgba(255, 255, 255, 0.08); }
        .export-bar-btn.secondary.active {
            background: rgba(100, 180, 255, 0.1);
            border-color: rgba(100, 180, 255, 0.3);
            color: #7cb8ff;
        }

        .export-bar-btn.primary {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.2) 0%, rgba(92, 184, 92, 0.1) 100%);
            border: 1px solid rgba(92, 184, 92, 0.4);
            color: #8fd98f;
        }
        .export-bar-btn.primary:hover {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.3) 0%, rgba(92, 184, 92, 0.15) 100%);
            border-color: rgba(92, 184, 92, 0.6);
        }

        /* ━━━ Guided Tour System ━━━ */
        @keyframes tourScanLine {
            0% { left: -80%; }
            100% { left: 180%; }
        }
        @keyframes tourLabelSlideIn {
            0% { opacity: 0; transform: translateY(6px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .tour-section-active {
            border: 2px solid rgba(0,212,255,0.4) !important;
            border-radius: 10px !important;
            position: relative;
            overflow: hidden;
            z-index: 10;
        }
        .tour-section-active::after {
            content: '';
            position: absolute;
            top: 0; left: -80%;
            width: 50%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0,212,255,0.08), rgba(184,79,255,0.04), transparent);
            animation: tourScanLine 3s ease-in-out infinite;
            pointer-events: none;
            z-index: 1;
        }

        .tour-step-label {
            animation: tourLabelSlideIn 0.3s ease-out forwards;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
            padding: 7px 12px;
            background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(184,79,255,0.04));
            border: 1px solid rgba(0,212,255,0.2);
            border-radius: 8px;
        }
        .tour-step-num {
            width: 20px; height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, #d4a94e, #9e7a28);
            color: #fff;
            font-size: 0.6rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.3s ease;
        }
        .tour-step-done {
            background: #00e676 !important;
            font-size: 0.7rem;
        }
        .tour-step-text {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.85);
            font-weight: 600;
            letter-spacing: 0.02em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .tour-step-sub {
            font-size: 0.48rem;
            color: rgba(0,212,255,0.55);
            font-weight: 400;
            margin-top: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Prevent text container from overflowing the label row */
        .tour-step-label > div:last-child {
            min-width: 0;
            overflow: hidden;
        }

        /* Tour header — step dots + skip */
        .tour-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 0 0 10px 0;
            padding: 6px 10px;
            background: rgba(0,0,0,0.25);
            border-radius: 6px;
            border: 1px solid rgba(0,212,255,0.12);
        }
        .tour-progress-dots {
            display: flex;
            gap: 6px;
            align-items: center;
        }
        .tour-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.12);
            transition: all 0.3s ease;
        }
        .tour-dot-active {
            background: linear-gradient(135deg, #d4a94e, #9e7a28);
            box-shadow: 0 0 8px rgba(0,212,255,0.4);
            transform: scale(1.25);
        }
        .tour-dot-done {
            background: #00e676;
            box-shadow: 0 0 6px rgba(0,230,118,0.4);
            transform: scale(1);
            animation: none;
        }
        .tour-skip-btn-removed {
            font-size: 0.5rem;
            color: rgba(255,255,255,0.3);
            cursor: pointer;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            transition: color 0.15s;
        }
        .tour-skip-btn:hover { color: rgba(255,255,255,0.6); }

        /* Tour button selection confirmation — green pulse when user picks something during tour */
        .tour-btn-confirmed {
            animation: tourBtnConfirm 1.3s ease-out forwards;
        }
        @keyframes tourBtnConfirm {
            0%   { box-shadow: 0 0 0 0 rgba(0,230,118,0.9), 0 0 28px rgba(0,230,118,0.55); transform: scale(1.18); border-color: rgba(0,230,118,0.9) !important; }
            25%  { box-shadow: 0 0 0 8px rgba(0,230,118,0.12); transform: scale(1.07); }
            55%  { box-shadow: 0 0 22px rgba(0,230,118,0.45); transform: scale(1.11); border-color: rgba(0,230,118,0.7) !important; }
            100% { box-shadow: 0 0 10px rgba(0,230,118,0.2); transform: scale(1); border-color: rgba(0,230,118,0.3) !important; }
        }

        /* Final Stats - Premium Readout Style */
        .guide-final-stats {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 24px;
            padding: 16px 20px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .final-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .final-stat-label {
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 500;
        }
        .final-stat-value {
            font-size: 0.95rem;
            font-weight: 600;
            color: #7cb8ff;
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
        }

        .guide-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 16px;
        }

        .guide-action-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            padding: 10px 18px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.7rem;
            font-weight: 500;
            letter-spacing: 0.03em;
            cursor: pointer;
            transition: all 0.2s;
        }
        .guide-action-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        /* ═══════════════════════════════════════════════════════════════════════════
           A/B COMPARISON MODAL - Premium High-End Plugin Aesthetic
           ═══════════════════════════════════════════════════════════════════════════ */
        .ab-modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(30px);
            z-index: 60000;
            display: none;
            align-items: center;
            justify-content: center;
            animation: abModalFadeIn 0.3s ease;
        }
        .ab-modal-overlay.active { display: flex; }

        @keyframes abModalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .ab-modal-container {
            width: 95%;
            max-width: 800px;
            background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 80px rgba(0,0,0,0.8), 0 0 1px rgba(255,255,255,0.1) inset;
            animation: abModalSlideUp 0.4s ease;
        }

        @keyframes abModalSlideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .ab-modal-header {
            background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            padding: 14px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }

        .ab-modal-title {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.5);
            margin: 0;
        }

        .ab-modal-body {
            padding: 30px 35px;
        }

        .ab-modal-subtitle {
            color: rgba(255,255,255,0.45);
            font-size: 0.8rem;
            font-weight: 400;
            margin-bottom: 20px;
        }

        /* Premium A/B Toggle Switch */
        .ab-toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            margin: 30px 0;
            position: relative;
            z-index: 1;
        }

        .ab-toggle-label {
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            transition: all 0.2s ease;
            cursor: pointer;
            padding: 14px 22px;
            border-radius: 6px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
        }

        .ab-toggle-label.original {
            color: rgba(255,255,255,0.4);
        }
        .ab-toggle-label.original.active {
            color: #d4a84b;
            background: rgba(212, 168, 75, 0.1);
            border-color: rgba(212, 168, 75, 0.3);
            box-shadow: 0 0 15px rgba(212, 168, 75, 0.15);
        }

        .ab-toggle-label.mastered {
            color: rgba(255,255,255,0.4);
        }
        .ab-toggle-label.mastered.active {
            color: #5cb85c;
            background: rgba(92, 184, 92, 0.1);
            border-color: rgba(92, 184, 92, 0.3);
            box-shadow: 0 0 15px rgba(92, 184, 92, 0.15);
        }

        .ab-mega-switch {
            width: 100px;
            height: 50px;
            background: rgba(0,0,0,0.4);
            border-radius: 6px;
            position: relative;
            cursor: pointer;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
            transition: all 0.2s ease;
        }

        .ab-mega-switch::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            width: 42px;
            height: 42px;
            background: linear-gradient(180deg, rgba(212, 168, 75, 0.3) 0%, rgba(212, 168, 75, 0.15) 100%);
            border: 1px solid rgba(212, 168, 75, 0.4);
            border-radius: 4px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .ab-mega-switch.mastered::before {
            left: calc(100% - 46px);
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.3) 0%, rgba(92, 184, 92, 0.15) 100%);
            border-color: rgba(92, 184, 92, 0.4);
        }

        /* Waveform Comparison - Premium Style */
        .ab-waveform-comparison {
            background: rgba(0,0,0,0.3);
            border-radius: 6px;
            padding: 20px;
            margin: 24px 0;
            border: 1px solid rgba(255,255,255,0.06);
            position: relative;
            z-index: 1;
        }

        .ab-waveform-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .ab-waveform-label {
            font-size: 0.6rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255,255,255,0.4);
        }

        .ab-waveform-canvas-container {
            position: relative;
            height: 100px;
            border-radius: 4px;
            overflow: hidden;
            background: rgba(0,0,0,0.4);
            border: 1px solid rgba(255,255,255,0.04);
        }

        .ab-waveform-canvas {
            width: 100%;
            height: 100%;
        }

        /* Metrics Cards - Premium Readout Style */
        .ab-metrics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 24px 0;
            position: relative;
            z-index: 1;
        }

        .ab-metric-card {
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 6px;
            padding: 16px 12px;
            text-align: center;
            transition: all 0.2s ease;
        }

        .ab-metric-card:hover {
            border-color: rgba(255,255,255,0.12);
            background: rgba(0,0,0,0.4);
        }

        .ab-metric-icon {
            font-size: 1.2rem;
            margin-bottom: 6px;
            opacity: 0.7;
        }

        .ab-metric-value {
            font-size: 1.1rem;
            font-weight: 600;
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
            margin-bottom: 4px;
        }

        .ab-metric-value.positive { color: #5cb85c; }
        .ab-metric-value.neutral { color: #7cb8ff; }

        .ab-metric-label {
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255,255,255,0.4);
            font-weight: 500;
        }

        /* Action Buttons - Premium Style */
        .ab-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 24px;
            position: relative;
            z-index: 1;
        }

        .ab-btn-primary {
            padding: 14px 32px;
            font-size: 0.7rem;
            font-weight: 600;
            border: 1px solid rgba(92, 184, 92, 0.4);
            border-radius: 4px;
            cursor: pointer;
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.2) 0%, rgba(92, 184, 92, 0.1) 100%);
            color: #8fd98f;
            transition: all 0.2s ease;
            letter-spacing: 0.03em;
        }

        .ab-btn-primary:hover {
            background: linear-gradient(180deg, rgba(92, 184, 92, 0.3) 0%, rgba(92, 184, 92, 0.15) 100%);
            border-color: rgba(92, 184, 92, 0.6);
        }

        .ab-btn-secondary {
            padding: 14px 32px;
            font-size: 0.7rem;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 4px;
            cursor: pointer;
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.6);
            transition: all 0.2s ease;
            letter-spacing: 0.03em;
        }

        .ab-btn-secondary:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.15);
        }

        /* ═══════════════════════════════════════════════════════════════════════════
           PRESET SELECTION CARDS - Premium High-End Plugin Aesthetic
           ═══════════════════════════════════════════════════════════════════════════ */
        .preset-panel {
            background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            padding: 24px;
            margin: 20px 0;
        }

        .preset-section-title {
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: rgba(255,255,255,0.4);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .preset-section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
        }

        .preset-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 8px;
        }

        .preset-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 6px;
            padding: 16px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .preset-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: var(--preset-color, rgba(100, 180, 255, 0.6));
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .preset-card:hover {
            transform: translateY(-2px);
            border-color: var(--preset-color, rgba(100, 180, 255, 0.3));
            background: rgba(255,255,255,0.05);
        }

        .preset-card:hover::before {
            opacity: 1;
        }

        .preset-card.selected {
            border-color: var(--preset-color, rgba(100, 180, 255, 0.4));
            background: linear-gradient(180deg, rgba(100, 180, 255, 0.08) 0%, rgba(100, 180, 255, 0.04) 100%);
        }

        .preset-card.selected::before {
            opacity: 1;
        }

        .preset-icon {
            font-size: 1.4rem;
            margin-bottom: 8px;
            display: block;
            opacity: 0.8;
        }

        .preset-name {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            margin-bottom: 4px;
            color: rgba(255,255,255,0.85);
            text-transform: uppercase;
        }

        .preset-detail {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.4);
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
        }

        /* Platform-specific colors - muted tones */
        .preset-card[data-platform="spotify"] { --preset-color: rgba(30, 185, 84, 0.7); }
        .preset-card[data-platform="apple"] { --preset-color: rgba(250, 45, 72, 0.7); }
        .preset-card[data-platform="youtube"] { --preset-color: rgba(255, 0, 0, 0.6); }
        .preset-card[data-platform="soundcloud"] { --preset-color: rgba(255, 85, 0, 0.7); }
        .preset-card[data-platform="cd"] { --preset-color: rgba(180, 180, 180, 0.6); }
        .preset-card[data-platform="club"] { --preset-color: rgba(160, 80, 220, 0.7); }

        /* Genre-specific colors */
        .preset-card[data-genre="hiphop"] { --preset-color: #FFD700; }
        .preset-card[data-genre="edm"] { --preset-color: #00FFFF; }
        .preset-card[data-genre="pop"] { --preset-color: #FF69B4; }
        .preset-card[data-genre="rock"] { --preset-color: #DC143C; }
        .preset-card[data-genre="rnb"] { --preset-color: #9370DB; }
        .preset-card[data-genre="acoustic"] { --preset-color: #8B4513; }

        /* Quick Action Strip */
        .quick-action-strip {
            display: flex;
            gap: 12px;
            margin: 24px 0;
            flex-wrap: wrap;
        }

        .quick-action-btn {
            flex: 1;
            min-width: 150px;
            padding: 16px 24px;
            background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            color: #fff;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .quick-action-btn:hover {
            background: linear-gradient(145deg, rgba(212, 169, 78, 0.15), rgba(212, 169, 78, 0.05));
            border-color: rgba(212, 169, 78, 0.3);
            transform: translateY(-2px);
        }

        .quick-action-btn.primary {
            background: linear-gradient(135deg, #d4a94e, #0099cc);
            border: none;
            color: #000;
            font-weight: 700;
        }

        .quick-action-btn.primary:hover {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 8px rgba(212, 169, 78, 0.08);
        }

        /* Simple Mode Hero Section */
        .simple-hero {
            text-align: center;
            padding: 60px 20px;
            max-width: 600px;
            margin: 0 auto;
        }

        .simple-hero-title {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 16px;
        }

        .simple-hero-subtitle {
            font-size: 1.1rem;
            color: rgba(255,255,255,0.6);
            margin-bottom: 40px;
            line-height: 1.6;
        }

        /* Upload Zone Enhancement */
        .enhanced-upload-zone {
            background: linear-gradient(145deg, rgba(212, 169, 78, 0.05), rgba(158, 122, 40, 0.05));
            border: 2px dashed rgba(212, 169, 78, 0.3);
            border-radius: 24px;
            padding: 60px 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .enhanced-upload-zone:hover {
            border-color: rgba(212, 169, 78, 0.6);
            background: linear-gradient(145deg, rgba(212, 169, 78, 0.1), rgba(158, 122, 40, 0.1));
            transform: translateY(-2px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 169, 78, 0.04);
        }

        .enhanced-upload-zone.dragover {
            border-color: #f0cc6b;
            background: linear-gradient(145deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
        }

        .upload-icon-large {
            font-size: 4rem;
            margin-bottom: 20px;
            display: block;
        }

        .upload-text-primary {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: #fff;
        }

        .upload-text-secondary {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.5);
        }

        /* Processing Animation */
        @keyframes processingPulse {
            0%, 100% {
                box-shadow: 0 0 15px rgba(212, 169, 78, 0.1);
                border-color: rgba(212, 169, 78, 0.3);
            }
            50% {
                box-shadow: 0 0 20px rgba(158, 122, 40, 0.1);
                border-color: rgba(158, 122, 40, 0.3);
            }
        }

        .processing-active {
            animation: processingPulse 2s ease-in-out infinite;
        }

        /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           MOBILE RESPONSIVE STYLES - Complete Mobile Support
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

        /* Mobile Navigation Bar */
        .mobile-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 64px;
            background: linear-gradient(180deg, #1a1a24 0%, #0a0a0f 100%);
            border-top: 1px solid rgba(212, 169, 78, 0.2);
            z-index: 2000;
            padding: 8px 0;
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }

        .mobile-nav-inner {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 100%;
        }

        .mobile-nav-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.65rem;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .mobile-nav-btn .nav-icon {
            font-size: 1.4rem;
        }

        .mobile-nav-btn.active {
            color: #d4a94e;
            background: rgba(212, 169, 78, 0.1);
        }

        .mobile-nav-btn:hover {
            color: #d4a94e;
        }

        /* Mobile Sidebar Overlay */
        .mobile-sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1998;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-sidebar-overlay.visible {
            opacity: 1;
        }

        /* Tablet Styles (768px - 1199px) - Balanced proportions */
        @media screen and (max-width: 1199px) and (min-width: 768px) {
            .app-container {
                /* Maintain balanced ratio even on tablets */
                grid-template-columns: minmax(240px, 26vw) 1fr minmax(260px, 28vw);
                gap: 1px;
            }

            .left-sidebar {
                padding: 18px 16px;
            }
            .right-sidebar {
                padding: 18px 16px 80px;
            }

            .center-main {
                padding: 68px 20px 18px;
            }

            .ai-command-bar {
                padding: 6px 12px;
                gap: 8px;
            }

            .ai-master-btn-floating {
                padding: 10px 24px;
                font-size: 0.9rem;
            }

            /* Slightly smaller section titles on tablet */
            .section-title {
                font-size: 0.65rem;
                letter-spacing: 1.2px;
            }
        }

        /* Mobile Styles (< 768px) — NEW SINGLE-COLUMN LAYOUT */
        @media screen and (max-width: 767px) {
            /* Show mobile navigation */
            .mobile-nav {
                display: block;
            }

            .mobile-sidebar-overlay {
                display: block;
                pointer-events: none;
            }

            .mobile-sidebar-overlay.visible {
                pointer-events: auto;
            }

            /* Single-column vertical stack (Upload -> Controls -> Master -> Metering bottom sheet) */
            .app-container {
                display: flex !important;
                flex-direction: column !important;
                grid-template-columns: 1fr !important;
                height: auto !important;
                min-height: 100vh;
                overflow: visible !important;
                padding-bottom: 150px; /* Space for bottom sheet + nav */
            }

            /* Left sidebar: inline flow, NOT fixed slide-out */
            .left-sidebar {
                position: relative !important;
                transform: none !important;
                width: 100% !important;
                max-width: 100% !important;
                height: auto !important;
                z-index: 1 !important;
                order: 1;
                padding: 12px 16px !important;
                padding-top: 60px !important;
                border-right: none !important;
                border-bottom: 1px solid rgba(212, 169, 78, 0.08);
                overflow: visible !important;
            }

            /* Right sidebar: hidden (content moved to bottom sheet) */
            .right-sidebar {
                display: none !important;
            }

            /* Center main takes full width */
            .center-main {
                width: 100% !important;
                padding: 12px !important;
                padding-top: 64px !important;
                min-height: auto !important;
                order: 2;
                overflow: visible !important;
            }

            /* AI command bar: fixed to bottom, above nav */
            .ai-command-bar {
                position: fixed;
                top: auto !important;
                bottom: 72px;
                left: 12px;
                right: 12px;
                transform: none;
                padding: 6px 12px;
                gap: 8px;
                border-radius: 14px;
                z-index: 1950;
            }

            .ai-master-btn-floating {
                padding: 10px 16px;
                font-size: 0.75rem;
                flex: 1;
            }

            .ai-status-pill {
                padding: 4px 8px;
                font-size: 0.6rem;
            }

            /* Touch-friendly controls — 44px minimum */
            .selector-btn {
                min-height: 44px;
                font-size: 0.8rem;
            }

            .action-btn {
                min-height: 48px;
                font-size: 0.75rem;
            }

            /* Compact visualizations */
            .viz-panel, .eq-graph-container {
                margin-bottom: 12px;
            }

            .eq-graph-container canvas {
                height: 200px !important;
            }

            /* Horizontal scrolling for EQ faders with snap */
            .eq-faders {
                display: flex;
                overflow-x: auto;
                gap: 10px;
                padding: 12px 10px;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
            }

            .eq-fader-container {
                flex: 0 0 auto;
                min-width: 55px;
                scroll-snap-align: start;
            }

            /* Close button for mobile panels */
            .mobile-close-btn {
                display: flex;
                position: absolute;
                top: 12px;
                right: 12px;
                width: 44px;
                height: 44px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.1);
                border: 1px solid rgba(255, 255, 255, 0.2);
                color: white;
                font-size: 1.2rem;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                z-index: 10;
            }

            .mobile-close-btn:hover {
                background: rgba(255, 60, 60, 0.3);
                border-color: rgba(255, 60, 60, 0.5);
            }

            /* Hide desktop-only elements */
            .header-logo {
                display: none;
            }

            /* Hide auth on mobile (moved to hamburger menu) */
            #authSection {
                display: none !important;
            }

            /* Meter adjustments */
            #liveLufsIndicator {
                position: relative !important;
                top: auto !important;
            }

            /* Larger slider thumbs for touch */
            input[type="range"]::-webkit-slider-thumb {
                width: 28px !important;
                height: 28px !important;
            }

            input[type="range"]::-moz-range-thumb {
                width: 28px !important;
                height: 28px !important;
            }

            /* Larger EQ fader thumbs */
            .eq-fader-thumb {
                width: 48px !important;
                height: 22px !important;
            }
        }

        /* Small phone styles (< 480px) */
        @media screen and (max-width: 479px) {
            .ai-command-bar {
                flex-wrap: nowrap;
                justify-content: center;
            }

            .ai-master-btn-floating {
                padding: 8px 12px;
                font-size: 0.75rem;
            }

            .selector-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }

            .center-main {
                padding: 8px;
                padding-top: 80px;
            }
        }

        /* Safe area insets for notched devices */
        @supports (padding: max(0px)) {
            @media screen and (max-width: 767px) {
                .left-sidebar {
                    padding-left: max(12px, env(safe-area-inset-left));
                }

                .right-sidebar {
                    padding-right: max(12px, env(safe-area-inset-right));
                }

                .mobile-nav {
                    padding-bottom: max(8px, env(safe-area-inset-bottom));
                }

                /* Export bar: pad bottom for home bar on iPhone */
                .persistent-export-bar {
                    padding-bottom: max(12px, env(safe-area-inset-bottom));
                }

                /* AI command bar: shift up above home bar */
                .ai-command-bar {
                    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
                }

                /* Smart hints container: shift up above home bar */
                #smartHintsContainer {
                    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
                }
            }
        }

        /* Reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
            .left-sidebar, .right-sidebar, .mobile-sidebar-overlay {
                transition: none;
            }
        }

        /* iPhone SE and very small screens (< 375px) — reduce sidebar padding */
        @media screen and (max-width: 374px) {
            .left-sidebar, .right-sidebar {
                padding: 10px 12px !important;
            }
            .selector-btn {
                font-size: 0.75rem;
                padding: 6px 8px;
            }
            .export-bar-btn {
                padding: 8px 10px;
                font-size: 0.6rem;
            }
        }

        /* ═══════════════════════════════════════════════════════════════════════════
           PREMIUM FEATURE LOCK STYLING - For Tier-Based Access Control
           ═══════════════════════════════════════════════════════════════════════════ */
        .feature-locked {
            position: relative;
            pointer-events: none;
            user-select: none;
        }
        .feature-locked::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(10, 10, 20, 0.85);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            border-radius: inherit;
            z-index: 100;
        }
        .feature-locked::after {
            content: 'Upgrade to Unlock';
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
            border: 1px solid rgba(255, 215, 0, 0.4);
            border-radius: 8px;
            padding: 12px 20px;
            color: #ffd700;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            z-index: 101;
            white-space: nowrap;
            cursor: pointer;
            pointer-events: auto;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
        }
        .feature-locked:hover::after {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
            box-shadow: 0 6px 30px rgba(255, 215, 0, 0.3);
            transform: translate(-50%, -50%) scale(1.05);
        }
        /* Pro tier locked message */
        .feature-locked[data-upgrade-tier="pro"]::after {
            content: 'Professional Feature \2014 Upgrade to Unlock';
        }
        /* Legendary tier locked message */
        .feature-locked[data-upgrade-tier="legendary"]::after {
            content: 'Studio Feature \2014 Upgrade to Unlock';
            background: linear-gradient(135deg, rgba(158, 122, 40, 0.2), rgba(138, 43, 226, 0.1));
            border-color: rgba(158, 122, 40, 0.4);
            color: #9e7a28;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }
        .feature-locked[data-upgrade-tier="legendary"]:hover::after {
            background: linear-gradient(135deg, rgba(158, 122, 40, 0.3), rgba(138, 43, 226, 0.2));
            box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
        }

        /* Tier badge styling */
        .tier-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .tier-badge.free {
            background: rgba(100, 100, 100, 0.2);
            border: 1px solid rgba(100, 100, 100, 0.3);
            color: #888;
        }
        .tier-badge.pro {
            background: linear-gradient(135deg, rgba(212, 169, 78, 0.2), rgba(0, 150, 255, 0.1));
            border: 1px solid rgba(212, 169, 78, 0.4);
            color: #d4a94e;
        }
        .tier-badge.legendary {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
            border: 1px solid rgba(255, 215, 0, 0.4);
            color: #ffd700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
        }
