/* ══════════════════════════════════════════
   INVYRA DARK MODE v3
   Richer palette, better hierarchy
   ══════════════════════════════════════════ */

[data-theme="dark"] {
    --bg-primary: #0B1120 !important;
    --bg-alt: #131B2E !important;
    --text-primary: #F8FAFC !important;
    --text-secondary: #A8B8D0 !important;
    --border-color: #1E2D48 !important;
    --accent-primary: #5B9CF6 !important;
    --accent-secondary: #7DB4FF !important;
    --accent-cyan: #4FD1C5 !important;

    --bg-page: #0B1120 !important;
    --bg-main: #0B1120 !important;
    --bg-white: #141C2E !important;
    --bg-light-blue: #111A2E !important;
    --primary-navy: #5B9CF6 !important;
    --secondary-navy: #7DB4FF !important;
    --border-light: #1E2D48 !important;
    --gradient-blue: linear-gradient(180deg, rgba(11,17,32,0) 0%, rgba(19,27,46,0.6) 100%) !important;

    --green: #34D399 !important;
    --amber: #FBBF24 !important;
    --red: #F87171 !important;

    color-scheme: dark;
}

/* ─── Base ─── */
[data-theme="dark"] body {
    background: #0B1120 !important;
    color: #F8FAFC !important;
}

/* ─── All text ─── */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .section h2,
[data-theme="dark"] .section h3,
[data-theme="dark"] .section h4,
[data-theme="dark"] .hero h1 {
    color: #F8FAFC !important;
}

