/**
 * Antitrend Labs - Shared Navigation & Footer Styles
 * Version 2.0 - Unified styling for all pages
 */

/* Body padding to account for fixed navigation */
html {
    scroll-padding-top: 62px;
}

body {
    padding-top: 62px !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 200;
}

/* Reset layout section backgrounds to transparent (except landing page sections) */
section:not(.lp-hero):not(.lp-proof):not(.lp-commentary):not(.lp-cta),
.hero,
.platform-section,
.pricing-section,
.container,
.page-container,
main {
    background: transparent !important;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 6px var(--container-padding);
    background: rgba(10, 10, 20, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    height: 62px;
}

.nav-inner {
    height: 100%;
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    text-decoration: none;
}

.logo-lambda {
    grid-row: 1 / 3;
    grid-column: 1;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 200;
    line-height: 1;
    align-self: end;
    transform: translateY(-0.06em);
    margin-right: 4px;
    background: var(--metal-chrome, linear-gradient(180deg, #ffffff 0%, #e8e8e8 20%, #b8b8b8 40%, #e0e0e0 60%, #a0a0a0 80%, #d0d0d0 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.logo-ntitrend {
    grid-row: 1;
    grid-column: 2;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 200;
    align-self: end;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-left: -8px;
    margin-bottom: -2px;
    background: var(--metal-chrome, linear-gradient(180deg, #ffffff 0%, #e8e8e8 20%, #b8b8b8 40%, #e0e0e0 60%, #a0a0a0 80%, #d0d0d0 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-labs-row {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    align-items: center;
    align-self: start;
    margin-top: 1px;
}

.logo-labs {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 200;
    letter-spacing: 0.02em;
    background: var(--metal-chrome, linear-gradient(180deg, #ffffff 0%, #e8e8e8 20%, #b8b8b8 40%, #e0e0e0 60%, #a0a0a0 80%, #d0d0d0 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-line {
    height: 1px;
    width: 40px;
    margin-left: 4px;
    background: rgba(255, 255, 255, 0.3);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 100;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links li:last-child .nav-link {
    border-right: none;
}

.nav-spacer {
    width: 0.5rem;
    border-right: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-link:focus-visible {
    outline: 2px solid rgba(212,175,55,0.8);
    outline-offset: 2px;
}
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-link-stacked.active {
    position: relative;
}
.nav-link-stacked.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    opacity: 0.85;
}

/* Stacked Nav Links - Antitrend branding style */
.nav-link-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.2rem 0.65rem;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0;
}
.nav-link-pre {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 200;
    letter-spacing: 0.04em;
    color: transparent;
    margin-bottom: 0px;
    user-select: none;
    pointer-events: none;
    line-height: 0;
    height: 0;
    overflow: hidden;
}
.nav-link-main {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 100;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s, -webkit-text-fill-color 0.2s;
    white-space: nowrap;
}
.nav-link:hover .nav-link-main {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}
.nav-link.active .nav-link-main {
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.nav-link-main-text {
    color: #fff;
    -webkit-text-fill-color: #fff;
}
[data-theme="light"] .nav-link-main-text {
    color: #222;
    -webkit-text-fill-color: #222;
}
.nav-link-sub {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 200;
    letter-spacing: 0.04em;
    color: transparent;
    margin-top: 0px;
    user-select: none;
    pointer-events: none;
    line-height: 0;
    height: 0;
    overflow: hidden;
}
.nav-link-stacked:hover .nav-link-pre,
.nav-link-stacked:hover .nav-link-sub,
.nav-link-stacked.active .nav-link-pre,
.nav-link-stacked.active .nav-link-sub {
    color: var(--text-tertiary);
}
.nav-link-stacked .dropdown-arrow {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}
.nav-dropdown-btn {
    position: relative;
    padding-bottom: 0.35rem;
    cursor: pointer;
    background: transparent !important;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-muted);
}
.nav-dropdown-btn:hover {
    color: var(--text-secondary);
}
.nav-dropdown-btn .nav-link-main {
    color: var(--text-secondary);
}
.nav-dropdown-btn:hover .nav-link-main {
    color: var(--text-primary);
}

/* Dropdown Arrow */
.dropdown-arrow {
    transition: transform 0.2s;
}

.nav-dropdown-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: static;
}

.nav-dropdown-btn {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 200px;
    white-space: nowrap;
    padding: 0.5rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    margin: 0;
    overflow: hidden;
}

.nav-dropdown-menu::before {
    display: none;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.15s;
    pointer-events: auto;
    cursor: pointer;
}

.nav-dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-menu a.active {
    color: rgba(212,175,55,0.85);
}

/* Dropdown item descriptions */
.nav-dropdown-menu a .dropdown-desc {
    display: block;
    font-size: var(--text-md);
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 200;
}

.nav-dropdown-menu a:hover .dropdown-desc {
    color: var(--text-tertiary);
}

/* Dropdown Divider */
.nav-dropdown-menu .dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    pointer-events: none;
}

/* Nav Right Section - Tools dropdown and Upgrade button */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-dropdown-right {
    position: relative;
}

.nav-dropdown-right .nav-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
}

/* CTA Button - Metallic Chrome Style */
.nav-cta {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 200;
    color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Subtle CTA Button */
.nav-cta.nav-cta-subtle {
    color: var(--text-tertiary);
    border: 1px solid #333;
    box-shadow: none;
    text-shadow: none;
}

.nav-cta.nav-cta-subtle:hover {
    color: var(--text-primary);
    border-color: #444;
    transform: none;
    box-shadow: none;
}

/* Login CTA Button — dark gradient */
.nav-cta.nav-cta-login {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    font-size: var(--text-sm);
    font-weight: 200;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.nav-cta.nav-cta-login:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.20);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Upgrade CTA Button — silver metallic */
.nav-cta.nav-cta-upgrade {
    color: #1a1a1a;
    border: none;
    background: linear-gradient(135deg, #a8a8a8 0%, #d0d0d0 40%, #f0f0f0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    font-size: var(--text-sm);
    font-weight: 300;
    padding: 0.4rem 1.2rem;
    letter-spacing: 0.03em;
    border-radius: 999px;
}
.nav-cta.nav-cta-upgrade:hover {
    color: #0a0a0a;
    background: linear-gradient(135deg, #b8b8b8 0%, #dcdcdc 40%, #fff 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.nav-mobile {
    display: none;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 1rem;
    margin: -0.25rem;
    z-index: 9999;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    min-width: 44px;
    min-height: 44px;
}

.nav-mobile span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    transition: all 0.3s;
    background: var(--text-primary, #fff);
}

.nav-mobile.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - Side Drawer */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.5);
    z-index: 8998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    pointer-events: none;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: rgba(8, 10, 14, 0.98) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    z-index: 8999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu.open,
.mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto;
}
.mobile-link-indent {
    padding-left: 1.5rem;
    font-size: var(--text-md);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--text-lg);
    transition: all 0.2s;
}
.mobile-menu-close:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}
.mobile-menu-inner {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    padding: 1rem 1.25rem;
    margin: 0.25rem 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.mobile-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}
.mobile-link.active {
    color: rgba(212,175,55,0.85);
    border-color: rgba(212,175,55,0.2);
}

.mobile-link:hover::before {
    height: 60%;
}
.mobile-link.active::before {
    height: 60%;
    background: rgba(212,175,55,0.7);
}

.mobile-section {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
}

.mobile-section-title {
    font-size: var(--text-md);
    font-weight: 200;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.mobile-section .mobile-link {
    padding: 0.75rem 1rem;
    font-size: var(--text-md);
    margin: 0.15rem 0;
}

.mobile-link.mobile-sub {
    padding-left: 1.5rem;
    font-size: var(--text-md);
    color: var(--text-tertiary);
    border: none;
}

.mobile-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 200;
    color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ============================================
   FOOTER STYLES - Dark Charcoal Theme
   ============================================ */
.disclaimer {
    padding: 2rem var(--container-padding);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.disclaimer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.disclaimer-text {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.8;
}

.footer {
    padding: 4rem var(--container-padding) 3rem;
    background: rgba(10, 12, 16, 0.55) !important;
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: var(--text-base);
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-nav-title {
    font-size: var(--text-base);
    font-weight: 200;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.footer-nav-links a {
    font-size: var(--text-base);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--text-base);
    color: var(--text-muted);
}

.footer-disclaimer {
    color: rgba(192, 196, 204, 0.4);
    font-size: var(--text-base);
    line-height: 1.6;
    padding-top: 1.5rem;
    margin: 0;
}

.footer-social a {
    color: rgba(218, 222, 232, 0.78);
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(210,210,215,0.08) 0%, rgba(80,80,85,0.05) 100%);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 16px rgba(255,255,255,0.12);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-auth-link {
        display: none;
    }

    .nav-user-badge {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    /* Logo scaling for mobile */
    .logo-lambda {
        font-size: var(--text-xl);
    }
    .logo-ntitrend {
        font-size: var(--text-sm);
    }
    .logo-labs {
        font-size: var(--text-xs);
    }
    .logo-line {
        width: 30px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-lambda {
        font-size: var(--text-lg);
    }
    .logo-ntitrend {
        font-size: var(--text-xs);
    }
    .nav-inner {
        padding: 0 1rem;
    }
}

/* ============================================
   AUTH LINKS & USER BADGE
   ============================================ */
.nav-auth-link {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: 200;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-auth-link:hover {
    color: var(--text-primary);
    }

.nav-user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 200;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0;
    background: linear-gradient(135deg, #c0c0c0 0%, #8a8a8a 40%, #b8b8b8 60%, #707070 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-user-badge:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 12px rgba(192, 192, 192, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Gold ball for subscribers */
.nav-user-badge.subscriber-badge {
    background: linear-gradient(135deg, #f0d060 0%, #c8981e 40%, #e8c840 60%, #a07818 100%);
    border-color: rgba(240, 208, 96, 0.35);
    color: #3d2800;
    text-shadow: 0 1px 1px rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(200, 160, 30, 0.3), inset 0 1px 2px rgba(255, 235, 130, 0.4);
}

.nav-user-badge.subscriber-badge:hover {
    border-color: rgba(240, 208, 96, 0.5);
    box-shadow: 0 2px 16px rgba(240, 200, 60, 0.4), inset 0 1px 2px rgba(255, 235, 130, 0.5);
    color: #2a1a00;
}


/* User Menu (logged in state) */
.nav-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Account Dropdown */
.nav-account-dropdown {
    position: relative;
}

.nav-account-trigger {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(16, 18, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 9100;
}

.nav-account-dropdown.open .nav-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-account-item {
    display: block;
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 200;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.nav-account-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-account-logout {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.15rem;
    padding-top: 0.6rem;
}

/* Light theme */
[data-theme="light"] .nav-account-menu {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .nav-account-item {
    color: #555;
}
[data-theme="light"] .nav-account-item:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .nav-account-logout {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.theme-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

/* In dark mode: show sun icon (click to go light) */
.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }

/* In light mode: show moon icon (click to go dark) */
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* Mobile theme toggle */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    margin: 0.25rem 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}
.mobile-theme-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}
.mobile-theme-toggle .theme-icon-moon { display: none; }
.mobile-theme-toggle .theme-icon-sun { display: block; }
[data-theme="light"] .mobile-theme-toggle .theme-icon-sun { display: none; }
[data-theme="light"] .mobile-theme-toggle .theme-icon-moon { display: block; }

/* ============================================
   LIGHT THEME - Navigation & Footer
   ============================================ */
[data-theme="light"] body {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef0f2 100%) !important;
}

[data-theme="light"] .nav {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.12);
    color: #555;
}
[data-theme="light"] .theme-toggle:hover {
    color: #111;
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .logo-lambda,
[data-theme="light"] .logo-ntitrend,
[data-theme="light"] .logo-labs {
    background: linear-gradient(180deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .logo-line {
    background: linear-gradient(90deg, #666 0%, #bbb 100%);
}

[data-theme="light"] .nav-link-pre,
[data-theme="light"] .nav-link-sub {
    color: #999;
}
[data-theme="light"] .nav-link-stacked:hover .nav-link-pre,
[data-theme="light"] .nav-link-stacked:hover .nav-link-sub,
[data-theme="light"] .nav-link-stacked.active .nav-link-pre,
[data-theme="light"] .nav-link-stacked.active .nav-link-sub {
    color: #666;
}
[data-theme="light"] .nav-link-main {
    color: #999;
    -webkit-text-fill-color: #999;
}
[data-theme="light"] .nav-link:hover .nav-link-main {
    color: #222;
    -webkit-text-fill-color: #222;
}
[data-theme="light"] .nav-link.active .nav-link-main {
    color: #111;
    -webkit-text-fill-color: #111;
}
[data-theme="light"] .nav-link.active {
    color: #111;
}
[data-theme="light"] .nav-link-stacked.active::after {
    background: #222;
}

[data-theme="light"] .nav-dropdown-btn {
    color: #888;
}
[data-theme="light"] .nav-dropdown-btn:hover {
    color: #444;
}
[data-theme="light"] .nav-dropdown-btn .nav-link-main {
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
}
[data-theme="light"] .nav-dropdown-btn:hover .nav-link-main {
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
}

[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .nav-dropdown-menu a {
    color: #555;
}
[data-theme="light"] .nav-dropdown-menu a:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .nav-dropdown-menu a .dropdown-desc {
    color: #999;
}

[data-theme="light"] .nav-cta.nav-cta-login {
    background: rgba(0, 0, 0, 0.03);
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    font-size: var(--text-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .nav-cta.nav-cta-login:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #222;
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-cta.nav-cta-upgrade {
    background: linear-gradient(135deg, #d6b770 0%, #c9a84c 100%);
    color: #1a0a00;
    border: 1px solid rgba(184, 134, 11, 0.5);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 200;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: none;
}
[data-theme="light"] .nav-cta.nav-cta-upgrade:hover {
    color: #1a0a00;
    border-color: rgba(184, 134, 11, 0.7);
    background: linear-gradient(135deg, #e0c47e 0%, #d4ad57 100%);
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

[data-theme="light"] .nav-mobile span {
    background: #333;
}

/* Mobile menu - light */
[data-theme="light"] .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mobile-menu-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .mobile-menu-close {
    color: #555;
    border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .mobile-menu-close:hover {
    color: #111;
    border-color: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .mobile-link {
    color: #444;
    border-color: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .mobile-link:hover,
[data-theme="light"] .mobile-link.active {
    color: #111;
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mobile-section-title {
    color: #999;
}
[data-theme="light"] .mobile-theme-toggle {
    color: #444;
    border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .mobile-theme-toggle:hover {
    color: #111;
}
[data-theme="light"] .mobile-cta {
    color: #b8860b;
    border: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: none;
    text-shadow: none;
}

/* Footer - light */
[data-theme="light"] .footer {
    background: #f0f1f3 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .footer-brand p {
    color: #777;
}
[data-theme="light"] .footer-brand .logo-lambda,
[data-theme="light"] .footer-brand .logo-ntitrend,
[data-theme="light"] .footer-brand .logo-labs {
    background: linear-gradient(180deg, #222 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
[data-theme="light"] .footer-brand .logo-line {
    background: linear-gradient(90deg, #888 0%, #ccc 100%);
}
[data-theme="light"] .footer-nav-title {
    color: #888;
}
[data-theme="light"] .footer-nav-links a {
    color: #666;
}
[data-theme="light"] .footer-nav-links a:hover {
    color: #111;
}
[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #999;
}
[data-theme="light"] .footer-disclaimer {
    color: #999;
}
[data-theme="light"] .footer-social a {
    color: #666;
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .footer-social a:hover {
    color: #111;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

/* Disclaimer overlay - light */
[data-theme="light"] .disclaimer-overlay {
    background: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .disclaimer-overlay-content {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .disclaimer-overlay-title {
    color: #111;
}
[data-theme="light"] .disclaimer-overlay-text {
    color: #555;
}
[data-theme="light"] .disclaimer-overlay-text strong {
    color: #111;
}
[data-theme="light"] .disclaimer-overlay-text li {
    color: #666;
}
[data-theme="light"] .disclaimer-overlay-btn {
    background: #111;
    color: #fff;
    border-color: #111;
}
[data-theme="light"] .disclaimer-overlay-btn:hover {
    background: #333;
}

/* ── Global font-weight override: DM Sans 200 primary ── */
h1, h2, h3, h4, h5, h6 { font-weight: 100; }
.page-hero-title { font-weight: 200; }
.page-hero-desc { font-weight: 200; }
.page-hero-desc strong { font-weight: 200; }

/* ── Page Hero Gold Accents (shared across all pages) ── */
.page-hero-title span {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(212, 175, 55, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero-desc strong,
.page-hero-desc span[data-stat] {
    color: rgba(212, 175, 55, 0.85);
}
.page-hero {
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding-bottom: 20px;
}

/* ── Global focus-visible ── */
button:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
.alch-chip:focus-visible,
.sector-signal-pill:focus-visible,
.news-item:focus-visible,
.movers-tab:focus-visible,
.db-nav-link:focus-visible,
.col-toggle-btn:focus-visible,
.export-btn-gold:focus-visible,
.filter-select:focus-visible,
.tm-tab:focus-visible,
.idx-range-btn:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.8);
    outline-offset: 2px;
}
