        /* Base styles (self-contained: no external fonts/CDN) */
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f5f7fa;
            color: #1f2937;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            margin: 0;
            box-sizing: border-box;
        }

        h1, h2, h3, h4, h5, h6 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; letter-spacing: -0.01em; }
        * { box-sizing: border-box; }

        /* Navirum Explorer Theme Variables & Wrapper */
        .nvex-wrap {
            --nvd: #063046; /* Navirum Navy */
            --nva: #0a4a6e; /* Accent deep navy */
            --nvc: #FE716E; /* Navirum Coral (primary CTA) */
            --nvs: #2dcc70; /* Success Green */
            --nve: #e74c3c; /* Error Red */
            --nvw: #f59e0b; /* Warning Orange */
            --nvi: #1f2937; /* Text Dark */
            --nvm: #64748b; /* Text Muted */
            --nvl: #e2e8f0; /* Light Border */
            
            width: 100%;
            max-width: 1000px;
            margin: 2rem auto;
            background: #fff;
            border: 1px solid #eef2f7;
            border-radius: 18px;
            box-shadow: 0 18px 50px -12px rgba(10,42,74,.18);
            overflow: hidden;
        }

        /* Header Styles */
        .nvex-head {
            background: linear-gradient(120deg, var(--nvd), var(--nva));
            color: #fff;
            padding: 2.5rem 1.5rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .nvex-head::after {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 160px;
            height: 160px;
            background: #fff;
            opacity: .07;
            border-radius: 50%;
        }

        .nvex-pill {
            display: inline-block;
            padding: .35rem 1rem;
            border-radius: 999px;
            background: rgba(255,255,255,.18);
            font-size: .75rem;
            font-weight: 600;
            letter-spacing: .09em;
            text-transform: uppercase;
            margin-bottom: .8rem;
            color: #fff;
        }

        .nvex-head h2 {
            font-size: 1.85rem;
            line-height: 1.2;
            font-weight: 700;
            margin: .1rem 0 .6rem;
            position: relative;
        }

        .nvex-head p {
            color: #dbeafe;
            font-size: 1rem;
            max-width: 680px;
            margin: 0 auto;
            position: relative;
            line-height: 1.5;
        }

        /* Body and Layout */
        .nvex-body {
            display: flex;
            flex-direction: row;
            min-height: 560px;
        }

        /* Nav (Left Side) */
        .nvex-nav {
            width: 38%;
            background: #f8fafc;
            border-right: 1px solid var(--nvl);
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: .65rem;
        }

        .nvex-tab {
            display: flex;
            align-items: center;
            gap: 1rem;
            width: 100%;
            text-align: left;
            cursor: pointer;
            background: #fff;
            border: 1px solid var(--nvl);
            border-radius: 12px;
            padding: .9rem 1rem;
            transition: all .25s ease;
            font-family: inherit;
            pointer-events: none;
            opacity: 0.5;
        }
        
        .nvex-tab.is-unlocked {
            opacity: 1;
            pointer-events: auto;
        }

        .nvex-tab:hover.is-unlocked {
            transform: translateY(-2px);
            border-color: #cbd5e1;
            background: #f9fbff;
        }

        .nvex-tab.is-active {
            background: var(--nvd) !important;
            border-color: var(--nvd) !important;
            box-shadow: 0 6px 16px rgba(10,42,74,.22) !important;
            opacity: 1;
        }

        .nvex-ic {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #eaf1ff;
            color: var(--nva);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .25s ease;
            font-weight: 700;
            font-size: 16px;
        }

        .nvex-tab.is-active .nvex-ic {
            background: rgba(255,255,255,.2);
            color: #fff;
        }
        
        .nvex-tab.is-completed .nvex-ic {
            background: var(--nvs);
            color: #fff;
        }

        .nvex-tt {
            font-weight: 600;
            font-size: .95rem;
            color: #0f172a;
            line-height: 1.2;
            display: block;
        }

        .nvex-ts {
            font-size: .75rem;
            color: var(--nvm);
            margin-top: .2rem;
            display: block;
        }

        .nvex-tab.is-active .nvex-tt { color: #fff; }
        .nvex-tab.is-active .nvex-ts { color: #bfdbfe; }

        /* Content (Right Side) */
        .nvex-content {
            width: 62%;
            padding: 2.2rem;
            position: relative;
            background: #fff;
        }

        .nvex-pane { display: none; }
        .nvex-pane.is-active {
            display: block;
            animation: nvexUp .4s ease forwards;
        }

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

        .nvex-chip {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            color: var(--nva);
            background: #eaf1ff;
            font-weight: 600;
            font-size: .78rem;
            padding: .3rem .8rem;
            border-radius: 999px;
            margin-bottom: 1rem;
        }

        .nvex-pane h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0 0 .75rem;
            line-height: 1.35;
        }

        .quiz-options {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin-top: 1.5rem;
        }

        .quiz-opt-btn {
            display: flex;
            align-items: center;
            gap: 1rem;
            width: 100%;
            text-align: left;
            padding: 1.15rem;
            background: #fff;
            border: 2px solid var(--nvl);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
            font-size: 0.95rem;
            color: #334155;
            font-weight: 500;
            line-height: 1.4;
        }

        .quiz-opt-btn:hover {
            border-color: #cbd5e1;
            background: #f9fbff;
            transform: translateY(-2px);
        }

        .quiz-opt-btn.is-selected {
            border-color: var(--nva);
            background: #eef4ff;
            box-shadow: 0 4px 12px rgba(37,99,235,0.08);
        }

        .opt-check {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 2px solid #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .opt-check svg {
            width: 14px;
            height: 14px;
            color: white;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .quiz-opt-btn.is-selected .opt-check {
            background: var(--nva);
            border-color: var(--nva);
        }
        
        .quiz-opt-btn.is-selected .opt-check svg {
            opacity: 1;
        }

        /* Action Button */
        .action-container {
            margin-top: 2rem;
            text-align: right;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, #FE716E, #f4534f) !important;
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 14px 28px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-family: inherit;
        }

        .action-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(37,99,235,0.3);
        }
        
        .action-btn:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .back-btn {
            background: none;
            border: none;
            color: var(--nvm);
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            font-size: 0.95rem;
            padding: 0;
        }
        
        .back-btn:hover { color: var(--nvi); }

        /* Results Screen */
        .results-container {
            padding: 1rem 0;
        }

        .results-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-box {
            background: #f8fafc;
            border: 1px solid #eef2f7;
            border-radius: 16px;
            padding: 1.5rem;
            text-align: center;
        }

        .stat-val {
            font-size: 3rem;
            font-weight: 800;
            color: var(--nvd);
            line-height: 1;
            margin-bottom: 0.5rem;
        }
        
        .stat-val.score-ready { color: var(--nvs); }
        .stat-val.score-developing { color: var(--nvw); }
        .stat-val.score-early { color: var(--nve); }

        .stat-lab {
            color: var(--nvm);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .timeline-box {
            grid-column: span 2;
            background: #eef4ff;
            border: 2px solid #bfdbfe;
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .timeline-text h4 {
            margin: 0 0 0.25rem;
            color: var(--nvd);
            font-size: 1.1rem;
        }
        .timeline-text p {
            margin: 0;
            color: #475569;
            font-size: 0.95rem;
        }
        .timeline-val {
            font-size: 2rem;
            font-weight: 800;
            color: var(--nva);
            text-align: right;
            line-height: 1.1;
        }
        .timeline-val span {
            display: block;
            font-size: 0.8rem;
            color: var(--nvm);
            font-weight: 600;
            text-transform: uppercase;
        }

        /* Lead Form */
        .lead-gate {
            background: #fff;
            border: 1px solid var(--nvl);
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
        }
        
        .lead-gate h4 { margin: 0 0 0.5rem; font-size: 1.3rem; color: var(--nvi); }
        .lead-gate p { margin: 0 0 1.5rem; color: #475569; font-size: 0.95rem; }
        
        .form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 1rem;
        }
        
        .form-row input {
            flex: 1;
            padding: 12px 16px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .form-row input:focus { border-color: var(--nva); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
        
        .report-content {
            display: none;
            animation: nvexUp 0.5s ease forwards;
        }
        
        .report-section {
            background: #f8fafc;
            border: 1px solid #eef2f7;
            border-left: 4px solid var(--nva);
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1rem;
        }
        
        .report-section.status-ready { border-left-color: var(--nvs); }
        .report-section.status-gap { border-left-color: var(--nve); }
        
        .report-section h5 { margin: 0 0 0.5rem; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
        .report-section p { margin: 0; font-size: 0.9rem; color: #475569; line-height: 1.5; }
        
        .status-badge {
            font-size: 0.75rem;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            font-weight: 600;
        }
        .bg-ready { background: #dcfce7; color: #166534; }
        .bg-gap { background: #fee2e2; color: #991b1b; }
        
        .resource-box {
            background: var(--nvd);
            color: #fff;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 2rem;
            text-align: center;
        }
        .resource-box a { color: #bfdbfe; font-weight: 600; }

        @media(max-width: 768px) {
            .nvex-body { flex-direction: column; }
            .nvex-nav { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--nvl); }
            .nvex-tab { min-width: 220px; flex-shrink: 0; }
            .nvex-content { width: 100%; padding: 1.5rem; }
            .nvex-head h2 { font-size: 1.5rem; }
            .results-grid { grid-template-columns: 1fr; }
            .timeline-box { grid-column: 1; flex-direction: column; text-align: center; gap: 1rem; }
            .timeline-val { text-align: center; }
            .form-row { flex-direction: column; }
        }


/* ---- CONTRAST FIX (visual bug pass, 2026-07-19): theme's default button styling was beating
   these component rules, causing white-on-light-blue unreadable text. Force with !important. ---- */
.quiz-opt-btn { background: #fff !important; color: #334155 !important; }
.quiz-opt-btn.is-selected { background: #eef4ff !important; color: #334155 !important; }
.nvex-head ::selection { background-color: rgba(255,255,255,.35) !important; color: #fff !important; }


/* ---- CONTRAST FIX (visual bug pass, 2026-07-19): theme's default button styling was beating
   these component rules, causing white-on-light-blue unreadable text. Force with !important. ---- */
.quiz-opt-btn { background: #fff !important; color: #334155 !important; }
.quiz-opt-btn.is-selected { background: #eef4ff !important; color: #334155 !important; }
.nvex-head ::selection { background-color: rgba(255,255,255,.35) !important; color: #fff !important; }
