        /* Dark Mode (Default) */
        :root, html[data-theme="dark"] {
            --bg-dark: #0b0f19;
            --bg-surface: #131b2e;
            --bg-glass: rgba(19, 27, 46, 0.85);
            --border-glass: rgba(255, 255, 255, 0.15);
            --border-glow: rgba(99, 102, 241, 0.6);
            --primary: #6366f1;
            --primary-light: #a5b4fc;
            --secondary: #7dd3fc;
            --accent: #fda4af;
            --success: #34d399;
            --warning: #fde047;
            --text-main: #ffffff;
            --text-muted: #e2e8f0;
            --card-bg: rgba(18, 22, 31, 0.85);
            --nav-bg: rgba(10, 12, 16, 0.9);
            --code-bg: #06080c;
            --code-text: #e2e8f0;
            color-scheme: dark;
        }

        /* Light Mode Overrides */
        html[data-theme="light"] {
            --bg-dark: #f8fafc;
            --bg-surface: #ffffff;
            --bg-glass: rgba(255, 255, 255, 0.9);
            --border-glass: rgba(15, 23, 42, 0.12);
            --border-glow: rgba(79, 70, 229, 0.4);
            --primary: #4f46e5;
            --primary-light: #4338ca;
            --secondary: #0284c7;
            --accent: #e11d48;
            --success: #059669;
            --warning: #d97706;
            --text-main: #0f172a;
            --text-muted: #334155;
            --card-bg: #ffffff;
            --nav-bg: rgba(255, 255, 255, 0.92);
            --code-bg: #0f172a;
            --code-text: #f8fafc;
            color-scheme: light;
        }

        /* Comprehensive High-Contrast Light Mode Overrides */
        html[data-theme="light"] body {
            background-color: #f8fafc !important;
            color: #0f172a !important;
            background-image:
                radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
                radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.14) 0%, transparent 45%),
                radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 40%) !important;
        }

        /* All Boxes, Cards & Containers in Light Mode */
        html[data-theme="light"] .feat-card,
        html[data-theme="light"] .metric-card,
        html[data-theme="light"] .simulator-box,
        html[data-theme="light"] .csp-col-card,
        html[data-theme="light"] .cs783832733,
        html[data-theme="light"] .cs1955483710,
        html[data-theme="light"] .cs319158805,
        html[data-theme="light"] .cs696486755,
        html[data-theme="light"] .wiz-step,
        html[data-theme="light"] .dl-modal,
        html[data-theme="light"] .dl-plan,
        html[data-theme="light"] .flow-node,
        html[data-theme="light"] .flow-diagram,
        html[data-theme="light"] .calc-section,
        html[data-theme="light"] .cs1026800618,
        html[data-theme="light"] .cs1227094561,
        html[data-theme="light"] .grid-2 > div,
        html[data-theme="light"] .card-flex,
        html[data-theme="light"] .markdown-body blockquote,
        html[data-theme="light"] .res-box:not(.cs1371702741),
        html[data-theme="light"] .arch-option {
            background: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
            color: #0f172a !important;
        }

        /* All Headings & Bold Text inside Light Mode Boxes */
        html[data-theme="light"] h1,
        html[data-theme="light"] h2,
        html[data-theme="light"] h3,
        html[data-theme="light"] h4,
        html[data-theme="light"] h5,
        html[data-theme="light"] .feat-card h3,
        html[data-theme="light"] .csp-compat-title,
        html[data-theme="light"] .cs1141584699,
        html[data-theme="light"] .cs823629926,
        html[data-theme="light"] .cs1510978808,
        html[data-theme="light"] .cs2022298940,
        html[data-theme="light"] .cs2028353573,
        html[data-theme="light"] .cs1802545781,
        html[data-theme="light"] .cs2040879211,
        html[data-theme="light"] .wiz-step-title,
        html[data-theme="light"] .dl-hero-title,
        html[data-theme="light"] .dl-plan-name,
        html[data-theme="light"] .dl-modal h3,
        html[data-theme="light"] .cs94802521,
        html[data-theme="light"] .hero h1,
        html[data-theme="light"] .section-title,
        html[data-theme="light"] .flow-node span,
        html[data-theme="light"] .csp-col-card h4:not(.blocked):not(.allowed) {
            color: #0f172a !important;
        }

        /* All Body Text, Subtitles & Descriptions in Light Mode */
        html[data-theme="light"] p,
        html[data-theme="light"] li,
        html[data-theme="light"] span:not(nav span):not(.nav-dropdown-label):not(.nav-dropdown-arrow):not(.nav-dropdown-title):not(.nav-dropdown-desc):not(.calc-contact-btn span):not(.csp-code-block span):not(.code-preview span):not(.wiz-code span):not([class*="tag"]):not([class*="attr"]):not([class*="val"]):not([class*="bad"]):not([class*="comment"]):not([class*="code-"]):not([class*="c-"]):not(.badge-text):not(.metric-val):not(.stat-num):not(.chip-icon),
        html[data-theme="light"] .feat-card p,
        html[data-theme="light"] .section-sub,
        html[data-theme="light"] .csp-compat-desc,
        html[data-theme="light"] .metric-label,
        html[data-theme="light"] .cs621310833,
        html[data-theme="light"] .cs1802330632,
        html[data-theme="light"] .cs918556458,
        html[data-theme="light"] .cs1833596196,
        html[data-theme="light"] .hero p,
        html[data-theme="light"] .flow-arrow {
            color: #1e293b !important;
        }

        /* Logo — the nav bar stays dark in both themes (see "Always Dark
           Navigation Bar" below), so the logo must not pick up the generic
           light-mode span rule above, which would render it near-black on
           near-black and make it disappear. */
        .logo-edge, .cs2046432795 { font-weight: 400 !important; color: #818cf8 !important; }
        .logo-nonce, .cs1527010061 { font-weight: 400 !important; color: #22d3ee !important; }
        .nav-btn-dashboard, .cs375202326 { background: rgba(16,185,129,0.15) !important; border: 1px solid rgba(16,185,129,0.3) !important; color: #10b981 !important; padding: 0.4rem 1rem !important; border-radius: 6px !important; font-weight: 600 !important; text-decoration: none !important; }
        html[data-theme="light"] .cs2046432795, html[data-theme="light"] .logo-edge { color: #818cf8 !important; }
        html[data-theme="light"] .cs1527010061, html[data-theme="light"] .logo-nonce { color: #22d3ee !important; }

        /* Metric Values in Light Mode */
        html[data-theme="light"] .metric-val {
            color: #0f172a !important;
        }
        html[data-theme="light"] .metric-val.green { color: #047857 !important; }
        html[data-theme="light"] .metric-val.blue { color: #0284c7 !important; }
        html[data-theme="light"] .metric-val.purple { color: #4338ca !important; }

        /* Pricing Calculator "Compute Saved" figure — bright sky-blue is unreadable on light cards */
        html[data-theme="light"] .cs347071446 { color: #0369a1 !important; }

        /* Category Badges & Hero Pills in Light Mode */
        html[data-theme="light"] .category-title {
            background: #e0e7ff !important;
            border: 1px solid #c7d2fe !important;
            color: #3730a3 !important;
            font-weight: 800 !important;
        }

        html[data-theme="light"] .hero-pill {
            background: #f1f5f9 !important;
            border: 1px solid #cbd5e1 !important;
            color: #0284c7 !important;
            font-weight: 700 !important;
        }

        /* Interactive Simulator Buttons in Light Mode */
        html[data-theme="light"] .sim-btn {
            background: #f1f5f9 !important;
            border: 1px solid #cbd5e1 !important;
            color: #334155 !important;
        }
        html[data-theme="light"] .sim-btn.active {
            background: #4f46e5 !important;
            color: #ffffff !important;
            border-color: #4338ca !important;
            box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2) !important;
        }

        /* Hero Banner in Light Mode */
        html[data-theme="light"] .csp-compat-hero {
            background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 100%) !important;
            border: 1px solid #c7d2fe !important;
        }

        /* Download Stats & Wizard Subtitles in Light Mode */
        html[data-theme="light"] .dl-stat-num {
            color: #0f172a !important;
        }
        html[data-theme="light"] .dl-stat-lbl,
        html[data-theme="light"] .wiz-step-sub {
            color: #334155 !important;
        }

        /* Code Preview Boxes in Light Mode - High Contrast Dark Code Block */
        html[data-theme="light"] .csp-code-block,
        html[data-theme="light"] .code-preview,
        html[data-theme="light"] .wiz-code {
            background: #0b1120 !important;
            color: #f8fafc !important;
            border: 1px solid #1e293b !important;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45) !important;
        }

        html[data-theme="light"] .code-comment,
        html[data-theme="light"] .wiz-code .c-comment,
        html[data-theme="light"] .csp-code-block .comment {
            color: #94a3b8 !important;
        }
        html[data-theme="light"] .code-tag,
        html[data-theme="light"] .wiz-code .c-tag,
        html[data-theme="light"] .csp-code-block .tag {
            color: #38bdf8 !important;
            font-weight: 600 !important;
        }
        html[data-theme="light"] .code-attr,
        html[data-theme="light"] .wiz-code .c-attr,
        html[data-theme="light"] .csp-code-block .attr {
            color: #c4b5fd !important;
        }
        html[data-theme="light"] .code-val,
        html[data-theme="light"] .wiz-code .c-val,
        html[data-theme="light"] .csp-code-block .val {
            color: #34d399 !important;
            font-weight: 600 !important;
        }
        html[data-theme="light"] .csp-code-block .bad {
            color: #fca5a5 !important;
            background: rgba(239, 68, 68, 0.25) !important;
            padding: 0.1rem 0.35rem !important;
            border-radius: 4px !important;
            text-decoration: line-through !important;
            text-decoration-color: #ef4444 !important;
        }

        html[data-theme="light"] .csp-chip {
            background: #f1f5f9 !important;
            border: 1px solid #cbd5e1 !important;
            color: #1e293b !important;
        }

        html[data-theme="light"] .gradient-text {
            background: linear-gradient(135deg, #4338ca 0%, #0284c7 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
        }

        /* CSP-Compat Hero Widgets — dark-mode "light" accent colors read as near-invisible
           on the light pastel hero background, so give them darker light-mode equivalents. */
        html[data-theme="light"] .csp-badge-new { background: rgba(99,102,241,.12) !important; color: #4338ca !important; border-color: rgba(99,102,241,.35) !important; }
        html[data-theme="light"] .csp-badge-ie11 { background: rgba(217,119,6,.12) !important; color: #92400e !important; border-color: rgba(217,119,6,.35) !important; }
        html[data-theme="light"] .csp-badge-perf { background: rgba(5,150,105,.12) !important; color: #047857 !important; border-color: rgba(5,150,105,.35) !important; }
        html[data-theme="light"] .csp-badge-free { background: rgba(2,132,199,.12) !important; color: #0369a1 !important; border-color: rgba(2,132,199,.35) !important; }
        html[data-theme="light"] .csp-version-tag { background: rgba(99,102,241,.12) !important; color: #4338ca !important; border-color: rgba(99,102,241,.35) !important; }

        html[data-theme="light"] .csp-cdn-bar { background: #ffffff !important; border-color: rgba(99,102,241,.3) !important; }
        html[data-theme="light"] .csp-cdn-label { color: #4338ca !important; }
        html[data-theme="light"] .csp-cdn-url { color: #0369a1 !important; }
        html[data-theme="light"] .csp-copy-btn { background: rgba(99,102,241,.12) !important; color: #4338ca !important; border-color: rgba(99,102,241,.45) !important; }
        html[data-theme="light"] .csp-copy-btn:hover { background: rgba(99,102,241,.22) !important; }
        html[data-theme="light"] .csp-btn-dev { background: rgba(217,119,6,.12) !important; color: #92400e !important; border-color: rgba(217,119,6,.4) !important; }

        html[data-theme="light"] .csp-col-card {
            background: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        }
        html[data-theme="light"] .csp-col-card h4.blocked {
            color: #dc2626 !important;
            font-weight: 700 !important;
        }
        html[data-theme="light"] .csp-col-card h4.allowed {
            color: #047857 !important;
            font-weight: 700 !important;
        }
        html[data-theme="light"] .csp-btn-docs {
            background: #ffffff !important;
            color: #334155 !important;
            border: 1px solid #cbd5e1 !important;
        }
        html[data-theme="light"] .csp-btn-docs:hover {
            background: #f1f5f9 !important;
            color: #0f172a !important;
        }

        /* ── Enterprise Legal Terms & Privacy Policy ────────────────────────── */
        #terms-legal {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 3.5rem;
            margin-top: 4rem;
            margin-bottom: 2.5rem;
        }

        html[data-theme="light"] #terms-legal {
            border-top: 1px solid #e2e8f0 !important;
        }

        .terms-legal-box {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            color: var(--text-muted);
            padding: 0.5rem 0 1rem 0 !important;
        }

        .terms-legal-box h3 {
            color: #ffffff;
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 1.2rem;
            letter-spacing: -0.02em;
        }

        .terms-legal-box h4 {
            color: #818cf8;
            font-size: 1.08rem;
            font-weight: 600;
            margin-top: 1.8rem;
            margin-bottom: 0.5rem;
        }

        .terms-legal-box p {
            color: var(--text-muted);
            line-height: 1.75;
            margin-bottom: 1.2rem;
        }

        .terms-legal-box a {
            color: #818cf8;
            font-weight: 600;
            text-decoration: underline;
        }

        .terms-legal-box a:hover {
            color: #a5b4fc;
        }

        html[data-theme="light"] .terms-legal-box {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            color: #334155 !important;
        }

        html[data-theme="light"] .terms-legal-box h3 {
            color: #0f172a !important;
        }

        html[data-theme="light"] .terms-legal-box h4 {
            color: #4338ca !important;
        }

        html[data-theme="light"] .terms-legal-box p {
            color: #334155 !important;
        }

        html[data-theme="light"] .terms-legal-box a {
            color: #4338ca !important;
        }

        html[data-theme="light"] .terms-legal-box a:hover {
            color: #312e81 !important;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :focus-visible {
            outline: 3px solid var(--secondary) !important;
            outline-offset: 3px !important;
            border-radius: 4px;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
            background-attachment: fixed;
        }

        /* Always Dark Navigation Bar in both modes for logo visibility */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            backdrop-filter: blur(16px);
            background: rgba(10, 12, 16, 0.92) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        nav .nav-links a {
            color: #cbd5e1 !important;
        }

        nav .nav-links a:hover, nav .nav-links a.active {
            color: #ffffff !important;
        }

        .theme-select {
            background: rgba(19, 27, 46, 0.95) !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            color: #ffffff !important;
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            font-family: inherit;
            transition: border-color 0.2s, background 0.2s;
        }

        .theme-select:hover {
            border-color: #818cf8 !important;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            letter-spacing: -0.5px;
        }

        .logo a, .logo a:hover, .logo a:focus, .logo a:active, .logo a:visited {
            text-decoration: none !important;
            border-bottom: none !important;
            color: inherit;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .logo-badge {
            font-size: 0.7rem;
            background: rgba(99, 102, 241, 0.2);
            color: var(--primary-light);
            padding: 0.2rem 0.6rem;
            border-radius: 100px;
            border: 1px solid rgba(99, 102, 241, 0.3);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--text-main);
        }

        /* ═══════════════════════════════════════════════════════════════════════
           TOP NAVIGATION DROPDOWN MENU
           Note: The navigation bar is ALWAYS dark (rgba(10, 12, 16, 0.92))
           in ALL themes (both dark & light modes). All nav buttons, text,
           labels, and arrows MUST maintain bright, high-contrast colors!
           ═══════════════════════════════════════════════════════════════════════ */
        .nav-dropdown {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        /* Nav Dropdown Button — Base Style (Always Dark Navbar) */
        nav .nav-dropdown-btn,
        .nav-dropdown-btn {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: #f1f5f9 !important;
            font-size: 0.92rem;
            font-weight: 600;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            cursor: pointer;
            padding: 0.42rem 0.85rem;
            border-radius: 8px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            outline: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        /* Child Spans & Labels inside Nav Dropdown Button */
        nav .nav-dropdown-btn span,
        nav .nav-dropdown-btn .nav-dropdown-label,
        .nav-dropdown-btn span,
        .nav-dropdown-btn .nav-dropdown-label,
        html[data-theme="light"] nav .nav-dropdown-btn,
        html[data-theme="light"] nav .nav-dropdown-btn span,
        html[data-theme="light"] nav .nav-dropdown-btn .nav-dropdown-label,
        html[data-theme="dark"] nav .nav-dropdown-btn,
        html[data-theme="dark"] nav .nav-dropdown-btn span,
        html[data-theme="dark"] nav .nav-dropdown-btn .nav-dropdown-label {
            color: #f1f5f9 !important;
            font-weight: 600;
            display: inline-block;
        }

        /* Hover & Open States for Nav Dropdown Button */
        nav .nav-dropdown-btn:hover,
        nav .nav-dropdown:hover .nav-dropdown-btn,
        nav .nav-dropdown.open .nav-dropdown-btn,
        .nav-dropdown-btn:hover,
        .nav-dropdown:hover .nav-dropdown-btn,
        .nav-dropdown.open .nav-dropdown-btn,
        html[data-theme="light"] nav .nav-dropdown-btn:hover,
        html[data-theme="light"] nav .nav-dropdown:hover .nav-dropdown-btn,
        html[data-theme="light"] nav .nav-dropdown.open .nav-dropdown-btn {
            background: rgba(99, 102, 241, 0.22) !important;
            border-color: rgba(99, 102, 241, 0.55) !important;
            color: #ffffff !important;
            box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
        }

        nav .nav-dropdown-btn:hover span,
        nav .nav-dropdown:hover .nav-dropdown-btn span,
        nav .nav-dropdown.open .nav-dropdown-btn span,
        nav .nav-dropdown-btn:hover .nav-dropdown-label,
        nav .nav-dropdown:hover .nav-dropdown-btn .nav-dropdown-label,
        nav .nav-dropdown.open .nav-dropdown-btn .nav-dropdown-label,
        html[data-theme="light"] nav .nav-dropdown-btn:hover span,
        html[data-theme="light"] nav .nav-dropdown:hover .nav-dropdown-btn span,
        html[data-theme="light"] nav .nav-dropdown.open .nav-dropdown-btn span,
        html[data-theme="light"] nav .nav-dropdown-btn:hover .nav-dropdown-label,
        html[data-theme="light"] nav .nav-dropdown:hover .nav-dropdown-btn .nav-dropdown-label,
        html[data-theme="light"] nav .nav-dropdown.open .nav-dropdown-btn .nav-dropdown-label {
            color: #ffffff !important;
        }

        /* Active Integration Page Indicator on Button */
        nav .nav-dropdown-btn.active,
        nav .nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-btn,
        html[data-theme="light"] nav .nav-dropdown-btn.active,
        html[data-theme="light"] nav .nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-btn {
            background: rgba(99, 102, 241, 0.2) !important;
            border-color: rgba(129, 140, 248, 0.6) !important;
            color: #c7d2fe !important;
        }

        nav .nav-dropdown-btn.active span,
        nav .nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-btn span,
        html[data-theme="light"] nav .nav-dropdown-btn.active span,
        html[data-theme="light"] nav .nav-dropdown:has(.nav-dropdown-item.active) .nav-dropdown-btn span {
            color: #c7d2fe !important;
        }

        /* Dropdown Arrow Indicator */
        .nav-dropdown-arrow,
        nav .nav-dropdown-arrow,
        nav .nav-dropdown-btn .nav-dropdown-arrow,
        html[data-theme="light"] nav .nav-dropdown-arrow,
        html[data-theme="light"] nav .nav-dropdown-btn .nav-dropdown-arrow,
        html[data-theme="dark"] nav .nav-dropdown-arrow,
        html[data-theme="dark"] nav .nav-dropdown-btn .nav-dropdown-arrow {
            font-size: 0.75rem;
            color: #818cf8 !important;
            transition: transform 0.25s ease, color 0.2s ease;
            opacity: 1 !important;
            display: inline-block;
            line-height: 1;
        }

        .nav-dropdown:hover .nav-dropdown-arrow,
        .nav-dropdown.open .nav-dropdown-arrow,
        nav .nav-dropdown-btn:hover .nav-dropdown-arrow,
        html[data-theme="light"] nav .nav-dropdown:hover .nav-dropdown-arrow,
        html[data-theme="light"] nav .nav-dropdown.open .nav-dropdown-arrow,
        html[data-theme="light"] nav .nav-dropdown-btn:hover .nav-dropdown-arrow {
            transform: rotate(180deg);
            color: #38bdf8 !important;
        }

        /* Dropdown Flyout Menu */
        .nav-dropdown-menu {
            position: absolute;
            top: calc(100% + 0.5rem);
            left: 50%;
            transform: translateX(-50%) translateY(8px);
            min-width: 330px;
            background: rgba(15, 23, 42, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(99, 102, 241, 0.35);
            border-radius: 14px;
            padding: 0.55rem;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            z-index: 100000;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .nav-dropdown:hover .nav-dropdown-menu,
        .nav-dropdown:focus-within .nav-dropdown-menu,
        .nav-dropdown.open .nav-dropdown-menu {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }

        .nav-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -0.6rem;
            left: 0;
            right: 0;
            height: 0.6rem;
        }

        /* Dropdown Items (Dark Mode default) */
        .nav-dropdown-item {
            display: flex !important;
            align-items: center;
            gap: 0.85rem;
            padding: 0.7rem 0.95rem;
            border-radius: 10px;
            text-decoration: none !important;
            transition: background 0.15s ease, transform 0.15s ease;
            color: #e2e8f0 !important;
        }

        .nav-dropdown-item:hover {
            background: rgba(99, 102, 241, 0.18) !important;
            color: #ffffff !important;
            transform: translateX(3px);
        }

        .nav-dropdown-item.active {
            background: rgba(99, 102, 241, 0.25) !important;
            border: 1px solid rgba(129, 140, 248, 0.3);
            color: #ffffff !important;
        }

        .nav-dropdown-icon {
            font-size: 1.3rem;
            line-height: 1;
            flex-shrink: 0;
        }

        .nav-dropdown-text {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
            text-align: left;
        }

        .nav-dropdown-title {
            font-size: 0.92rem;
            font-weight: 600;
            color: #ffffff !important;
            line-height: 1.25;
        }

        .nav-dropdown-desc {
            font-size: 0.76rem;
            color: #94a3b8 !important;
            line-height: 1.3;
        }

        .nav-dropdown-item:hover .nav-dropdown-desc {
            color: #cbd5e1 !important;
        }

        .nav-dropdown-item.active .nav-dropdown-title {
            color: #a5b4fc !important;
        }

        /* Dropdown Menu in Light Mode */
        html[data-theme="light"] .nav-dropdown-menu {
            background: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 0 20px rgba(79, 70, 229, 0.1) !important;
        }

        html[data-theme="light"] .nav-dropdown-item {
            color: #0f172a !important;
        }

        html[data-theme="light"] .nav-dropdown-item:hover {
            background: rgba(99, 102, 241, 0.08) !important;
            transform: translateX(3px);
        }

        html[data-theme="light"] .nav-dropdown-item.active {
            background: rgba(99, 102, 241, 0.12) !important;
            border: 1px solid rgba(99, 102, 241, 0.25);
        }

        html[data-theme="light"] .nav-dropdown-title,
        html[data-theme="light"] .nav-dropdown-item .nav-dropdown-title {
            color: #0f172a !important;
            font-weight: 600;
        }

        html[data-theme="light"] .nav-dropdown-desc,
        html[data-theme="light"] .nav-dropdown-item .nav-dropdown-desc {
            color: #475569 !important;
        }

        html[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-title {
            color: #4338ca !important;
        }

        html[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-desc {
            color: #1e293b !important;
        }

        html[data-theme="light"] .nav-dropdown-item.active .nav-dropdown-title {
            color: #4338ca !important;
        }

        .btn-gh {
            background: linear-gradient(135deg, var(--primary), #4f46e5);
            color: white !important;
            padding: 0.6rem 1.4rem;
            border-radius: 8px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
            transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        }

        .btn-gh:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
        }

        /* Hero Section */
        .hero {
            padding: 7rem 2rem 3rem;
            max-width: 1320px;
            margin: 0 auto;
            text-align: center;
        }

        .hero-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--bg-glass);
            border: 1px solid var(--border-glass);
            padding: 0.4rem 1rem;
            border-radius: 100px;
            font-size: 0.85rem;
            color: var(--secondary);
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        }

        .hero-pill .pulse {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success);
            box-shadow: 0 0 6px var(--success);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(0.95); opacity: 1; }
            50% { transform: scale(1.3); opacity: 0.7; }
            100% { transform: scale(0.95); opacity: 1; }
        }

        .hero h1 {
            font-size: 3.2rem;
            font-weight: 700;
            line-height: 1.18;
            margin-bottom: 1.5rem;
            letter-spacing: -0.5px;
        }

        .gradient-text {
            background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #2dd4bf 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p {
            font-size: 1.25rem;
            color: var(--text-muted);
            max-width: 750px;
            margin: 0 auto 3rem;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            max-width: 900px;
            margin: 0 auto 4rem;
        }

        .metric-card {
            background: var(--bg-glass);
            border: 1px solid var(--border-glass);
            border-radius: 16px;
            padding: 1.8rem;
            backdrop-filter: blur(12px);
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .metric-card:hover {
            transform: translateY(-3px);
            border-color: var(--border-glow);
        }

        .metric-val {
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 0.2rem;
        }

        .metric-val.green { color: var(--success); }
        .metric-val.blue { color: var(--secondary); }
        .metric-val.purple { color: var(--primary-light); }

        .metric-label {
            font-size: 0.95rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Interactive Simulator Section */
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .section-sub {
            text-align: center;
            color: var(--text-muted);
            max-width: 650px;
            margin: 0 auto 3rem;
            font-size: 1.1rem;
        }

        .simulator-box {
            max-width: 1320px;
            margin: 0 auto 3rem;
            background: var(--bg-surface);
            border: 1px solid var(--border-glass);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 0 10px 28px rgba(0,0,0,0.32);
        }

        .sim-toggle {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2.5rem;
        }

        .sim-btn {
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--border-glass);
            color: var(--text-muted);
            padding: 0.8rem 1.8rem;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .sim-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary-light);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .sim-display {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .flow-diagram {
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--border-glass);
            border-radius: 14px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
        }

        .flow-node {
            background: var(--bg-glass);
            border: 1px solid var(--border-glass);
            border-radius: 10px;
            padding: 1rem 1.2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .flow-node.active-node {
            border-color: var(--secondary);
            box-shadow: 0 0 8px rgba(6, 182, 212, 0.15);
        }

        .flow-arrow {
            text-align: center;
            color: var(--text-muted);
            font-size: 1.2rem;
        }

        .code-preview {
            background: #06080c;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            padding: 1.5rem;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            color: #d1d5db;
            overflow-x: auto;
        }

        .code-comment { color: #6b7280; }
        .code-tag { color: #f43f5e; }
        .code-attr { color: #38bdf8; }
        .code-val { color: #10b981; font-weight: bold; }
        .code-highlight {
            background: rgba(16, 185, 129, 0.15);
            padding: 0.1rem 0.3rem;
            border-radius: 4px;
            border: 1px dashed var(--success);
        }

        /* Google-Style Clean Spacious Container & Features Grid */
        .page-container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.8rem;
            max-width: 1320px;
            margin: 0 auto 3.5rem;
        }

        .feat-card {
            background: rgba(18, 22, 31, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 2.2rem;
            backdrop-filter: blur(12px);
            transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 2px 12px rgba(0,0,0,0.18);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .feat-card:hover {
            border-color: rgba(99, 102, 241, 0.35);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.28);
        }

        .feat-icon {
            font-size: 2.2rem;
            margin-bottom: 1rem;
            display: inline-block;
        }

        .feat-card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.6rem;
            color: #fff;
            letter-spacing: -0.3px;
        }

        .feat-card p {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.6;
        }

        /* Cost Calculator */
        .calc-section {
            max-width: 900px;
            margin: 0 auto 6rem;
            background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(6,182,212,0.08) 100%);
            border: 1px solid rgba(99,102,241,0.3);
            border-radius: 20px;
            padding: 3rem;
        }

        .calc-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .calc-slider-box {
            margin-bottom: 2.5rem;
        }

        .calc-slider-box label {
            display: flex;
            justify-content: space-between;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        input[type="range"] {
            width: 100%;
            height: 8px;
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
            outline: none;
            -webkit-appearance: none;
        }

        /* The faint white track is invisible on the light-mode calculator
           card, which is white — give it a visible neutral track instead. */
        html[data-theme="light"] input[type="range"] {
            background: #cbd5e1 !important;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--secondary);
            cursor: pointer;
            box-shadow: 0 0 15px var(--secondary);
        }

        .calc-results {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            text-align: center;
        }

        .res-box {
            background: rgba(0,0,0,0.35);
            border: 1px solid var(--border-glass);
            border-radius: 12px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .res-box h4 {
            color: var(--text-muted);
            font-size: 0.88rem;
            margin-bottom: 0.6rem;
        }

        .res-num {
            font-size: 1.9rem;
            font-weight: 800;
        }

        .calc-contact-box {
            margin-top: 2rem;
            padding: 1.35rem 1.75rem;
            background: rgba(15, 23, 42, 0.65);
            border: 1px solid rgba(99, 102, 241, 0.35);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.2rem;
            flex-wrap: wrap;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        }

        .calc-contact-text {
            font-size: 0.92rem;
            color: #cbd5e1;
            line-height: 1.55;
            flex: 1 1 320px;
        }

        .calc-contact-text strong {
            color: #ffffff;
            font-size: 1rem;
        }

        .calc-contact-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
            border: 1px solid rgba(129, 140, 248, 0.5);
            color: #ffffff !important;
            padding: 0.7rem 1.45rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.92rem;
            text-decoration: none;
            box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4);
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            white-space: nowrap;
        }

        .calc-contact-btn span,
        .calc-contact-btn *,
        html[data-theme="light"] .calc-contact-btn,
        html[data-theme="light"] .calc-contact-btn span,
        html[data-theme="light"] .calc-contact-btn *,
        html[data-theme="dark"] .calc-contact-btn,
        html[data-theme="dark"] .calc-contact-btn span {
            color: #ffffff !important;
            font-weight: 600;
        }

        .calc-contact-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(79, 70, 229, 0.55);
            background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
            color: #ffffff !important;
        }

        .calc-contact-btn:hover span {
            color: #ffffff !important;
        }

        html[data-theme="light"] .calc-contact-box {
            background: #ffffff !important;
            border: 1px solid #cbd5e1 !important;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
        }

        html[data-theme="light"] .calc-contact-text strong {
            color: #0f172a !important;
        }

        html[data-theme="light"] .calc-contact-text {
            color: #475569 !important;
        }

        html[data-theme="light"] .calc-contact-btn {
            background: #3730a3 !important;
            border: 1px solid #1e1b4b !important;
            box-shadow: 0 3px 12px rgba(49, 46, 129, 0.28) !important;
            color: #ffffff !important;
        }

        html[data-theme="light"] .calc-contact-btn:hover {
            background: #1e1b4b !important;
            box-shadow: 0 6px 18px rgba(30, 27, 75, 0.38) !important;
            color: #ffffff !important;
        }

        /* Responsive Grid Utilities */
        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            align-items: stretch;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            align-items: stretch;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            align-items: stretch;
        }

        .card-flex {
            background: var(--bg-surface);
            border: 1px solid var(--border-glass);
            border-radius: 16px;
            padding: 1.8rem;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            height: 100%;
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--border-glass);
            padding: 3rem 5%;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        @media (max-width: 1024px) {
            .grid-4, .calc-results { grid-template-columns: repeat(2, 1fr); }
            .grid-3 { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 2.3rem; }
            .metrics-grid, .sim-display, .features-grid, .calc-results, .grid-4, .grid-3, .grid-2 {
                grid-template-columns: 1fr !important;
            }
            nav {
                padding: 0.6rem 1.2rem;
            }
            .logo {
                font-size: 1.3rem;
            }
        }

/* ── AI Chatbot Widget ────────────────────────────────────────────── */
.ai-chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.36);
}

.ai-online-dot {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
}

.ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 18px rgba(99, 102, 241, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ai-chat-avatar {
    font-size: 1.4rem;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 0.3rem 0.5rem;
}

.ai-chat-title h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

/* The chat panel stays dark in both themes; the global light-mode heading
   override would otherwise force this h4 to near-black on a dark header. */
html[data-theme="light"] .ai-chat-title h4 {
    color: #fff !important;
}

.ai-status-text {
    font-size: 0.72rem;
    color: #34d399;
}

.ai-chat-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.ai-chat-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.ai-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ai-msg {
    display: flex;
    max-width: 85%;
}

.ai-msg-bot {
    align-self: flex-start;
}

.ai-msg-user {
    align-self: flex-end;
}

.ai-msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.ai-msg-bot .ai-msg-bubble {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-top-left-radius: 4px;
}

.ai-msg-user .ai-msg-bubble {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border-top-right-radius: 4px;
}

.ai-msg-bubble.loading {
    color: #7dd3fc;
    font-style: italic;
}

.ai-chat-suggestions {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.ai-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.4);
}

.ai-chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-input-row input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}

.ai-chat-input-row button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}

/* Category Headers for Feature Grid */
.category-title {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 3.5rem 0 1.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }
    .hero {
        padding: 6.5rem 1.5rem 4rem;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .features-grid, .sim-display, .metrics-grid, .cs1058138334 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .feat-card, .metric-card, .simulator-box, .cs1955483710, .csp-compat-hero {
        padding: 1.8rem 1.4rem !important;
    }
    .nav-links {
        display: none;
    }
    .theme-select {
        display: none !important;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 12, 16, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
        gap: 1rem;
        box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    }
    .mobile-nav-toggle {
        display: block !important;
        background: transparent;
        border: 1px solid var(--border-glass);
        color: #fff;
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        cursor: pointer;
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0.85rem;
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        border-radius: 8px;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
        margin-top: 0.4rem;
        margin-bottom: 0.4rem;
        padding: 0.4rem;
        min-width: unset;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
    }
}

.mobile-nav-toggle {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   EDGE COOKIE CONSENT & PRIVACY CONTROLS (GDPR / CCPA / W3C CSP)
   ═══════════════════════════════════════════════════════════════════════ */

/* Floating Bottom Consent Banner */
.edge-cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 99990;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 30px rgba(99, 102, 241, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.edge-cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.edge-cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.edge-cookie-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    flex: 1 1 500px;
}

.edge-cookie-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.edge-cookie-banner-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.01em;
}

.edge-cookie-banner-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.edge-cookie-banner-desc strong {
    color: var(--secondary);
}

.edge-cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Button Variants */
.edge-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    white-space: nowrap;
}

.edge-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.edge-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.edge-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.edge-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.edge-btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.edge-btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--secondary);
}

/* Detailed Cookie Preferences Modal */
dialog#edge-cookie-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 90%;
    max-width: 820px;
    max-height: 90vh;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: var(--text-main);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(99, 102, 241, 0.2);
    overscroll-behavior: contain;
    z-index: 99995;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

dialog#edge-cookie-modal.visible {
    opacity: 1;
    transform: scale(1);
}

dialog#edge-cookie-modal::backdrop {
    background: rgba(4, 7, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.edge-cookie-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.edge-cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.edge-cookie-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.edge-cookie-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.edge-cookie-badge-gdpr {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edge-cookie-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.edge-cookie-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.edge-cookie-modal-body {
    padding: 1.8rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
}

.edge-cookie-intro-notice {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.edge-cookie-intro-notice strong {
    color: var(--primary-light);
}

.edge-cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.edge-cookie-category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    transition: border-color 0.2s;
}

.edge-cookie-category-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.edge-cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.edge-cookie-category-info {
    flex: 1 1 auto;
}

.edge-cookie-title-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.edge-cookie-title-row h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.edge-cookie-tag-essential {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.edge-cookie-tag-opt {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.edge-cookie-category-info p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
}

.edge-inline-code {
    background: rgba(0, 0, 0, 0.4);
    color: #38bdf8;
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
}

/* Custom Accessible Toggle Switch */
.edge-cookie-toggle-wrap {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.edge-cookie-toggle-wrap input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.edge-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.25s;
    border-radius: 34px;
}

.edge-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.edge-cookie-toggle-wrap input:checked + .edge-toggle-slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.edge-cookie-toggle-wrap input:focus-visible + .edge-toggle-slider {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.edge-cookie-toggle-wrap input:checked + .edge-toggle-slider:before {
    transform: translateX(22px);
}

.edge-cookie-toggle-wrap input:disabled + .edge-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cookie Audit Disclosure Details & Table */
.edge-cookie-audit-details {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
}

.edge-cookie-audit-summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    user-select: none;
    outline: none;
}

.edge-cookie-audit-summary:hover {
    color: #fff;
}

.edge-cookie-table-scroll {
    overflow-x: auto;
    margin-top: 1rem;
}

.edge-cookie-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.edge-cookie-audit-table th {
    padding: 0.6rem 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.edge-cookie-audit-table td {
    padding: 0.7rem 0.8rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.edge-cookie-audit-table code {
    font-family: 'Fira Code', monospace;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.edge-cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 1rem;
}

.edge-cookie-legal-link {
    font-size: 0.84rem;
    color: var(--text-muted);
    text-decoration: underline;
}

.edge-cookie-legal-link:hover {
    color: var(--secondary);
}

.edge-cookie-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Floating Bottom-Left Trigger Button */
.edge-cookie-trigger-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 99980;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--text-muted);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.edge-cookie-trigger-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.edge-cookie-trigger-icon {
    font-size: 1rem;
}

/* ── Light Mode Adaptations ───────────────────────────────────────── */
html[data-theme="light"] .edge-cookie-banner {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15), 0 0 30px rgba(79, 70, 229, 0.1) !important;
}

html[data-theme="light"] .edge-cookie-banner-title {
    color: #0f172a !important;
}

html[data-theme="light"] .edge-cookie-banner-desc {
    color: #475569 !important;
}

html[data-theme="light"] .edge-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .edge-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .edge-btn-outline {
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1px solid #0284c7 !important;
}

html[data-theme="light"] .edge-btn-outline:hover {
    background: rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] dialog#edge-cookie-modal {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] dialog#edge-cookie-modal::backdrop {
    background: rgba(15, 23, 42, 0.4) !important;
}

html[data-theme="light"] .edge-cookie-modal-title {
    color: #0f172a !important;
}

html[data-theme="light"] .edge-cookie-modal-header,
html[data-theme="light"] .edge-cookie-modal-footer {
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .edge-cookie-close-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}

html[data-theme="light"] .edge-cookie-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .edge-cookie-intro-notice {
    background: rgba(79, 70, 229, 0.06) !important;
    border-color: rgba(79, 70, 229, 0.2) !important;
    color: #334155 !important;
}

html[data-theme="light"] .edge-cookie-category-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .edge-cookie-category-card:hover {
    border-color: var(--primary) !important;
}

html[data-theme="light"] .edge-cookie-title-row h4 {
    color: #0f172a !important;
}

html[data-theme="light"] .edge-cookie-category-info p {
    color: #475569 !important;
}

html[data-theme="light"] .edge-inline-code {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
}

html[data-theme="light"] .edge-toggle-slider {
    background-color: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}

html[data-theme="light"] .edge-cookie-audit-details {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .edge-cookie-audit-table th {
    color: #475569 !important;
    border-bottom-color: #cbd5e1 !important;
}

html[data-theme="light"] .edge-cookie-audit-table td {
    color: #1e293b !important;
    border-bottom-color: #f1f5f9 !important;
}

html[data-theme="light"] .edge-cookie-trigger-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .edge-cookie-trigger-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Mobile Responsiveness for Cookie Components */
@media (max-width: 768px) {
    .edge-cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.2rem;
    }

    .edge-cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .edge-cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .edge-cookie-banner-actions .edge-btn {
        width: 100%;
        text-align: center;
    }

    dialog#edge-cookie-modal {
        width: 95%;
        max-height: 94vh;
    }

    .edge-cookie-modal-header,
    .edge-cookie-modal-body,
    .edge-cookie-modal-footer {
        padding: 1.2rem;
    }

    .edge-cookie-footer-actions {
        width: 100%;
        flex-direction: column;
    }

    .edge-cookie-footer-actions .edge-btn {
        width: 100%;
        text-align: center;
    }

    .edge-cookie-trigger-btn .edge-cookie-trigger-label {
        display: none;
    }

    .edge-cookie-trigger-btn {
        padding: 0.6rem;
        border-radius: 50%;
    }
}



