
        :root {
            --bg: #050811;
            --bg-surface: #0a0f1d;
            --bg-card: rgba(14, 21, 38, 0.82);
            --bg-card-hover: rgba(26, 36, 61, 0.92);
            --surface-border: rgba(99, 102, 241, 0.22);
            --border-subtle: rgba(255, 255, 255, 0.08);
            
            --gold: #f59e0b;
            --gold-light: #fbbf24;
            --gold-glow: rgba(245, 158, 11, 0.25);
            
            --indigo: #6366f1;
            --indigo-light: #818cf8;
            --indigo-glow: rgba(99, 102, 241, 0.3);
            
            --emerald: #10b981;
            --emerald-light: #34d399;
            --emerald-glow: rgba(16, 185, 129, 0.25);
            
            --cyan: #06b6d4;
            --purple: #a855f7;
            --red: #ef4444;
            --red-light: #f87171;
            
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            
            --radius-xl: 22px;
            --radius-lg: 16px;
            --radius-md: 12px;
            --radius-sm: 8px;
            
            --font-he: 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
        }

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

        html {
            scroll-behavior: smooth;
        }

        /* ═══ UI Craft layer (ui-skills.com principles) ═══ */
        /* Balanced headings, pretty body text */
        h1, h2, h3, h4 {
            text-wrap: balance;
        }
        p, li, .lead, .card-text {
            text-wrap: pretty;
        }
        /* Consistent focus states for keyboard users */
        :focus-visible {
            outline: 2px solid var(--gold, #f59e0b);
            outline-offset: 2px;
            border-radius: 4px;
        }
        /* Unified micro-interaction timing */
        button, a, input[type="range"], .btn-stepper, .app-view-btn, .nav-app-item {
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
        }
        button:active, .btn-stepper:active, .nav-app-item:active {
            transform: scale(0.97);
        }
        /* Stable number columns in result tables (already tabular-nums on body;
           enforce on monospace numerics too) */
        .metric-value, .result-value, .stat-number, td, .input-value-display {
            font-variant-numeric: tabular-nums;
        }
        /* Disable the press effect and smooth scroll for motion-sensitive users */
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            button:active, .btn-stepper:active, .nav-app-item:active { transform: none; }
            button, a, input[type="range"], .btn-stepper, .app-view-btn, .nav-app-item { transition: none; }
        }

        /* ═══ Design System: modern fintech, simple & calm (ui-ux-pro-max principles)
               — one accent (gold), one info (indigo), one success (emerald)
               — consistent 4px spacing scale, calmer shadows, no neon glow
               (applied via variable overrides + utility rules; no markup churn) ═══ */
        :root {
            /* Calmer borders and card surfaces */
            --surface-border: rgba(99, 102, 241, 0.14);
            --bg-card: rgba(14, 21, 38, 0.88);
            /* Toned-down glows: accent stays, neon halo goes */
            --gold-glow: rgba(245, 158, 11, 0.14);
            --indigo-glow: rgba(99, 102, 241, 0.18);
            --emerald-glow: rgba(16, 185, 129, 0.14);
        }

        /* Headings: tighter, more confident rhythm */
        h1 { letter-spacing: -0.02em; }
        h2, h3 { letter-spacing: -0.01em; }

        /* Reduce visual noise: cap decorative glow shadows */
        [class*="glow"] {
            box-shadow: none !important;
        }

        body {
            font-variant-numeric: tabular-nums;
            background-color: var(--bg);
            color: var(--text-primary);
            font-family: var(--font-he);
            line-height: 1.7;
            overflow-x: hidden;
            position: relative;
            min-height: 100vh;
        }

        /* Ambient Glow & Particles */
        #ambient-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            opacity: 0.18; /* modern & simple: barely-there texture, not a light show */
        }

        .glow-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(150px);
            opacity: 0.12;
            pointer-events: none;
            z-index: 0;
        }

        /* Modern & simple: no floating orbs, no particles on mobile */
        @media (max-width: 768px) {
            .glow-orb { display: none; }
        }

        .glow-orb.gold {
            width: 600px;
            height: 600px;
            background: var(--gold);
            top: -10%;
            right: -10%;
            animation: orbFloat 24s ease-in-out infinite;
        }

        .glow-orb.indigo {
            width: 650px;
            height: 650px;
            background: var(--indigo);
            bottom: 10%;
            left: -10%;
            animation: orbFloat 30s ease-in-out infinite reverse;
        }

        .glow-orb.emerald {
            width: 500px;
            height: 500px;
            background: var(--emerald);
            top: 45%;
            left: 30%;
            animation: orbFloat 22s ease-in-out infinite 5s;
        }

        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(50px, -70px) scale(1.08); }
            66% { transform: translate(-40px, 50px) scale(0.92); }
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 1;
        }

        /* Ecosystem Top Bar */
        .ecosystem-bar {
            background: rgba(8, 12, 22, 0.95);
            border-bottom: 1px solid rgba(245, 158, 11, 0.25);
            padding: 10px 0;
            font-size: 0.85rem;
            position: relative;
            z-index: 101;
        }

        .ecosystem-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .ecosystem-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            color: var(--gold-light);
            letter-spacing: 0.5px;
        }

        .pulse-dot {
            width: 8px;
            height: 8px;
            background: var(--emerald);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--emerald);
            display: inline-block;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.8); }
        }

        .ecosystem-pills {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .eco-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.25s ease;
        }

        .eco-pill.active {
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid var(--gold);
            color: var(--gold-light);
        }

        .eco-pill.link {
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid var(--surface-border);
            color: var(--indigo-light);
        }

        .eco-pill.link:hover {
            background: rgba(99, 102, 241, 0.25);
            border-color: var(--indigo);
            transform: translateY(-1px);
        }

        /* Navigation Header */
        nav {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(5, 8, 17, 0.9);
            backdrop-filter: blur(20px) saturate(1.8);
            border-bottom: 1px solid var(--border-subtle);
            padding: 16px 0;
        }

        .nav-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            font-family: var(--font-en);
            font-size: 1.65rem;
            font-weight: 900;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }

        .logo .shield {
            font-size: 1.5rem;
            filter: drop-shadow(0 0 10px var(--gold-glow));
        }

        .logo span.highlight {
            background: linear-gradient(135deg, var(--gold), var(--gold-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.92rem;
            font-weight: 600;
            transition: color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--gold-light);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn-lang {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-primary);
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-lang:hover {
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .btn-cta-gold {
            background: linear-gradient(135deg, var(--gold), #d97706);
            color: #050811 !important;
            font-weight: 800;
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            font-size: 0.9rem;
            box-shadow: 0 4px 16px var(--gold-glow);
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
            cursor: pointer;
        }

        .btn-cta-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
        }

        .btn-cta-tickerio {
            background: linear-gradient(135deg, var(--emerald), #059669);
            color: #fff !important;
            font-weight: 700;
            padding: 10px 18px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            font-size: 0.9rem;
            box-shadow: 0 4px 16px var(--indigo-glow);
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-cta-tickerio:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
        }

        /* Hero Section */
        .hero {
            padding: 70px 0 50px;
            position: relative;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            gap: 48px;
            align-items: center;
        }

        .hero-badge-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 30px;
            color: var(--gold-light);
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .hero h1 {
            font-size: 3.3rem;
            font-weight: 800;
            line-height: 1.18;
            margin-bottom: 20px;
            letter-spacing: -0.5px;
        }

        .gold-gradient {
            background: linear-gradient(135deg, var(--gold-light), #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .indigo-gradient {
            background: linear-gradient(135deg, var(--indigo-light), var(--emerald-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p.lead {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 28px;
            font-weight: 400;
            max-width: 640px;
        }

        .hero-ecosystem-callout {
            background: rgba(14, 21, 38, 0.75);
            border-right: 4px solid var(--gold);
            border-radius: var(--radius-sm);
            padding: 16px 20px;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        [dir="ltr"] .hero-ecosystem-callout {
            border-right: none;
            border-left: 4px solid var(--gold);
        }

        .hero-ecosystem-callout .icon {
            font-size: 1.8rem;
            flex-shrink: 0;
        }

        .hero-ecosystem-callout p {
            font-size: 0.92rem;
            color: var(--text-primary);
            margin: 0;
        }

        .hero-ecosystem-callout strong {
            color: var(--gold-light);
        }

        .hero-actions {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
        }

        /* Live Search & Filter Bar */
        .search-bar-section {
            background: rgba(10, 15, 29, 0.85);
            border-top: 1px solid var(--border-subtle);
            border-bottom: 1px solid var(--border-subtle);
            padding: 24px 0;
            position: relative;
            z-index: 10;
        }

        .search-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            max-width: 720px;
            margin: 0 auto 16px;
            position: relative;
        }

        .search-input {
            width: 100%;
            background: rgba(19, 29, 46, 0.9);
            border: 1px solid var(--surface-border);
            border-radius: 30px;
            padding: 14px 24px;
            color: #fff;
            font-family: inherit;
            font-size: 1rem;
            outline: none;
            transition: all 0.25s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .search-input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 20px var(--gold-glow);
        }

        .dir-chips-flex {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .dir-chip {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            padding: 7px 15px;
            border-radius: 20px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .dir-chip:hover {
            background: rgba(99, 102, 241, 0.15);
            border-color: var(--indigo);
            color: #fff;
            transform: translateY(-2px);
        }

        .dir-chip.active-chip {
            background: rgba(245, 158, 11, 0.18);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        /* Section Layouts */
        section {
            padding: 85px 0;
            position: relative;
        }

        .section-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .section-tag {
            display: inline-block;
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--gold-light);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }

        .section-title {
            font-size: 2.35rem;
            font-weight: 800;
            margin-bottom: 14px;
        }

        .section-subtitle {
            font-size: 1.12rem;
            color: var(--text-secondary);
            max-width: 740px;
            margin: 0 auto;
        }

        /* Enhanced Stepper & Slider Component */
        .input-group {
            margin-bottom: 22px;
            background: rgba(10, 15, 28, 0.4);
            padding: 14px 16px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.04);
            transition: border-color 0.2s ease;
        }

        .input-group:focus-within {
            border-color: rgba(245, 158, 11, 0.4);
        }

        /* Benchmark Selector & Presets Grid */
        .benchmark-selector-section {
            margin-top: 14px;
            padding: 12px 14px;
            background: rgba(6, 9, 17, 0.85);
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .benchmark-selector-title {
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--gold-light);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

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

        .bm-card-chip {
            background: rgba(19, 29, 46, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-sm);
            padding: 8px 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
        }

        .bm-card-chip:hover {
            background: rgba(99, 102, 241, 0.18);
            border-color: var(--indigo);
            transform: translateY(-1px);
        }

        .bm-card-chip.active-bm {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(16, 185, 129, 0.15));
            border-color: var(--gold);
            box-shadow: 0 0 12px var(--gold-glow);
        }

        .bm-card-chip .bm-name {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .bm-card-chip .bm-pct {
            font-family: var(--font-mono);
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--emerald-light);
            background: rgba(16, 185, 129, 0.12);
            padding: 2px 6px;
            border-radius: 4px;
        }

        .bm-info-badge {
            margin-top: 10px;
            padding: 8px 12px;
            background: rgba(10, 15, 26, 0.9);
            border-radius: 6px;
            border-right: 3px solid var(--gold);
            font-size: 0.78rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        [dir="ltr"] .bm-info-badge {
            border-right: none;
            border-left: 3px solid var(--gold);
        }

        /* Inflation Mode Switcher */
        .inflation-mode-group {
            display: flex;
            gap: 6px;
            background: rgba(10, 15, 28, 0.7);
            padding: 4px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-subtle);
            margin-bottom: 12px;
        }

        .inflation-mode-btn {
            flex: 1;
            padding: 6px 10px;
            font-size: 0.78rem;
            font-weight: 700;
            border: none;
            border-radius: 4px;
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .inflation-mode-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .inflation-mode-btn.active {
            background: var(--gold);
            color: #050811;
            font-weight: 800;
            box-shadow: 0 2px 8px var(--gold-glow);
        }

        /* Benchmark Category Navigation */
        .bm-cat-nav {
            display: flex;
            gap: 6px;
            margin-bottom: 10px;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        .bm-cat-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: var(--text-secondary);
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }

        .bm-cat-btn:hover {
            background: rgba(99, 102, 241, 0.2);
            color: #fff;
        }

        .bm-cat-btn.active {
            background: rgba(245, 158, 11, 0.2);
            border-color: var(--gold);
            color: var(--gold-light);
        }

        /* Encyclopedia Section Styles */
        .encyclopedia-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .encyclopedia-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 24px;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .encyclopedia-card:hover {
            transform: translateY(-4px);
            border-color: var(--gold);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .encyclopedia-card .card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .encyclopedia-card .symbol-tag {
            font-family: var(--font-mono);
            font-weight: 800;
            font-size: 0.8rem;
            color: var(--indigo-light);
            background: rgba(99, 102, 241, 0.15);
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid rgba(99, 102, 241, 0.3);
        }

        .encyclopedia-card .cagr-stat {
            font-family: var(--font-mono);
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--emerald-light);
        }

        .encyclopedia-card .metric-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            padding: 5px 0;
            border-bottom: 1px solid var(--border-subtle);
            color: var(--text-secondary);
        }

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

        .input-label {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .stepper-val-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-stepper {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: rgba(19, 29, 46, 0.9);
            border: 1px solid var(--surface-border);
            color: var(--text-primary);
            font-size: 1.1rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            user-select: none;
        }

        .btn-stepper:hover {
            background: var(--gold);
            color: #050811;
            border-color: var(--gold);
            transform: scale(1.08);
        }

        .btn-stepper:active {
            transform: scale(0.95);
        }

        .input-value-display {
            font-family: var(--font-mono);
            font-weight: 800;
            color: var(--gold-light);
            font-size: 1.1rem;
            min-width: 100px;
            text-align: center;
            background: rgba(5, 8, 17, 0.6);
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .range-slider {
            width: 100%;
            -webkit-appearance: none;
            appearance: none;
            height: 7px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.12);
            outline: none;
            cursor: pointer;
            margin-top: 6px;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--gold);
            box-shadow: 0 0 12px var(--gold);
            cursor: pointer;
            transition: transform 0.15s;
        }

        .range-slider::-webkit-slider-thumb:hover {
            transform: scale(1.25);
        }

        /* Preset quick chips */
        .preset-chips-row {
            display: flex;
            gap: 6px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .preset-chip {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.72rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .preset-chip:hover {
            background: rgba(245, 158, 11, 0.2);
            border-color: var(--gold);
            color: #fff;
        }

        /* Financial Command Center (Personal Financial OS) */
        .financial-os-section {
            background: linear-gradient(180deg, rgba(8, 12, 24, 0.95) 0%, rgba(4, 7, 15, 0.98) 100%);
            border-bottom: 1px solid var(--border-subtle);
            padding: 80px 0;
            position: relative;
        }

        .os-dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1.35fr;
            gap: 32px;
            align-items: start;
        }

        .os-inputs-panel {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 28px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .os-panel-title {
            font-size: 1.25rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 12px;
        }

        .os-section-subhead {
            font-size: 0.85rem;
            font-weight: 800;
            color: var(--gold-light);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 18px 0 10px 0;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .os-results-panel {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .fi-score-card {
            background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(10, 16, 30, 0.95) 100%);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: var(--radius-xl);
            padding: 24px 28px;
            box-shadow: 0 10px 35px rgba(245, 158, 11, 0.08);
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 24px;
            align-items: center;
        }

        .fi-score-circle {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(10, 15, 28, 0.9) 70%);
            border: 4px solid var(--gold);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 25px var(--gold-glow);
            text-align: center;
        }

        .fi-score-num {
            font-family: var(--font-mono);
            font-size: 2.1rem;
            font-weight: 900;
            color: var(--gold-light);
            line-height: 1;
        }

        .fi-score-max {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 700;
        }

        .fi-score-factors {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 14px;
        }

        .fi-factor-pill {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: var(--radius-sm);
            padding: 6px 10px;
            font-size: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .impact-action-banner {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.12));
            border: 1px solid var(--indigo);
            border-radius: var(--radius-lg);
            padding: 16px 20px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .impact-action-banner .badge {
            background: var(--indigo);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Target Gap & Reality Check Box */
        .os-gap-box {
            background: linear-gradient(135deg, rgba(16, 24, 40, 0.95) 0%, rgba(10, 16, 30, 0.98) 100%);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        }

        .os-gap-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin: 14px 0;
        }

        .os-gap-stat {
            background: rgba(5, 8, 17, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 12px;
            text-align: center;
        }

        .os-gap-stat .lbl {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .os-gap-stat .num {
            font-family: var(--font-mono);
            font-size: 1.25rem;
            font-weight: 900;
        }

        /* FI Stages Roadmap Component */
        .os-stages-roadmap {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
        }

        .stages-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 14px;
        }

        .stage-row {
            background: rgba(10, 15, 28, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            display: grid;
            grid-template-columns: 180px 1fr 140px;
            align-items: center;
            gap: 16px;
            transition: border-color 0.2s;
        }

        .stage-row.completed {
            border-color: rgba(16, 185, 129, 0.4);
            background: rgba(16, 185, 129, 0.04);
        }

        .stage-row.current {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.05);
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
        }

        .stage-name-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 800;
            font-size: 0.88rem;
        }

        .stage-bar-wrap {
            height: 8px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .stage-bar-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        .stage-meta-wrap {
            text-align: left;
            font-family: var(--font-mono);
            font-size: 0.78rem;
        }

        /* Gap Bridge Calculator Levers */
        .gap-bridge-panel {
            background: rgba(10, 15, 28, 0.85);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
        }

        .bridge-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            margin-top: 14px;
        }

        .bridge-card {
            background: rgba(5, 8, 17, 0.7);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-md);
            padding: 14px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .bridge-card:hover {
            border-color: var(--indigo);
        }

        /* Current Stage Hero Banner */
        .current-stage-hero {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(10, 16, 30, 0.95) 100%);
            border: 1px solid var(--gold);
            border-radius: var(--radius-xl);
            padding: 24px 28px;
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
            margin-bottom: 20px;
        }

        .current-stage-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 14px;
            margin-bottom: 14px;
        }

        .current-stage-title {
            font-size: 1.3rem;
            font-weight: 900;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .stage-bullets-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 14px;
        }

        .stage-bullet-box {
            background: rgba(5, 8, 17, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 0.8rem;
        }

        /* Bottleneck Diagnosis Banner */
        .bottleneck-banner {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(10, 15, 28, 0.95) 100%);
            border: 1px solid var(--red-light);
            border-radius: var(--radius-lg);
            padding: 18px 22px;
            margin: 16px 0;
            display: flex;
            align-items: flex-start;
            gap: 16px;
        }

        .bottleneck-badge {
            background: var(--red-light);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 900;
            padding: 4px 10px;
            border-radius: 4px;
            white-space: nowrap;
        }

        /* Action Priority Table / Cards */
        .priority-actions-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 14px;
        }

        .priority-action-row {
            background: rgba(10, 15, 28, 0.75);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px 18px;
            display: grid;
            grid-template-columns: 40px 1.5fr 1fr 1fr 100px;
            align-items: center;
            gap: 14px;
            font-size: 0.82rem;
            transition: all 0.2s;
        }

        .priority-action-row:hover {
            border-color: var(--gold);
            background: rgba(245, 158, 11, 0.04);
        }

        /* Reality Modes 3-Columns */
        .reality-modes-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 14px;
        }

        .reality-card {
            background: rgba(5, 8, 17, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
            text-align: center;
        }

        .reality-card.active-reality {
            border-color: var(--cyan);
            background: rgba(6, 182, 212, 0.05);
        }

        /* Contextual Tickerio Handoff Ticket */
        .contextual-ticket {
            background: linear-gradient(135deg, rgba(16, 24, 46, 0.95) 0%, rgba(20, 15, 40, 0.98) 100%);
            border: 1px solid rgba(99, 102, 241, 0.4);
            border-radius: var(--radius-xl);
            padding: 24px;
            box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
            margin-top: 20px;
        }

        .ticket-params-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin: 16px 0;
        }

        .ticket-param-box {
            background: rgba(5, 8, 17, 0.7);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: var(--radius-sm);
            padding: 10px 12px;
            text-align: center;
        }

        .ticket-param-box .lbl {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .ticket-param-box .val {
            font-family: var(--font-mono);
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--indigo-light);
        }

        /* ════════════════════════════════════════════════════════════════════
            FIXYOURFI 2.0 COMPONENT STYLES
           ════════════════════════════════════════════════════════════════════ */

        /* Top OS Tab Switcher (Desktop & Tablet) */
        .os-nav-tabs {
            display: flex;
            background: rgba(10, 15, 28, 0.9);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 6px;
            gap: 6px;
            margin-bottom: 24px;
            position: sticky;
            top: 75px;
            z-index: 100;
            backdrop-filter: blur(16px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            overflow-x: auto;
        }

        .os-tab-btn {
            flex: 1;
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-secondary);
            font-size: 0.85rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .os-tab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .os-tab-btn.active {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(99, 102, 241, 0.2));
            border-color: var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
        }

        /* Mobile Sticky Bottom Nav Bar */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 65px;
            background: rgba(5, 8, 17, 0.95);
            border-top: 1px solid var(--surface-border);
            backdrop-filter: blur(20px);
            z-index: 9999;
            padding: 6px 12px;
            justify-content: space-around;
            align-items: center;
        }

        @media (max-width: 768px) {
            .mobile-bottom-nav {
                display: flex;
            }
            body {
                padding-bottom: 75px;
            }
        }

        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 0.7rem;
            font-weight: 700;
            text-decoration: none;
            gap: 3px;
            flex: 1;
            transition: color 0.2s;
        }

        .mobile-nav-item.active {
            color: var(--gold-light);
        }

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

        /*  TODAY'S FINANCIAL MISSION HERO */
        .mission-hero-card {
            background: linear-gradient(135deg, rgba(16, 24, 40, 0.95) 0%, rgba(10, 16, 32, 0.98) 100%);
            border: 1px solid var(--gold);
            border-radius: var(--radius-xl);
            padding: 24px 28px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
            margin-bottom: 24px;
        }

        .mission-grid-top {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin: 18px 0;
        }

        .mission-stat-box {
            background: rgba(5, 8, 17, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px;
            text-align: center;
        }

        .mission-stat-box .lbl {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .mission-stat-box .num {
            font-family: var(--font-mono);
            font-size: 1.2rem;
            font-weight: 900;
        }

        .next-best-action-card {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
            border: 1px solid var(--indigo);
            border-radius: var(--radius-lg);
            padding: 18px 22px;
            margin-top: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        /*  GAP RESOLUTION 4 PATHS */
        .gap-paths-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin: 18px 0;
        }

        @media (max-width: 992px) {
            .gap-paths-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .gap-paths-grid {
                grid-template-columns: 1fr;
            }
        }

        .path-card {
            background: rgba(10, 15, 28, 0.85);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 18px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            transition: all 0.2s ease;
        }

        .path-card:hover {
            border-color: var(--gold);
            transform: translateY(-2px);
        }

        .path-card.path-recommended {
            border-color: var(--gold);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(10, 15, 28, 0.95) 100%);
            box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
        }

        .path-ribbon {
            position: absolute;
            top: -10px;
            right: 14px;
            background: var(--gold);
            color: #000;
            font-size: 0.68rem;
            font-weight: 900;
            padding: 2px 8px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        /*  MY FI EXECUTION TIMELINE */
        .timeline-periods-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-top: 18px;
        }

        @media (max-width: 992px) {
            .timeline-periods-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 576px) {
            .timeline-periods-grid {
                grid-template-columns: 1fr;
            }
        }

        .timeline-card {
            background: rgba(10, 15, 28, 0.8);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-md);
            padding: 16px;
        }

        .timeline-card-header {
            font-size: 0.88rem;
            font-weight: 800;
            color: var(--gold-light);
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 8px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .timeline-task-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 0.78rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .timeline-task-item input[type="checkbox"] {
            margin-top: 2px;
            accent-color: var(--emerald);
            cursor: pointer;
        }

        .bridge-title {
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--gold-light);
            margin-bottom: 6px;
        }

        .bridge-action-num {
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 900;
            color: #fff;
            margin: 4px 0;
        }

        /* 5-Pillar FI Score Breakdown */
        .five-pillars-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin: 16px 0;
        }

        @media (max-width: 900px) {
            .five-pillars-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 500px) {
            .five-pillars-grid {
                grid-template-columns: 1fr;
            }
        }

        .pillar-box {
            background: rgba(5, 8, 17, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .pillar-box .p-title {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .pillar-box .p-score {
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 900;
            color: #fff;
            margin-bottom: 4px;
        }

        .pillar-box .p-bar {
            height: 4px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 6px;
        }

        .pillar-box .p-fill {
            height: 100%;
            border-radius: 2px;
        }

        /*  YOUR ONE DECISION HERO */
        .decision-one-hero {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 24, 46, 0.98) 100%);
            border: 2px solid var(--gold);
            border-radius: var(--radius-xl);
            padding: 24px 28px;
            box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
            margin-bottom: 24px;
        }

        .decision-kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-top: 16px;
        }

        @media (max-width: 768px) {
            .decision-kpi-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Action Intelligence Table */
        .action-matrix-table-wrap {
            overflow-x: auto;
            border-radius: var(--radius-md);
            border: 1px solid var(--surface-border);
            margin-top: 16px;
        }

        .action-matrix-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.84rem;
            text-align: right;
        }

        .action-matrix-table th {
            background: rgba(10, 15, 28, 0.95);
            padding: 12px 16px;
            color: var(--text-muted);
            font-weight: 800;
            border-bottom: 1px solid var(--surface-border);
            white-space: nowrap;
        }

        .action-matrix-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-subtle);
            color: var(--text-secondary);
        }

        .action-matrix-table tr:hover td {
            background: rgba(245, 158, 11, 0.03);
            color: #fff;
        }

        /* 4-Tier Capital Architecture Hierarchy */
        .capital-layers-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .layer-card {
            background: rgba(10, 15, 28, 0.7);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-md);
            padding: 18px;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .layer-card:hover {
            border-color: var(--gold);
            transform: translateY(-2px);
        }

        .layer-card.alpha-layer {
            border-color: rgba(99, 102, 241, 0.4);
            background: linear-gradient(135deg, rgba(16, 24, 46, 0.9) 0%, rgba(20, 15, 40, 0.9) 100%);
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
        }

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

        .layer-title {
            font-size: 0.95rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .layer-amount {
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--emerald-light);
        }

        /* FI Lever Engine Cards */
        .lever-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-top: 14px;
        }

        .lever-card {
            background: rgba(10, 15, 28, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
        }

        .lever-impact-text {
            font-family: var(--font-mono);
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--gold-light);
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Retirement Stress Test Component */
        .stress-test-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            margin-top: 16px;
        }

        .stress-card {
            background: rgba(10, 15, 28, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 18px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: right;
        }

        .stress-card:hover, .stress-card.active-stress {
            border-color: var(--red-light);
            background: rgba(239, 68, 68, 0.08);
        }

        .stress-survival-badge {
            font-family: var(--font-mono);
            font-size: 1.1rem;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 6px;
            display: inline-block;
            margin-top: 8px;
        }

        /* Decision Tree Component */
        .decision-tree-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-top: 24px;
        }

        .tree-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 24px;
        }

        .tree-options-flex {
            display: flex;
            gap: 8px;
            margin: 12px 0;
            flex-wrap: wrap;
        }

        .tree-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--surface-border);
            color: var(--text-secondary);
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 0.82rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .tree-btn:hover {
            color: #fff;
            border-color: var(--indigo);
        }

        .tree-btn.active {
            background: var(--indigo);
            color: #fff;
            border-color: var(--indigo);
        }

        .tree-result-box {
            background: rgba(6, 9, 17, 0.9);
            border: 1px solid var(--gold);
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            margin-top: 14px;
            font-size: 0.85rem;
            line-height: 1.6;
        }

        /* Interactive Wealth Milestone Timeline */
        .wealth-timeline-track {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin: 40px 0 20px 0;
        }

        .wealth-timeline-track::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 5%;
            right: 5%;
            height: 4px;
            background: linear-gradient(90deg, var(--gold), var(--emerald));
            z-index: 1;
        }

        .timeline-step {
            position: relative;
            z-index: 2;
            text-align: center;
            flex: 1;
        }

        .timeline-dot {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--bg-card);
            border: 3px solid var(--gold);
            margin: 0 auto 12px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            box-shadow: 0 0 15px var(--gold-glow);
        }

        /* Chart Canvas Container & Interactive Tooltip */
        .chart-box {
            background: rgba(4, 7, 15, 0.95);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-md);
            padding: 12px 14px 28px 14px;
            height: 290px;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
        }

        canvas.interactive-chart {
            width: 100%;
            height: 100%;
            cursor: crosshair;
            display: block;
        }

        .chart-floating-tooltip {
            position: absolute;
            display: none;
            pointer-events: none;
            background: rgba(14, 21, 38, 0.95);
            backdrop-filter: blur(12px);
            border: 1px solid var(--gold);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 0.82rem;
            z-index: 50;
            white-space: nowrap;
            transform: translate(-50%, -125%);
            transition: opacity 0.1s ease;
        }

        .chart-floating-tooltip .tt-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 3px;
        }

        .chart-floating-tooltip .tt-row:last-child {
            margin-bottom: 0;
        }

        .chart-floating-tooltip .tt-label {
            color: var(--text-muted);
            font-weight: 600;
        }

        .chart-floating-tooltip .tt-val {
            font-family: var(--font-mono);
            font-weight: 800;
            color: var(--text-primary);
        }

        .chart-floating-tooltip .tt-val.gold { color: var(--gold-light); }
        .chart-floating-tooltip .tt-val.emerald { color: var(--emerald-light); }

        .chart-axis-guide-legend {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 8px;
            padding: 0 6px;
        }

        /* Tickerio Terminal */
        .terminal-container {
            background: rgba(10, 15, 28, 0.95);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 36px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.15);
            margin-bottom: 40px;
        }

        .terminal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 18px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 16px;
        }

        .terminal-ticker-input-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ticker-input {
            background: rgba(19, 29, 46, 0.8);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-sm);
            padding: 8px 16px;
            color: var(--text-primary);
            font-family: var(--font-en);
            font-size: 1.1rem;
            font-weight: 800;
            width: 140px;
            text-transform: uppercase;
            outline: none;
        }

        .ticker-input:focus {
            border-color: var(--indigo);
        }

        .terminal-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 30px;
        }

        .gems-breakdown-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .gems-pillar-box {
            background: rgba(19, 29, 46, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px;
            text-align: center;
        }

        .gems-pillar-box .label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .gems-pillar-box .score {
            font-family: var(--font-en);
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--emerald-light);
        }

        /* Multi-Calculator Tab Suite */
        .calc-tabs-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 36px;
        }

        .calc-tab-btn {
            background: rgba(14, 21, 38, 0.8);
            border: 1px solid var(--surface-border);
            color: var(--text-secondary);
            padding: 12px 20px;
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .calc-tab-btn:hover {
            border-color: var(--gold);
            color: var(--gold-light);
        }

        .calc-tab-btn.active {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(99, 102, 241, 0.15));
            border-color: var(--gold);
            color: #fff;
            box-shadow: 0 4px 20px var(--gold-glow);
        }

        .calc-pane {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .calc-pane.active {
            display: block;
        }

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

        .calc-grid {
            display: grid;
            grid-template-columns: 1fr 1.15fr;
            gap: 36px;
            align-items: start;
        }

        .calc-inputs-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .calc-results-card {
            background: var(--bg-surface);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 36px;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .results-summary-banner {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.1));
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: var(--radius-md);
            padding: 20px;
            text-align: center;
        }

        .results-target-title {
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }

        .results-target-val {
            font-family: var(--font-mono);
            font-size: 2.7rem;
            font-weight: 900;
            color: var(--gold-light);
            line-height: 1.1;
        }

        .results-stats-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            text-align: center;
        }

        .result-stat-box {
            background: rgba(10, 15, 26, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 12px;
        }

        .result-stat-box .title {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .result-stat-box .num {
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--emerald-light);
        }

        .tickerio-bridge-card {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: var(--radius-md);
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .tickerio-bridge-text {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .tickerio-bridge-text strong {
            color: var(--indigo-light);
        }

        /* Comparison Tables */
        .comparison-table-wrapper {
            overflow-x: auto;
            border-radius: var(--radius-md);
            border: 1px solid var(--surface-border);
            background: var(--bg-card);
        }

        table.portal-table {
            width: 100%;
            border-collapse: collapse;
            text-align: right;
            font-size: 0.9rem;
        }

        [dir="ltr"] table.portal-table {
            text-align: left;
        }

        table.portal-table th {
            background: rgba(19, 29, 46, 0.9);
            padding: 16px 20px;
            color: var(--text-primary);
            font-weight: 800;
            border-bottom: 1px solid var(--surface-border);
        }

        table.portal-table td {
            padding: 14px 20px;
            border-bottom: 1px solid var(--border-subtle);
            color: var(--text-secondary);
        }

        table.portal-table tr:last-child td {
            border-bottom: none;
        }

        table.portal-table tr:hover td {
            background: rgba(255, 255, 255, 0.02);
            color: #fff;
        }

        .badge-pill {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .badge-pill.green {
            background: rgba(16, 185, 129, 0.15);
            color: var(--emerald-light);
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .badge-pill.gold {
            background: rgba(245, 158, 11, 0.15);
            color: var(--gold-light);
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .badge-pill.indigo {
            background: rgba(99, 102, 241, 0.15);
            color: var(--indigo-light);
            border: 1px solid rgba(99, 102, 241, 0.3);
        }

        /* Roadmaps / Lifecycle Steps */
        .roadmap-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .roadmap-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 24px;
            transition: all 0.3s ease;
        }

        .roadmap-card:hover {
            transform: translateY(-4px);
            border-color: var(--gold);
        }

        .roadmap-step-num {
            width: 36px;
            height: 36px;
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid var(--gold);
            color: var(--gold-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-family: var(--font-en);
            margin-bottom: 14px;
        }

        .roadmap-card h4 {
            font-size: 1.15rem;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .roadmap-card p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Knowledge Category Cards */
        .knowledge-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .knowledge-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 28px;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .knowledge-card:hover {
            transform: translateY(-5px);
            border-color: var(--gold);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
        }

        .knowledge-icon {
            font-size: 2rem;
            margin-bottom: 14px;
        }

        .knowledge-card h3 {
            font-size: 1.3rem;
            font-weight: 800;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .knowledge-card p {
            color: var(--text-secondary);
            font-size: 0.88rem;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .knowledge-links {
            list-style: none;
            margin-top: auto;
            border-top: 1px solid var(--border-subtle);
            padding-top: 14px;
        }

        .knowledge-links li {
            padding: 5px 0;
        }

        .knowledge-links li a {
            color: var(--indigo-light);
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s;
        }

        .knowledge-links li a:hover {
            color: var(--gold-light);
            text-decoration: underline;
        }

        /* Portfolio Gallery */
        .portfolio-gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .portfolio-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-md);
            padding: 24px;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .portfolio-card:hover {
            transform: translateY(-4px);
            border-color: var(--gold);
        }

        .portfolio-card h4 {
            font-size: 1.15rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .portfolio-meta {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-bottom: 14px;
        }

        .allocation-bars {
            display: flex;
            height: 12px;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 16px;
        }

        .alloc-bar {
            height: 100%;
        }

        .alloc-legend {
            font-size: 0.78rem;
            color: var(--text-secondary);
            margin-bottom: 16px;
            line-height: 1.5;
        }

        /* FAQ Accordion */
        .faq-accordion {
            max-width: 900px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .faq-item {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        .faq-header {
            padding: 18px 24px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 700;
            font-size: 1rem;
            transition: background 0.2s;
        }

        .faq-header:hover {
            background: rgba(255, 255, 255, 0.02);
            color: var(--gold-light);
        }

        .faq-body {
            padding: 0 24px 18px;
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.7;
            display: none;
            border-top: 1px solid var(--border-subtle);
        }

        .faq-body.open {
            display: block;
        }

        /* Footer */
        footer {
            background: #04070e;
            border-top: 1px solid var(--border-subtle);
            padding: 70px 0 30px;
            color: var(--text-muted);
            font-size: 0.88rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 36px;
            margin-bottom: 40px;
        }

        .footer-col h4 {
            color: var(--text-primary);
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer-col ul li a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-col ul li a:hover {
            color: var(--gold-light);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            font-size: 0.8rem;
        }

        /* Responsive */
        @media (max-width: 1100px) {
            .hero-grid { grid-template-columns: 1fr; }
            .calc-grid { grid-template-columns: 1fr; }
            .terminal-grid { grid-template-columns: 1fr; }
            .knowledge-grid { grid-template-columns: 1fr 1fr; }
            .portfolio-gallery-grid { grid-template-columns: 1fr 1fr; }
            .roadmap-grid { grid-template-columns: 1fr 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 2.3rem; }
            .nav-links { display: none; }
            .knowledge-grid { grid-template-columns: 1fr; }
            .portfolio-gallery-grid { grid-template-columns: 1fr; }
            .roadmap-grid { grid-template-columns: 1fr; }
            .gems-breakdown-grid { grid-template-columns: 1fr 1fr; }
            .results-stats-row { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .stepper-val-wrap { width: 100%; justify-content: space-between; }
        }

        /* ════════════════════════════════════════════════════════════════════ */
        /*  GATE 0: FAMILY FINANCIAL FOUNDATIONS STYLES                       */
        /* ════════════════════════════════════════════════════════════════════ */
        .foundations-section {
            background: linear-gradient(180deg, rgba(8, 12, 22, 0.98) 0%, rgba(13, 20, 36, 0.95) 100%);
            border-bottom: 1px solid var(--border-subtle);
            padding: 60px 0 80px;
            position: relative;
        }

        .foundations-flow-banner {
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.25);
            border-radius: var(--radius-lg);
            padding: 16px 20px;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .foundations-pipeline {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            font-weight: 700;
            flex-wrap: wrap;
        }

        .pipeline-step {
            padding: 4px 10px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
        }

        .pipeline-step.active {
            background: rgba(16, 185, 129, 0.2);
            border-color: var(--emerald);
            color: var(--emerald-light);
        }

        .pipeline-arrow {
            color: var(--text-muted);
            font-size: 0.75rem;
        }

        .foundations-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 12px;
            overflow-x: auto;
        }

        .fnd-tab-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            padding: 10px 18px;
            border-radius: var(--radius-md);
            cursor: pointer;
            font-weight: 700;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .fnd-tab-btn:hover {
            background: rgba(255, 255, 255, 0.07);
            color: #fff;
        }

        .fnd-tab-btn.active {
            background: rgba(245, 158, 11, 0.15);
            border-color: var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
        }

        .fnd-panel-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .fnd-input-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .fnd-input-box {
            background: rgba(10, 15, 26, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 10px 14px;
        }

        .fnd-input-box label {
            display: block;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .fnd-input-box input[type="number" inputmode="decimal"], .fnd-input-box input[type="text"] {
            width: 100%;
            background: transparent;
            border: none;
            color: #fff;
            font-family: var(--font-mono);
            font-size: 1rem;
            font-weight: 700;
            outline: none;
        }

        .fnd-kpi-banner {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 14px;
            margin: 20px 0;
        }

        .fnd-kpi-card {
            background: rgba(5, 8, 17, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
            text-align: center;
        }

        .fnd-kpi-card .lbl {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .fnd-kpi-card .val {
            font-size: 1.3rem;
            font-weight: 800;
            font-family: var(--font-mono);
        }

        .leak-check-item {
            background: rgba(10, 15, 26, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            transition: all 0.2s;
            cursor: pointer;
        }

        .leak-check-item:hover {
            border-color: rgba(245, 158, 11, 0.4);
            background: rgba(245, 158, 11, 0.03);
        }

        .leak-check-item.checked {
            border-color: var(--emerald);
            background: rgba(16, 185, 129, 0.06);
        }

        .leak-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .leak-left input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--emerald);
            cursor: pointer;
        }

        .leak-info h5 {
            font-size: 0.88rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 2px;
        }

        .leak-info p {
            font-size: 0.76rem;
            color: var(--text-secondary);
        }

        .leak-saving-badge {
            font-family: var(--font-mono);
            font-weight: 800;
            font-size: 0.9rem;
            color: var(--emerald-light);
            background: rgba(16, 185, 129, 0.15);
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid rgba(16, 185, 129, 0.3);
            white-space: nowrap;
        }

        .resource-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .resource-box {
            background: rgba(10, 15, 26, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .resource-box h5 {
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--gold-light);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .resource-box p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 12px;
            line-height: 1.4;
        }


        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }


        
        @media (max-width: 768px) {
            body {
                padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
            }

            .app-bottom-nav {
                position: fixed !important;
                top: auto !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                height: 60px !important;
                background: rgba(10, 16, 30, 0.98) !important;
                backdrop-filter: blur(20px) !important;
                border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
                display: flex !important;
                justify-content: space-around !important;
                align-items: center !important;
                padding: 0 4px !important;
                z-index: 100000 !important;
                box-shadow: 0 -10px 30px rgba(0,0,0,0.7) !important;
            }

            .nav-app-item {
                background: none !important;
                border: none !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 2px !important;
                color: var(--text-muted) !important;
                font-size: 0.85rem !important;
                font-weight: 700 !important;
                padding: 6px 12px !important;
                border-radius: 8px !important;
                cursor: pointer !important;
                flex: 1 !important;
            }

            .nav-app-item .nav-icon {
                font-size: 1.25rem !important;
            }

            .nav-app-item.active {
                color: var(--gold-light) !important;
            }
        }

        /* Mobile-First Bottom Nav (Hidden on Desktop, Visible only on Mobile) */
        @media (min-width: 769px) {
            .app-bottom-nav {
                display: none !important;
            }
        }

        @media (max-width: 768px) {
            .app-bottom-nav {
                position: fixed;
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                background: rgba(10, 16, 30, 0.96);
                backdrop-filter: blur(20px);
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                display: flex;
                justify-content: space-around;
                align-items: center;
                padding: 8px 6px 14px;
                z-index: 99999;
                box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
            }

            .nav-app-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 2px;
                color: var(--text-muted);
                text-decoration: none;
                font-size: 0.7rem;
                font-weight: 700;
                padding: 4px 8px;
                border-radius: 8px;
            }

            .nav-app-item .nav-icon {
                font-size: 1.2rem;
            }

            .nav-app-item:hover, .nav-app-item.active {
                color: var(--gold-light);
            }

            body {
                padding-bottom: 70px;
            }
        }

        /* Safety Buffer Visual Dots */
        .buffer-dots-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 10px 0;
        }

        .buffer-dot {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .buffer-dot.green {
            background: var(--emerald);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
        }

        .buffer-dot.yellow {
            background: #f59e0b;
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
        }

        .buffer-dot.red {
            background: #ef4444;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
        }

        .buffer-dot.gray {
            background: #334155;
            opacity: 0.4;
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  LIGHT MODE / CLEAN THEME SYSTEM                                  */
        /* ════════════════════════════════════════════════════════════════════ */
        [data-theme="light"] {
            --bg: #f8fafc;
            --bg-surface: #ffffff;
            --bg-card: rgba(255, 255, 255, 0.95);
            --bg-card-hover: #ffffff;
            --surface-border: rgba(99, 102, 241, 0.25);
            --border-subtle: rgba(0, 0, 0, 0.08);
            
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --text-muted: #64748b;
        }

        [data-theme="light"] body {
            background-color: #f8fafc;
            color: #0f172a;
        }

        [data-theme="light"] .ecosystem-bar {
            background: #ffffff;
            border-bottom-color: rgba(245, 158, 11, 0.3);
        }

        [data-theme="light"] nav {
            background: rgba(255, 255, 255, 0.92);
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .nav-links a {
            color: #334155;
        }

        [data-theme="light"] .nav-links a:hover {
            color: var(--indigo);
        }

        [data-theme="light"] .search-bar-section {
            background: #ffffff;
            border-bottom-color: rgba(0, 0, 0, 0.06);
        }

        [data-theme="light"] .search-input {
            background: #f1f5f9;
            color: #0f172a;
            border-color: rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .dir-chip {
            background: #f1f5f9;
            border-color: rgba(0, 0, 0, 0.1);
            color: #334155;
        }

        [data-theme="light"] .hero {
            background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
        }

        [data-theme="light"] .foundations-section {
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
        }

        [data-theme="light"] .financial-os-section {
            background: #ffffff;
        }

        [data-theme="light"] .os-inputs-panel,
        [data-theme="light"] .fnd-panel-card,
        [data-theme="light"] .os-tab-content,
        [data-theme="light"] .calc-card,
        [data-theme="light"] .tree-card,
        [data-theme="light"] .stress-card,
        [data-theme="light"] .knowledge-card,
        [data-theme="light"] .leak-check-item,
        [data-theme="light"] .fnd-kpi-card {
            background: #ffffff !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
        }

        [data-theme="light"] .input-group,
        [data-theme="light"] .fnd-input-box,
        [data-theme="light"] .pillar-box,
        [data-theme="light"] .mission-stat-box,
        [data-theme="light"] .ticket-param-box,
        [data-theme="light"] .os-gap-stat,
        [data-theme="light"] .path-card {
            background: #f8fafc !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .input-value-display {
            background: #ffffff;
            color: #0f172a;
            border-color: rgba(0, 0, 0, 0.12);
        }

        [data-theme="light"] .btn-stepper {
            background: #e2e8f0;
            color: #0f172a;
            border-color: rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .btn-lang,
        [data-theme="light"] .btn-theme {
            background: #f1f5f9;
            color: #334155;
            border-color: rgba(0, 0, 0, 0.12);
        }

        [data-theme="light"] .app-bottom-nav {
            background: rgba(255, 255, 255, 0.96) !important;
            border-top-color: rgba(0, 0, 0, 0.1) !important;
        }

        [data-theme="light"] .app-bottom-nav .nav-app-item {
            color: #64748b;
        }

        [data-theme="light"] .app-bottom-nav .nav-app-item.active {
            color: var(--indigo);
        }

        [data-theme="light"] footer {
            background: #0f172a;
            color: #f8fafc;
        }

        /* The Strategist Copilot Panel */
        .strategist-manifesto-wrap {
            background: rgba(13, 21, 39, 0.95);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 28px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            margin-top: 10px;
        }

        [data-theme="light"] .strategist-manifesto-wrap {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.3);
            box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        }

        .strategist-section-block {
            background: rgba(5, 8, 17, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            margin-bottom: 16px;
        }

        [data-theme="light"] .strategist-section-block {
            background: #f8fafc;
            border-color: rgba(0, 0, 0, 0.08);
        }

        .strategist-actions-bar {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-subtle);
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  ADVANCED MOBILE & DYNAMIC UX OPTIMIZATIONS                       */
        /* ════════════════════════════════════════════════════════════════════ */
        
        /* Smooth dynamic pulses */
        @keyframes numPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.06); color: var(--gold-light); }
            100% { transform: scale(1); }
        }

        .num-pulse {
            animation: numPulse 0.35s ease-out;
        }

        /* Preset Chips Bar */
        .profile-presets-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            padding: 4px 0 14px;
            margin-bottom: 12px;
        }

        .profile-preset-chip {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-subtle);
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-secondary);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
            touch-action: manipulation;
        }

        .profile-preset-chip:hover, .profile-preset-chip.active {
            background: rgba(245, 158, 11, 0.15);
            border-color: var(--gold);
            color: var(--gold-light);
            transform: translateY(-1px);
        }

        [data-theme="light"] .profile-preset-chip {
            background: #f1f5f9;
            border-color: rgba(0, 0, 0, 0.1);
            color: #334155;
        }

        [data-theme="light"] .profile-preset-chip:hover,
        [data-theme="light"] .profile-preset-chip.active {
            background: rgba(99, 102, 241, 0.12);
            border-color: var(--indigo);
            color: var(--indigo);
        }

        /* Scrollable Tab Bars for Mobile Touch */
        .os-nav-tabs, .foundations-tabs, .calc-tabs, .dir-chips-flex {
            overflow-x: auto !important;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            display: flex;
            flex-wrap: nowrap;
        }

        .os-nav-tabs::-webkit-scrollbar, 
        .foundations-tabs::-webkit-scrollbar,
        .calc-tabs::-webkit-scrollbar,
        .dir-chips-flex::-webkit-scrollbar {
            display: none;
        }

        .os-tab-btn, .fnd-tab-btn, .calc-tab-btn, .dir-chip {
            flex-shrink: 0;
            scroll-snap-align: start;
            touch-action: manipulation;
        }

        /* Range Slider Touch Sizing */
        .range-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            outline: none;
            cursor: pointer;
            transition: background 0.2s;
            margin: 10px 0;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--gold);
            cursor: pointer;
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
            transition: transform 0.15s;
        }

        .range-slider::-webkit-slider-thumb:hover,
        .range-slider::-webkit-slider-thumb:active {
            transform: scale(1.25);
        }

        .btn-stepper {
            touch-action: manipulation;
            user-select: none;
        }

        /* Comprehensive Mobile Responsiveness */
        @media (max-width: 768px) {
            .container {
                padding: 0 14px;
            }

            .hero h1 {
                font-size: 2.0rem;
                line-height: 1.25;
            }

            .hero-subtitle {
                font-size: 0.95rem;
            }

            .os-grid {
                grid-template-columns: 1fr !important;
                gap: 16px;
            }

            .os-inputs-panel, .fnd-panel-card, .strategist-manifesto-wrap {
                padding: 16px !important;
            }

            .fnd-kpi-banner {
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
            }

            .fnd-kpi-card {
                padding: 10px 8px !important;
            }

            .fnd-kpi-card .val {
                font-size: 1.1rem !important;
            }

            .five-pillars-grid {
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
            }

            .ticket-params-grid {
                grid-template-columns: 1fr 1fr !important;
                gap: 8px !important;
            }

            .leak-left {
                gap: 8px;
            }

            .leak-info h5 {
                font-size: 0.82rem;
            }

            .leak-info p {
                font-size: 0.72rem;
            }

            .strategist-actions-bar {
                flex-direction: column;
            }

            .strategist-actions-bar button {
                width: 100%;
                justify-content: center;
            }

            .nav-actions .btn-lang, .nav-actions .btn-theme {
                padding: 6px 10px;
                font-size: 0.78rem;
            }

            .btn-cta-gold {
                padding: 8px 14px;
                font-size: 0.82rem;
            }

            /* Fix table overflow on mobile */
            .table-responsive-wrapper {
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  RADICAL CLEANLINESS & SCREEN-FIT RESPONSIVE STYLING               */
        /* ════════════════════════════════════════════════════════════════════ */
        
        html, body {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
            box-sizing: border-box;
        }

        *, *:before, *:after {
            box-sizing: border-box;
        }

        .container {
            max-width: 1080px;
            width: 100%;
            margin: 0 auto;
            padding: 0 clamp(12px, 3vw, 24px);
        }

        /* Clean Card Elevation & Breathing Room */
        .hero {
            padding: clamp(24px, 5vw, 48px) 0 clamp(32px, 6vw, 60px);
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: clamp(20px, 4vw, 40px);
            align-items: center;
        }

        @media (max-width: 900px) {
            .hero-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .hero h1 {
            font-size: clamp(1.8rem, 5vw, 2.6rem);
            line-height: 1.25;
            margin-bottom: 14px;
            font-weight: 900;
        }

        .lead {
            font-size: clamp(0.95rem, 2.5vw, 1.1rem);
            line-height: 1.6;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        /* Collapsible Progressive Disclosure Drawer */
        details.info-drawer {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 10px 14px;
            margin-top: 14px;
            font-size: 0.82rem;
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }

        details.info-drawer summary {
            font-weight: 700;
            color: var(--gold-light);
            cursor: pointer;
            outline: none;
            user-select: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        [data-theme="light"] details.info-drawer {
            background: #f8fafc;
            border-color: rgba(0, 0, 0, 0.08);
            color: #334155;
        }

        [data-theme="light"] details.info-drawer summary {
            color: var(--indigo);
        }

        /* Clean Tab Buttons */
        .os-nav-tabs, .foundations-tabs, .calc-tabs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 8px;
            margin-bottom: 18px;
            border-bottom: 1px solid var(--border-subtle);
        }

        .os-tab-btn, .fnd-tab-btn, .calc-tab-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            padding: 8px 16px;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 0.85rem;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.2s ease;
            touch-action: manipulation;
        }

        .os-tab-btn.active, .fnd-tab-btn.active, .calc-tab-btn.active {
            background: rgba(245, 158, 11, 0.15);
            border-color: var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
        }

        [data-theme="light"] .os-tab-btn.active,
        [data-theme="light"] .fnd-tab-btn.active,
        [data-theme="light"] .calc-tab-btn.active {
            background: rgba(99, 102, 241, 0.12);
            border-color: var(--indigo);
            color: var(--indigo);
        }

        /* Compact Cards Layout */
        .fnd-panel-card, .os-tab-content, .calc-card {
            padding: clamp(16px, 3vw, 24px) !important;
            border-radius: var(--radius-lg);
        }

        /* Ensure No Screen Overflow */
        img, svg, canvas {
            max-width: 100%;
            height: auto;
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  PRECISION FIXES: FINANCIAL OS GRID, TABS & 5 PILLARS              */
        /* ════════════════════════════════════════════════════════════════════ */
        .financial-os-section {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
        }

        .os-grid {
            display: grid;
            grid-template-columns: 340px minmax(0, 1fr);
            gap: 20px;
            align-items: start;
            width: 100%;
            max-width: 100%;
        }

        .os-inputs-panel {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 20px;
            width: 100%;
            min-width: 0;
        }

        .os-results-panel {
            width: 100%;
            min-width: 0;
        }

        .os-nav-tabs {
            display: flex;
            flex-wrap: wrap;
            background: rgba(10, 15, 28, 0.95);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 6px;
            gap: 6px;
            margin-bottom: 20px;
            width: 100%;
        }

        .os-tab-btn {
            flex: 1 1 auto;
            min-width: 115px;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-secondary);
            font-size: 0.82rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s ease;
            text-align: center;
            direction: rtl;
        }

        .os-tab-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .os-tab-btn.active {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(99, 102, 241, 0.25));
            border-color: var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
        }

        .five-pillars-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
            gap: 8px;
            width: 100%;
            margin-top: 14px;
        }

        .pillar-box {
            background: rgba(5, 8, 17, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 10px 8px;
            text-align: center;
            min-width: 0;
        }

        .pillar-box .p-title {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
        }

        .pillar-box .p-score {
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 900;
            margin-bottom: 6px;
        }

        .pillar-box .p-bar {
            height: 5px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
            overflow: hidden;
        }

        .pillar-box .p-fill {
            height: 100%;
            border-radius: 3px;
        }

        @media (max-width: 1024px) {
            .os-grid {
                grid-template-columns: 1fr !important;
            }
            .five-pillars-grid {
                grid-template-columns: repeat(3, 1fr) !important;
            }
        }

        @media (max-width: 600px) {
            .five-pillars-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            .os-tab-btn {
                min-width: calc(50% - 6px);
                font-size: 0.78rem;
                padding: 6px 8px;
            }
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  DUOLINGO FINANCIAL QUEST & SLEEK NAVBAR CSS                       */
        /* ════════════════════════════════════════════════════════════════════ */
        
        /* Navbar layout fix */
        nav {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(5, 8, 17, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-subtle);
            padding: 10px 0;
        }

        .nav-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 12px;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            white-space: nowrap;
            flex-wrap: nowrap;
        }

        .nav-links::-webkit-scrollbar {
            display: none;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 700;
            padding: 6px 10px;
            border-radius: 6px;
            transition: all 0.2s ease;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .nav-links a:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-links a.quest-nav-pill {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
            border: 1px solid var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
            animation: pulseGlow 2.5s infinite;
        }

        @keyframes pulseGlow {
            0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.25); }
            50% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.4); }
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .nav-actions .btn-lang,
        .nav-actions .btn-theme {
            padding: 7px 12px;
            font-size: 0.82rem;
            white-space: nowrap;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-actions .btn-cta-gold {
            padding: 7px 16px;
            font-size: 0.82rem;
            white-space: nowrap;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /*  DUOLINGO FINANCIAL QUEST SECTION */
        .quest-section {
            background: linear-gradient(180deg, rgba(8, 12, 24, 0.98) 0%, rgba(13, 20, 38, 0.95) 100%);
            border-bottom: 1px solid var(--border-subtle);
            padding: 60px 0 80px;
            position: relative;
        }

        [data-theme="light"] .quest-section {
            background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
        }

        .quest-stats-banner {
            background: rgba(14, 21, 38, 0.9);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 20px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 32px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        [data-theme="light"] .quest-stats-banner {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }

        .quest-xp-progress {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 260px;
        }

        .quest-xp-bar-wrap {
            flex: 1;
            height: 14px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
        }

        .quest-xp-fill {
            height: 100%;
            width: 35%;
            background: linear-gradient(90deg, var(--gold), var(--emerald));
            border-radius: 8px;
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
            transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        /* Winding Path Levels Grid */
        .quest-worlds-wrap {
            display: flex;
            flex-direction: column;
            gap: 24px;
            max-width: 820px;
            margin: 0 auto;
        }

        .quest-world-card {
            background: rgba(10, 15, 28, 0.75);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 24px;
            position: relative;
            transition: all 0.3s ease;
        }

        [data-theme="light"] .quest-world-card {
            background: #ffffff;
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
        }

        .quest-world-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 14px;
            margin-bottom: 18px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .quest-nodes-row {
            display: flex;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            position: relative;
        }

        .quest-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.25s ease;
            max-width: 130px;
            text-align: center;
            touch-action: manipulation;
        }

        .quest-node:hover {
            transform: translateY(-4px) scale(1.05);
        }

        .quest-node-circle {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: rgba(14, 21, 38, 0.9);
            border: 3px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            position: relative;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
        }

        .quest-node.completed .quest-node-circle {
            border-color: var(--emerald);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
        }

        .quest-node.active .quest-node-circle {
            border-color: var(--gold);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
            box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
            animation: nodePulse 2s infinite;
        }

        @keyframes nodePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(245, 158, 11, 0.7); }
        }

        .quest-node.locked .quest-node-circle {
            opacity: 0.5;
            filter: grayscale(1);
            cursor: not-allowed;
        }

        .quest-node-badge {
            position: absolute;
            bottom: -4px;
            right: -4px;
            background: var(--emerald);
            color: #000;
            font-size: 0.65rem;
            font-weight: 900;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quest-node-title {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.3;
        }

        .quest-node-xp {
            font-size: 0.7rem;
            font-family: var(--font-mono);
            color: var(--gold-light);
            font-weight: 800;
        }

        /* Quest Modal */
        .quest-modal-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 99999;
            align-items: flex-start;
            justify-content: center;
            padding: clamp(12px, 3vh, 28px) clamp(10px, 2vw, 20px);
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            box-sizing: border-box;
        }

        .quest-modal-card {
            background: var(--bg-surface);
            border: 2px solid var(--gold);
            border-radius: var(--radius-xl);
            max-width: 520px;
            width: 100%;
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px);
            overflow-y: auto !important;
            overflow-x: hidden;
            margin: auto;
            padding: clamp(20px, 3.5vw, 28px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            position: relative;
            animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            scrollbar-width: thin;
            box-sizing: border-box;
        }

        @keyframes modalPop {
            0% { transform: scale(0.85); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        [data-theme="light"] .quest-modal-card {
            background: #ffffff;
            border-color: var(--indigo);
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  MONEY LIFE SIMULATOR & DECISION TOOLBOX STYLES                    */
        /* ════════════════════════════════════════════════════════════════════ */
        
        /* FI Action Coach Floating Banner / Widget */
        .fi-coach-card {
            background: linear-gradient(135deg, rgba(16, 24, 46, 0.96) 0%, rgba(20, 15, 42, 0.98) 100%);
            border: 2px solid var(--gold);
            border-radius: var(--radius-xl);
            padding: 22px 28px;
            margin-bottom: 30px;
            box-shadow: 0 12px 40px rgba(245, 158, 11, 0.18);
            position: relative;
            overflow: hidden;
        }

        [data-theme="light"] .fi-coach-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border-color: var(--indigo);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
        }

        .fi-coach-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .fi-coach-action-btn {
            background: linear-gradient(135deg, var(--gold), #d97706);
            color: #000;
            font-weight: 900;
            padding: 10px 22px;
            border-radius: 30px;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
            transition: all 0.2s ease;
            touch-action: manipulation;
        }

        .fi-coach-action-btn:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
        }

        /*  Money Life Simulator */
        .money-life-section {
            background: linear-gradient(180deg, rgba(8, 12, 22, 0.98) 0%, rgba(13, 20, 36, 0.95) 100%);
            border-bottom: 1px solid var(--border-subtle);
            padding: 60px 0 80px;
        }

        [data-theme="light"] .money-life-section {
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
        }

        .life-events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
            margin-bottom: 24px;
        }

        .life-event-card {
            background: rgba(14, 21, 38, 0.85);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 16px;
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
            user-select: none;
            touch-action: manipulation;
        }

        .life-event-card:hover {
            border-color: var(--gold);
            transform: translateY(-2px);
        }

        .life-event-card.active {
            border-color: var(--emerald);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 21, 38, 0.95) 100%);
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
        }

        [data-theme="light"] .life-event-card {
            background: #ffffff;
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow: 0 4px 14px rgba(0,0,0,0.03);
        }

        [data-theme="light"] .life-event-card.active {
            border-color: var(--emerald);
            background: rgba(16, 185, 129, 0.08);
        }

        .life-event-checkbox {
            position: absolute;
            top: 14px;
            left: 14px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--border-subtle);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: #000;
            background: transparent;
            transition: all 0.2s ease;
        }

        .life-event-card.active .life-event-checkbox {
            background: var(--emerald);
            border-color: var(--emerald);
        }

        .life-timeline-flow {
            background: rgba(10, 15, 28, 0.9);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 24px;
            margin-top: 20px;
        }

        [data-theme="light"] .life-timeline-flow {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.2);
        }

        .timeline-milestones-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            overflow-x: auto;
            gap: 16px;
            padding: 20px 0 10px;
            scrollbar-width: none;
        }

        .timeline-milestones-row::-webkit-scrollbar {
            display: none;
        }

        .timeline-milestone {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            min-width: 110px;
            position: relative;
            flex-shrink: 0;
        }

        .milestone-circle {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(14, 21, 38, 0.9);
            border: 2px solid var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            margin-bottom: 8px;
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
        }

        /*  DECISION TOOLBOX CARDS */
        .decision-engine-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-xl);
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
        }

        [data-theme="light"] .decision-engine-card {
            background: #ffffff;
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        }

        .decision-outcome-badge {
            font-size: 1.1rem;
            font-weight: 900;
            padding: 8px 18px;
            border-radius: 30px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            letter-spacing: 0.5px;
        }

        .decision-outcome-badge.buy {
            background: rgba(16, 185, 129, 0.2);
            border: 1px solid var(--emerald);
            color: var(--emerald-light);
        }

        .decision-outcome-badge.wait {
            background: rgba(245, 158, 11, 0.2);
            border: 1px solid var(--gold);
            color: var(--gold-light);
        }

        .decision-outcome-badge.rent {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid var(--red);
            color: var(--red-light);
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  FI SCORE INFO & EXPLAINERS CSS                                     */
        /* ════════════════════════════════════════════════════════════════════ */
        .pillar-box { cursor: help; }
        .pillar-box .p-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
        .info-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: rgba(99,102,241,0.2); border: 1px solid var(--surface-border); color: var(--indigo-light); font-size: 0.7rem; font-weight: 900; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
        .info-dot:hover { background: var(--indigo); color: #fff; }
        .info-pop { position: absolute; z-index: 900; max-width: 320px; width: max-content; background: #0d1326; border: 1px solid var(--surface-border); border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; box-shadow: 0 12px 40px rgba(0,0,0,0.6); display: none; }
        .info-pop h4 { color: #fff; font-size: 0.9rem; margin: 0 0 6px; }
        .info-pop .how { color: var(--gold-light); font-weight: 700; margin: 8px 0 4px; font-size: 0.8rem; }
        .info-pop .tip { color: var(--emerald-light); margin-top: 6px; }
        .info-pop .how-to-improve { margin-top: 8px; }
        .info-pop ul { margin: 4px 0 0; padding-right: 16px; }
        .info-pop li { margin-bottom: 3px; }
        .info-pop a { color: var(--indigo-light); }
        .info-pop a:hover { color: #fff; }
        .pillar-box { position: relative; }
        @media (max-width: 640px) { .info-pop { position: fixed; left: 10px; right: 10px; bottom: 14px; top: auto; width: auto; max-width: none; } }
        .bottleneck-explain { margin-top: 10px; background: rgba(5,8,17,0.6); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px 14px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }
        .bottleneck-explain strong { color: var(--gold-light); }
        .bottleneck-explain .bench { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border-subtle); color: var(--text-muted); font-size: 0.78rem; }
        .info-pop-close { position: absolute; top: 6px; left: 8px; background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 4px; }
        .info-pop-close:hover { color: #fff; }

        /* ════════════════════════════════════════════════════════════════════ */
        /*  DEMO/LIVE BANNER +  FINANCIAL MEMORY CSS                          */
        /* ════════════════════════════════════════════════════════════════════ */
        .dm-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-radius: var(--radius-md); margin-bottom: 12px; font-size: 0.85rem; line-height: 1.5; }

        /* ═══ Command Center Verdict — the first answer: where do I stand? ═══ */
        .cc-verdict { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 14px; border: 1px solid; animation: fadeIn 0.3s ease; }
        .cc-verdict.on-track { background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(10,15,28,0.95) 100%); border-color: rgba(16,185,129,0.4); }
        .cc-verdict.at-risk { background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(10,15,28,0.95) 100%); border-color: rgba(245,158,11,0.45); }
        .cc-verdict.off-track { background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(10,15,28,0.95) 100%); border-color: rgba(239,68,68,0.4); }
        .cc-verdict-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
        .cc-verdict-dot { width: 14px; height: 14px; min-width: 14px; border-radius: 50%; }
        .cc-verdict.on-track .cc-verdict-dot { background: var(--emerald); box-shadow: 0 0 14px var(--emerald); }
        .cc-verdict.at-risk .cc-verdict-dot { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
        .cc-verdict.off-track .cc-verdict-dot { background: var(--red-light, #f87171); box-shadow: 0 0 14px rgba(239,68,68,0.7); }
        .cc-verdict-title { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 900; color: #fff; line-height: 1.3; }
        .cc-verdict-sub { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
        .cc-verdict-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
        .cc-verdict-chip { background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 8px 14px; min-width: 0; }
        .cc-verdict-chip .k { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }
        .cc-verdict-chip .v { font-size: 1.05rem; font-weight: 900; color: #fff; }
        .cc-verdict-next { background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; }
        .cc-verdict-next .k { font-size: 0.78rem; font-weight: 800; color: var(--gold-light); margin-bottom: 4px; }
        .cc-verdict-next .v { font-size: 0.98rem; color: var(--text-primary); line-height: 1.55; margin-bottom: 10px; }
        .cc-verdict-actions { display: flex; gap: 10px; flex-wrap: wrap; }
        [data-theme="light"] .cc-verdict.on-track { background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(255,255,255,0.9) 100%); }
        [data-theme="light"] .cc-verdict.at-risk { background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(255,255,255,0.9) 100%); }
        [data-theme="light"] .cc-verdict.off-track { background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(255,255,255,0.9) 100%); }
        [data-theme="light"] .cc-verdict-title { color: var(--text-primary); }
        [data-theme="light"] .cc-verdict-chip .v { color: var(--text-primary); }
        [data-theme="light"] .cc-verdict-next { background: rgba(0,0,0,0.04); }
        .dm-banner-demo { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.35); color: var(--text-secondary); }
        .dm-banner-live { background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.35); color: var(--text-secondary); }
        .dm-dot { width: 10px; height: 10px; min-width: 10px; border-radius: 50%; }
        .dm-banner-demo .dm-dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
        .dm-banner-live .dm-dot { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
        .dm-banner strong { color: #fff; }
        .dm-banner-btn { margin-inline-start: auto; background: var(--gold); color: #000; font-weight: 800; font-size: 0.78rem; padding: 7px 16px; border-radius: 20px; border: none; cursor: pointer; font-family: var(--font); min-height: 36px; }
        .dm-banner-live .dm-banner-btn { background: transparent; border: 1px solid var(--emerald); color: var(--emerald-light); }
        .dm-banner-live .dm-banner-btn:hover { background: rgba(16,185,129,0.15); }
        .fmem-card { background: var(--bg-card); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 20px; margin: 16px 0; }
        .fmem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
        .fmem-delta { background: rgba(14,21,38,0.8); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 12px; }
        .fmem-delta .fk { font-size: 0.7rem; color: var(--text-muted); font-weight: 800; margin-bottom: 3px; }
        .fmem-delta .fv { font-family: var(--font-mono); font-size: 1.02rem; font-weight: 900; color: #fff; }
        .fmem-delta .fd { font-size: 0.8rem; font-weight: 900; margin-top: 2px; }
        .fmem-delta .fd.up { color: var(--emerald-light); }
        .fmem-delta .fd.down { color: #f87171; }
        .fmem-delta .fd.flat { color: var(--text-muted); }
        .fmem-history { margin-top: 14px; }
        .fmem-history summary { cursor: pointer; font-size: 0.82rem; font-weight: 800; color: var(--indigo-light); }
        .fmem-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.78rem; }
        .fmem-table th { text-align: right; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border-subtle); font-size: 0.7rem; }
        .fmem-table td { padding: 6px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); font-family: var(--font-mono); }

        /* ════════════════════════════════════════════════════════════════════ */
        /*  GUIDED PATH + PAAMONIM BREAKDOWN CSS                               */
        /* ════════════════════════════════════════════════════════════════════ */
        .guided-path-card { background: var(--bg-card); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 22px; margin: 20px 0; }
        .gp-stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
        .gp-step { display: flex; align-items: center; gap: 8px; cursor: pointer; opacity: 0.45; transition: opacity 0.2s; }
        .gp-step.active, .gp-step.done { opacity: 1; }
        .gp-step-num { width: 30px; height: 30px; min-width: 30px; border-radius: 50%; background: rgba(99,102,241,0.15); border: 1px solid var(--surface-border); color: var(--indigo-light); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
        .gp-step.done .gp-step-num { background: var(--emerald); border-color: var(--emerald); color: #000; }
        .gp-step.active .gp-step-num { background: var(--indigo); border-color: var(--indigo); color: #fff; }
        .gp-step-lbl { font-size: 0.82rem; font-weight: 800; color: var(--text-secondary); }
        .gp-step.active .gp-step-lbl { color: #fff; }
        .gp-step-line { flex: 1; height: 2px; background: var(--border-subtle); min-width: 14px; }
        .gp-step-line.filled { background: var(--emerald); }
        .gp-plan-panel, .gp-tips-panel { background: rgba(5,8,17,0.4); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; margin-top: 8px; }
        .gp-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
        .gp-plan-item { background: rgba(14,21,38,0.8); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px 14px; }
        .gp-plan-item .gp-k { font-size: 0.72rem; color: var(--text-muted); font-weight: 800; margin-bottom: 3px; }
        .gp-plan-item .gp-v { font-size: 1.05rem; font-weight: 900; color: #fff; font-family: var(--font-mono); }
        .gp-plan-item .gp-n { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; line-height: 1.45; }
        .gp-plan-item.warn .gp-v { color: var(--gold-light); }
        .gp-plan-item.bad .gp-v { color: #f87171; }
        .gp-plan-item.good .gp-v { color: var(--emerald-light); }
        .gp-plan-item.focus { border-color: var(--gold); box-shadow: 0 0 16px rgba(245,158,11,0.15); }

        /*  STAGE HEADERS — סדר המסע: א׳ מספרים ← ב׳ אסטרטגיה ← ג׳ הצעות ← ד׳ העשרה ← טיפים */
        .stage-header { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; padding: 14px 18px; background: linear-gradient(90deg, rgba(245,158,11,0.10), rgba(99,102,241,0.06) 60%, transparent); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--radius-lg); }
        .stage-header .stage-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(245,158,11,0.15); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 900; color: var(--gold-light); }
        .stage-header h3 { font-size: 1.15rem; font-weight: 900; color: #fff; margin: 0 0 2px; }
        .stage-header p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
        @media (max-width: 480px) { .stage-header { gap: 10px; padding: 12px 14px; } .stage-header .stage-num { width: 36px; height: 36px; font-size: 1rem; } }

        /*  DEGREE ROI — מנוף ההכנסה האקדמי (beginner-friendly & step-by-step) */
        .deg-modal-box {
            max-width: min(800px, calc(100vw - 20px)) !important;
            max-height: calc(100vh - 40px) !important;
            max-height: calc(100dvh - 40px) !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            padding: clamp(16px, 3vw, 28px) !important;
            scrollbar-width: thin !important;
            scrollbar-color: var(--gold) rgba(14, 21, 38, 0.6) !important;
            overscroll-behavior: contain !important;
        }
        .deg-stepper-tabs {
            display: flex;
            gap: 6px;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: wrap;
            margin: 10px 0 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .deg-tab-btn {
            background: rgba(99, 102, 241, 0.08);
            border: 1px solid rgba(99, 102, 241, 0.25);
            color: var(--text-secondary);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 34px !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .deg-tab-btn:hover {
            background: rgba(99, 102, 241, 0.2);
            color: #fff;
            border-color: var(--indigo-light);
        }
        .deg-tab-btn.active {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(99, 102, 241, 0.2));
            border-color: var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
        }
        .deg-tab-toggle {
            background: rgba(255, 255, 255, 0.05);
            border: 1px dashed var(--border-subtle);
            color: var(--text-muted);
            padding: 5px 12px;
            border-radius: 16px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            min-height: 32px !important;
            transition: all 0.15s;
            margin-inline-start: auto;
        }
        .deg-tab-toggle:hover {
            color: #fff;
            border-color: var(--gold);
        }
        .deg-step-panel {
            animation: degFadeIn 0.2s ease-out;
        }
        @keyframes degFadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .deg-step-nav {
            display: flex;
            gap: 10px;
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid var(--border-subtle);
        }
        .deg-mode-all .deg-step-nav:not(.deg-step-nav-final) {
            display: none !important;
        }
        .deg-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
        .deg-steps span { font-size: 0.75rem; font-weight: 800; color: var(--indigo-light); background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); border-radius: 16px; padding: 5px 12px; }
        .deg-q { margin-bottom: 4px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
        .deg-q-title { font-size: 1.02rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
        .deg-hint { font-size: 0.78rem; color: var(--text-secondary); background: rgba(16,185,129,0.06); border-right: 3px solid rgba(16,185,129,0.4); border-radius: 6px; padding: 8px 12px; margin-top: 8px; line-height: 1.6; }
        .deg-chips {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 8px;
            max-height: 360px;
            overflow-y: auto;
            padding: 6px;
            border-radius: var(--radius-md);
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(0,0,0,0.2);
            scrollbar-width: thin;
        }
        .deg-chip { display: flex; flex-direction: column; gap: 5px; background: rgba(14,21,38,0.8); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 12px; cursor: pointer; text-align: right; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
        .deg-chip:hover { border-color: rgba(245,158,11,0.5); }
        .deg-chip.active { border-color: var(--gold); background: rgba(245,158,11,0.1); box-shadow: 0 0 12px rgba(245,158,11,0.15); }
        .deg-chip-name { font-size: 0.8rem; font-weight: 800; color: #fff; line-height: 1.35; }
        .deg-chip-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
        .deg-chip-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--emerald-light)); border-radius: 3px; }
        .deg-chip-sal { font-size: 0.78rem; font-weight: 900; color: var(--gold-light); font-family: var(--font-mono); }
        .deg-verdict-big { font-size: 1.02rem; font-weight: 800; color: #fff; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.35); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; line-height: 1.7; }
        .deg-verdict-big b { color: var(--emerald-light); font-size: 1.2rem; }
        .deg-verdict-big.warn { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.35); }
        .deg-verdict-big.warn b { color: var(--gold-light); }
        .deg-res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
        .deg-res-box { background: rgba(14,21,38,0.8); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 12px; }
        .deg-res-box .k { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; margin-bottom: 3px; }
        .deg-res-box .v { font-size: 1.1rem; font-weight: 900; color: #fff; font-family: var(--font-mono); }
        .deg-res-box .n { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
        .deg-res-box.good .v { color: var(--emerald-light); }
        .deg-res-box.warn .v { color: var(--gold-light); }
        .deg-verdict { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.25); border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.7; }
        .deg-verdict b { color: #fff; }
        .deg-details { margin-top: 10px; }
        .deg-details summary { cursor: pointer; font-size: 0.85rem; font-weight: 800; color: var(--gold-light); padding: 8px 0; }

        /*  NUMBER EXPLAINERS — הרחבה על כל מספר מרכזי */
        .fi-explainers { margin: 0 0 24px; }
        .fi-explainers details { background: rgba(14,21,38,0.7); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; }
        .fi-explainers summary { cursor: pointer; padding: 12px 16px; font-size: 0.9rem; font-weight: 800; color: #fff; list-style: none; display: flex; align-items: center; gap: 8px; user-select: none; }
        .fi-explainers summary::-webkit-details-marker { display: none; }
        .fi-explainers summary::before { content: '▸'; color: var(--gold-light); transition: transform .15s; flex-shrink: 0; }
        .fi-explainers details[open] summary::before { transform: rotate(90deg); }
        .fi-explainers .fx-body { padding: 0 16px 14px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75; }
        .fi-explainers .fx-src { margin-top: 8px; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--border-subtle); padding-top: 8px; }
        .fi-explainers .fx-src b { color: var(--emerald-light); }
        .fi-explainers code { background: rgba(0,0,0,0.35); padding: 1px 6px; border-radius: 4px; color: var(--gold-light); font-family: var(--font-mono); font-size: 0.8rem; }
        .gp-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
        .gp-tip { background: rgba(14,21,38,0.8); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px 14px; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.55; }
        .gp-tip strong { color: var(--gold-light); }
        .paamonim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
        .paamonim-grid .fnd-input-box label { font-size: 0.75rem; }
        .paamonim-grid .fnd-input-box input { width: 100%; }
        .paamonim-total-row { display: flex; justify-content: space-between; align-items: center; background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.3); border-radius: var(--radius-md); padding: 10px 16px; margin-top: 12px; }

        /*  THE REAL NUMBERS CONSOLE CSS */
        .real-numbers-card {
            background: linear-gradient(135deg, rgba(14, 21, 38, 0.96), rgba(10, 15, 28, 0.98));
            border: 2px solid rgba(245, 158, 11, 0.35);
            border-radius: var(--radius-xl);
            padding: clamp(20px, 3vw, 28px);
            margin: 18px 0 24px;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
        }
        [data-theme="light"] .real-numbers-card {
            background: #ffffff;
            border-color: rgba(245, 158, 11, 0.4);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        }
        .real-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
        }
        .real-inputs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 14px;
            margin-bottom: 18px;
        }
        .real-input-box {
            background: rgba(20, 28, 50, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        [data-theme="light"] .real-input-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .real-input-box.highlight {
            border-color: rgba(245, 158, 11, 0.5);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(99, 102, 241, 0.08));
        }
        [data-theme="light"] .real-input-box.highlight {
            background: #fffdf5;
            border-color: var(--gold);
        }
        .real-input-box:focus-within {
            border-color: var(--gold);
            box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
        }
        .real-input-box label {
            font-size: 0.8rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 8px;
            display: block;
        }
        [data-theme="light"] .real-input-box label {
            color: #0f172a;
        }
        .real-input-field-wrap {
            display: flex;
            align-items: center;
            background: rgba(10, 15, 28, 0.85);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 2px 10px;
            transition: border-color 0.2s;
        }
        [data-theme="light"] .real-input-field-wrap {
            background: #ffffff;
            border-color: #cbd5e1;
        }
        .real-input-box:focus-within .real-input-field-wrap {
            border-color: var(--gold);
        }
        .real-input-curr {
            font-size: 0.95rem;
            font-weight: 900;
            color: var(--gold-light);
            margin-inline-end: 6px;
        }
        .real-num-field {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 900;
            padding: 8px 0;
            -moz-appearance: textfield;
        }
        [data-theme="light"] .real-num-field {
            color: #0f172a;
        }
        .real-num-field::-webkit-outer-spin-button,
        .real-num-field::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .real-num-field.text-center {
            text-align: center;
        }
        .real-field-hint {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-top: 6px;
        }
        .btn-paamonim-mini {
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid var(--gold);
            color: var(--gold-light);
            border-radius: 6px;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 3px 8px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-paamonim-mini:hover {
            background: var(--gold);
            color: #000;
            transform: translateY(-1px);
        }
        .paamonim-banner-box {
            background: linear-gradient(135deg, rgba(30, 27, 75, 0.75), rgba(15, 23, 42, 0.85));
            border: 1px solid rgba(99, 102, 241, 0.35);
            border-radius: var(--radius-lg);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            flex-wrap: wrap;
            margin-top: 6px;
        }
        [data-theme="light"] .paamonim-banner-box {
            background: linear-gradient(135deg, #f0fdf4, #eff6ff);
            border-color: rgba(99, 102, 241, 0.25);
        }
        .pbb-content {
            flex: 1;
            min-width: 260px;
        }
        .pbb-action {
            flex-shrink: 0;
        }
        .hub-quick-nav-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--border-subtle);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 2px;
        }
        .hub-quick-nav-bar::-webkit-scrollbar { display: none; }
        .hub-nav-lbl {
            font-size: 0.75rem;
            font-weight: 800;
            color: var(--text-muted);
            margin-left: 4px;
            flex: 0 0 auto;
            white-space: nowrap;
        }
        .hub-nav-pill {
            flex: 0 0 auto;
            white-space: nowrap;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 0.78rem;
            font-weight: 800;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: inherit;
        }
        [data-theme="light"] .hub-nav-pill {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: #334155;
        }
        .hub-nav-pill:hover, .hub-nav-pill.active {
            background: rgba(245, 158, 11, 0.18);
            border-color: var(--gold);
            color: #fff;
            transform: translateY(-1px);
        }
        [data-theme="light"] .hub-nav-pill:hover, [data-theme="light"] .hub-nav-pill.active {
            background: #fef3c7;
            color: #92400e;
        }

        /* ════════════════════════════════════════════════════════════════════
         * ‍‍‍ PAAMONIM FAMILY ECONOMICS & BUDGET HUB CSS
         * ════════════════════════════════════════════════════════════════════ */
        .paamonim-hub-card {
            background: linear-gradient(135deg, rgba(16, 24, 48, 0.98), rgba(12, 18, 36, 0.98));
            border: 2px solid rgba(59, 130, 246, 0.35);
            border-radius: var(--radius-xl);
            padding: clamp(18px, 3vw, 28px);
            margin: 24px 0;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }
        [data-theme="light"] .paamonim-hub-card {
            background: #ffffff;
            border-color: rgba(59, 130, 246, 0.35);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }
        .paamonim-hub-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .paamonim-tab-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 4px;
        }
        .paamonim-tab-nav::-webkit-scrollbar { display: none; }
        .paamonim-tab-btn {
            flex: 0 0 auto;
            white-space: nowrap;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-subtle);
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }
        [data-theme="light"] .paamonim-tab-btn {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: #334155;
        }
        .paamonim-tab-btn:hover {
            border-color: var(--blue-light);
            color: #fff;
        }
        .paamonim-tab-btn.active {
            background: rgba(59, 130, 246, 0.2);
            border-color: #3b82f6;
            color: #60a5fa;
        }
        [data-theme="light"] .paamonim-tab-btn.active {
            background: #eff6ff;
            border-color: #3b82f6;
            color: #1d4ed8;
        }
        .paamonim-rules-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 14px;
        }
        .paamonim-rule-box {
            background: rgba(20, 30, 55, 0.65);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: transform 0.2s, border-color 0.2s;
        }
        [data-theme="light"] .paamonim-rule-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .paamonim-rule-box:hover {
            transform: translateY(-2px);
            border-color: rgba(59, 130, 246, 0.5);
        }
        .prb-header {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .prb-num {
            background: rgba(59, 130, 246, 0.2);
            color: #93c5fd;
            font-size: 0.72rem;
            font-weight: 900;
            padding: 2px 7px;
            border-radius: 12px;
            font-family: var(--font-mono);
        }
        .prb-title {
            font-size: 0.95rem;
            font-weight: 900;
            color: #fff;
        }
        [data-theme="light"] .prb-title {
            color: #0f172a;
        }
        .prb-desc {
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }
        .prb-action-hint {
            font-size: 0.75rem;
            font-weight: 700;
            color: #38bdf8;
            margin-top: auto;
            padding-top: 6px;
            border-top: 1px dashed rgba(255, 255, 255, 0.08);
        }
        [data-theme="light"] .prb-action-hint {
            color: #0284c7;
            border-top-color: #e2e8f0;
        }
        .paamonim-commandments-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 14px;
        }
        .paamonim-commandment-box {
            background: rgba(22, 28, 48, 0.7);
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: var(--radius-lg);
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        [data-theme="light"] .paamonim-commandment-box {
            background: #fffdf7;
            border-color: rgba(245, 158, 11, 0.3);
        }
        .pcb-title {
            font-size: 0.95rem;
            font-weight: 900;
            color: var(--gold-light);
        }
        [data-theme="light"] .pcb-title {
            color: #b45309;
        }
        .pcb-desc {
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }
        .paamonim-balam-box {
            background: rgba(20, 28, 52, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 22px;
        }
        [data-theme="light"] .paamonim-balam-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .balam-controls-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 14px;
            margin-bottom: 20px;
        }
        .balam-result-box {
            background: linear-gradient(135deg, rgba(30, 27, 75, 0.6), rgba(15, 23, 42, 0.7));
            border: 1px solid rgba(129, 140, 248, 0.4);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px;
        }
        [data-theme="light"] .balam-result-box {
            background: #f0fdf4;
            border-color: #86efac;
        }
        .paamonim-downloads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 14px;
        }
        .paamonim-download-box {
            background: rgba(20, 28, 52, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 12px;
        }
        [data-theme="light"] .paamonim-download-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .paamonim-cat-header {
            font-size: 0.92rem;
            font-weight: 900;
            color: #60a5fa;
            margin: 18px 0 10px;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(96, 165, 250, 0.25);
            display: flex;
            align-items: center;
            gap: 6px;
            grid-column: 1 / -1;
        }
        [data-theme="light"] .paamonim-cat-header {
            color: #1d4ed8;
            border-bottom-color: #bfdbfe;
        }
        .paamonim-modal-box {
            max-width: 820px !important;
            width: 95% !important;
            max-height: 90vh !important;
            overflow-y: auto !important;
            padding: clamp(16px, 3.5vw, 28px) !important;
            border-radius: var(--radius-xl) !important;
        }
        .paamonim-modal-footer {
            display: flex;
            gap: 10px;
            position: sticky;
            bottom: -1px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding-top: 12px;
            padding-bottom: 4px;
            border-top: 1px solid var(--border-subtle);
            z-index: 10;
        }
        [data-theme="light"] .paamonim-modal-footer {
            background: rgba(255, 255, 255, 0.95);
            border-top-color: #e2e8f0;
        }

        .hub-calculators-suite {
            background: rgba(14, 21, 38, 0.85);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-xl);
            padding: 22px 24px;
            margin: 26px 0;
        }
        [data-theme="light"] .hub-calculators-suite {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        }
        .hub-tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }
        .hub-tool-card {
            display: flex;
            flex-direction: column;
            background: rgba(20, 28, 50, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
            text-decoration: none;
            color: inherit;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        [data-theme="light"] .hub-tool-card {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .hub-tool-card:hover {
            border-color: var(--gold);
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
        }
        .ht-icon {
            font-size: 1.6rem;
            margin-bottom: 8px;
        }
        .ht-title {
            font-size: 0.95rem;
            font-weight: 900;
            color: #fff;
            margin-bottom: 4px;
        }
        [data-theme="light"] .ht-title {
            color: #0f172a;
        }
        .ht-desc {
            font-size: 0.78rem;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 12px;
            flex: 1;
        }
        .ht-action {
            font-size: 0.76rem;
            font-weight: 800;
            color: var(--gold-light);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* ⏳ WHAT-IF TIME MACHINE & MORTGAGE STYLES */
        .whatif-years-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 8px;
            margin-top: 6px;
        }
        .whatif-chip {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 8px 10px;
            font-size: 0.78rem;
            font-weight: 800;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: inherit;
            text-align: center;
        }
        [data-theme="light"] .whatif-chip {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #334155;
        }
        .whatif-chip:hover {
            border-color: var(--gold);
            color: #fff;
        }
        .whatif-chip.active {
            background: rgba(245, 158, 11, 0.2);
            border-color: var(--gold);
            color: var(--gold-light);
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
        }
        [data-theme="light"] .whatif-chip.active {
            background: #fef3c7;
            border-color: #d97706;
            color: #92400e;
        }
        .whatif-assets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 8px;
            margin-top: 6px;
        }
        .whatif-asset-btn {
            background: rgba(14, 21, 38, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 10px 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: inherit;
        }
        [data-theme="light"] .whatif-asset-btn {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .whatif-asset-btn:hover {
            border-color: #60a5fa;
            transform: translateY(-2px);
        }
        .whatif-asset-btn.active {
            background: rgba(59, 130, 246, 0.18);
            border-color: #3b82f6;
            box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
        }
        [data-theme="light"] .whatif-asset-btn.active {
            background: #eff6ff;
            border-color: #2563eb;
        }
        .wa-icon { font-size: 1.25rem; }
        .wa-name { font-size: 0.8rem; font-weight: 900; color: #fff; }
        [data-theme="light"] .wa-name { color: #0f172a; }
        .wa-sub { font-size: 0.68rem; color: var(--text-muted); }

        /*  TARGET WEALTH & GAP BREAKDOWN CSS */
        .target-wealth-card {
            background: linear-gradient(135deg, rgba(20, 28, 50, 0.95), rgba(10, 15, 28, 0.98));
            border: 2px solid rgba(245, 158, 11, 0.35);
            border-radius: var(--radius-xl);
            padding: clamp(20px, 3vw, 28px);
            margin: 22px 0;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
        }
        [data-theme="light"] .target-wealth-card {
            background: #ffffff;
            border-color: rgba(245, 158, 11, 0.4);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        }
        .target-kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
        }
        .target-kpi-box {
            background: rgba(14, 21, 38, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
        }
        [data-theme="light"] .target-kpi-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .target-kpi-box.main {
            border-color: rgba(245, 158, 11, 0.4);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(99, 102, 241, 0.08));
        }
        [data-theme="light"] .target-kpi-box.main {
            background: #fffbeb;
            border-color: var(--gold);
        }
        .target-kpi-box .lbl {
            font-size: 0.76rem;
            color: var(--text-secondary);
            font-weight: 800;
            margin-bottom: 6px;
        }
        .target-kpi-box .val {
            font-family: var(--font-mono);
            font-size: clamp(1.4rem, 2.5vw, 1.85rem);
            font-weight: 900;
            color: #fff;
            line-height: 1.2;
        }
        [data-theme="light"] .target-kpi-box .val {
            color: #0f172a;
        }
        .target-kpi-box .val.gold { color: var(--gold-light); }
        .target-kpi-box .val.red { color: #f87171; }
        .target-kpi-box .sub {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 6px;
        }
        .target-progress-track {
            height: 10px;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.08);
            overflow: hidden;
        }
        [data-theme="light"] .target-progress-track {
            background: #e2e8f0;
        }
        .target-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--gold), var(--emerald-light));
            border-radius: 5px;
            transition: width 0.4s ease;
        }
        .target-explainer-box {
            background: rgba(5, 8, 17, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px 18px;
            margin-top: 14px;
        }
        [data-theme="light"] .target-explainer-box {
            background: #f1f5f9;
            border-color: #cbd5e1;
        }

        /*  PATHWAYS TO TARGET CSS */
        .target-pathways-card {
            background: rgba(14, 21, 38, 0.85);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-xl);
            padding: 22px 24px;
            margin: 22px 0;
        }
        [data-theme="light"] .target-pathways-card {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        }
        .pathways-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 14px;
        }
        .pathway-item-card {
            background: rgba(20, 28, 50, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s, border-color 0.2s;
        }
        [data-theme="light"] .pathway-item-card {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .pathway-item-card:hover {
            border-color: var(--gold);
            transform: translateY(-2px);
        }
        .p-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .p-icon {
            font-size: 1.6rem;
        }
        .p-title {
            font-size: 0.92rem;
            font-weight: 900;
            color: #fff;
            line-height: 1.3;
        }
        [data-theme="light"] .p-title {
            color: #0f172a;
        }
        .p-tag {
            font-size: 0.68rem;
            font-weight: 800;
            display: inline-block;
            padding: 1px 7px;
            border-radius: 8px;
            margin-top: 3px;
        }
        .p-tag.emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-light); }
        .p-tag.gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-light); }
        .p-tag.cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
        .p-tag.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
        .p-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.55;
            margin: 0 0 12px 0;
            flex: 1;
        }
        .p-impact {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 6px;
            padding: 8px 10px;
            font-size: 0.76rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-secondary);
        }
        [data-theme="light"] .p-impact {
            background: #edf2f7;
        }
        .p-impact strong {
            color: #fff;
        }
        [data-theme="light"] .p-impact strong {
            color: #0f172a;
        }

        /*  FINANCIAL REPAIR KIT CSS */
        .financial-repair-card {
            background: rgba(14, 21, 38, 0.85);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-xl);
            padding: 22px 24px;
            margin: 22px 0;
        }
        [data-theme="light"] .financial-repair-card {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.04);
        }
        .repair-steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 14px;
        }
        .repair-step-box {
            background: rgba(20, 28, 50, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        [data-theme="light"] .repair-step-box {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .repair-step-box.spotlight {
            border-color: var(--gold);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.12));
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
        }
        [data-theme="light"] .repair-step-box.spotlight {
            background: #fffdf5;
            border-color: var(--gold);
        }
        .rs-step-num {
            display: inline-block;
            font-size: 0.68rem;
            font-weight: 900;
            padding: 2px 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--gold-light);
            margin-bottom: 8px;
            align-self: flex-start;
        }
        .rs-icon {
            font-size: 1.5rem;
            margin-bottom: 6px;
        }
        .rs-title {
            font-size: 0.95rem;
            font-weight: 900;
            color: #fff;
            margin-bottom: 10px;
        }
        [data-theme="light"] .rs-title {
            color: #0f172a;
        }
        .rs-checklist {
            list-style: none;
            padding: 0;
            margin: 0 0 14px 0;
            font-size: 0.78rem;
            color: var(--text-secondary);
            line-height: 1.6;
            flex: 1;
        }
        .rs-checklist li {
            margin-bottom: 4px;
        }
        .rs-status {
            font-size: 0.72rem;
            font-weight: 800;
            padding: 4px 8px;
            border-radius: 6px;
            text-align: center;
        }
        .rs-status.done { background: rgba(16, 185, 129, 0.1); color: var(--emerald-light); }
        .rs-status.current { background: rgba(99, 102, 241, 0.15); color: var(--indigo-light); }
        .rs-status.next { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

        /*  TICKERIO FUNNEL COMPANION CARD CSS */
        .tickerio-funnel-card {
            background: linear-gradient(135deg, rgba(14, 21, 38, 0.98), rgba(16, 45, 36, 0.95));
            border: 2px solid var(--gold);
            border-radius: var(--radius-xl);
            padding: clamp(22px, 3.5vw, 36px);
            margin: 32px 0 24px;
            box-shadow: 0 16px 45px rgba(245, 158, 11, 0.18);
            position: relative;
            overflow: hidden;
        }
        [data-theme="light"] .tickerio-funnel-card {
            background: linear-gradient(135deg, #ffffff, #fdf8e6);
            border-color: var(--gold);
            box-shadow: 0 16px 40px rgba(245, 158, 11, 0.12);
        }
        .tf-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            flex-wrap: wrap;
        }
        .tf-content {
            flex: 1;
            min-width: 280px;
        }
        .tf-title {
            font-size: clamp(1.3rem, 2.5vw, 1.75rem);
            font-weight: 900;
            color: #fff;
            line-height: 1.3;
            margin: 8px 0 12px;
        }
        [data-theme="light"] .tf-title {
            color: #0f172a;
        }
        .tf-desc {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 14px;
        }
        .tf-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 8px;
            font-size: 0.8rem;
            font-weight: 700;
            color: #fff;
        }
        [data-theme="light"] .tf-features {
            color: #1e293b;
        }
        .tf-visual {
            width: 310px;
            flex-shrink: 0;
        }
        .tf-mock-card {
            background: rgba(10, 15, 28, 0.95);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: var(--radius-lg);
            padding: 16px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        }
        [data-theme="light"] .tf-mock-card {
            background: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        }
        .tf-mock-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .tf-mock-logo {
            font-family: var(--font-mono);
            font-weight: 900;
            color: var(--gold-light);
            font-size: 0.88rem;
        }
        .tf-mock-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.78rem;
            padding: 6px 0;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
            color: #fff;
        }
        [data-theme="light"] .tf-mock-row {
            color: #0f172a;
            border-bottom-color: #f1f5f9;
        }
        .tf-mock-divider {
            height: 1px;
            background: var(--border-subtle);
            margin: 10px 0;
        }

        /* ════════════════════════════════════════════════════════════════════ */
        /*  DIRECT EDITABLE NUMBER INPUTS CSS                                 */
        /* ════════════════════════════════════════════════════════════════════ */
        .editable-num-input {
            background: rgba(14, 21, 38, 0.95);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            color: var(--gold-light);
            font-family: var(--font-mono);
            font-size: 0.95rem;
            font-weight: 800;
            text-align: center;
            padding: 4px 8px;
            width: 105px;
            outline: none;
            transition: all 0.2s ease;
            -moz-appearance: textfield;
        }

        .editable-num-input::-webkit-outer-spin-button,
        .editable-num-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .editable-num-input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
            background: rgba(20, 32, 60, 0.98);
            color: #fff;
        }

        [data-theme="light"] .editable-num-input {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.3);
            color: var(--indigo);
        }

        [data-theme="light"] .editable-num-input:focus {
            border-color: var(--indigo);
            box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
        }

        /* ════════════════════════════════════════════════════════════════════ */
        /*  ZEN FOCUS MODE — DIRECT KPI EDITING CSS                            */
        /* ════════════════════════════════════════════════════════════════════ */
        .zen-edit-input {
            width: 100%;
            margin-top: 8px;
            background: rgba(14, 21, 38, 0.95);
            border: 1px solid var(--gold);
            border-radius: var(--radius-sm);
            color: #fff;
            font-family: var(--font-mono);
            font-size: 1.05rem;
            font-weight: 800;
            text-align: center;
            padding: 8px 10px;
            outline: none;
            transition: all 0.2s ease;
            -moz-appearance: textfield;
        }
        .zen-edit-input::-webkit-outer-spin-button,
        .zen-edit-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .zen-edit-input:focus {
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
            background: rgba(20, 32, 60, 0.98);
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  ENHANCED VISUAL CLARITY, READABILITY & TYPOGRAPHY SCALE           */
        /* ════════════════════════════════════════════════════════════════════ */
        html {
            font-size: 16px;
        }

        body {
            font-size: 1rem;
            line-height: 1.75;
            letter-spacing: 0.2px;
        }

        .section-title {
            font-size: clamp(1.75rem, 3.5vw, 2.35rem) !important;
            font-weight: 900;
            line-height: 1.3;
            margin-bottom: 12px;
        }

        .section-subtitle {
            font-size: clamp(0.95rem, 1.8vw, 1.12rem) !important;
            line-height: 1.65;
            max-width: 820px;
            margin: 0 auto;
        }

        .fnd-input-box label,
        .input-label {
            font-size: 0.88rem !important;
            font-weight: 700 !important;
            margin-bottom: 6px;
            color: var(--text-primary);
        }

        .fnd-input-box input,
        .editable-num-input {
            font-size: 1.05rem !important;
            padding: 8px 12px !important;
            font-weight: 800 !important;
        }

        .fnd-kpi-card .val,
        .mission-stat-box .num,
        .ticket-param-box .val {
            font-size: 1.3rem !important;
            font-weight: 900;
        }

        .fnd-kpi-card .lbl,
        .mission-stat-box .lbl,
        .ticket-param-box .lbl {
            font-size: 0.82rem !important;
            font-weight: 700;
        }

        .tree-btn, .btn-cta-gold, .btn-cta-tickerio {
            font-size: 0.95rem !important;
            padding: 10px 20px !important;
        }

        .os-tab-btn, .fnd-tab-btn, .calc-tab-btn {
            font-size: 0.9rem !important;
            padding: 10px 18px !important;
        }

        .nav-links a {
            font-size: 0.88rem !important;
            padding: 8px 12px !important;
        }

        .fnd-panel-card,
        .mission-hero-card,
        .decision-one-hero,
        .quest-world-card,
        .decision-engine-card {
            padding: clamp(20px, 3vw, 32px) !important;
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  FIXYOURFI 3.0 APP SHELL, COMMAND CENTER & DECISION OS CSS          */
        /* ════════════════════════════════════════════════════════════════════ */
        :root {
            --app-nav-height: 64px;
        }

        
        /*  Sleek Pill Tab Switcher */
        .app-view-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            background: rgba(12, 18, 35, 0.95);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 40px;
            padding: 5px;
            margin: 14px auto 22px auto;
            max-width: 660px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.1);
            position: sticky;
            top: 12px;
            z-index: 100;
        }

        [data-theme="light"] .app-view-nav {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(99, 102, 241, 0.25);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
        }

        .app-view-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 30px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-secondary);
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }

        .app-view-btn .tab-icon {
            font-size: 1.05rem;
        }

        .app-view-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .app-view-btn.active {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(99, 102, 241, 0.25)) !important;
            border: 1px solid var(--gold) !important;
            color: #fff !important;
            font-weight: 900 !important;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
        }

        [data-theme="light"] .app-view-btn.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(245, 158, 11, 0.15)) !important;
            border-color: var(--indigo) !important;
            color: var(--indigo) !important;
        }


        [data-theme="light"] .app-view-btn.active {
            background: var(--gradient-indigo);
            color: #fff;
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
        }

        /* Mode Switcher Pill (Demo ⇄ My Data) */
        .data-mode-toggle {
            display: inline-flex;
            align-items: center;
            background: rgba(14, 21, 38, 0.9);
            border: 1px solid var(--border-subtle);
            border-radius: 30px;
            padding: 3px;
            cursor: pointer;
            gap: 4px;
        }

        .data-mode-option {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 800;
            color: var(--text-muted);
            transition: all 0.2s ease;
        }

        .data-mode-option.active.demo {
            background: rgba(168, 85, 247, 0.25);
            color: #c084fc;
            border: 1px solid rgba(168, 85, 247, 0.4);
        }

        .data-mode-option.active.live {
            background: rgba(16, 185, 129, 0.25);
            color: var(--emerald-light);
            border: 1px solid rgba(16, 185, 129, 0.4);
        }

        /*  Personal Financial Snapshot Bar */
        .ssot-snapshot-bar {
            background: linear-gradient(135deg, rgba(14, 21, 38, 0.95), rgba(10, 15, 28, 0.9));
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: var(--radius-lg);
            padding: 16px 22px;
            margin-bottom: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 16px;
            align-items: center;
        }

        [data-theme="light"] .ssot-snapshot-bar {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.25);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        }

        .ssot-kpi-item {
            text-align: center;
        }

        .ssot-kpi-item .lbl {
            font-size: 0.76rem;
            color: var(--text-secondary);
            font-weight: 700;
            margin-bottom: 4px;
        }

        .ssot-kpi-item .val {
            font-family: var(--font-mono);
            font-size: 1.15rem;
            font-weight: 900;
            color: #fff;
        }

        [data-theme="light"] .ssot-kpi-item .val {
            color: #0f172a;
        }

        /*  ONE DECISION Hero Card */
        .one-decision-hero-box {
            background: linear-gradient(135deg, rgba(20, 28, 50, 0.98), rgba(12, 18, 35, 0.95));
            border: 2px solid var(--gold);
            border-radius: var(--radius-xl);
            padding: clamp(22px, 3.5vw, 36px);
            margin-bottom: 24px;
            box-shadow: 0 16px 40px rgba(245, 158, 11, 0.15);
            position: relative;
            overflow: hidden;
        }

        .one-decision-hero-box::after {
            content: '';
            position: absolute;
            top: -40%;
            left: -40%;
            width: 180%;
            height: 180%;
            background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 65%);
            pointer-events: none;
        }

        [data-theme="light"] .one-decision-hero-box {
            background: #ffffff;
            border-color: var(--indigo);
            box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
        }

        /* Decision Evidence Box */
        .decision-evidence-card {
            background: rgba(5, 8, 17, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 16px;
            margin-top: 18px;
        }

        [data-theme="light"] .decision-evidence-card {
            background: #f8fafc;
            border-color: rgba(99, 102, 241, 0.15);
        }

        /*  Health Checkup Grid */
        .health-checkup-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin: 16px 0;
        }

        .health-checkup-item {
            background: rgba(14, 21, 38, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        [data-theme="light"] .health-checkup-item {
            background: #ffffff;
            border-color: rgba(0, 0, 0, 0.08);
        }

        /*  Mission State Machine Card */
        .mission-action-card {
            background: rgba(14, 21, 38, 0.85);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
            margin-bottom: 20px;
        }

        [data-theme="light"] .mission-action-card {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.2);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        }

        /* Onboarding Wizard Modal */
        .wizard-modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: rgba(2, 4, 10, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: none;
            align-items: flex-start;
            justify-content: center;
            z-index: 10000;
            padding: clamp(12px, 3vh, 28px) clamp(10px, 2vw, 20px);
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            box-sizing: border-box;
        }

        .wizard-modal-box {
            background: var(--bg-card);
            border: 1px solid var(--gold);
            border-radius: var(--radius-xl);
            max-width: 580px;
            width: 100%;
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px);
            overflow-y: auto !important;
            overflow-x: hidden;
            margin: auto;
            padding: clamp(20px, 3.5vw, 32px);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
            position: relative;
            box-sizing: border-box;
            scrollbar-width: thin;
            scrollbar-color: var(--gold) rgba(14, 21, 38, 0.6);
            overscroll-behavior: contain;
        }

        [data-theme="light"] .wizard-modal-box {
            background: #ffffff;
            border-color: var(--indigo);
            box-shadow: 0 25px 60px rgba(99, 102, 241, 0.2);
        }

        .wizard-step-bar {
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin: 16px 0 24px 0;
        }

        .wizard-step-progress {
            height: 100%;
            background: var(--gradient-gold);
            width: 16.66%;
            transition: width 0.3s ease;
        }

    
        /* ════════════════════════════════════════════════════════════════════ */
        /*  COMPREHENSIVE MOBILE RESPONSIVE ENGINE (320px - 768px)            */
        /* ════════════════════════════════════════════════════════════════════ */
        @media (max-width: 768px) {
            html, body {
                overflow-x: hidden !important;
                width: 100% !important;
                font-size: 15px !important;
            }

            .container {
                padding-left: 12px !important;
                padding-right: 12px !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

            /* Ecosystem & Top Bar */
            .ecosystem-container {
                flex-direction: column !important;
                gap: 8px !important;
                align-items: flex-start !important;
            }

            .ecosystem-pills {
                width: 100% !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                padding-bottom: 4px !important;
                flex-wrap: nowrap !important;
            }

            .ecosystem-pills::-webkit-scrollbar {
                display: none !important;
            }

            /* Main Navbar */
            .nav-wrapper {
                flex-wrap: wrap !important;
                gap: 10px !important;
                padding: 10px 0 !important;
            }

            .nav-links {
                display: flex !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                white-space: nowrap !important;
                width: 100% !important;
                order: 3 !important;
                padding: 6px 0 !important;
                gap: 6px !important;
                scrollbar-width: none !important;
            }

            .nav-links::-webkit-scrollbar {
                display: none !important;
            }

            .nav-actions {
                margin-left: auto !important;
            }

            /* Hide top 5-Area App Navigation Bar on Mobile (Handled by Native Bottom Nav) */
            .app-view-nav,
            .header-container .app-view-nav {
                display: none !important;
                visibility: hidden !important;
                height: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                border: none !important;
                position: static !important;
            }

            /* Search Chips Flex */
            .dir-chips-flex {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                flex-wrap: nowrap !important;
                padding-bottom: 6px !important;
                scrollbar-width: none !important;
            }

            .dir-chips-flex::-webkit-scrollbar {
                display: none !important;
            }

            .dir-chip {
                flex: 0 0 auto !important;
                white-space: nowrap !important;
            }

            /* Real Numbers Console Mobile */
            .real-inputs-grid {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }
            .real-input-box {
                padding: 12px 14px !important;
            }
            .real-input-box.compact {
                grid-column: span 1 !important;
            }
            .real-card-header {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 12px !important;
            }
            .paamonim-banner-box {
                flex-direction: column !important;
                align-items: stretch !important;
                padding: 14px 16px !important;
                gap: 12px !important;
            }
            .pbb-action button {
                width: 100% !important;
                justify-content: center !important;
                min-height: 44px !important;
            }

            /* Paamonim Hub Mobile Adaptations */
            .paamonim-hub-card {
                padding: 16px 14px !important;
                margin: 18px 0 !important;
                border-radius: var(--radius-lg) !important;
            }
            .paamonim-hub-header {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 12px !important;
            }
            .paamonim-hub-header button {
                width: 100% !important;
                justify-content: center !important;
                min-height: 44px !important;
            }
            .paamonim-rules-grid,
            .paamonim-commandments-grid,
            .paamonim-downloads-grid,
            .balam-controls-grid {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }
            .balam-result-box {
                flex-direction: column !important;
                align-items: stretch !important;
                text-align: center !important;
                gap: 12px !important;
                padding: 14px !important;
            }
            .balam-result-box button {
                width: 100% !important;
                justify-content: center !important;
                min-height: 46px !important;
            }
            .paamonim-grid {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }
            .paamonim-grid .fnd-input-box input {
                font-size: 16px !important;
                min-height: 42px !important;
            }
            .paamonim-modal-box {
                width: 96% !important;
                padding: 16px 12px !important;
                max-height: 92vh !important;
            }
            .paamonim-modal-footer {
                flex-direction: column !important;
                gap: 8px !important;
            }
            .paamonim-modal-footer button {
                width: 100% !important;
                justify-content: center !important;
                min-height: 46px !important;
            }

            .hub-tools-grid {
                grid-template-columns: 1fr !important;
            }

            .target-kpi-grid {
                grid-template-columns: 1fr !important;
            }
            .pathways-grid {
                grid-template-columns: 1fr !important;
            }
            .repair-steps-grid {
                grid-template-columns: 1fr !important;
            }
            .tf-inner {
                flex-direction: column !important;
            }
            .tf-visual {
                width: 100% !important;
            }

            /* SSOT Snapshot KPI Grid */
            .ssot-snapshot-bar {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
                padding: 12px 14px !important;
            }

            .ssot-kpi-item .val {
                font-size: 1.02rem !important;
            }

            /* ONE DECISION Hero Card */
            .one-decision-hero-box {
                padding: 16px 14px !important;
                border-radius: var(--radius-lg) !important;
            }

            .one-decision-hero-box h2 {
                font-size: 1.25rem !important;
            }

            .one-decision-hero-box .btn-cta-gold,
            .one-decision-hero-box .tree-btn {
                width: 100% !important;
                text-align: center !important;
                justify-content: center !important;
                font-size: 0.9rem !important;
                padding: 12px !important;
            }

            /* Health Checkup */
            .health-checkup-grid {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }

            /* Mission Card */
            .mission-action-card {
                padding: 14px 16px !important;
            }

            .mission-action-card .btn-cta-gold {
                width: 100% !important;
                text-align: center !important;
                justify-content: center !important;
                margin-top: 10px !important;
            }

            /* Duolingo Quest Tree */
            .quest-world-card {
                padding: 14px !important;
            }

            .quest-nodes-row {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                justify-content: flex-start !important;
                padding-bottom: 8px !important;
                gap: 12px !important;
                scrollbar-width: none !important;
            }

            .quest-nodes-row::-webkit-scrollbar {
                display: none !important;
            }

            .quest-node {
                flex: 0 0 90px !important;
                min-width: 90px !important;
            }

            .quest-node-circle {
                width: 58px !important;
                height: 58px !important;
                font-size: 1.4rem !important;
            }

            .quest-node-title {
                font-size: 0.76rem !important;
            }

            /* Calculators Grid & Panes */
            .calc-grid,
            .fnd-dashboard-grid,
            .os-inputs-grid,
            .waterfall-tier-grid {
                grid-template-columns: 1fr !important;
                gap: 14px !important;
            }

            .calc-tab-nav {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                flex-wrap: nowrap !important;
                scrollbar-width: none !important;
            }

            .calc-tab-nav::-webkit-scrollbar {
                display: none !important;
            }

            .calc-tab-btn {
                flex: 0 0 auto !important;
                white-space: nowrap !important;
            }

            /* Form Controls & Number Inputs */
            .num-direct-input,
            .fnd-input-box input[type="number" inputmode="decimal"],
            .input-group input[type="number" inputmode="decimal"] {
                font-size: 1.05rem !important;
                height: 42px !important;
                padding: 8px 10px !important;
            }

            /* Tables Responsiveness */
            .table-wrap,
            .broker-table-container,
            .history-table-box {
                width: 100% !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }

            /* Charts Height on Mobile */
            .chart-box,
            .interactive-chart {
                max-height: 280px !important;
            }

            /* Onboarding Wizard Modal on Mobile */
            .wizard-modal-box {
                padding: 18px 14px !important;
                max-height: 90vh !important;
                overflow-y: auto !important;
            }
        }

    
        /* ════════════════════════════════════════════════════════════════════ */
        /*  FIXYOURFI 3.1 — FINANCIAL KNOWLEDGE OS & DECISION INTELLIGENCE    */
        /* ════════════════════════════════════════════════════════════════════ */
        .knowledge-tier-nav {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 8px;
            margin-bottom: 18px;
            scrollbar-width: none;
        }

        .knowledge-tier-nav::-webkit-scrollbar { display: none; }

        .k-tier-btn {
            background: rgba(14, 21, 38, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: 30px;
            padding: 8px 18px;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-secondary);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .k-tier-btn:hover {
            color: #fff;
            border-color: rgba(99, 102, 241, 0.4);
        }

        .k-tier-btn.active {
            background: var(--gradient-gold);
            color: #000;
            font-weight: 900;
            border-color: var(--gold);
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
        }

        [data-theme="light"] .k-tier-btn.active {
            background: var(--gradient-indigo);
            color: #fff;
            box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
        }

        
        /* ════════════════════════════════════════════════════════════════════ */
        /*  FIXYOURFI 3.2 — TRUTH & LIFECYCLE OS STYLES                       */
        /* ════════════════════════════════════════════════════════════════════ */
        
        /* Universal Evidence Modal & Drawer */
        .evidence-modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            height: 100dvh;
            background: rgba(2, 4, 10, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            display: none;
            align-items: flex-start;
            justify-content: center;
            z-index: 10050;
            padding: clamp(12px, 3vh, 28px) clamp(10px, 2vw, 20px);
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            box-sizing: border-box;
        }

        .evidence-modal-box {
            background: linear-gradient(135deg, rgba(14, 21, 38, 0.98), rgba(10, 15, 28, 0.96));
            border: 2px solid var(--gold);
            border-radius: var(--radius-xl);
            max-width: 660px;
            width: 100%;
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px);
            overflow-y: auto !important;
            overflow-x: hidden;
            margin: auto;
            padding: clamp(20px, 3.5vw, 30px);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
            position: relative;
            box-sizing: border-box;
            scrollbar-width: thin;
            scrollbar-color: var(--gold) rgba(14, 21, 38, 0.6);
            overscroll-behavior: contain;
        }

        .evidence-row-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            margin-bottom: 10px;
        }

        .evidence-row-card .label {
            font-size: 0.76rem;
            color: var(--gold-light);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .evidence-row-card .content {
            font-size: 0.88rem;
            color: #fff;
            line-height: 1.5;
        }

        /* Financial Timeline & Ledger */
        .timeline-container {
            position: relative;
            padding-right: 28px;
            margin-top: 18px;
        }

        .timeline-container::before {
            content: '';
            position: absolute;
            top: 6px;
            bottom: 6px;
            right: 8px;
            width: 2px;
            background: linear-gradient(to bottom, var(--gold), var(--indigo), var(--emerald));
        }

        .timeline-item {
            position: relative;
            margin-bottom: 20px;
            background: rgba(14, 21, 38, 0.7);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 14px 18px;
            transition: all 0.25s ease;
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            top: 16px;
            right: -24px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--gold);
            border: 2px solid #050811;
            box-shadow: 0 0 10px var(--gold);
        }

        /* Financial Inbox Badges & Rows */
        .inbox-card {
            background: rgba(14, 21, 38, 0.75);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-xl);
            padding: 20px 24px;
            margin-bottom: 24px;
        }

        .inbox-item-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            padding: 12px 14px;
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-subtle);
            margin-bottom: 8px;
            transition: all 0.2s ease;
        }

        .inbox-item-row:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(99, 102, 241, 0.3);
        }

        /* Assumption Governance Center Grid */
        .assumptions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
            margin-top: 16px;
        }

        .assumption-box {
            background: rgba(14, 21, 38, 0.85);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px 16px;
        }

        .assumption-box label {
            font-size: 0.78rem;
            color: var(--text-secondary);
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
        }

        .assumption-box input {
            width: 100%;
            height: 38px;
            background: rgba(5, 8, 17, 0.9);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            color: #fff;
            padding: 0 10px;
            font-weight: 700;
            font-size: 0.9rem;
        }


        /* ════════════════════════════════════════════════════════════════════ */
        /*  FIXYOURFI 3.2 — MASTER MOBILE-FIRST RESPONSIVE ARCHITECTURE       */
        /* Breakpoints: 320px → 360px → 390px → 430px → 768px → 1024px → 1440px */
        /* ════════════════════════════════════════════════════════════════════ */

        /* 1. Universal Zero-Overflow & Fluid Box Sizing */
        *, *::before, *::after {
            box-sizing: border-box !important;
            max-width: 100%;
        }

        html, body {
            overflow-x: hidden !important;
            width: 100% !important;
            max-width: 100vw !important;
            margin: 0 !important;
            padding: 0 !important;
            -webkit-text-size-adjust: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* 2. Fluid Container & Section Constraints */
        .container {
            width: 100% !important;
            max-width: 1280px !important;
            margin-left: auto !important;
            margin-right: auto !important;
            padding-left: clamp(12px, 3.5vw, 28px) !important;
            padding-right: clamp(12px, 3.5vw, 28px) !important;
            box-sizing: border-box !important;
        }

        /* 3. Fluid Responsive Typography */
        h1, .hero-title {
            font-size: clamp(1.5rem, 5.5vw, 2.6rem) !important;
            line-height: 1.25 !important;
            word-break: break-word !important;
        }

        h2, .section-title {
            font-size: clamp(1.25rem, 4vw, 2rem) !important;
            line-height: 1.3 !important;
            word-break: break-word !important;
        }

        h3 {
            font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
            line-height: 1.35 !important;
            word-break: break-word !important;
        }

        h4 {
            font-size: clamp(0.95rem, 2.5vw, 1.2rem) !important;
            line-height: 1.4 !important;
        }

        p, .section-subtitle {
            font-size: clamp(0.85rem, 2vw, 1rem) !important;
            line-height: 1.6 !important;
        }

        /* 4. Table Responsive Transformations */
        table {
            width: 100% !important;
            max-width: 100% !important;
            border-collapse: collapse !important;
        }

        .table-responsive, 
        .broker-compare-table-wrapper, 
        .etf-compare-table-wrapper {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch !important;
            margin-bottom: 16px !important;
            scrollbar-width: thin !important;
            display: block !important;
        }

        /* 5. Responsive Form Controls & Interactive Touch Targets */
        button, .btn-cta-gold, .tree-btn, .btn-cta-tickerio, select, input {
            min-height: 44px !important;
            touch-action: manipulation !important;
        }

        /* 6. Universal Modal & Drawer Constraints — Always Scrollable, Never Cut Off */
        .topic-modal-backdrop, 
        .evidence-modal-backdrop, 
        .quest-modal-backdrop,
        .wizard-modal-backdrop {
            padding: clamp(10px, 2.5vh, 24px) clamp(8px, 1.5vw, 16px) !important;
            align-items: flex-start !important;
            justify-content: center !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
            box-sizing: border-box !important;
        }

        .topic-modal-box, 
        .evidence-modal-box, 
        .quest-modal-card,
        .wizard-modal-box {
            max-width: min(800px, calc(100vw - 20px)) !important;
            width: 100% !important;
            max-height: calc(100vh - 36px) !important;
            max-height: calc(100dvh - 36px) !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            padding: clamp(16px, 3.5vw, 28px) !important;
            margin: auto !important;
            box-sizing: border-box !important;
            scrollbar-width: thin !important;
            scrollbar-color: var(--gold) rgba(14, 21, 38, 0.6) !important;
            overscroll-behavior: contain !important;
        }

        /* 7. Breakpoint: Mobile Small (320px - 480px) */
        @media (max-width: 480px) {
            body {
                padding-bottom: 74px !important;
                font-size: 14.5px !important;
            }

            .container {
                padding-left: 10px !important;
                padding-right: 10px !important;
            }

            /* Single-column grid collapses */
            .portfolio-gallery-grid,
            .comparator-grid,
            .benchmark-metric-grid,
            .health-checkup-grid,
            .assumptions-grid,
            .encyclopedia-grid,
            .calculator-grid,
            .fnd-grid-2col,
            .snapshot-kpi-grid {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
            }

            /* Stacked Action Buttons */
            .one-decision-hero-box div[style*="display: flex; gap: 12px;"],
            .wizard-modal-box div[style*="display: flex; justify-content: space-between;"],
            .evidence-modal-box div[style*="display: grid; grid-template-columns: 1fr 1fr;"] {
                flex-direction: column !important;
                grid-template-columns: 1fr !important;
                width: 100% !important;
            }

            .one-decision-hero-box button,
            .evidence-modal-box button,
            .wizard-modal-box button {
                width: 100% !important;
                justify-content: center !important;
            }

            /* Large numbers wrapping */
            .ssot-kpi-item .val,
            .hero-kpi-val,
            .benchmark-gauge-pin {
                font-size: 1.05rem !important;
            }

            /* Top Navbar Compact */
            .nav-actions {
                width: 100% !important;
                justify-content: space-between !important;
                margin-top: 6px !important;
            }

            .nav-actions button, .nav-actions select {
                padding: 4px 8px !important;
                font-size: 0.75rem !important;
            }

            /* Directory Chips Scrollable */
            .dir-chips-flex {
                display: flex !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                white-space: nowrap !important;
                padding-bottom: 4px !important;
            }

            .dir-chips-flex::-webkit-scrollbar {
                display: none !important;
            }
        }

        /* 8. Breakpoint: Tablets & Phablets (481px - 768px) */
        @media (min-width: 481px) and (max-width: 768px) {
            body {
                padding-bottom: 74px !important;
                font-size: 15px !important;
            }

            .portfolio-gallery-grid,
            .benchmark-metric-grid,
            .health-checkup-grid,
            .assumptions-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }
        }

        /* 9. Breakpoint: Laptops & Desktops (769px - 1440px+) */
        @media (min-width: 769px) {
            .app-bottom-nav {
                display: none !important;
            }

            body {
                padding-bottom: 0 !important;
            }

            .paamonim-rules-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .paamonim-commandments-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .paamonim-downloads-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .balam-controls-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .paamonim-rules-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 16px !important;
            }
            .paamonim-commandments-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 14px !important;
            }
            .paamonim-downloads-grid {
                grid-template-columns: repeat(4, 1fr) !important;
                gap: 14px !important;
            }
            .paamonim-grid {
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 12px !important;
            }
        }

        
        /* ════════════════════════════════════════════════════════════════════ */
        /*  FIXYOURFI — ZEN FOCUS MODE ("מסך אחד בכל פעם")                   */
        /* ════════════════════════════════════════════════════════════════════ */
        
        .btn-focus-mode-toggle {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(99, 102, 241, 0.2)) !important;
            border: 1px solid var(--gold) !important;
            color: #fff !important;
            font-size: 0.85rem !important;
            font-weight: 800 !important;
            padding: 6px 16px !important;
            border-radius: 30px !important;
            cursor: pointer !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
            transition: all 0.25s ease !important;
        }

        .btn-focus-mode-toggle:hover {
            transform: translateY(-1px) !important;
            box-shadow: 0 0 25px rgba(245, 158, 11, 0.4) !important;
        }

        /* When Focus Mode is Active: hide all noisy headers and panels */
        body.zen-focus-mode .ecosystem-bar,
        body.zen-focus-mode .search-bar-section,
        body.zen-focus-mode .app-view-nav,
        body.zen-focus-mode .app-view-panel,
        body.zen-focus-mode .nav-links,
        body.zen-focus-mode #unifiedMobileBottomNav,
        body.zen-focus-mode section {
            display: none !important;
        }

        body.zen-focus-mode #zenFocusContainer {
            display: block !important;
        }

        #zenFocusContainer {
            display: none;
            max-width: 680px;
            margin: 20px auto 60px auto;
            padding: 0 16px;
        }

        .zen-step-card {
            background: linear-gradient(135deg, rgba(18, 25, 45, 0.98), rgba(10, 15, 30, 0.98));
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 24px;
            padding: clamp(24px, 5vw, 36px);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.1);
            animation: fadeInZen 0.35s ease-out;
            text-align: center;
        }

        @keyframes fadeInZen {
            from { opacity: 0; transform: translateY(12px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .zen-step-indicator {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
        }

        .zen-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .zen-dot.active {
            background: var(--gold);
            width: 28px;
            border-radius: 12px;
            box-shadow: 0 0 10px var(--gold);
        }

        .zen-kpi-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin: 20px 0;
            text-align: right;
        }

        .zen-kpi-box {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
        }

        .zen-kpi-box .lbl {
            font-size: 0.78rem;
            color: var(--text-secondary);
            font-weight: 700;
        }

        .zen-kpi-box .val {
            font-size: 1.25rem;
            font-weight: 900;
            color: #fff;
            margin-top: 4px;
        }

        /* Cleaned Header Styles to reduce cognitive overload */
        .ecosystem-bar {
            padding: 4px 0 !important;
            font-size: 0.76rem !important;
        }

        .search-bar-section {
            padding: 6px 0 10px 0 !important;
        }

        .nav-links a {
            font-size: 0.82rem !important;
            padding: 4px 8px !important;
        }

        
        /* ════════════════════════════════════════════════════════════════════ */
        /*  PREMIUM UNIFIED SINGLE TOP HEADER                                */
        /* ════════════════════════════════════════════════════════════════════ */
        .main-site-header {
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(10, 15, 28, 0.95);
            backdrop-filter: blur(25px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            padding: 8px 0;
        }

        [data-theme="light"] .main-site-header {
            background: rgba(255, 255, 255, 0.95);
            border-bottom-color: rgba(99, 102, 241, 0.15);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.06);
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .header-container .app-view-nav {
            margin: 0 !important;
            box-shadow: none !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            background: rgba(255, 255, 255, 0.03) !important;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        @media (max-width: 768px) {
            .header-container .app-view-nav {
                display: none !important;
            }
            .hide-mobile {
                display: none !important;
            }
        }

        
        /* ════════════════════════════════════════════════════════════════════ */
        /*  TRUE MOBILE-FIRST ENGINE (NATIVE APP FEEL & 0 OVERFLOW)          */
        /* ════════════════════════════════════════════════════════════════════ */

        /* 0. iOS Safe Areas & Viewport Variables */
        :root {
            --sat: env(safe-area-inset-top, 0px);
            --sab: env(safe-area-inset-bottom, 0px);
            --sal: env(safe-area-inset-left, 0px);
            --sar: env(safe-area-inset-right, 0px);
        }

        /* 1. Global Viewport & Box Bounds */
        *, *::before, *::after {
            box-sizing: border-box !important;
            max-width: 100%;
        }

        html, body {
            overflow-x: hidden !important;
            width: 100% !important;
            position: relative;
            -webkit-text-size-adjust: 100%;
        }

        /* 2. Top Header (Compact & Crisp on Mobile) */
        .main-site-header {
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 9999;
            background: rgba(10, 15, 28, 0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 8px 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .header-container .logo {
            font-size: 1.1rem !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            white-space: nowrap;
        }

        /* Desktop Top Tabs vs Mobile Bottom Nav */
        @media (min-width: 769px) {
            .app-bottom-nav {
                display: none !important;
            }
            .header-container .app-view-nav {
                display: flex !important;
            }
            body {
                padding-bottom: 0 !important;
            }
        }

        @media (max-width: 768px) {
            body {
                padding-bottom: 74px !important;
            }

            /* Hide Desktop top tabs on mobile */
            .header-container .app-view-nav {
                display: none !important;
            }

            /* Fixed Native Mobile Bottom Nav */
            .app-bottom-nav {
                display: flex !important;
                position: fixed !important;
                top: auto !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                height: 60px !important;
                background: rgba(10, 16, 30, 0.98) !important;
                backdrop-filter: blur(25px) !important;
                -webkit-backdrop-filter: blur(25px) !important;
                border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
                box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7) !important;
                z-index: 100000 !important;
                padding: 0 4px !important;
                justify-content: space-around !important;
                align-items: center !important;
                direction: rtl !important;
            }

            .nav-app-item {
                flex: 1 !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 3px !important;
                background: transparent !important;
                border: none !important;
                color: var(--text-muted) !important;
                font-size: 0.75rem !important;
                font-weight: 700 !important;
                padding: 6px 4px !important;
                min-height: 48px !important;
                cursor: pointer !important;
                transition: all 0.2s ease !important;
            }

            .nav-app-item .nav-icon {
                font-size: 1.25rem !important;
                line-height: 1 !important;
            }

            .nav-app-item.active {
                color: var(--gold-light) !important;
                font-weight: 900 !important;
            }

            .nav-app-item.active .nav-icon {
                transform: scale(1.1);
            }
        }

        /* 3. FIX OVERLAYS: Force ALL Grids to 1-Column Stack on Mobile */
        @media (max-width: 900px) {
            .os-dashboard-grid,
            .os-grid,
            .fnd-dashboard-grid,
            .levers-grid,
            .stress-grid,
            .tools-grid,
            .calc-grid-wrapper,
            .compare-grid-layout,
            .scenario-cards-grid,
            .five-pillars-grid {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                gap: 20px !important;
            }

            .os-inputs-panel,
            .os-results-panel,
            .fnd-inputs-panel,
            .fnd-results-panel {
                width: 100% !important;
                max-width: 100% !important;
            }

            /* Un-stick floating sidebars on mobile so they never cover inputs */
            .os-nav-tabs,
            .fnd-tabs-nav,
            .calc-tabs-nav,
            .journey-roadmap-sidebar {
                position: relative !important;
                top: 0 !important;
                left: auto !important;
                right: auto !important;
                z-index: 10 !important;
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                width: 100% !important;
                max-width: 100% !important;
                margin-bottom: 16px !important;
                padding: 6px 4px !important;
                gap: 8px !important;
                scrollbar-width: none !important;
            }

            /* Prevent off-screen elements: collapse wide fixed grids to one column on mobile */
            .journey-split-container {
                display: flex !important;
                flex-direction: column !important;
                gap: 16px !important;
            }

            #etf-compare div[style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }

            /* Benchmark pin: keep the "You are here" tag inside the viewport on mobile */
            .benchmark-gauge-pin {
                transform: none !important;
                right: auto !important;
                left: 0 !important;
                max-width: 100% !important;
            }

            /* Guided Path stepper: allow wrapping instead of overflowing the card */
            .gp-stepper {
                flex-wrap: wrap !important;
                row-gap: 8px !important;
            }
            .gp-step-line {
                display: none !important;
            }

            /* Calculator cards & bottleneck banner: stop min-content blowout */
            .calc-grid > * {
                min-width: 0 !important;
                max-width: 100% !important;
            }
            .calc-inputs-card,
            .calc-results-card {
                padding: 20px !important;
            }
            .input-value-display {
                min-width: 0 !important;
            }
            .bottleneck-banner {
                flex-wrap: wrap !important;
            }
            .bottleneck-banner > * {
                min-width: 0 !important;
            }

            /* Wealth timeline: shrink dots so 5 steps fit a 360px viewport */
            .timeline-dot {
                width: 30px !important;
                height: 30px !important;
                font-size: 0.8rem !important;
                border-width: 2px !important;
            }
            .timeline-step {
                min-width: 0 !important;
                font-size: 0.78rem !important;
            }

            /* Paamonim banner & Tickerio funnel: fixed min-widths blow out 320-360px screens */
            .pbb-content {
                min-width: 0 !important;
            }
            .tf-content {
                min-width: 0 !important;
            }

            /* Inline minmax(300px) grids: force single column on narrow screens */
            #newsGrid {
                grid-template-columns: 1fr !important;
            }

            /* Terminal ticker row: input shrinks, button stays inside the viewport */
            .terminal-ticker-input-wrap {
                flex-wrap: nowrap !important;
            }
            .terminal-ticker-input-wrap .ticker-input {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                width: auto !important;
            }
            .terminal-ticker-input-wrap .btn-cta-tickerio {
                flex: 0 0 auto !important;
            }

            /* Two-column inline grids inside OS inputs panel: collapse to one column */
            .os-inputs-panel div[style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }

            /* OS decision-tree button rows: let them wrap instead of overflowing */
            .os-inputs-panel div[style*="display: flex"] > .tree-btn,
            div[style*="display: flex"] > .tree-btn {
                flex: 0 1 auto !important;
                white-space: normal !important;
            }
            .os-inputs-panel div:has(> .tree-btn) {
                flex-wrap: wrap !important;
            }

            /* Bottom nav on very narrow screens: compact labels so all 6 items fit */
            @media (max-width: 360px) {
                .app-bottom-nav .nav-app-item {
                    font-size: 0.68rem !important;
                    padding: 4px 2px !important;
                    min-width: 0 !important;
                    letter-spacing: -0.01em !important;
                }
            }

            .os-nav-tabs::-webkit-scrollbar,
            .fnd-tabs-nav::-webkit-scrollbar,
            .calc-tabs-nav::-webkit-scrollbar {
                display: none !important;
            }

            .os-tab-btn,
            .fnd-tab-btn,
            .calc-tab-btn {
                flex: 0 0 auto !important;
                white-space: nowrap !important;
                padding: 8px 16px !important;
                font-size: 0.85rem !important;
                border-radius: 20px !important;
            }
        }

        /* 4. Fluid Typography & Element Padding */
        @media (max-width: 480px) {
            .container {
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            h1, .hero-title {
                font-size: 1.45rem !important;
                line-height: 1.35 !important;
            }

            h2, .section-title {
                font-size: 1.25rem !important;
                line-height: 1.35 !important;
            }

            h3 {
                font-size: 1.1rem !important;
            }

            /* KPI cards & stats */
            .ssot-snapshot-bar {
                display: grid !important;
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
                padding: 12px !important;
            }

            .ssot-kpi-item .lbl {
                font-size: 0.85rem !important;
            }

            .ssot-kpi-item .val {
                font-size: 1.05rem !important;
            }

            .one-decision-hero-box {
                padding: 16px !important;
            }

            .one-decision-hero-box h2 {
                font-size: 1.2rem !important;
            }

            /* Range Sliders & Steppers */
            .stepper-val-wrap {
                gap: 4px !important;
            }

            .input-value-display {
                font-size: 0.9rem !important;
            }
        }

        /* 9-Step Topic Modal */
        .topic-modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(2, 4, 10, 0.88);
            backdrop-filter: blur(14px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 16px;
        }

        .topic-modal-box {
            background: var(--bg-card);
            border: 1px solid var(--gold);
            border-radius: var(--radius-xl);
            max-width: 680px;
            width: 100%;
            max-height: 88vh;
            overflow-y: auto;
            padding: clamp(20px, 3.5vw, 32px);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
            position: relative;
        }

        [data-theme="light"] .topic-modal-box {
            background: #ffffff;
            border-color: var(--indigo);
            box-shadow: 0 25px 60px rgba(99, 102, 241, 0.2);
        }

        .topic-step-card {
            background: rgba(14, 21, 38, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            margin-bottom: 12px;
        }

        [data-theme="light"] .topic-step-card {
            background: #f8fafc;
            border-color: rgba(0, 0, 0, 0.08);
        }

        .topic-step-card .title {
            font-size: 0.88rem;
            font-weight: 800;
            color: var(--gold-light);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        [data-theme="light"] .topic-step-card .title {
            color: var(--indigo);
        }

        .related-chips-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 14px;
        }

        .related-chip {
            background: rgba(99, 102, 241, 0.15);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 0.76rem;
            font-weight: 700;
            color: var(--indigo-light);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .related-chip:hover {
            background: rgba(99, 102, 241, 0.3);
            color: #fff;
        }

        /* Lazy Investor Module */
        .lazy-investor-card {
            background: linear-gradient(135deg, rgba(20, 28, 50, 0.95), rgba(10, 16, 32, 0.92));
            border: 2px solid var(--emerald);
            border-radius: var(--radius-xl);
            padding: clamp(20px, 3.5vw, 32px);
            margin-bottom: 24px;
            box-shadow: 0 12px 35px rgba(16, 185, 129, 0.12);
        }

        [data-theme="light"] .lazy-investor-card {
            background: #ffffff;
            border-color: var(--emerald);
            box-shadow: 0 12px 35px rgba(16, 185, 129, 0.1);
        }

        /* Decision Comparator Card */
        .comparator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 14px;
            margin: 16px 0;
        }

        .comparator-route-card {
            background: rgba(14, 21, 38, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 16px;
            transition: all 0.25s ease;
            position: relative;
        }

        .comparator-route-card.recommended {
            border: 2px solid var(--gold);
            background: rgba(245, 158, 11, 0.06);
        }

        [data-theme="light"] .comparator-route-card {
            background: #ffffff;
            border-color: rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .comparator-route-card.recommended {
            border-color: var(--indigo);
            background: rgba(99, 102, 241, 0.04);
        }

    
        /* ════════════════════════════════════════════════════════════════════ */
        /*  FIXYOURFI 3.1 — FINANCIAL POSITION BENCHMARK INTELLIGENCE          */
        /* ════════════════════════════════════════════════════════════════════ */
        .benchmark-card {
            background: linear-gradient(135deg, rgba(14, 21, 38, 0.95), rgba(10, 15, 28, 0.92));
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: var(--radius-xl);
            padding: clamp(20px, 3.5vw, 28px);
            margin-bottom: 24px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        [data-theme="light"] .benchmark-card {
            background: #ffffff;
            border-color: rgba(99, 102, 241, 0.2);
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
        }

        .benchmark-gauge-container {
            position: relative;
            background: rgba(255, 255, 255, 0.06);
            height: 12px;
            border-radius: 20px;
            margin: 20px 0 14px 0;
            overflow: visible;
        }

        [data-theme="light"] .benchmark-gauge-container {
            background: rgba(0, 0, 0, 0.08);
        }

        .benchmark-gauge-fill {
            height: 100%;
            border-radius: 20px;
            background: var(--gradient-gold);
            width: 78%;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .benchmark-gauge-pin {
            position: absolute;
            top: -24px;
            transform: translateX(50%);
            background: #fff;
            color: #000;
            font-size: 0.72rem;
            font-weight: 900;
            padding: 2px 8px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            white-space: nowrap;
        }

        .benchmark-metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-top: 18px;
        }

        .benchmark-metric-box {
            background: rgba(14, 21, 38, 0.6);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 14px;
        }

        [data-theme="light"] .benchmark-metric-box {
            background: #f8fafc;
            border-color: rgba(0, 0, 0, 0.06);
        }

        .benchmark-cohort-pill {
            background: rgba(99, 102, 241, 0.15);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 20px;
            padding: 3px 10px;
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--indigo-light);
        }

    
        /* ════════════════════════════════════════════════════════════════════ */
        /*  UNIVERSAL MOBILE & MULTI-SCREEN PERFECTION ENGINE                */
        /* ════════════════════════════════════════════════════════════════════ */

        /* Prevent iOS Safari input auto-zoom on focus */
        @media (max-width: 768px) {
            input, select, textarea {
                font-size: 16px !important;
            }

            .header-container {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 5px !important;
                padding: 0 4px !important;
                width: 100% !important;
            }

            .header-actions {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                align-items: center !important;
                gap: 4px !important;
                flex-shrink: 0 !important;
                margin-left: auto !important;
                max-width: 46vw !important;
            }

            /* Mobile: center the logo between the edges */
            .header-container .logo {
                margin: 0 auto !important;
            }

            .btn-focus-mode-toggle {
                display: none !important;
            }

            /* Mobile: Demo/Live + IL/US toggles hidden to free room for the language switch */
            .header-actions .data-mode-toggle,
            .header-actions .region-toggle {
                display: none !important;
            }

            /* Compact the theme toggle so the lang button stays fully visible & tappable */
            .header-actions .btn-lang {
                padding: 5px 7px !important;
                min-height: 32px !important;
                min-width: 32px !important;
                flex-shrink: 0 !important;
            }

            .lang-toggle-btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                padding: 5px 8px !important;
                font-size: 0.78rem !important;
                font-weight: 800 !important;
                border-radius: 8px !important;
                min-height: 32px !important;
                min-width: 44px !important;
                background: rgba(251, 191, 36, 0.15) !important;
                border: 1px solid rgba(251, 191, 36, 0.45) !important;
                color: var(--gold-light, #fbbf24) !important;
                flex-shrink: 0 !important;
                position: relative !important;
                z-index: 5 !important;
                pointer-events: auto !important;
                touch-action: manipulation !important;
                cursor: pointer !important;
            }

            /* 44px touch targets (ui-skills: accessibility) — enlarge the hit area
               without changing the visual size, via pseudo-element overlays */
            .lang-toggle-btn::before,
            .header-actions .btn-lang::before,
            .btn-stepper::before,
            .nav-app-item::before {
                content: '';
                position: absolute;
                inset: -8px;
            }
            .lang-toggle-btn, .header-actions .btn-lang, .btn-stepper, .nav-app-item {
                position: relative;
            }
        }

        /* Nav item for Zen focus mode in bottom bar */
        .nav-app-item-zen {
            color: var(--gold-light) !important;
            position: relative;
        }

        .nav-app-item-zen.active {
            background: rgba(245, 158, 11, 0.16) !important;
            border-radius: 12px !important;
            color: #fff !important;
        }

        .nav-app-item-zen .nav-icon {
            filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
        }

        /* Smooth Zen Step Transitions */
        .zen-step-card {
            display: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .zen-step-card.zen-card-active {
            display: block !important;
            animation: zenCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes zenCardIn {
            from {
                opacity: 0;
                transform: translateY(14px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Prevent multi-column squish on tablet and mobile */
        @media (max-width: 820px) {
            .reality-modes-row,
            .ticket-params-grid,
            .os-gap-grid,
            .stage-bullets-grid,
            .bridge-grid,
            .stress-test-grid,
            .fi-score-factors,
            .mission-grid-top,
            .gems-breakdown-grid,
            .results-stats-row,
            .capital-layers-grid,
            .lever-grid,
            .decision-tree-grid,
            div[style*="grid-template-columns: repeat(3, 1fr)"],
            div[style*="grid-template-columns: repeat(4, 1fr)"],
            div[style*="grid-template-columns: 1fr 1fr; gap: 30px"] {
                grid-template-columns: 1fr 1fr !important;
                gap: 12px !important;
            }
        }

        /* Phones & Compact Screens (<= 520px) */
        @media (max-width: 520px) {
            .reality-modes-row,
            .ticket-params-grid,
            .os-gap-grid,
            .stage-bullets-grid,
            .bridge-grid,
            .stress-test-grid,
            .fi-score-factors,
            .mission-grid-top,
            .footer-grid,
            .gems-breakdown-grid,
            .results-stats-row,
            .capital-layers-grid,
            .lever-grid,
            .decision-tree-grid,
            .benchmark-grid-chips,
            div[style*="grid-template-columns: repeat(3, 1fr)"],
            div[style*="grid-template-columns: repeat(4, 1fr)"],
            div[style*="grid-template-columns: 1fr 1fr; gap: 14px"],
            div[style*="grid-template-columns: 1fr 1fr; gap: 16px"],
            div[style*="grid-template-columns: 1fr 1fr; gap: 20px"],
            div[style*="grid-template-columns: 1fr 1fr; gap: 24px"],
            div[style*="grid-template-columns: 1fr 1fr; gap: 30px"] {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
            }

            /* Preserve 2-column layout for small stat badges that look great side-by-side */
            .zen-kpi-grid,
            .ssot-snapshot-bar,
            .fnd-kpi-banner {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }

            .zen-step-card {
                padding: 18px 14px !important;
                border-radius: 18px !important;
            }

            .zen-step-indicator {
                gap: 6px !important;
            }

            .zen-dot {
                width: 12px !important;
                height: 12px !important;
            }

            .app-bottom-nav .nav-app-item {
                padding: 4px 1px !important;
                font-size: 0.85rem !important;
            }

            .app-bottom-nav .nav-icon {
                font-size: 1.15rem !important;
            }

            /* ── Mobile readability floor (קל ונגיש להבנה) ──
               Root is 15px, so rem values run ~6% smaller than usual.
               Lift the base to 16px and floor tiny text at 0.85rem (13.6px). */
            html {
                font-size: 16px !important;
            }

            .badge-pill,
            .real-field-hint,
            .btn-paamonim-mini,
            .wa-sub,
            .deg-res-box .n,
            .data-mode-option,
            .deg-tab-toggle,
            .gems-pillar-box .label,
            .evidence-row-card .label,
            .gp-plan-item .gp-k,
            .os-gap-stat .lbl,
            .ticket-param-box .lbl,
            .mission-stat-box .lbl,
            .ssot-kpi-item .lbl,
            .fnd-kpi-card .lbl,
            .target-kpi-box .lbl,
            .rs-step-num,
            .rs-status,
            .prb-num,
            .p-tag,
            .path-ribbon,
            .preset-chip,
            .pillar-box .p-title,
            .bm-cat-btn {
                font-size: 0.85rem !important; /* 13.6px */
            }

            /* fine-print stays legible */
            div[style*="font-size: 0.73rem"] {
                font-size: 0.8rem !important;
            }

            [style*="font-size: 0.68rem"],
            [style*="font-size:0.68rem"],
            [style*="font-size: 0.65rem"],
            [style*="font-size:0.65rem"],
            [style*="font-size: 0.7rem"],
            [style*="font-size:0.7rem"],
            [style*="font-size: 0.72rem"],
            [style*="font-size:0.72rem"] {
                font-size: 0.85rem !important; /* 13.6px */
            }
        }
    
        /* ══════════ Investor Hub (Wealth Toolkit) ══════════ */
        .investor-hub-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 20px;
        }

        .hub-card {
            background: var(--bg-card);
            border: 1px solid var(--surface-border);
            border-radius: var(--radius-lg);
            padding: 26px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        }

        .hub-card:hover {
            transform: translateY(-4px);
            border-color: var(--gold);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
        }

        .hub-card.featured {
            border-color: rgba(245, 158, 11, 0.45);
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), var(--bg-card) 55%);
        }

        .hub-icon {
            font-size: 1.9rem;
            line-height: 1;
        }

        .hub-card h3 {
            font-size: 1.15rem;
            font-weight: 800;
            color: #fff;
            margin: 0;
        }

        .hub-card p {
            font-size: 0.88rem;
            color: var(--text-secondary);
            margin: 0;
            flex-grow: 1;
        }

        .hub-card .btn-cta-tickerio,
        .hub-card .btn-cta-gold {
            align-self: flex-start;
        }

        @media (prefers-reduced-motion: reduce) {
            .hub-card, .hub-card:hover { transition: none; transform: none; }
        }
    
        /* ══════════ Region & Language Controls ══════════ */
        .region-toggle {
            display: inline-flex;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            overflow: hidden;
        }
        .region-toggle button {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            padding: 8px 12px;
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            min-height: 36px;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .region-toggle button.active {
            background: var(--gold);
            color: #050811;
            font-weight: 800;
        }
        .lang-toggle-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-primary);
            padding: 8px 14px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            min-height: 36px;
        }
        .lang-toggle-btn:hover { border-color: var(--gold); color: var(--gold-light); }
        @media (max-width: 768px) {
            .region-toggle button { padding: 6px 9px; font-size: 0.78rem; }
        }

        /* ══════════ Persistent Disclaimer Bar ══════════ */
        .disclaimer-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 9998;
            background: rgba(8, 12, 22, 0.97);
            backdrop-filter: blur(12px);
            border-top: 1px solid rgba(245, 158, 11, 0.35);
            padding: 8px 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-align: center;
        }
        .disclaimer-bar .d-icon { flex-shrink: 0; }
        .disclaimer-bar .d-close {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 0.9rem;
            cursor: pointer;
            padding: 4px 8px;
            min-height: 32px;
            min-width: 32px;
            flex-shrink: 0;
        }
        .disclaimer-bar .d-close:hover { color: #fff; }
        .disclaimer-bar.hidden { display: none; }
        @media (max-width: 768px) {
            .disclaimer-bar {
                bottom: 60px !important;
                z-index: 99999 !important;
                font-size: 0.78rem !important;
                padding: 6px 10px !important;
            }
            body.has-disclaimer-bar {
                padding-bottom: calc(60px + 46px + env(safe-area-inset-bottom, 0px)) !important;
            }
        }
    
        
        /* ═══ FYFI toast (replaces alert) ═══ */
        .fyfi-toast {
            position: fixed; bottom: 84px; left: 50%; z-index: 10000;
            transform: translateX(-50%) translateY(16px);
            background: rgba(10, 15, 29, 0.97);
            border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
            border-top: 2px solid var(--gold, #f59e0b);
            color: #fff; padding: 12px 22px; border-radius: 12px;
            font-weight: 700; font-size: 0.92rem;
            max-width: 90vw; text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            opacity: 0; transition: opacity 0.25s, transform 0.25s;
            pointer-events: none;
        }
        .fyfi-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
        /* ═══ FYFI a11y hardening (skip-link / focus-visible / reduced motion / a11y inputs) ═══ */
        .skip-link {
            position: absolute; top: -48px; left: 12px; z-index: 9999;
            background: var(--indigo, #6366f1); color: #fff;
            padding: 10px 18px; border-radius: 0 0 8px 8px;
            font-weight: 700; text-decoration: none; transition: top 0.15s;
        }
        .skip-link:focus-visible { top: 0; }
        a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
            outline: 2px solid var(--gold-light, #fbbf24); outline-offset: 2px;
        }
        .range-slider:focus-visible { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35); outline: 2px solid var(--indigo-light, #818cf8); }
        input[type="number" inputmode="decimal"] { -moz-appearance: textfield; appearance: textfield; }
        input[type="number" inputmode="decimal"]::-webkit-outer-spin-button,
        input[type="number" inputmode="decimal"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
 