[data-theme="dark"] h1 .highlight,
[data-theme="dark"] .hero h1 .highlight {
    color: #5B9CF6 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .section p,
[data-theme="dark"] .hero p,
[data-theme="dark"] li,
[data-theme="dark"] td {
    color: #A8B8D0 !important;
}

[data-theme="dark"] strong,
[data-theme="dark"] b {
    color: #F8FAFC !important;
}

[data-theme="dark"] a {
    color: #5B9CF6;
}

[data-theme="dark"] .section-label {
    color: #5B9CF6 !important;
}

/* ─── Cards (universal) ─── */
[data-theme="dark"] .callout,
[data-theme="dark"] .concept-card,
[data-theme="dark"] .analogy,
[data-theme="dark"] .metric-item,
[data-theme="dark"] .controls,
[data-theme="dark"] .weights,
[data-theme="dark"] .country-box,
[data-theme="dark"] .broker-card,
[data-theme="dark"] .methodology,
[data-theme="dark"] .form-card,
[data-theme="dark"] .reach-card,
[data-theme="dark"] .split-card,
[data-theme="dark"] .method-card,
[data-theme="dark"] .feat-row,
[data-theme="dark"] .compare-wrap,
[data-theme="dark"] .book-card,
[data-theme="dark"] .broker-controls,
[data-theme="dark"] .broker-weights,
[data-theme="dark"] .broker-country-box,
[data-theme="dark"] .broker-card-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .disclaimer {
    background: #141C2E !important;
    border-color: #1E2D48 !important;
}

/* Card titles */
[data-theme="dark"] .concept-card h4,
[data-theme="dark"] .metric-body h4,
[data-theme="dark"] .method-card h4,
[data-theme="dark"] .split-card h4,
[data-theme="dark"] .book-title,
[data-theme="dark"] .broker-info h3,
[data-theme="dark"] .broker-name-block h4,
[data-theme="dark"] .reach-card h3,
[data-theme="dark"] .feat-body h3,
[data-theme="dark"] .faq-question h3 {
    color: #F8FAFC !important;
}

/* Card body text */
[data-theme="dark"] .concept-card p,
[data-theme="dark"] .metric-body p,
[data-theme="dark"] .method-card p,
[data-theme="dark"] .split-card p,
[data-theme="dark"] .book-desc,
[data-theme="dark"] .book-author,
[data-theme="dark"] .broker-info p,
[data-theme="dark"] .broker-name-block p,
[data-theme="dark"] .reach-card p,
[data-theme="dark"] .feat-body p,
[data-theme="dark"] .faq-answer p {
    color: #A8B8D0 !important;
}

/* ─── Hero ─── */
[data-theme="dark"] .hero {
    background: #0B1120 !important;
}
[data-theme="dark"] .hero-tag {
    background: #1B2540 !important;
    color: #5B9CF6 !important;
}
[data-theme="dark"] .hero .back-link {
    color: #5B9CF6 !important;
}

/* ─── TOC pills ─── */
[data-theme="dark"] .toc {
    background: #141C2E !important;
}
[data-theme="dark"] .toc a {
    background: #1B2540 !important;
    color: #F8FAFC !important;
    border-color: #2A3A56 !important;
}
[data-theme="dark"] .toc a:hover {
    background: #5B9CF6 !important;
    color: #0B1120 !important;
    border-color: #5B9CF6 !important;
}

/* ─── Sections ─── */
[data-theme="dark"] .section {
    background: #0B1120 !important;
}
[data-theme="dark"] .section:nth-child(odd) {
    background: #0B1120 !important;
}
[data-theme="dark"] .section:nth-child(even) {
    background: #0E1525 !important;
}
[data-theme="dark"] .section-alt {
    background: #0E1525 !important;
}

/* ─── Callout / Disclaimer ─── */
[data-theme="dark"] .callout,
[data-theme="dark"] .disclaimer {
    background: #1B2540 !important;
    border-left-color: #5B9CF6 !important;
    border-color: #2A3A56 !important;
    border-left-color: #5B9CF6 !important;
}
[data-theme="dark"] .callout p,
[data-theme="dark"] .disclaimer p {
    color: #C8D6E8 !important;
}
[data-theme="dark"] .callout.green { border-left-color: #34D399 !important; }
[data-theme="dark"] .callout.amber { border-left-color: #FBBF24 !important; }

/* ─── Selects & inputs ─── */
[data-theme="dark"] select,
[data-theme="dark"] .ctrl-group select,
[data-theme="dark"] .broker-ctrl-group select {
    background: #1B2540 !important;
    color: #F8FAFC !important;
    border-color: #2A3A56 !important;
}
[data-theme="dark"] input[type="range"] {
    accent-color: #5B9CF6;
}
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] textarea,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #0B1120 !important;
    color: #F8FAFC !important;
    border-color: #1E2D48 !important;
}
[data-theme="dark"] .form-group label {
    color: #F8FAFC !important;
}
[data-theme="dark"] .form-card h2,
[data-theme="dark"] .faq-column h2,
[data-theme="dark"] .reach-section h2 {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .submit-btn {
    background: #5B9CF6 !important;
    color: #0B1120 !important;
}

/* ─── Broker score bars ─── */
[data-theme="dark"] .bar-track,
[data-theme="dark"] .b-bar-track {
    background: #1E2D48 !important;
}
[data-theme="dark"] .card-hdr {
    border-bottom-color: #1E2D48 !important;
}
[data-theme="dark"] .card-foot,
[data-theme="dark"] .broker-card-foot {
    background: #0E1525 !important;
    border-top-color: #1E2D48 !important;
    color: #C8D6E8 !important;
}
[data-theme="dark"] .card-foot span,
[data-theme="dark"] .broker-card-foot span {
    color: #C8D6E8 !important;
}

/* Control labels */
[data-theme="dark"] .ctrl-group label,
[data-theme="dark"] .broker-ctrl-group label,
[data-theme="dark"] .w-item label,
[data-theme="dark"] .broker-w-item label {
    color: #A8B8D0 !important;
}
[data-theme="dark"] .bar-label span:first-child,
[data-theme="dark"] .b-bar-label span:first-child {
    color: #A8B8D0 !important;
}

/* Legend text */
[data-theme="dark"] .legend-item,
[data-theme="dark"] .broker-legend-item {
    color: #A8B8D0 !important;
}
[data-theme="dark"] .total-score .score-num,
[data-theme="dark"] .broker-total-score .b-score-num {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .bar-label span:last-child,
[data-theme="dark"] .b-bar-label span:last-child {
    color: #F8FAFC !important;
}
[data-theme="dark"] .broker-card.not-available .card-hdr {
    background: #0E1525 !important;
}
[data-theme="dark"] .not-avail-banner {
    background: #1C1215 !important;
    border-top-color: #3D1F1F !important;
    color: #FCA5A5 !important;
}
[data-theme="dark"] .req-strip {
    background: #171D10 !important;
    border-top-color: #2D3A12 !important;
    color: #FBBF24 !important;
}
[data-theme="dark"] .weights-title,
[data-theme="dark"] .broker-weights-title {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .w-item label span,
[data-theme="dark"] .broker-w-item label span {
    color: #5B9CF6 !important;
}

/* ─── Tags ─── */
[data-theme="dark"] .tag-green, [data-theme="dark"] .b-tag-green { background: #0D3320 !important; color: #6EE7B7 !important; }
[data-theme="dark"] .tag-blue, [data-theme="dark"] .b-tag-blue { background: #152448 !important; color: #93C5FD !important; }
[data-theme="dark"] .tag-orange, [data-theme="dark"] .b-tag-orange { background: #3D1D08 !important; color: #FDBA74 !important; }
[data-theme="dark"] .tag-purple, [data-theme="dark"] .b-tag-purple { background: #2D0B52 !important; color: #D8B4FE !important; }
[data-theme="dark"] .tag-gray, [data-theme="dark"] .b-tag-gray { background: #1B2540 !important; color: #A8B8D0 !important; }

/* ─── Country box ─── */
[data-theme="dark"] .country-box,
[data-theme="dark"] .broker-country-box {
    background: #141C2E !important;
    border-color: #1E2D48 !important;
}
[data-theme="dark"] .country-name,
[data-theme="dark"] .broker-country-name {
    color: #F8FAFC !important;
}
[data-theme="dark"] .country-note,
[data-theme="dark"] .broker-country-note {
    background: #111A2E !important;
    color: #C8D6E8 !important;
}

/* ─── Analogy box ─── */
[data-theme="dark"] .analogy-label {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .analogy-art {
    filter: brightness(1.3) saturate(0.9);
}

/* ─── Metric badge ─── */
[data-theme="dark"] .metric-badge {
    background: #5B9CF6 !important;
    color: #0B1120 !important;
}
[data-theme="dark"] .metric-badge.amber {
    background: #FBBF24 !important;
    color: #0B1120 !important;
}

/* ─── Books ─── */
[data-theme="dark"] .book-cover { opacity: 0.9; }
[data-theme="dark"] .book-tag {
    background: #1B2540 !important;
    color: #5B9CF6 !important;
}
[data-theme="dark"] .book-rating {
    color: #FBBF24 !important;
}

/* ─── Legend ─── */
[data-theme="dark"] .legend,
[data-theme="dark"] .broker-legend {
    color: #A8B8D0 !important;
}

/* ─── Compare table (why-invyra) ─── */
[data-theme="dark"] .compare-table th {
    background: #1B2540 !important;
    color: #F8FAFC !important;
    border-color: #1E2D48 !important;
}
[data-theme="dark"] .compare-table td {
    color: #A8B8D0 !important;
    border-color: #1E2D48 !important;
    background: #141C2E !important;
}
[data-theme="dark"] .compare-table .invyra-col {
    background: #111A2E !important;
}
[data-theme="dark"] .split-card-label {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .feat-icon {
    background: #1B2540 !important;
}

/* ─── Support page ─── */
[data-theme="dark"] a.reach-card {
    color: #F8FAFC !important;
}
[data-theme="dark"] .reach-card .reach-link {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .reach-icon.email {
    background: #1B2540 !important;
    color: #5B9CF6 !important;
}
[data-theme="dark"] .faq-question {
    color: #F8FAFC !important;
}
[data-theme="dark"] .faq-answer a {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .social-bar-inner {
    background: #1B2540 !important;
}
[data-theme="dark"] .social-bar-inner h2,
[data-theme="dark"] .social-bar-inner p,
[data-theme="dark"] .social-bar-inner a {
    color: #FFFFFF !important;
}

/* ─── Disclaimer / Terms ─── */
[data-theme="dark"] .page-header {
    border-bottom-color: #1E2D48 !important;
}
[data-theme="dark"] .page-title {
    color: #F8FAFC !important;
}
[data-theme="dark"] .page-meta {
    color: #7A8BA5 !important;
}
[data-theme="dark"] .preamble {
    background: #111A2E !important;
    border-left-color: #5B9CF6 !important;
}
[data-theme="dark"] .preamble p,
[data-theme="dark"] .preamble strong {
    color: #F8FAFC !important;
}
[data-theme="dark"] .container {
    color: #A8B8D0 !important;
}
[data-theme="dark"] .container a {
    color: #5B9CF6 !important;
}
[data-theme="dark"] .container strong {
    color: #F8FAFC !important;
}

/* ─── CTA banner ─── */
[data-theme="dark"] .cta-inner {
    background: linear-gradient(135deg, #1B3A6B, #2D4F8A) !important;
}
[data-theme="dark"] .cta-inner h2,
[data-theme="dark"] .cta-inner p {
    color: #FFFFFF !important;
}
[data-theme="dark"] .cta-btn {
    background: #FFFFFF !important;
    color: #1B3A6B !important;
}

/* ─── Footer ─── */
[data-theme="dark"] .footer {
    border-top-color: #1E2D48 !important;
    color: #7A8BA5 !important;
}
[data-theme="dark"] .footer a {
    color: #7A8BA5 !important;
}
[data-theme="dark"] .footer a:hover {
    color: #5B9CF6 !important;
}

/* ─── Inline style overrides ─── */
[data-theme="dark"] .broker-link-card {
    background: #141C2E !important;
    border-color: #1E2D48 !important;
    color: #F8FAFC !important;
}
[data-theme="dark"] .roic-chart {
    background: #141C2E !important;
}
[data-theme="dark"] [style*="color: #1a1a2e"],
[data-theme="dark"] [style*="color:#1a1a2e"] {
    color: #F8FAFC !important;
}
[data-theme="dark"] [style*="color: #475569"],
[data-theme="dark"] [style*="color:#475569"] {
    color: #A8B8D0 !important;
}
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"] {
    background: #141C2E !important;
}

/* ─── Hover states ─── */
[data-theme="dark"] .concept-card:hover,
[data-theme="dark"] .method-card:hover,
[data-theme="dark"] .split-card:hover,
[data-theme="dark"] .feat-row:hover,
[data-theme="dark"] .broker-card:hover,
[data-theme="dark"] .broker-card-item:hover,
[data-theme="dark"] .reach-card:hover,
[data-theme="dark"] .metric-item:hover,
[data-theme="dark"] .book-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border-color: #2A3A56 !important;
}

/* ═══════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════ */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.theme-toggle svg {
    width: 16px;
    height: 16px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════
   INVYRA NAV v5 — Grouped Mega Menu + 3D
   Shared across all pages via theme.css
   ══════════════════════════════════════════ */

.nav-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 12px 20px 0;
    pointer-events: none;
    transition: padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-wrapper.scrolled { padding: 0; }

.top-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1080px;
    height: 56px;
    padding: 0 1.75rem;
    pointer-events: auto;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 16px;
    border: 1px solid rgba(91, 156, 246, 0.1);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.2),
        0 4px 12px rgba(0,0,0,0.15),
        0 12px 36px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.04);
    opacity: 0;
    transform: translateY(-20px) perspective(600px) rotateX(4deg);
    animation: navEntry 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    transition:
        border-radius 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.nav-wrapper.scrolled .top-nav {
    border-radius: 0;
    max-width: 100%;
    border-color: rgba(91, 156, 246, 0.06);
}

@keyframes navEntry {
    to { opacity: 1; transform: translateY(0) perspective(600px) rotateX(0deg); }
}

/* Shimmer top edge */
.top-nav::before {
    content: '';
    position: absolute;
    top: -1px; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(91,156,246,0.5) 30%, rgba(79,209,197,0.5) 50%, rgba(251,191,36,0.4) 70%, transparent);
    background-size: 200% 100%;
    animation: shimmerBorder 6s ease-in-out infinite;
    border-radius: 16px 16px 0 0;
    opacity: 0.7;
}
@keyframes shimmerBorder {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* ── BRAND ── */
.nav-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.nav-brand:hover { transform: scale(1.04); }
.nav-brand .nav-y {
    color: #fbbf24;
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.nav-brand:hover .nav-y {
    transform: translateY(-1px) rotateZ(-3deg);
    text-shadow: 0 0 12px rgba(251,191,36,0.5);
}

/* ── CENTER + ACTIONS ── */
.nav-center {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* ── DROPDOWN GROUP ── */
.nav-group { position: relative; }

.nav-group-trigger {
    font-size: 0.82rem;
    color: #8899B0;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    background: none;
    white-space: nowrap;
    font-family: inherit;
}
.nav-group-trigger:hover,
.nav-group.open .nav-group-trigger {
    color: #F8FAFC;
    background: rgba(91,156,246,0.08);
}

.nav-chevron {
    width: 10px; height: 10px;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.nav-group.open .nav-chevron,
.nav-group:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

/* Active group indicator */
.nav-group.has-active .nav-group-trigger { color: #c8d8f0; }
.nav-group.has-active .nav-group-trigger::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%; transform: translateX(-50%);
    width: 16px; height: 2px;
    background: #5B9CF6;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(91,156,246,0.4);
}

/* ── MEGA DROPDOWN PANEL ── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px) perspective(500px) rotateX(3deg);
    min-width: 280px;
    background: rgba(14, 20, 36, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(91,156,246,0.12);
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.35),
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.03);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-group.open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) perspective(500px) rotateX(0deg);
}

/* ── DROPDOWN ITEM ── */
.nav-drop-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-drop-item:hover {
    background: rgba(91,156,246,0.08);
    transform: translateX(2px);
}
.nav-drop-item.active {
    background: rgba(91,156,246,0.1);
}

.nav-drop-icon {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(91,156,246,0.1);
    border: 1px solid rgba(91,156,246,0.1);
    transition: all 0.2s ease;
}
.nav-drop-item:hover .nav-drop-icon {
    background: rgba(91,156,246,0.15);
    border-color: rgba(91,156,246,0.2);
    transform: scale(1.05);
}

.nav-drop-text { flex: 1; min-width: 0; }
.nav-drop-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #E8EEF6;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}
.nav-drop-item.active .nav-drop-title { color: #5B9CF6; }
.nav-drop-desc {
    font-size: 0.7rem;
    color: #6B7B8D;
    line-height: 1.4;
}

.nav-drop-divider {
    height: 1px;
    background: rgba(91,156,246,0.08);
    margin: 0.3rem 0.6rem;
}

/* ── STANDALONE TOP-LEVEL LINK ── */
.nav-top-link {
    font-size: 0.82rem;
    color: #8899B0;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}
.nav-top-link:hover {
    color: #F8FAFC;
    background: rgba(91,156,246,0.08);
}
.nav-top-link.active { color: #F8FAFC; }
.nav-top-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%; transform: translateX(-50%);
    width: 16px; height: 2px;
    background: #5B9CF6;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(91,156,246,0.4);
}

/* ── LAUNCH APP CTA ── */
.nav-cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #F0F6FF;
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563EB, #1D6FB8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    filter: brightness(1.12);
}
.nav-cta svg { width: 12px; height: 12px; }

/* ── THINKRIUM ── */
.nav-thinkrium {
    font-size: 0.75rem;
    color: #6B7B8D;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 7px;
    border: 1px solid rgba(91,156,246,0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nav-thinkrium:hover {
    color: #A8B8D0;
    border-color: rgba(91,156,246,0.3);
    background: rgba(91,156,246,0.05);
}
.nav-thinkrium svg { width: 10px; height: 10px; opacity: 0.4; }

/* ── MOBILE HAMBURGER ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4.5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(91,156,246,0.08); }
.nav-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: #A8B8D0;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── MOBILE PANEL ── */
.nav-mobile {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 8px; right: 8px;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(91,156,246,0.1);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 0.15rem;
    max-height: 80vh;
    overflow-y: auto;
}
.nav-mobile.open { display: flex; }

.nav-mobile-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #4A5A6E;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 0.6rem 0.3rem;
}
.nav-mobile-label:first-child { padding-top: 0.3rem; }
.nav-mobile .nav-drop-item { padding: 0.6rem 0.6rem; }
.nav-mobile .nav-drop-divider { margin: 0.4rem 0; }
.nav-mobile .nav-cta { margin-top: 0.5rem; justify-content: center; padding: 0.6rem; }
.nav-mobile .nav-thinkrium { margin-top: 0.4rem; justify-content: center; padding: 0.5rem; }

/* ── NAV RESPONSIVE ── */
@media (max-width: 960px) {
    .nav-center,
    .nav-actions .nav-cta,
    .nav-actions .nav-thinkrium { display: none; }
    .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
    .nav-wrapper { padding: 8px 10px 0; }
    .top-nav { height: 50px; padding: 0 1rem; }
}
