/* ===== CSS Variables ===== */
:root {
    /* Dark Mode (default) - warm dark */
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-rgb: 16, 185, 129;
    --secondary-color: #60a5fa;
    --secondary-dark: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --bg-primary:    #141110;
    --bg-secondary:  #0D0B08;
    --bg-tertiary:   #231E18;
    --bg-hover:      #2A241C;
    --bg-dark:       #080705;
    --bg-card:       #1A1612;
    --glass-bg:      rgba(26, 22, 18, 0.80);
    --glass-border:  rgba(210, 185, 140, 0.12);

    --text-primary:  #E8DFD0;
    --text-secondary:#B8A890;
    --text-muted:    #807060;
    --text-light:    #ffffff;

    --border-color:  rgba(210, 185, 140, 0.12);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.30), 0 0 0 1px rgba(210,185,140,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.40), 0 0 0 1px rgba(210,185,140,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.50), 0 0 0 1px rgba(210,185,140,0.06);
    --shadow-xl: 0 20px 44px rgba(0,0,0,0.60), 0 0 0 1px rgba(210,185,140,0.08);

    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;

    --transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

/* Leather grain texture overlay for dark (default) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
}

/* ===== LIGHT MODE THEME ===== */
[data-theme="light"] {
    --primary-color: #8a6a30;
    --primary-dark: #6a5020;
    --primary-light: #b08848;
    --primary-rgb: 138, 106, 48;
    --secondary-color: #60a5fa;
    --secondary-dark: #3b82f6;
    --success-color: #8a6a30;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --bg-primary:    #EDE5D4;
    --bg-secondary:  #E4D9C4;
    --bg-tertiary:   #D4C6A8;
    --bg-hover:      #C8B894;
    --bg-dark:       #2C241A;
    --bg-card:       #F5EFDF;
    --glass-bg:      rgba(245, 239, 223, 0.88);
    --glass-border:  rgba(44, 36, 26, 0.14);

    --text-primary:  #2C241A;
    --text-secondary:#5C4E3C;
    --text-muted:    #8B7D6B;
    --text-light:    #ffffff;

    --border-color:  rgba(44, 36, 26, 0.14);
    --shadow-sm: 0 1px 3px rgba(60,40,20,0.10), 0 0 0 1px rgba(60,40,20,0.05);
    --shadow-md: 0 4px 14px rgba(60,40,20,0.12), 0 0 0 1px rgba(60,40,20,0.05);
    --shadow-lg: 0 12px 28px rgba(60,40,20,0.14), 0 0 0 1px rgba(60,40,20,0.05);
    --shadow-xl: 0 20px 40px rgba(60,40,20,0.16), 0 0 0 1px rgba(60,40,20,0.06);
}

/* Paper grain texture overlay for light */
[data-theme="light"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure inputs and selects also use border-box explicitly if reset doesn't catch them in some browsers */
input, select, textarea, button, .card {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

html, body {
    width: 100%;
    max-width: 100%;
}



body {
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-transition,
.theme-transition * {
    transition: none !important;
}

/* Blurred/animated decorative layers don't need to transition on theme switch -
   their blur re-rasterizes on every color frame, causing jank. Paint them once. */
.theme-transition .hero::before,
.theme-transition .hero::after,
.theme-transition .orb,
.theme-transition [class*="orb"] {
    transition: none !important;
}

html[data-theme="dark"] img.dark-invert {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] img.dark-soften {
    filter: brightness(0.88) contrast(1.08);
}

html.popup-scroll-lock {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

html[data-theme="dark"] img.dark-surface {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .theme-transition,
    .theme-transition * {
        transition: none;
    }
}

/* ===== B.R.A.V.E Grid Layout ===== */
.brave-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.brave-item {
    position: relative;
    display: grid;
    gap: 10px;
}

.brave-item:hover {
    z-index: 5;
}

.brave-index {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--text-muted);
    padding-left: 6px;
}

.brave-index__dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.brave-index__num {
    font-weight: 700;
    font-size: 0.9rem;
}

.brave-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-width: 0;
    aspect-ratio: 3 / 4;
    min-height: 320px;
    --brave-stripe-w: clamp(44px, 12%, 56px);
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
    will-change: transform;
}

.brave-item:hover .brave-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    filter: saturate(1.04);
}

.brave-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.22;
    pointer-events: none;
}

.brave-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.16) 0 12px, rgba(255, 255, 255, 0.05) 13px 26px, transparent 27px),
        radial-gradient(circle at 86% 64%, rgba(255, 255, 255, 0.14) 0 10px, rgba(255, 255, 255, 0.05) 11px 22px, transparent 23px),
        radial-gradient(circle at 70% 86%, rgba(255, 255, 255, 0.12) 0 8px, rgba(255, 255, 255, 0.04) 9px 18px, transparent 19px),
        radial-gradient(circle at 90% 88%, rgba(255, 255, 255, 0.10) 0 7px, rgba(255, 255, 255, 0.03) 8px 16px, transparent 17px);
    opacity: 0.65;
    pointer-events: none;
}

.brave-card__stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--brave-stripe-w);
    display: block;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    z-index: 2;
    overflow: hidden;
}

.brave-card__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.brave-card__label-main {
    font-weight: 900;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.brave-card__label-sub {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.brave-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 24px 24px 22px calc(var(--brave-stripe-w) + 18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brave-card__icon {
    margin: 4px auto 0;
    background: transparent;
    border: 0;
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
}

.brave-card__icon i {
    font-size: clamp(86px, 7.5vw, 150px);
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.35));
}

.brave-card__headline {
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.95);
}

.brave-card__text {
    margin-top: auto;
    padding-top: 18px;
}

.brave-card__desc {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.brave-card--intro {
    background: linear-gradient(135deg, #0b2b4b 0%, #1b3b68 100%);
    display: grid;
    align-items: end;
    padding: 20px;
}

.brave-intro__chips {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.brave-chip {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.brave-chip--orange {
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.78rem;
}

.brave-chip--navy {
    background: rgba(13, 22, 44, 0.85);
    color: #ffffff;
    font-size: 1.4rem;
}

.brave-card--bold {
    background: linear-gradient(135deg, #0b1020 0%, #1a2a4d 100%);
}

.brave-card--responsible {
    background: linear-gradient(135deg, #0b2b4b 0%, #2c6aa3 100%);
}

.brave-card--aspire {
    background: linear-gradient(135deg, #4e2aa6 0%, #a17be8 100%);
}

.brave-card--visionary {
    background: linear-gradient(135deg, #0b2e3b 0%, #1d7a8d 100%);
}

.brave-card--empower {
    background: linear-gradient(135deg, #0b6b45 0%, #2ecc8a 100%);
}

.brave-card--bold .brave-card__icon i {
    color: #fbbf24;
}

.brave-card--responsible .brave-card__icon i {
    color: #60a5fa;
}

.brave-card--aspire .brave-card__icon i {
    color: #34d399;
}

.brave-card--visionary .brave-card__icon i {
    color: #facc15;
}

.brave-card--empower .brave-card__icon i {
    color: #d1fae5;
}

@media (max-width: 1200px) {
    .brave-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .brave-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .brave-grid {
        grid-template-columns: 1fr;
    }

    .brave-card {
        min-height: 220px;
        aspect-ratio: auto;
    }

    .brave-card__content {
        padding: 20px 18px 18px calc(var(--brave-stripe-w) + 14px);
    }
}

body > section {
    flex: 1;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Light mode default */
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #333;
    border-color: #000;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Admin Layout */
.admin-layout {
    min-height: 100vh;
    background: var(--bg-secondary);
    position: relative;
}

.admin-content {
    flex: 1;
    padding: 24px;
    max-width: 1280px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

body.admin-scroll-lock {
    overflow: hidden;
}





/* ===== Spotlight Effect Removed ===== */

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar - Modern Dark Mode ===== */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

html[data-theme="dark"] .navbar {
    background: #111111;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 0 32px;
    height: 68px;
}

/* ── Brand / Logo ── */
.nav-brand {
    flex-shrink: 0;
    margin-right: 28px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    letter-spacing: -0.03em;
}

html[data-theme="dark"] .nav-brand .logo {
    color: #ffffff;
}

.nav-brand .logo:hover {
    opacity: 0.85;
}

.nav-brand .logo span:last-child span {
    color: var(--primary-color);
}

html[data-theme="dark"] .nav-brand .logo span:last-child span {
    color: #22C55E;
}

/* ── Logo images (theme-aware) ── */
.logo-mark {
    width: 28px;
    height: 28px;
    display: block;
}

.footer-logo-mark {
    width: 26px;
    height: 26px;
    display: block;
}

.logo-mark-wrap,
.footer-logo-mark-wrap {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
}

.footer-logo-mark-wrap {
    width: 26px;
    height: 26px;
}

.logo-mark-wrap img,
.footer-logo-mark-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.22s ease;
}

html[data-theme="light"] .logo-dark,
html[data-theme="light"] .footer-logo-mark-wrap .logo-dark {
    opacity: 0;
}

html[data-theme="light"] .logo-light,
html[data-theme="light"] .footer-logo-mark-wrap .logo-light {
    opacity: 1;
}

html[data-theme="dark"] .logo-dark,
html[data-theme="dark"] .footer-logo-mark-wrap .logo-dark {
    opacity: 1;
}

html[data-theme="dark"] .logo-light,
html[data-theme="dark"] .footer-logo-mark-wrap .logo-light {
    opacity: 0;
}

/* ── PRO badge ── */
.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #000;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: super;
    line-height: 1.3;
}

/* ── Center Nav ── */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ── Nav Link ── */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.88rem;
    position: relative;
    white-space: nowrap;
}

html[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.6);
}

.nav-link i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(128, 128, 128, 0.04);
}

html[data-theme="dark"] .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(128, 128, 128, 0.06);
}

html[data-theme="dark"] .nav-link.active {
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
}

[data-theme="light"] .nav-link.active {
    color: var(--primary-dark);
    background: rgba(0, 0, 0, 0.04);
}

/* ── Hover underline ── */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: transform 0.25s ease;
}

html[data-theme="dark"] .nav-link::after {
    background: #22C55E;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active::after {
    display: block;
}

/* ── Dropdown Chevron ── */
.nav-chevron {
    font-size: 0.5rem;
    opacity: 0.4;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-has-dropdown.open .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* ── Dropdown Menu ── */
.nav-has-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 6px;
    min-width: 210px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1002;
}

html[data-theme="dark"] .nav-dropdown-menu {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .nav-dropdown-menu {
    background: #1E1A14;
    border-color: rgba(200, 180, 140, 0.10);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nav-has-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown arrow */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

html[data-theme="dark"] .nav-dropdown-menu::before {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.06);
}

/* ── Mega Inner ── */
.mega-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

html[data-theme="dark"] .mega-item {
    color: rgba(255, 255, 255, 0.7);
}

.mega-item:hover {
    background: rgba(16, 185, 129, 0.06);
    color: var(--primary-color);
}

html[data-theme="dark"] .mega-item:hover {
    background: rgba(34, 197, 94, 0.08);
    color: #22C55E;
}

[data-theme="light"] .mega-item:hover {
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .mega-item:hover {
    background: rgba(60, 40, 20, 0.06);
}

[data-theme="dark"] .mega-item:hover {
    background: rgba(200, 180, 140, 0.08);
}

.mega-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

html[data-theme="dark"] .mega-icon {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
}

.mega-item:hover .mega-icon {
    background: var(--primary-color);
    color: #fff;
}

html[data-theme="dark"] .mega-item:hover .mega-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

.mega-text {
    flex: 1;
}

.mega-label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.35;
    transition: color 0.15s ease;
}

html[data-theme="dark"] .mega-label {
    color: rgba(255, 255, 255, 0.85);
}

.mega-item:hover .mega-label {
    color: var(--text-primary);
}

html[data-theme="dark"] .mega-item:hover .mega-label {
    color: #ffffff;
}

.mega-desc {
    display: block;
    font-weight: 400;
    font-size: 0.68rem;
    color: var(--text-primary);
    opacity: 0.45;
    margin-top: 1px;
}

/* New feature badge */
.mega-badge-new {
    display: inline-block;
    background: #22C55E;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* BETA feature badge */
.mega-badge-beta {
    display: inline-block;
    background: #F59E0B;
    color: #1a1205;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mega-item-soon {
    opacity: 0.65;
}

.mega-item-soon:hover {
    opacity: 1;
}

html[data-theme="dark"] .mega-desc {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
}

.mega-divider {
    height: 1px;
    background: var(--border-color);
    margin: 3px 12px;
}

html[data-theme="dark"] .mega-divider {
    background: rgba(255, 255, 255, 0.05);
}

/* ── Nav Actions ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-actions .nav-download-apk { order: 10; }
.nav-actions .nav-icon-btn { order: 20; }
.nav-actions .notif-dropdown { order: 20; }
.nav-actions .theme-toggle { order: 30; }
.nav-actions .nav-dropdown { order: 35; }
.nav-actions .nav-toggle { order: 40; }
.nav-actions .btn-nav-login { order: 31; }
.nav-actions .btn-nav-register { order: 32; }

/* Icon buttons for nav actions */
.nav-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .nav-icon-btn {
    color: rgba(255, 255, 255, 0.4);
}

.nav-icon-btn:hover {
    background: rgba(128, 128, 128, 0.06);
    color: var(--primary-color);
}

html[data-theme="dark"] .nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .nav-toggle {
    color: rgba(255, 255, 255, 0.5);
}

.nav-toggle:hover {
    background: rgba(128, 128, 128, 0.06);
    color: var(--primary-color);
}

html[data-theme="dark"] .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
}

/* ── User Trigger ── */
.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-user-trigger:hover {
    background: rgba(128, 128, 128, 0.06);
}

html[data-theme="dark"] .nav-user-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1rem;
}

html[data-theme="dark"] .nav-avatar {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

.nav-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

html[data-theme="dark"] .nav-avatar-img {
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-user-chevron {
    font-size: 0.75rem;
    opacity: 0.5;
}

html[data-theme="dark"] .nav-user-chevron {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Download APK ── */
.nav-download-apk {
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    font-size: 0.85rem;
}

.nav-download-apk-short {
    display: none;
}

.nav-download-apk-long {
    display: inline;
}

/* ── Login / Register Buttons ── */
.btn-nav-login,
.btn-nav-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-nav-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: transparent;
}

.btn-nav-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

html[data-theme="dark"] .btn-nav-login {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .btn-nav-login:hover {
    border-color: #22C55E;
    color: #22C55E;
}

.btn-nav-register {
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid transparent;
}

html[data-theme="dark"] .btn-nav-register {
    background: #22C55E;
    color: #000000;
}

.btn-nav-register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Mobile only ── */
.nav-mobile-only {
    display: none;
}

/* ── Responsive: Medium screens ── */
@media (max-width: 1400px) {
    .nav-menu { gap: 2px; }
    .nav-menu .nav-link { padding: 7px 10px; font-size: 0.84rem; }
    .nav-actions { gap: 2px; }
    .nav-download-apk { padding: 7px 10px; font-size: 0.84rem; }
    .nav-download-apk-long { display: none !important; }
    .nav-download-apk-short { display: inline !important; }
    .btn-nav-login,
    .btn-nav-register { padding: 7px 12px; font-size: 0.84rem; }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

html[data-theme="dark"] #themeIconMoon {
    opacity: 1;
}

html[data-theme="dark"] #themeIconLamp {
    opacity: 0;
}

html[data-theme="light"] #themeIconMoon {
    opacity: 0;
}

html[data-theme="light"] #themeIconLamp {
    opacity: 1;
}

.theme-toggle:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--primary-color);
}

.notif-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
    appearance: none;
}

.notif-toggle:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--primary-color);
    transform: translateY(-1px);
}

@media (hover: none) and (pointer: coarse) {
    .notif-toggle:hover {
        transform: none;
    }
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger-color);
    color: white;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    line-height: 1;
}

.notif-dropdown {
    position: relative;
    display: inline-flex;
    order: 20;
}

.notif-backdrop {
    display: none;
}

.notif-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: min(380px, 92vw);
    padding: 10px;
    z-index: 120;
    margin-top: 8px;
    max-height: min(70vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-dropdown:focus-within .notif-menu,
.notif-dropdown.open .notif-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

.notif-close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    appearance: none;
}

.notif-close:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    html.notif-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    html.notif-open .navbar {
        backdrop-filter: none;
    }

    .notif-dropdown {
        position: static;
    }

    .notif-dropdown:hover .notif-menu {
        display: none;
    }

    /* Hide notif menu by default on mobile - let .open toggle show it */
    .notif-dropdown:not(.open) .notif-menu,
    .notif-dropdown:not(.open):focus-within .notif-menu {
        display: none;
    }

    .notif-dropdown.open .notif-backdrop,
    html.notif-open .notif-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1999;
    }

    .notif-dropdown.open .notif-menu,
    html.notif-open .notif-menu {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100vw;
        max-width: none;
        margin: 0;
        z-index: 2000;
        max-height: min(72vh, 560px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
        border-radius: 18px 18px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-sizing: border-box;
    }

    .notif-dropdown.open .notif-menu-header,
    html.notif-open .notif-menu-header {
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        padding-top: 8px;
        z-index: 1;
    }

    .notif-dropdown.open .notif-history-link,
    html.notif-open .notif-history-link {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .notif-dropdown.open .notif-close,
    html.notif-open .notif-close {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .notif-dropdown.open .notif-section-title,
    html.notif-open .notif-section-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .notif-dropdown.open .notif-item,
    html.notif-open .notif-item {
        padding: 10px 10px;
    }

    .notif-dropdown.open .notif-item-sub,
    html.notif-open .notif-item-sub {
        font-size: 0.9rem;
    }
}

.notif-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.notif-menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-menu-title {
    font-weight: 900;
    color: var(--text-primary);
}

.notif-history-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notif-history-link:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--primary-color);
}

.notif-section {
    padding: 0 6px 10px;
}

.notif-section + .notif-section {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.notif-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.notif-item:hover {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
}

.notif-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.notif-item-title {
    font-weight: 900;
    min-width: 0;
}

.notif-item-meta {
    color: var(--text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
}

.notif-item-sub {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.notif-empty {
    color: var(--text-secondary);
    font-size: 0.92rem;
    padding: 6px 2px;
}

.notif-retry {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 900;
}

.notif-retry:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--primary-color);
}

.dashboard-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
    background: var(--bg-card);
}

.dashboard-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 240px at 20% 20%, rgba(34,197,94,0.18), transparent 60%),
        radial-gradient(700px 240px at 85% 15%, rgba(59,130,246,0.16), transparent 60%),
        linear-gradient(135deg, rgba(2, 10, 6, 0.9), rgba(3, 18, 10, 0.75));
    filter: saturate(1.1);
}

.dashboard-hero-bg::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, rgba(34,197,94,0.0), rgba(34,197,94,0.25), rgba(59,130,246,0.22), rgba(34,197,94,0.0));
    opacity: 0.35;
    transform: translateX(-20%);
    animation: dashGlow 5.5s ease-in-out infinite;
}

@keyframes dashGlow {
    0% { transform: translateX(-35%); }
    50% { transform: translateX(10%); }
    100% { transform: translateX(-35%); }
}

.dashboard-hero-content {
    position: relative;
    padding: 18px 18px;
}

.dashboard-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dashboard-hero-title {
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.dashboard-hero-sub {
    margin-top: 6px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 600;
}

.dashboard-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(148,163,184,0.65);
    box-shadow: 0 0 0 4px rgba(148,163,184,0.12);
}

.dashboard-hero-dot.is-on {
    background: rgba(34,197,94,0.95);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

.dashboard-hero-progress {
    margin-top: 16px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.dashboard-hero-progress-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dashboard-hero-progress-label {
    font-weight: 900;
}

.dashboard-hero-progress-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-hero-progress-track {
    height: 9px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.dashboard-hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--secondary-color));
    border-radius: 999px;
    box-shadow: none;
}

.dashboard-hero-mini {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.dashboard-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    font-weight: 900;
    font-size: 0.9rem;
}

.dashboard-insight {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(800px 240px at 15% 20%, rgba(59,130,246,0.22), transparent 60%),
        radial-gradient(700px 260px at 80% 30%, rgba(34,197,94,0.16), transparent 60%),
        var(--bg-card);
    box-shadow: var(--shadow-xl);
    padding: 16px 16px;
}

.dashboard-insight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dashboard-insight-title {
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-insight-link {
    font-weight: 900;
    text-decoration: none;
    color: var(--primary-color);
}

.dashboard-insight-body {
    color: var(--text-secondary);
    line-height: 1.55;
    font-weight: 600;
}

.dashboard-insight-bottom {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.dashboard-insight-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    font-weight: 900;
    font-size: 0.86rem;
}

.dashboard-learn {
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(700px 240px at 20% 15%, rgba(34,197,94,0.14), transparent 60%),
        radial-gradient(700px 260px at 85% 20%, rgba(59,130,246,0.14), transparent 60%),
        var(--bg-card);
    box-shadow: var(--shadow-xl);
    padding: 16px 16px;
}

.dashboard-learn-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dashboard-weekly {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    padding: 14px 14px;
    margin-bottom: 12px;
}

.dashboard-weekly-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dashboard-weekly-title {
    font-weight: 900;
}

.dashboard-weekly-meta {
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.9rem;
}

.dashboard-weekly-track {
    height: 9px;
    border-radius: 999px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.dashboard-weekly-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(59,130,246,0.9));
    box-shadow: 0 0 22px rgba(34,197,94,0.20);
}

.dashboard-weekly-cta {
    margin-top: 12px;
}

.dashboard-learn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.dashboard-learn-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    padding: 12px 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.dashboard-learn-item:hover {
    transform: translateY(-1px);
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.08);
}

.dashboard-learn-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dashboard-learn-item-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-learn-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.12);
    color: var(--secondary-color);
    border: 1px solid rgba(255,255,255,0.10);
    flex: 0 0 auto;
}

.dashboard-learn-label {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
}

.dashboard-learn-percent {
    font-weight: 900;
    color: rgba(229,231,235,0.92);
}

.dashboard-learn-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.dashboard-learn-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(59,130,246,0.9));
}

.dashboard-learn-meta {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-dropdown {
    position: relative;
    z-index: 1;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    z-index: 100;
    margin-top: 8px;
    max-width: min(280px, 92vw);
}

.nav-dropdown:focus-within .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

.user-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.user-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 88vw);
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
    pointer-events: none;
}

html.user-drawer-open .user-drawer {
    transform: translateX(0);
    pointer-events: auto;
}

.user-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-drawer-title {
    font-weight: 800;
    color: var(--text-primary);
}

.user-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 10px 10px calc(14px + var(--safe-bottom));
    overflow-y: auto;
}

.user-drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
}

.user-drawer-menu li a:hover {
    background: var(--bg-secondary);
}

html.user-drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

html.user-drawer-open .user-drawer {
    transform: translateX(0);
}

html.user-drawer-open .user-drawer-backdrop {
    display: block;
    pointer-events: auto;
}

/* Sembunyikan hamburger saat user drawer terbuka */
html.user-drawer-open .nav-toggle {
    visibility: hidden;
    pointer-events: none;
}

/* Sembunyikan nav-menu juga jika terbuka */
html.user-drawer-open .nav-menu.active {
    display: none;
}

/* Sembunyikan notif dropdown jika terbuka */
html.user-drawer-open .notif-dropdown.open .notif-menu {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    min-width: 0;
}

.dropdown-menu li a {
    white-space: normal;
}

.dropdown-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-menu li a.dropdown-cta-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--success-color);
    font-weight: 800;
}

.dropdown-menu li a.dropdown-cta-success:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.55);
    color: var(--success-color);
}

.btn-nav-login {
    background: rgba(16, 185, 129, 0.14);
    border: 2px solid rgba(16, 185, 129, 0.35);
    color: var(--success-color) !important;
    font-weight: 800;
}

.btn-nav-login:hover {
    background: rgba(16, 185, 129, 0.22);
    color: white !important;
    border-color: rgba(16, 185, 129, 0.55);
}

.btn-nav-register {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white !important;
    border: none;
}

.btn-nav-register:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 38px;
    height: 38px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--primary-color);
    transform: translateY(-1px);
}

@media (hover: none) and (pointer: coarse) {
    .nav-toggle:hover {
        transform: none;
    }
}

/* ===== Enhanced Buttons ===== */

/* ===== Enhanced Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn:disabled,
.btn.disabled,
.btn[data-loading] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.btn[data-loading] .btn-text {
    visibility: hidden;
}

.btn[data-loading]::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

[data-theme="dark"] .btn-premium {
    text-shadow: 
        -1px -1px 0 rgba(0,0,0,0.8),  
         1px -1px 0 rgba(0,0,0,0.8),
        -1px  1px 0 rgba(0,0,0,0.8),
         1px  1px 0 rgba(0,0,0,0.8);
}

/* ===== Enhanced Cards ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

html[data-theme="dark"] .card {
    box-shadow: none;
}

html[data-theme="dark"] .card:hover {
    box-shadow: none;
    background: var(--bg-hover);
}

.card h2, .card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.about-video-play {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-video-play:hover {
    transform: scale(1.06);
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.8);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    border-radius: 8px;
    padding: 8px 15px;
    text-align: center;
    backdrop-filter: blur(6px);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--primary-color);
}

.event-date-badge.is-muted {
    border-color: var(--text-muted);
}

.event-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
}

.event-date-badge.is-muted .event-date-day {
    color: var(--text-muted);
}

.event-date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .event-date-badge {
    background: rgba(0, 0, 0, 0.62);
}

.market-ticker {
    margin-bottom: 25px;
    overflow: hidden !important;
    white-space: nowrap;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    line-height: 1;
}

.market-ticker,
.market-ticker * {
    white-space: nowrap !important;
}

.market-ticker-track {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
}

.market-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
    font-weight: 700;
    margin-right: 40px;
    line-height: 1;
}

.market-ticker-item i {
    font-size: 0.9em;
}

.dashboard-search-wrap {
    position: relative;
    min-width: 250px;
    flex: 1;
    max-width: 520px;
}

.dashboard-search-wrap i {
    pointer-events: none;
}

@media (max-width: 576px) {
    .dashboard-search-wrap {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .market-ticker {
        padding: 8px 0;
        height: 36px;
    }

    .market-ticker-item {
        margin-right: 28px;
    }
}

.dashboard-search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: var(--text-primary);
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard-search-input:focus {
    border-color: var(--primary-color);
    background: var(--bg-card);
}

.partners-section {
    background: var(--bg-secondary);
}

.partners-title {
    margin-bottom: 26px;
}

.partners-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
    gap: 14px;
    align-items: stretch;
    justify-content: center;
    max-width: 1220px;
    margin: 0 auto;
}

.partner-card {
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .partner-card:hover {
    background: var(--bg-hover);
    box-shadow: none;
}

.partner-link {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 14px 12px;
    min-height: 76px;
}

.partner-logo {
    max-height: 54px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) contrast(1.05);
    opacity: 0.9;
    transition: filter 180ms ease, opacity 180ms ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0) contrast(1.05);
    opacity: 1;
}

html[data-theme="dark"] .partner-logo {
    filter: grayscale(1) contrast(1.05) brightness(0.85);
}

html[data-theme="dark"] .partner-card:hover .partner-logo {
    filter: grayscale(0) contrast(1.05) brightness(0.95);
}

@media (max-width: 420px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }
}

.stack-cards {
    display: grid;
    gap: 24px;
}

/* ===== Beam Effect ===== */
.beams {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ===== Sections ===== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Flash Messages ===== */
.flash-message {
    padding: 15px 20px;
    border-radius: var(--border-radius-lg);
    margin: 20px auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-md);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.flash-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== Tables ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tabs .badge {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
}

.details-summary-btn {
    cursor: pointer;
    list-style: none;
}

.details-summary-btn::-webkit-details-marker {
    display: none;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions details {
    display: inline-block;
}

.table-actions details > summary {
    list-style: none;
}

.table-actions details > summary::-webkit-details-marker {
    display: none;
}

.event-banner {
    position: relative;
    height: 360px;
    background: rgba(0,0,0,0.03);
}

.event-banner-slide {
    position: absolute;
    inset: 0;
    display: none;
    text-decoration: none;
    color: inherit;
}

.event-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.20) 55%, rgba(0,0,0,0));
}

.event-banner-content {
    position: relative;
    height: 100%;
    padding: 22px;
    display: flex;
    align-items: flex-end;
}

.event-banner-title {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.2;
    color: white;
    margin-bottom: 12px;
}

.event-banner-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.event-banner-meta-text {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
}

.event-banner-cta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.community-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.community-sidebar {
    flex: 0 0 380px;
    max-width: 420px;
    width: 100%;
}

@media (max-width: 900px) {
    .community-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.community-main {
    flex: 1;
    min-width: 320px;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-role {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

/* ===== Premium CTA Section ===== */
.cta-premium {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
    background: #000; /* Fallback */
    overflow: hidden;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Premium Green Gradient Background (Dark Mode) */
.cta-premium .cta-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

[data-theme="dark"] .cta-premium .cta-bg-overlay {
    background: linear-gradient(90deg, #00FF00 0%, #003300 100%);
}

/* Premium Blue Gradient Background (Light Mode) */
[data-theme="light"] .cta-premium .cta-bg-overlay {
    background: linear-gradient(90deg, #3b82f6 0%, #1e3a8a 100%); /* Soft Blue to Deep Blue */
}

/* Vintage Light CTA */
[data-theme="light"] .cta-premium .cta-bg-overlay {
    background: linear-gradient(90deg, #8a6a30 0%, #2C241A 100%);
}

/* Vintage Dark CTA */
[data-theme="dark"] .cta-premium .cta-bg-overlay {
    background: linear-gradient(90deg, #10b981 0%, #0D0B08 100%);
}

/* Vignette Effect */
.cta-premium .cta-bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.cta-premium.cta-shape-only .cta-bg-overlay {
    background: transparent !important;
}

.cta-premium.cta-shape-only .cta-bg-overlay::after {
    background: radial-gradient(circle, transparent 55%, rgba(0,0,0,0.35) 100%);
}

.cta-premium.cta-shape-only .cta-bg-overlay::before {
    content: '';
    position: absolute;
    inset: -20%;
    filter: blur(26px);
    opacity: 0.55;
}

[data-theme="dark"] .cta-premium.cta-shape-only .cta-bg-overlay::before {
    background:
        radial-gradient(circle at 18% 30%, rgba(0, 255, 0, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 82% 68%, rgba(0, 255, 0, 0.10) 0%, transparent 60%),
        radial-gradient(circle at 70% 18%, rgba(0, 255, 0, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .cta-premium.cta-shape-only .cta-bg-overlay::before {
    background:
        radial-gradient(circle at 18% 30%, rgba(59, 130, 246, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 82% 68%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
        radial-gradient(circle at 70% 18%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

/* Premium Buttons */
.btn-premium-white {
    background: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

[data-theme="dark"] .btn-premium-white {
    color: #008000;
}

[data-theme="light"] .btn-premium-white {
    color: var(--secondary-dark);
}

.btn-premium-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

[data-theme="dark"] .btn-premium-white:hover {
    color: #006400;
}

[data-theme="light"] .btn-premium-white:hover {
    color: var(--secondary-color);
}

.btn-premium-white i {
    font-size: 1.2rem;
}

.btn-premium-outline {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-premium-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .btn-premium-outline {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    border-color: var(--border-color);
    backdrop-filter: none;
}

[data-theme="light"] .btn-premium-outline:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-premium {
        padding: 60px 0;
    }
    .cta-premium h2 {
        font-size: 2rem !important;
    }
    .btn-premium-white, .btn-premium-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Premium Banner (Card Version) ===== */
.premium-banner {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    background: #000;
}

.premium-banner .banner-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Vignette */
.premium-banner .banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* Gradients */
[data-theme="dark"] .premium-banner .banner-bg {
    background: linear-gradient(90deg, #00FF00 0%, #003300 100%);
}

[data-theme="light"] .premium-banner .banner-bg {
    background: linear-gradient(90deg, #3b82f6 0%, #1e3a8a 100%);
}

.premium-banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

/* Premium Typography for Banners */
.premium-banner h1, 
.premium-banner h2 {
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .premium-banner .banner-content {
        padding: 50px 20px;
    }
}


/* ===== Premium Utility Classes ===== */
.premium-gradient-bg {
    background: #000; /* Fallback */
    color: white;
}

[data-theme="dark"] .premium-gradient-bg {
    background: linear-gradient(135deg, #00FF00 0%, #003300 100%);
}

[data-theme="light"] .premium-gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

[data-theme="light"] .premium-gradient-bg {
    background: linear-gradient(135deg, #8a6a30 0%, #2C241A 100%);
}

[data-theme="dark"] .premium-gradient-bg {
    background: linear-gradient(135deg, #10b981 0%, #0D0B08 100%);
}

/* ===== Premium Hero ===== */
.premium-hero {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 40%),
                var(--bg-dark);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

[data-theme="light"] .premium-hero {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 40%),
                var(--bg-secondary);
}

[data-theme="light"] .premium-hero {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(139, 125, 107, 0.05), transparent 40%),
                var(--bg-secondary);
}

[data-theme="dark"] .premium-hero {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(200, 180, 140, 0.05), transparent 40%),
                var(--bg-secondary);
}

.premium-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.premium-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 60px 0;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    animation: revealFallback 0s 2s forwards;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

@keyframes revealFallback {
    to { opacity: 1; transform: translateY(0); }
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
    position: relative;
}

#realtimeChart a[href*="tradingview"],
#realtimeChart a[href*="tradingview"] * {
    display: none !important;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1350px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-center {
        flex: 1;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
    }

    .nav-actions .btn-nav-login,
    .nav-actions .btn-nav-register,
    .nav-actions .btn-premium {
        display: none;
    }

    .nav-actions .nav-download-apk {
        display: none;
    }

    .nav-mobile-only {
        display: block;
    }

    .nav-link::after,
    .nav-link.active::after {
        display: none !important;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        max-width: 100%;
    }

    .nav-dropdown.open .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: none;
    }

    /* Mobile nav background */
    html[data-theme="dark"] .nav-menu {
        background: #111111;
    }

    /* Nav dropdown - hidden by default on mobile, shown when hamburger open */
    .nav-has-dropdown {
        position: relative;
    }

    .nav-chevron {
        display: none;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 4px 20px;
        min-width: 0;
        width: 100%;
        background: transparent;
        margin-top: 0;
        z-index: 1003;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    /* Only show dropdown via JS .open toggle (no hover on touch) */
    .nav-menu.active .nav-has-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: static;
    }

    /* Suppress desktop hover behavior on tablet/mobile */
    .nav-menu.active .nav-has-dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mega-inner {
        gap: 0;
    }

    .mega-item {
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 0.82rem;
        gap: 10px;
    }

    html[data-theme="dark"] .mega-item {
        color: rgba(255, 255, 255, 0.55);
    }

    .mega-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        border-radius: 7px;
    }

    .mega-item:hover .mega-icon {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

    .mega-item:hover {
        background: transparent;
        color: var(--text-primary);
    }

    .mega-desc {
        display: none;
    }

    .mega-divider {
        margin: 2px 14px;
    }
}

/* ===== Mobile Navbar Fix: Better dropdown items, spacing, overflow ===== */
@media (max-width: 1350px) {
    .nav-menu.active {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active > li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active > li:last-child {
        border-bottom: none;
    }

    .nav-menu.active > li > .nav-link {
        padding: 10px 16px;
        font-weight: 600;
        font-size: 0.88rem;
    }

    /* Mobile dropdown menu: layout override, only when OPEN */
    .nav-menu.active .nav-has-dropdown.open .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 0 0 24px !important;
        min-width: 0 !important;
        width: 100% !important;
        background: transparent !important;
        margin-top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-height: 500px;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    /* Closed dropdowns: hidden and collapsed */
    .nav-menu.active .nav-has-dropdown:not(.open) .nav-dropdown-menu {
        max-height: 0;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
        overflow: hidden;
    }

    /* Mega items on mobile: clean list with icon + text */
    .nav-menu.active .mega-inner {
        gap: 2px;
    }

    .nav-menu.active .mega-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 14px;
        border-radius: 10px;
        font-size: 0.82rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: var(--bg-secondary);
        margin: 2px 0;
    }

    .nav-menu.active .mega-item:hover,
    .nav-menu.active .mega-item:active {
        background: rgba(16, 185, 129, 0.06);
    }

    html[data-theme="dark"] .nav-menu.active .mega-item {
        color: rgba(255, 255, 255, 0.7);
    }

    html[data-theme="dark"] .nav-menu.active .mega-item:hover,
    html[data-theme="dark"] .nav-menu.active .mega-item:active {
        background: rgba(34, 197, 94, 0.08);
    }

    .nav-menu.active .mega-icon {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
        border-radius: 7px;
        flex-shrink: 0;
    }

    .nav-menu.active .mega-text {
        flex: 1;
        min-width: 0;
    }

    .nav-menu.active .mega-label {
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-menu.active .mega-desc {
        display: none;
    }

    .nav-menu.active .mega-divider {
        margin: 4px 14px;
    }

    /* Show chevron on dropdown parents */
    .nav-menu.active .nav-chevron {
        display: inline-block;
        margin-left: 4px;
        font-size: 0.5rem;
        opacity: 0.4;
    }

    .nav-menu.active .nav-has-dropdown.open .nav-chevron {
        transform: rotate(180deg);
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .navbar .container {
        height: 56px;
        padding: 0 12px;
    }

    .nav-brand .logo {
        gap: 6px;
        font-size: 1.1rem;
    }

    .nav-icon-btn,
    .theme-toggle,
    .nav-toggle,
    .nav-avatar-img,
    .nav-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .nav-link {
        padding: 9px 12px;
        font-size: 0.88rem;
    }

    .nav-user-trigger {
        padding: 0 !important;
        border: none;
    }

    .nav-avatar-img {
        border-width: 1px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }

    .nav-avatar {
        font-size: 1rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-download-apk {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .nav-download-apk-long {
        display: none;
    }

    .nav-download-apk-short {
        display: inline;
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-center {
        flex: 1;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link::after,
    .nav-link.active::after {
        display: none !important;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .nav-dropdown.open .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: none;
    }

    .nav-actions .btn-nav-login,
    .nav-actions .btn-nav-register {
        display: none;
    }

    .nav-mobile-only {
        display: block;
    }

    html[data-theme="dark"] .nav-menu {
        background: #111111;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .nav-user-chevron { display: none; }

    /* Nav dropdown - hidden by default on touch, tap to toggle */
    .nav-has-dropdown {
        position: relative;
    }

    .nav-chevron {
        display: none;
    }

    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 4px 20px;
        min-width: 0;
        width: 100%;
        background: transparent;
        margin-top: 0;
        z-index: 1003;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    /* Show dropdown on tap (toggle .open via JS) */
    .nav-has-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: static;
    }

    /* Suppress hover on touch */
    .nav-has-dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mega-inner {
        gap: 0;
    }

    .mega-item {
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 0.82rem;
        gap: 10px;
    }

    html[data-theme="dark"] .mega-item {
        color: rgba(255, 255, 255, 0.55);
    }

    .mega-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        border-radius: 7px;
    }

    .mega-item:hover .mega-icon {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }

    .mega-item:hover {
        background: transparent;
        color: var(--text-primary);
    }

    .mega-desc {
        display: none;
    }

    .mega-divider {
        margin: 2px 14px;
    }
}

@media (max-width: 1024px) {
    .navbar .container {
        padding: 0 24px;
        height: 64px;
    }
    .nav-center { flex: 0; }
    .nav-menu { gap: 4px; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .navbar .container { height: 60px; padding: 0 18px; }
    .nav-actions { gap: 4px; }
    .nav-brand { margin-right: 12px; }
    .nav-brand .logo { font-size: 1.2rem; gap: 8px; }
    .nav-brand .logo span:last-child { display: none; }
    
    .nav-icon-btn,
    .theme-toggle,
    .nav-toggle,
    .nav-avatar-img,
    .nav-avatar { width: 34px; height: 34px; font-size: 0.95rem; }
    .nav-link { padding: 9px 12px; font-size: 0.88rem; }
    
    .nav-user-trigger { padding: 0 !important; border: none; }
    .nav-avatar-img { border-width: 1px !important; border-radius: 50% !important; object-fit: cover !important; }
    .nav-avatar { font-size: 1rem; }
    
    .nav-user-chevron { display: none; }
    .btn-nav-login,
    .btn-nav-register { padding: 6px 12px; font-size: 0.82rem; }
    .nav-download-apk { padding: 7px 10px; font-size: 0.82rem; }
    .section-title h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .navbar .container { height: 56px; padding: 0 14px; }
    .nav-brand .logo { gap: 6px; font-size: 1.1rem; }
    .nav-icon-btn,
    .theme-toggle,
    .nav-toggle { width: 32px; height: 32px; font-size: 0.9rem; }
    .nav-download-apk { padding: 6px 8px; font-size: 0.8rem; }
    .nav-download-apk-long { display: none; }
    .nav-download-apk-short { display: inline; }
    .nav-actions { gap: 3px; }
    .nav-actions .nav-download-apk { display: none; }
}

/* ===== Text Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }

/* ===== Margin Utilities ===== */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ===== Display Utilities ===== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* ===== Shared Summary Card System ===== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
}

.summary-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
    background: var(--summary-card-bg, var(--bg-primary));
    border: 1px solid var(--summary-card-border, var(--border-color));
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .summary-card {
    background: var(--summary-card-bg, #0a0a0a);
}

.summary-card-label {
    font-size: var(--summary-card-label-size, 0.78rem);
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.3;
    text-transform: var(--summary-card-label-case, none);
    letter-spacing: var(--summary-card-label-spacing, normal);
}

.summary-card-value {
    font-weight: 800;
    font-size: var(--summary-card-value-size, 1.05rem);
    line-height: var(--summary-card-value-lh, 1.3);
}

.summary-card-sub {
    font-size: var(--summary-card-sub-size, 0.82rem);
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .summary-grid {
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .summary-grid {
        gap: 16px;
    }

    .summary-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .summary-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .summary-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ===== POV Community Gallery ===== */
.pov-gallery {
    display: flex;
    gap: 20px;
    height: 400px;
    max-width: 1000px;
    margin: 0 auto;
}

.pov-card {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-md);
}

.pov-card:hover {
    flex: 2.5; /* Expand on hover */
    box-shadow: var(--shadow-xl);
}

.pov-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.pov-card:hover .pov-image {
    transform: scale(1.1);
}

.pov-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0.8;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: opacity 0.3s ease;
}

.pov-card:hover .pov-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1) 100%);
}

.pov-text {
    transform: translateY(20px);
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 100%;
}

.pov-card:hover .pov-text {
    transform: translateY(0);
    opacity: 1;
}

.pov-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pov-text h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.pov-text p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

.pov-card:hover .pov-text p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

@media (max-width: 768px) {
    .pov-gallery {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .pov-card {
        height: 250px; /* Fixed height for mobile stack */
        flex: none;
        width: 100%;
    }
    
    .pov-card:hover {
        flex: none;
        transform: scale(1.02);
    }
}

/* ===== Lightbox Modal ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    height: auto;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 1rem;
    color: #ddd;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

.btn-tab {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

img, video, canvas, svg, iframe {
    max-width: 100%;
}

@media (max-width: 640px) {
    .card {
        padding: 16px;
    }

    .premium-banner h1 {
        font-size: clamp(1.7rem, 6vw, 2.1rem);
    }

    .premium-banner p {
        font-size: 0.95rem;
    }

    .event-banner h1 {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .event-banner p {
        font-size: 0.95rem;
    }

    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="min-width: 200px"],
    [style*="min-width: 220px"],
    [style*="min-width: 240px"],
    [style*="min-width: 250px"],
    [style*="min-width: 260px"],
    [style*="min-width: 280px"],
    [style*="min-width: 300px"],
    [style*="min-width: 320px"] {
        min-width: 0 !important;
    }
}

@media (max-width: 768px) {
    .event-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .event-detail-register-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="min-width: 200px"] {
        min-width: 0 !important;
    }

    .event-detail-hero-image {
        height: 200px !important;
    }

    .event-detail-action-grid {
        grid-template-columns: 1fr !important;
    }

    .event-detail-admin-actions {
        flex-direction: column !important;
    }

    .event-detail-admin-actions .btn {
        width: 100%;
    }

    .charts-controlbar {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .charts-section .premium-banner h1 {
        font-size: 1.9rem !important;
        margin-bottom: 12px !important;
    }

    .charts-section .premium-banner p {
        font-size: 0.95rem !important;
    }

    .charts-section .chart-touch-guard {
        touch-action: none;
        overscroll-behavior: contain;
    }

    .charts-section .chart-touch-guard iframe,
    .charts-section .chart-touch-guard div {
        touch-action: none;
    }

    .charts-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .charts-tabs::-webkit-scrollbar {
        display: none;
    }

    #symbolSearchForm {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #symbolSearchForm > span {
        width: 100%;
    }

    #symbolInput {
        width: 100% !important;
        max-width: 100%;
    }

    #symbolSearchForm button[type="submit"] {
        width: 100%;
    }

    .btn {
        min-height: 44px;
    }

    .btn-tab {
        padding: 8px 12px;
    }

    .charts-section #tab-chart > div {
        height: clamp(360px, 70vh, 520px) !important;
    }

    .charts-section #tab-profile > div > div:first-child {
        height: clamp(320px, 55vh, 420px) !important;
    }

    .charts-section #tab-profile > div > div:last-child {
        height: clamp(360px, 70vh, 520px) !important;
    }

    .charts-section #tab-technicals > div {
        height: clamp(360px, 70vh, 520px) !important;
    }
}

html[data-theme="light"] .learning-section .card,
html[data-theme="light"] .learning-section .category-card {
    border-color: rgba(15, 23, 42, 0.22) !important;
    box-shadow: var(--shadow-md) !important;
}

html[data-theme="light"] .learning-section .category-card:hover {
    box-shadow: var(--shadow-lg) !important;
}

html[data-theme="light"] .learning-section .category-card .category-icon {
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid rgba(37, 99, 235, 0.20) !important;
}

html[data-theme="light"] .learning-section .progress-track {
    background: rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .learning-section .card,
html[data-theme="light"] .learning-section .category-card {
    border-color: rgba(44, 36, 26, 0.18) !important;
    box-shadow: var(--shadow-md) !important;
}

html[data-theme="light"] .learning-section .category-card:hover {
    box-shadow: var(--shadow-lg) !important;
}

html[data-theme="light"] .learning-section .category-card .category-icon {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.20) !important;
}

html[data-theme="light"] .learning-section .progress-track {
    background: rgba(44, 36, 26, 0.12) !important;
}

html[data-theme="dark"] .learning-section .card,
html[data-theme="dark"] .learning-section .category-card {
    border-color: rgba(200, 180, 140, 0.12) !important;
    box-shadow: var(--shadow-md) !important;
}

html[data-theme="dark"] .learning-section .category-card:hover {
    box-shadow: var(--shadow-lg) !important;
}

html[data-theme="dark"] .learning-section .category-card .category-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.20) !important;
}

html[data-theme="dark"] .learning-section .progress-track {
    background: rgba(200, 180, 140, 0.10) !important;
}

@media (max-width: 640px) {
    .learning-filter-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px !important;
        align-items: end;
    }

    .learning-filter-search {
        grid-column: 1 / -1;
    }

    .learning-filter-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .learning-filter-actions .btn,
    .learning-filter-actions a.btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .btn::before {
        display: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-outline:hover {
        background: transparent;
        color: var(--primary-color);
    }

    .nav-brand .logo:hover {
        transform: none;
    }

    .brave-item:hover .brave-card {
        transform: none;
        box-shadow: var(--shadow-md);
        filter: none;
    }
}

/* ============================================================
   Growthinks - Premium Authentication Experience
   (Welcome / Login / Register) - single source in style.css
   ============================================================ */
@keyframes gtxAuthFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gtxAuthFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.gtx-auth {
    animation: gtxAuthFadeIn 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* === Dark mode palette (default) === */
    --gtx-bg-grad: linear-gradient(160deg, #0c1021 0%, #080b14 55%, #050710 100%);
    --gtx-grain-opacity: 0.055;
    --gtx-text: #e2e6f0;
    --gtx-text-dim: #8b93a8;
    --gtx-text-muted: #6b7490;
    --gtx-text-faint: #525c74;
    --gtx-label: #9ca4b8;
    --gtx-icon: #5c6480;
    --gtx-card-bg: rgba(14,17,28,.93);
    --gtx-card-border: rgba(255,255,255,.08);
    --gtx-card-shadow: 0 24px 64px rgba(0,0,0,.55);
    --gtx-surface: rgba(255,255,255,.04);
    --gtx-surface-border: rgba(255,255,255,.09);
    --gtx-surface-hover: rgba(255,255,255,.08);
    --gtx-hover-text: #ffffff;
    --gtx-accent: #7c6cff;
    --gtx-accent-soft: rgba(124,108,255,.14);
    --gtx-accent-border: rgba(124,108,255,.24);
    --gtx-input-bg: rgba(255,255,255,.04);
    --gtx-input-border: rgba(255,255,255,.10);
    --gtx-input-text: #e2e6f0;
    --gtx-input-focus-border: rgba(124,108,255,.65);
    --gtx-btn-ghost-bg: rgba(255,255,255,.05);
    --gtx-btn-ghost-border: rgba(255,255,255,.13);
    --gtx-btn-ghost-text: #e2e6f0;
    --gtx-btn-ghost-hover: rgba(255,255,255,.10);
    --gtx-tag-bg: rgba(124,108,255,.12);
    --gtx-tag-border: rgba(124,108,255,.22);
    --gtx-tag-text: #c5ccdf;
    --gtx-alert-bg: rgba(255,90,90,.10);
    --gtx-alert-border: rgba(255,90,90,.30);
    --gtx-alert-text: #ffb4b4;
    --gtx-alert-link: #ffd0d0;
    --gtx-loading-border: rgba(255,255,255,.40);
    --gtx-spinner: #fff;
    --gtx-strength-bg: rgba(255,255,255,.08);
    --gtx-trust-text: #6b7490;
    --gtx-card-before: linear-gradient(160deg, rgba(255,255,255,.15), transparent 38%);
    --gtx-accent-2: #37e0c8;
    --gtx-btn-shadow: rgba(124,108,255,.30);
    --gtx-btn-hover-shadow: rgba(124,108,255,.40);
    --gtx-btn-primary-text: #fff;
    --gtx-brand-shadow: rgba(124,108,255,.20);
    --gtx-aside-bg: linear-gradient(155deg, rgba(124,108,255,.15), rgba(55,224,200,.08) 90%);
    --gtx-aside-glow: radial-gradient(600px 420px at 18% 8%, rgba(124,108,255,.22), transparent 60%);
    --gtx-glow-1-color: rgba(124,108,255,.14);
    --gtx-glow-2-color: rgba(55,224,200,.10);
    --gtx-glow-3-color: rgba(86,130,255,.08);
    --gtx-pulse-color: #37e0c8;
    --gtx-caps-color: #ffcf6b;
    --gtx-strength-label-color: #9aa3b8;
    --gtx-success-bg: rgba(16,185,129,.12);
    --gtx-success-border: rgba(16,185,129,.35);
    --gtx-success-text: #37e0c8;
    --gtx-flash-bg: rgba(20,20,30,.85);
    --gtx-flash-border: rgba(255,255,255,.10);
    --gtx-flash-text: #ffb4b4;
    --gtx-flash-success: #6ee7b7;
    --gtx-flash-warning: #fcd34d;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow: hidden;
    isolation: isolate;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gtx-text);
    box-sizing: border-box;
    background:
        radial-gradient(1000px 700px at 12% 8%, var(--gtx-glow-1-color), transparent 60%),
        radial-gradient(900px 700px at 88% 92%, var(--gtx-glow-2-color), transparent 60%),
        radial-gradient(800px 600px at 82% 12%, var(--gtx-glow-3-color), transparent 60%),
        var(--gtx-bg-grad);
}
.gtx-auth > * { position: relative; z-index: 1; }

/* Grain texture overlay - CSS-only via SVG feTurbulence */
.gtx-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: var(--gtx-grain-opacity);
    pointer-events: none;
    filter: url(#gtx-noise-filter);
    background: #fff;
    mix-blend-mode: overlay;
}

/* ========== LIGHT MODE ========== */
[data-theme="light"] .gtx-auth {
    --gtx-bg-grad: linear-gradient(160deg, #eef0f6 0%, #e4e7f0 50%, #dce0ec 100%);
    --gtx-grain-opacity: 0.07;
    --gtx-text: #1a1d2e;
    --gtx-text-dim: #4a5070;
    --gtx-text-muted: #6a7090;
    --gtx-text-faint: #8a90a8;
    --gtx-label: #3a4060;
    --gtx-icon: #7078a0;
    --gtx-card-bg: rgba(255,255,255,.92);
    --gtx-card-border: rgba(0,0,0,.06);
    --gtx-card-shadow: 0 24px 64px rgba(0,0,0,.10), 0 2px 12px rgba(0,0,0,.04);
    --gtx-surface: rgba(0,0,0,.03);
    --gtx-surface-border: rgba(0,0,0,.08);
    --gtx-surface-hover: rgba(0,0,0,.06);
    --gtx-hover-text: #0a0c18;
    --gtx-accent: #6858e8;
    --gtx-accent-2: #2cb5a0;
    --gtx-accent-soft: rgba(104,88,232,.10);
    --gtx-accent-border: rgba(104,88,232,.20);
    --gtx-btn-shadow: rgba(104,88,232,.20);
    --gtx-btn-hover-shadow: rgba(104,88,232,.30);
    --gtx-btn-primary-text: #fff;
    --gtx-brand-shadow: rgba(104,88,232,.12);
    --gtx-aside-bg: linear-gradient(155deg, rgba(104,88,232,.06), rgba(44,181,160,.04) 90%);
    --gtx-aside-glow: radial-gradient(600px 420px at 18% 8%, rgba(104,88,232,.10), transparent 60%);
    --gtx-glow-1-color: rgba(104,88,232,.08);
    --gtx-glow-2-color: rgba(44,181,160,.06);
    --gtx-glow-3-color: rgba(80,112,224,.05);
    --gtx-pulse-color: #2cb5a0;
    --gtx-caps-color: #d4a030;
    --gtx-strength-label-color: #7a8098;
    --gtx-success-bg: rgba(44,181,160,.10);
    --gtx-success-border: rgba(44,181,160,.30);
    --gtx-success-text: #1a9080;
    --gtx-flash-bg: rgba(255,255,255,.92);
    --gtx-flash-border: rgba(0,0,0,.08);
    --gtx-flash-text: #b83030;
    --gtx-flash-success: #1a9080;
    --gtx-flash-warning: #b08020;
    --gtx-input-bg: rgba(0,0,0,.03);
    --gtx-input-border: rgba(0,0,0,.09);
    --gtx-input-text: #1a1d2e;
    --gtx-input-focus-border: rgba(104,88,232,.55);
    --gtx-btn-ghost-bg: rgba(0,0,0,.03);
    --gtx-btn-ghost-border: rgba(0,0,0,.10);
    --gtx-btn-ghost-text: #2a2e42;
    --gtx-btn-ghost-hover: rgba(0,0,0,.06);
    --gtx-tag-bg: rgba(104,88,232,.08);
    --gtx-tag-border: rgba(104,88,232,.18);
    --gtx-tag-text: #3a3f5c;
    --gtx-alert-bg: rgba(220,50,50,.06);
    --gtx-alert-border: rgba(220,50,50,.18);
    --gtx-alert-text: #b83030;
    --gtx-alert-link: #a02020;
    --gtx-loading-border: rgba(0,0,0,.20);
    --gtx-spinner: #3a3f5c;
    --gtx-strength-bg: rgba(0,0,0,.06);
    --gtx-trust-text: #6a7090;
    --gtx-card-before: linear-gradient(160deg, rgba(255,255,255,.9), transparent 38%);
}
[data-theme="light"] .gtx-auth::before {
    mix-blend-mode: multiply;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] .gtx-auth {
    --gtx-bg-grad: linear-gradient(160deg, #0c1021 0%, #080b14 55%, #050710 100%);
    --gtx-grain-opacity: 0.055;
    --gtx-accent-2: #37e0c8;
    --gtx-btn-shadow: rgba(124,108,255,.30);
    --gtx-btn-hover-shadow: rgba(124,108,255,.40);
    --gtx-btn-primary-text: #fff;
    --gtx-brand-shadow: rgba(124,108,255,.20);
    --gtx-aside-bg: linear-gradient(155deg, rgba(124,108,255,.15), rgba(55,224,200,.08) 90%);
    --gtx-aside-glow: radial-gradient(600px 420px at 18% 8%, rgba(124,108,255,.22), transparent 60%);
    --gtx-glow-1-color: rgba(124,108,255,.14);
    --gtx-glow-2-color: rgba(55,224,200,.10);
    --gtx-glow-3-color: rgba(86,130,255,.08);
    --gtx-pulse-color: #37e0c8;
    --gtx-caps-color: #ffcf6b;
    --gtx-strength-label-color: #9aa3b8;
    --gtx-success-bg: rgba(16,185,129,.12);
    --gtx-success-border: rgba(16,185,129,.35);
    --gtx-success-text: #37e0c8;
    --gtx-flash-bg: rgba(20,20,30,.85);
    --gtx-flash-border: rgba(255,255,255,.10);
    --gtx-flash-text: #ffb4b4;
    --gtx-flash-success: #6ee7b7;
    --gtx-flash-warning: #fcd34d;
}

/* ========== VINTAGE LIGHT ========== */
[data-theme="light"] .gtx-auth {
    --gtx-bg-grad: linear-gradient(160deg, #f0ece2 0%, #e8e2d5 50%, #dfd8c8 100%);
    --gtx-grain-opacity: 0.065;
    --gtx-text: #2a2218;
    --gtx-text-dim: #6a6050;
    --gtx-text-muted: #8a7e6e;
    --gtx-text-faint: #a09480;
    --gtx-label: #5a5040;
    --gtx-icon: #8a7e6e;
    --gtx-card-bg: rgba(252,248,240,.92);
    --gtx-card-border: rgba(80,60,30,.10);
    --gtx-card-shadow: 0 24px 64px rgba(40,30,10,.12), 0 2px 12px rgba(40,30,10,.05);
    --gtx-surface: rgba(80,60,30,.05);
    --gtx-surface-border: rgba(80,60,30,.10);
    --gtx-surface-hover: rgba(80,60,30,.08);
    --gtx-hover-text: #1a1408;
    --gtx-accent: #8a6a30;
    --gtx-accent-2: #b08848;
    --gtx-accent-soft: rgba(138,106,48,.10);
    --gtx-accent-border: rgba(138,106,48,.22);
    --gtx-btn-shadow: rgba(138,106,48,.18);
    --gtx-btn-hover-shadow: rgba(138,106,48,.28);
    --gtx-btn-primary-text: #fff;
    --gtx-brand-shadow: rgba(138,106,48,.12);
    --gtx-aside-bg: linear-gradient(155deg, rgba(138,106,48,.08), rgba(176,136,72,.05) 90%);
    --gtx-aside-glow: radial-gradient(600px 420px at 18% 8%, rgba(138,106,48,.12), transparent 60%);
    --gtx-glow-1-color: rgba(160,130,60,.08);
    --gtx-glow-2-color: rgba(180,160,120,.06);
    --gtx-glow-3-color: rgba(140,120,80,.04);
    --gtx-pulse-color: #b08848;
    --gtx-caps-color: #c49030;
    --gtx-strength-label-color: #8a7e6e;
    --gtx-success-bg: rgba(160,136,72,.10);
    --gtx-success-border: rgba(160,136,72,.28);
    --gtx-success-text: #8a6a30;
    --gtx-flash-bg: rgba(252,248,240,.92);
    --gtx-flash-border: rgba(80,60,30,.10);
    --gtx-flash-text: #a03020;
    --gtx-flash-success: #6a7040;
    --gtx-flash-warning: #a07020;
    --gtx-input-bg: rgba(80,60,30,.04);
    --gtx-input-border: rgba(80,60,30,.10);
    --gtx-input-text: #2a2218;
    --gtx-input-focus-border: rgba(138,106,48,.55);
    --gtx-btn-ghost-bg: rgba(80,60,30,.05);
    --gtx-btn-ghost-border: rgba(80,60,30,.12);
    --gtx-btn-ghost-text: #3a3020;
    --gtx-btn-ghost-hover: rgba(80,60,30,.08);
    --gtx-tag-bg: rgba(138,106,48,.10);
    --gtx-tag-border: rgba(138,106,48,.20);
    --gtx-tag-text: #4a3e28;
    --gtx-alert-bg: rgba(180,60,40,.06);
    --gtx-alert-border: rgba(180,60,40,.18);
    --gtx-alert-text: #a03020;
    --gtx-alert-link: #8a2818;
    --gtx-loading-border: rgba(80,60,30,.22);
    --gtx-spinner: #3a3020;
    --gtx-strength-bg: rgba(80,60,30,.07);
    --gtx-trust-text: #8a7e6e;
    --gtx-card-before: linear-gradient(160deg, rgba(255,255,255,.65), transparent 38%);
}
[data-theme="light"] .gtx-auth::before {
    mix-blend-mode: multiply;
}

/* ========== VINTAGE DARK ========== */
[data-theme="dark"] .gtx-auth {
    --gtx-bg-grad: linear-gradient(160deg, #100e08 0%, #0a0906 55%, #060503 100%);
    --gtx-grain-opacity: 0.06;
    --gtx-text: #e8e0d0;
    --gtx-text-dim: #9a8e78;
    --gtx-text-muted: #7a7060;
    --gtx-text-faint: #605848;
    --gtx-label: #b0a48e;
    --gtx-icon: #7a7060;
    --gtx-card-bg: rgba(20,18,12,.93);
    --gtx-card-border: rgba(200,180,140,.10);
    --gtx-card-shadow: 0 24px 64px rgba(0,0,0,.55);
    --gtx-surface: rgba(200,180,140,.05);
    --gtx-surface-border: rgba(200,180,140,.10);
    --gtx-surface-hover: rgba(200,180,140,.09);
    --gtx-hover-text: #f0e8d8;
    --gtx-accent: #10b981;
    --gtx-accent-2: #34d399;
    --gtx-accent-soft: rgba(16,185,129,.14);
    --gtx-accent-border: rgba(16,185,129,.24);
    --gtx-btn-shadow: rgba(16,185,129,.25);
    --gtx-btn-hover-shadow: rgba(16,185,129,.35);
    --gtx-btn-primary-text: #fff;
    --gtx-brand-shadow: rgba(16,185,129,.18);
    --gtx-aside-bg: linear-gradient(155deg, rgba(16,185,129,.10), rgba(52,211,153,.06) 90%);
    --gtx-aside-glow: radial-gradient(600px 420px at 18% 8%, rgba(16,185,129,.15), transparent 60%);
    --gtx-glow-1-color: rgba(16,185,129,.10);
    --gtx-glow-2-color: rgba(16,185,129,.06);
    --gtx-glow-3-color: rgba(16,185,129,.05);
    --gtx-pulse-color: #34d399;
    --gtx-caps-color: #6ee7b7;
    --gtx-strength-label-color: #9a8e78;
    --gtx-success-bg: rgba(16,185,129,.12);
    --gtx-success-border: rgba(16,185,129,.30);
    --gtx-success-text: #34d399;
    --gtx-flash-bg: rgba(20,18,12,.90);
    --gtx-flash-border: rgba(200,180,140,.10);
    --gtx-flash-text: #e8a090;
    --gtx-flash-success: #b0c070;
    --gtx-flash-warning: #e0b050;
    --gtx-input-bg: rgba(200,180,140,.05);
    --gtx-input-border: rgba(200,180,140,.10);
    --gtx-input-text: #e8e0d0;
    --gtx-input-focus-border: rgba(16,185,129,.60);
    --gtx-btn-ghost-bg: rgba(200,180,140,.06);
    --gtx-btn-ghost-border: rgba(200,180,140,.13);
    --gtx-btn-ghost-text: #e0d8c8;
    --gtx-btn-ghost-hover: rgba(200,180,140,.10);
    --gtx-tag-bg: rgba(16,185,129,.12);
    --gtx-tag-border: rgba(16,185,129,.22);
    --gtx-tag-text: #c8b898;
    --gtx-alert-bg: rgba(200,80,60,.10);
    --gtx-alert-border: rgba(200,80,60,.30);
    --gtx-alert-text: #e8a090;
    --gtx-alert-link: #f0b8a8;
    --gtx-loading-border: rgba(200,180,140,.35);
    --gtx-spinner: #e8e0d0;
    --gtx-strength-bg: rgba(200,180,140,.08);
    --gtx-trust-text: #7a7060;
    --gtx-card-before: linear-gradient(160deg, rgba(255,255,200,.12), transparent 38%);
}
.gtx-auth *, .gtx-auth *::before, .gtx-auth *::after { box-sizing: border-box; }

/* Ambient background - lightweight static colors, no blur filter */
.gtx-glow { position: fixed; border-radius: 50%; opacity: .35; z-index: -2; pointer-events: none; }
.gtx-glow-1 { width: 44vw; height: 44vw; left: -10vw; top: -12vw;
    background: radial-gradient(circle, var(--gtx-glow-1-color), transparent 70%); }
.gtx-glow-2 { width: 40vw; height: 40vw; right: -12vw; bottom: -12vw;
    background: radial-gradient(circle, var(--gtx-glow-2-color), transparent 70%); }

.gtx-lines { display: none; }

/* Card / Slider */
.gtx-card {
    position: relative; z-index: 1;
    flex: 0 0 448px; max-width: 448px;
    transition: height .3s ease;
    background: var(--gtx-card-bg);
    border: 1px solid var(--gtx-card-border);
    border-radius: 28px;
    box-shadow: var(--gtx-card-shadow);
    overflow: hidden;
}
.gtx-track {
    display: flex; width: 300%; align-items: flex-start;
    transform: translateX(calc(var(--index, 0) * -33.3333%));
    transition: transform .25s ease;
}
.gtx-panel { width: 33.3333%; flex: 0 0 33.3333%; padding: 46px 40px; opacity: .35; transition: opacity .3s ease; }
.gtx-panel.is-active { opacity: 1; }

/* Welcome */
.gtx-welcome { display: flex; flex-direction: column; justify-content: center; }
.gtx-brand-mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; overflow: hidden;
    background: var(--gtx-surface); border: 1px solid var(--gtx-surface-border); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 40px var(--gtx-brand-shadow); }
.gtx-welcome-desc { text-align: center; color: var(--gtx-text-dim); font-size: .92rem; line-height: 1.55; max-width: 340px; margin: 0 auto 18px; }
.gtx-welcome-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.gtx-welcome-tags li { font-size: .76rem; color: var(--gtx-tag-text); padding: 6px 12px; border-radius: 99px;
    background: var(--gtx-tag-bg); border: 1px solid var(--gtx-tag-border); }
.gtx-actions { display: flex; flex-direction: row; gap: 12px; }
.gtx-actions .gtx-btn { flex: 1; }
@media (max-width: 520px) { .gtx-actions { flex-direction: column; } }
.gtx-brand-mark img { width: 46px; height: 46px; object-fit: contain; }
.gtx-h1 { font-size: 2.05rem; line-height: 1.18; font-weight: 800; text-align: center; margin: 0 0 18px; letter-spacing: -.02em; }
.gtx-h1 .gtx-grad { background: linear-gradient(95deg, var(--gtx-accent), var(--gtx-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gtx-lede { text-align: center; color: var(--gtx-text-dim); font-size: .98rem; line-height: 1.6; margin: 0 auto 34px; max-width: 330px; }
.gtx-actions { display: flex; flex-direction: column; gap: 14px; }
.gtx-trust { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 30px;
    color: var(--gtx-trust-text); font-size: .82rem; letter-spacing: .01em; }
.gtx-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gtx-pulse-color); }

/* Panel head */
.gtx-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.gtx-back { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--gtx-surface-border); background: var(--gtx-surface);
    color: var(--gtx-text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gtx-back:hover { background: var(--gtx-surface-hover); color: var(--gtx-hover-text); }
.gtx-mini-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .95rem; color: var(--gtx-text); }
.gtx-mini-brand img { width: 26px; height: 26px; border-radius: 8px; }
.gtx-h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.gtx-sub { color: var(--gtx-text-dim); font-size: .92rem; margin: 0 0 24px; }

/* Form */
.gtx-form { display: flex; flex-direction: column; gap: 16px; }
.gtx-field { display: flex; flex-direction: column; gap: 8px; }
.gtx-field > label { font-size: .82rem; color: var(--gtx-label); font-weight: 600; letter-spacing: .01em; }
.gtx-input { position: relative; display: flex; align-items: center; width: 100%; }
.gtx-input .gtx-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gtx-icon); display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; pointer-events: none; z-index: 2; }
.gtx-input .gtx-input-icon i { font-size: 16px; line-height: 1; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.gtx-input > i.fas, .gtx-input > img.gtx-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gtx-icon); font-size: 16px; line-height: 1; pointer-events: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; object-fit: contain; z-index: 2; }
.gtx-input input {
    width: 100%; height: 52px; padding: 0 48px 0 48px;
    background: var(--gtx-input-bg); border: 1px solid var(--gtx-input-border); border-radius: 14px;
    color: var(--gtx-input-text); font-size: .95rem; font-family: inherit; transition: border-color .15s;
    box-sizing: border-box;
    text-indent: 0;
}
.gtx-input input::placeholder { color: var(--gtx-text-faint); }
.gtx-input input:focus { outline: none; border-color: var(--gtx-input-focus-border); }
.gtx-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: transparent; color: var(--gtx-icon);
    cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.gtx-toggle:hover { color: var(--gtx-hover-text); background: var(--gtx-surface-hover); }
.gtx-caps { font-size: .76rem; color: var(--gtx-caps-color); display: none; align-items: center; gap: 6px; margin-top: 2px; }

.gtx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.gtx-check { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--gtx-text-dim); cursor: pointer; user-select: none; }
.gtx-check input { width: 18px; height: 18px; accent-color: var(--gtx-accent); cursor: pointer; }
.gtx-link { color: var(--gtx-accent); text-decoration: none; font-size: .88rem; background: none; border: none; cursor: pointer; font-family: inherit; }
.gtx-link:hover { opacity: .8; }
.gtx-bold { font-weight: 700; }

/* Buttons */
.gtx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 22px;
    border-radius: 14px; font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer; border: 1px solid transparent;
    transition: background .15s ease, opacity .15s; text-decoration: none; }
.gtx-btn:active { transform: translateY(1px); }
.gtx-btn-primary { background: linear-gradient(100deg, var(--gtx-accent), var(--gtx-accent-2)); color: var(--gtx-btn-primary-text); box-shadow: 0 8px 24px var(--gtx-btn-shadow); }
.gtx-btn-primary:hover { box-shadow: 0 12px 32px var(--gtx-btn-hover-shadow); }
.gtx-btn-ghost { background: var(--gtx-btn-ghost-bg); color: var(--gtx-btn-ghost-text); border-color: var(--gtx-btn-ghost-border); }
.gtx-btn-ghost:hover { background: var(--gtx-btn-ghost-hover); }
.gtx-btn-google { background: var(--gtx-btn-ghost-bg); color: var(--gtx-btn-ghost-text); border-color: var(--gtx-btn-ghost-border); width: 100%; }
.gtx-btn-google:hover { background: var(--gtx-btn-ghost-hover); }
.gtx-gicon { width: 20px; height: 20px; flex: 0 0 20px; }

.gtx-divider { display: flex; align-items: center; gap: 14px; color: var(--gtx-text-faint); font-size: .82rem; margin: 4px 0; }
.gtx-divider::before, .gtx-divider::after { content: ""; flex: 1; height: 1px; background: var(--gtx-surface-border); }

.gtx-switch { text-align: center; color: var(--gtx-text-dim); font-size: .9rem; margin: 4px 0 0; }

/* Loading */
.gtx-btn.is-loading { pointer-events: none; opacity: .85; color: transparent !important; position: relative; }
.gtx-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--gtx-loading-border); border-top-color: var(--gtx-spinner); animation: gtxSpin .7s linear infinite; }
@keyframes gtxSpin { to { transform: rotate(360deg); } }

/* Alert */
.gtx-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 12px;
    background: var(--gtx-alert-bg); border: 1px solid var(--gtx-alert-border); color: var(--gtx-alert-text); font-size: .86rem; line-height: 1.45; }
.gtx-alert a { color: var(--gtx-alert-link); font-weight: 700; text-decoration: underline; }

/* Mobile */
@media (max-width: 900px) {
    .gtx-auth { padding: 0; align-items: stretch; }
    .gtx-auth .gtx-aside { display: none !important; }
    .gtx-split { flex: none; width: 100%; }
    .gtx-card { flex: none; width: 100%; max-width: none; border-radius: 0; border: none; min-height: 100vh; box-shadow: none; overflow: hidden; }
    .gtx-track { align-items: stretch; }
    .gtx-panel { padding: 40px 24px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; box-sizing: border-box; }
    .gtx-btn { height: 56px; }
    .gtx-input input { height: 56px; }
    .gtx-h1 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gtx-track { transition: none; }
}

/* ===== Split-screen (desktop) ===== */
.gtx-split { position: relative; z-index: 1; width: 100%; max-width: 1040px; margin: 0 auto; display: flex; align-items: stretch; justify-content: center; gap: 20px; transition: gap .3s ease; }
.gtx-aside {
    flex: 0 0 0; width: 0; opacity: 0; overflow: hidden; padding: 0;
    position: relative; display: flex; flex-direction: column; justify-content: center;
    border-radius: 28px; border: 1px solid var(--gtx-card-border);
    background: var(--gtx-aside-bg);
    box-shadow: var(--gtx-card-shadow);
    transition: flex-basis .3s ease, width .3s ease, opacity .3s ease, padding .3s ease;
}
.gtx-auth[data-state="login"] .gtx-aside,
.gtx-auth[data-state="register"] .gtx-aside {
    flex: 1 1 480px; width: auto; opacity: 1; padding: 56px 48px;
}
.gtx-auth[data-state="welcome"] .gtx-split { gap: 0; }
.gtx-aside::before { content: ""; position: absolute; inset: 0; background: var(--gtx-aside-glow); pointer-events: none; }
.gtx-aside-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; position: relative; }
.gtx-aside-brand img { width: 42px; height: 42px; border-radius: 12px; }
.gtx-aside-brand span { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--gtx-text); }
.gtx-aside-title { position: relative; font-size: 2.4rem; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.gtx-aside-title span { background: linear-gradient(95deg, var(--gtx-accent), var(--gtx-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gtx-aside-lede { position: relative; color: var(--gtx-text-dim); font-size: 1rem; line-height: 1.65; max-width: 380px; margin: 0 0 36px; }
.gtx-aside-stats { position: relative; display: flex; gap: 34px; margin: 0 0 40px; padding: 0; list-style: none; }
.gtx-aside-stats li { display: flex; flex-direction: column; }
.gtx-aside-stats strong { font-size: 1.5rem; font-weight: 800; }
.gtx-aside-stats span { color: var(--gtx-text-dim); font-size: .82rem; margin-top: 3px; }
.gtx-aside-actions { position: relative; display: flex; gap: 12px; }
.gtx-aside .gtx-btn { flex: 1; }

/* Avoid duplicate headline/logo inside the card when the brand aside is visible (split states) */
.gtx-auth[data-state="login"] .gtx-card .gtx-welcome .gtx-h1,
.gtx-auth[data-state="register"] .gtx-card .gtx-welcome .gtx-h1,
.gtx-auth[data-state="login"] .gtx-card .gtx-welcome .gtx-brand-mark,
.gtx-auth[data-state="register"] .gtx-card .gtx-welcome .gtx-brand-mark { display: none; }

/* Trust badges under form */
.gtx-trustrow { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; color: var(--gtx-trust-text); font-size: .8rem; }
.gtx-trustrow span { display: inline-flex; align-items: center; gap: 6px; }

/* Password strength meter */
.gtx-strength { height: 5px; border-radius: 99px; background: var(--gtx-strength-bg); margin-top: 8px; overflow: hidden; }
.gtx-strength > i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .15s ease; }
.gtx-strength-label { display: block; margin-top: 6px; font-size: .74rem; color: var(--gtx-strength-label-color); min-height: 1em; }

/* ===== Refinements / polish ===== */
.gtx-card { position: relative; }
.gtx-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--gtx-card-before);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.gtx-btn-primary { position: relative; }
.gtx-btn:focus-visible { outline: 2px solid var(--gtx-accent); outline-offset: 2px; }
.gtx-back:focus-visible { outline: 2px solid var(--gtx-accent); outline-offset: 2px; }

.gtx-aside-tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 38px; padding: 0; list-style: none; }
.gtx-aside-tags li {
    font-size: .8rem; color: var(--gtx-tag-text); padding: 6px 12px; border-radius: 99px;
    background: var(--gtx-tag-bg); border: 1px solid var(--gtx-tag-border);
}
.gtx-aside-brand { position: relative; }

@media (prefers-reduced-motion: reduce) {
    .gtx-aside, .gtx-card { animation: none; }
}
@media (max-width: 900px) {
    .gtx-card::before { display: none; }
}

/* ===== Verify Email (premium, sinkron dengan auth) ===== */
.gtx-verify .gtx-card-verify { max-width: 420px; padding: 44px 38px; display: flex; flex-direction: column; }
.gtx-verify .gtx-brand-mark { margin-bottom: 16px; }
.gtx-verify .gtx-h1 {
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    color: var(--gtx-text); -webkit-text-fill-color: var(--gtx-text);
    font-size: 1.7rem; margin-bottom: 10px;
}
.gtx-verify .gtx-welcome-desc { margin-bottom: 22px; }
.gtx-verify-email { color: var(--gtx-accent); font-weight: 600; word-break: break-all; }
.gtx-code-input { text-align: center; font-size: 1.5rem; letter-spacing: 12px; font-weight: 700; padding-left: 12px; padding-right: 12px; }
.gtx-verify-actions { margin-top: 14px; }
.gtx-verify-actions .gtx-btn { width: 100%; }
.gtx-btn-ghost.is-counting { opacity: .6; cursor: not-allowed; }
.gtx-alert.gtx-alert-success { background: var(--gtx-success-bg); border-color: var(--gtx-success-border); color: var(--gtx-success-text); }
.gtx-page .flash-message {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--gtx-flash-bg);
    border: 1px solid var(--gtx-flash-border);
    border-left: 4px solid var(--gtx-flash-text);
    color: var(--gtx-flash-text);
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    backdrop-filter: blur(12px);
    padding: 14px 18px;
    animation: gtxToast 4s ease forwards;
}
.gtx-page .flash-success { border-left-color: var(--gtx-flash-success); color: var(--gtx-flash-success); }
.gtx-page .flash-warning { border-left-color: var(--gtx-flash-warning); color: var(--gtx-flash-warning); }
@keyframes gtxToast {
    0%   { opacity: 0; transform: translateX(24px); }
    8%   { opacity: 1; transform: translateX(0); }
    72%  { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(24px); }
}
.gtx-page .flash-success { color: var(--gtx-flash-success); }
.gtx-page .flash-warning { color: var(--gtx-flash-warning); }
@keyframes gtxFlash {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    72%  { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width: 600px) {
    .gtx-verify .gtx-card-verify { padding: 38px 22px; }
}

/* ===== APP / MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    /* Hanya nonaktifkan seleksi di elemen interaktif */
    .btn, .nav-item, .card, .navbar, .tab-bar, .bottom-nav {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Hapus tap highlight yang mengganggu */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Kembalikan seleksi untuk semua konten teks */
    p, h1, h2, h3, h4, h5, h6, span, div, li, td, th, label, pre, code, blockquote {
        -webkit-user-select: text;
        user-select: text;
    }

    /* Sembunyikan scrollbar tapi tetap bisa scroll */
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

    /* Tombol lebih mudah ditekan */
    .btn, .nav-item, .card {
        cursor: pointer;
        transition: transform 0.1s;
    }
    
    .btn:active, .card:active {
        transform: scale(0.98);
    }
}

/* ===== CEGAH ZOOM PADA INPUT (MOBILE) ===== */
@media (max-width: 768px) {
    /* Cegah double-tap zoom hanya pada input/button */
    input, textarea, select, .ai-input, .send-btn {
        touch-action: manipulation;
    }

    /* Font size min 16px cegah iOS auto-zoom saat focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    textarea,
    .ai-input {
        font-size: max(16px, 1em) !important;
    }

    /* Cegah text resize on orientation change */
    * {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}
/* ============================================================================
   Growthinks - Redesign Layer  (loads AFTER css/style.css)
   ----------------------------------------------------------------------------
   Purpose : replace the warm/vintage look with a clean modern SaaS aesthetic,
             and upgrade every shared component (nav, buttons, cards, forms,
             tables, modals, badges, empty states) in one place.
   Strategy: override design tokens + restyle existing class names, so all 40+
             pages inherit the new design without touching their markup.
   Motion  : CSS-first, GPU friendly, fully disabled by prefers-reduced-motion.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS - dark (default)
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-rgb: 16, 185, 129;
    --secondary-color: #38bdf8;
    --secondary-dark: #0ea5e9;
    --success-color: #10b981;
    --danger-color: #f43f5e;
    --warning-color: #f59e0b;
    --info-color: #38bdf8;

    /* Surfaces - neutral, cool, calm */
    --bg-primary: #0a0d0c;
    --bg-secondary: #0e1211;
    --bg-tertiary: #141a18;
    --bg-hover: #1a2220;
    --bg-dark: #060908;
    --bg-card: #111715;
    --glass-bg: rgba(17, 23, 21, 0.72);
    --glass-border: rgba(255, 255, 255, 0.07);

    /* Text */
    --text-primary: #e9f0ed;
    --text-secondary: #a3b4ad;
    --text-muted: #6f827b;
    --text-light: #ffffff;

    /* Lines & elevation */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.32), 0 1px 1px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.34), 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 32px 70px -20px rgba(0, 0, 0, 0.7);
    --glow-primary: 0 10px 30px -10px rgba(16, 185, 129, 0.55);

    /* Geometry */
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --radius-pill: 999px;

    /* Type */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --tracking-tight: -0.022em;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --dur-fast: 160ms;
    --dur: 260ms;
    --dur-slow: 520ms;
    --transition: color var(--dur-fast) var(--ease-out),
                  background-color var(--dur-fast) var(--ease-out),
                  border-color var(--dur-fast) var(--ease-out),
                  box-shadow var(--dur) var(--ease-out),
                  transform var(--dur) var(--ease-out);

    /* Layout */
    --container-max: 1200px;
    --container-pad: clamp(16px, 4vw, 32px);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

/* ----------------------------------------------------------------------------
   2. LIGHT THEME
   -------------------------------------------------------------------------- */
[data-theme="light"],
html[data-theme="light"] {
    --primary-color: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --primary-rgb: 5, 150, 105;
    --secondary-color: #0284c7;

    --bg-primary: #f6f9f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef4f1;
    --bg-hover: #e9f1ed;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(12, 21, 18, 0.07);

    --text-primary: #0b1512;
    --text-secondary: #47584f;
    --text-muted: #74857e;
    --text-light: #0b1512;

    --border-color: rgba(12, 21, 18, 0.09);
    --border-strong: rgba(12, 21, 18, 0.16);
    --shadow-sm: 0 1px 2px rgba(12, 21, 18, 0.06);
    --shadow-md: 0 6px 18px -6px rgba(12, 21, 18, 0.12), 0 1px 2px rgba(12, 21, 18, 0.06);
    --shadow-lg: 0 22px 44px -18px rgba(12, 21, 18, 0.22), 0 2px 6px rgba(12, 21, 18, 0.06);
    --shadow-xl: 0 40px 80px -28px rgba(12, 21, 18, 0.28);
    --glow-primary: 0 10px 28px -12px rgba(5, 150, 105, 0.45);
}

/* ----------------------------------------------------------------------------
   3. BASE & TYPOGRAPHY
   -------------------------------------------------------------------------- */

/* Kill the old leather-grain noise; replace with a tasteful ambient glow. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    background-image:
        radial-gradient(60rem 40rem at 12% -10%, rgba(16, 185, 129, 0.07), transparent 70%),
        radial-gradient(50rem 34rem at 92% 0%, rgba(56, 189, 248, 0.055), transparent 72%);
    background-repeat: no-repeat;
}

[data-theme="light"] body::before {
    background-image:
        radial-gradient(60rem 40rem at 8% -14%, rgba(16, 185, 129, 0.10), transparent 70%),
        radial-gradient(48rem 32rem at 96% -4%, rgba(56, 189, 248, 0.08), transparent 72%);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 15.5px;
    line-height: 1.65;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Everything above the ambient layer */
body > *:not(script):not(style) {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 750; line-height: 1.15; }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.06rem; }
h5, h6 { font-size: 0.95rem; }

p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

[data-theme="light"] a { color: var(--primary-dark); }

a:hover { color: var(--primary-color); }

small, .text-small { font-size: 0.82rem; }

strong, b { font-weight: 650; color: var(--text-primary); }

code, kbd, pre, samp {
    font-family: var(--font-mono);
    font-size: 0.86em;
}

::selection {
    background: rgba(var(--primary-rgb), 0.28);
    color: var(--text-primary);
}

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Refined scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border: 3px solid transparent;
    border-radius: var(--radius-pill);
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); background-clip: content-box; }

/* ----------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section,
section.section {
    padding: clamp(48px, 7vw, 92px) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 750;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--border-color) 18%, var(--border-color) 82%, transparent);
    margin: 0;
}

/* Eyebrow label used above section headings */
.gtx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 14px;
}

.gtx-eyebrow::before {
    content: '';
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.7;
}

[data-theme="light"] .gtx-eyebrow { color: var(--primary-dark); }

.gtx-lead {
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 62ch;
    line-height: 1.7;
}

/* ----------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn,
.gtx-btn,
.btn-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    padding: 0.78em 1.35em;
    min-height: 44px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                background-color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}

.btn i,
.gtx-btn i { font-size: 0.92em; line-height: 1; }

/* Primary - solid emerald with soft depth, no neon */
.btn-primary,
.gtx-btn-primary {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color) 55%, var(--primary-dark));
    color: #04120d;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, var(--glow-primary);
}

.btn-primary:hover,
.gtx-btn-primary:hover {
    color: #04120d;
    transform: translateY(-1.5px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset,
                0 16px 34px -14px rgba(16, 185, 129, 0.7);
}

.btn-primary:active,
.gtx-btn-primary:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 6px 16px -10px rgba(16, 185, 129, 0.6);
}

/* Secondary - quiet surface button */
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-1.5px);
}

/* Outline / ghost */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: var(--text-primary);
    transform: translateY(-1.5px);
}

.btn-success { background: var(--success-color); color: #04120d; }
.btn-danger { background: var(--danger-color); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1.5px); }

.btn-sm, .btn-small, .btn.btn-small {
    min-height: 36px;
    padding: 0.5em 0.9em;
    font-size: 0.82rem;
    border-radius: 8px;
}

.btn-lg {
    min-height: 52px;
    padding: 0.92em 1.7em;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

.btn-block { width: 100%; }

.btn:disabled,
.btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* Legacy premium buttons */
.btn-premium {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #231705;
    box-shadow: 0 10px 26px -12px rgba(245, 158, 11, 0.65);
}
.btn-premium:hover { color: #231705; transform: translateY(-1.5px); }

.btn-premium-outline {
    background: transparent;
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.45);
}
.btn-premium-outline:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.7);
}

/* Inline text buttons inside tables / lists */
.btn-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--primary-light);
    font-weight: 550;
    cursor: pointer;
}

/* Click ripple (injected by js/redesign.js) */
.gtx-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: currentColor;
    opacity: 0.22;
    pointer-events: none;
    animation: gtx-ripple-out 580ms var(--ease-out) forwards;
    z-index: -1;
}

@keyframes gtx-ripple-out {
    to { transform: scale(2.6); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   6. FORMS
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label,
.gtx-field > label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-control,
.gtx-input,
.gtx-field input,
.gtx-field select,
.gtx-field textarea,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="number"].form-control,
input[type="date"].form-control,
input[type="tel"].form-control,
select.form-control,
textarea.form-control,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="tel"] {
    width: 100%;
    font-family: var(--font-family);
    font-size: 0.94rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.72em 0.95em;
    min-height: 46px;
    transition: border-color var(--dur-fast) var(--ease-out),
                background-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}

select,
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236f827b' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 2.4em;
}

textarea,
textarea.form-control,
.gtx-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.form-control:focus,
.gtx-input:focus,
.gtx-field input:focus,
.gtx-field select:focus,
.gtx-field textarea:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.65);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}

.form-control:disabled,
.form-control[readonly] {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* --- .cfield (compact calculator fields) --- */
.cfield {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cfield label,
.cfield > span.cfield-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cfield input,
.cfield select {
    min-height: 44px;
    font-size: 0.92rem;
}

/* ----------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                background-color var(--dur) var(--ease-out);
    position: relative;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

/* Interactive cards only lift when explicitly marked */
.card.is-interactive:hover,
a.card:hover,
.card-grid > a.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.32);
}

.card-grid {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
}

/* Subtle top hairline highlight on cards */
.card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
    pointer-events: none;
}

[data-theme="light"] .card::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

/* ----------------------------------------------------------------------------
   8. BADGES & PILLS
   -------------------------------------------------------------------------- */
.badge,
.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-family);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    white-space: nowrap;
    vertical-align: middle;
}

.badge-primary {
    background: rgba(var(--primary-rgb), 0.13);
    color: var(--primary-light);
    border-color: rgba(var(--primary-rgb), 0.28);
}
[data-theme="light"] .badge-primary { color: var(--primary-dark); }

.badge-success {
    background: rgba(16, 185, 129, 0.13);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.26);
}
[data-theme="light"] .badge-success { color: #047857; }

.badge-danger {
    background: rgba(244, 63, 94, 0.13);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.26);
}
[data-theme="light"] .badge-danger { color: #be123c; }

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.26);
}
[data-theme="light"] .badge-warning { color: #b45309; }

.badge-info,
.badge-secondary {
    background: rgba(56, 189, 248, 0.13);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.26);
}
[data-theme="light"] .badge-info,
[data-theme="light"] .badge-secondary { color: #0369a1; }

.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #241705;
    font-size: 0.62rem;
    padding: 3px 6px;
    letter-spacing: 0.04em;
    margin-left: 6px;
}

/* Pulse dot for "live" indicators */
.gtx-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    flex: 0 0 auto;
}

/* Ring is drawn by a pseudo element and animated with transform/opacity only,
   so the compositor can run it without repainting the page. */
.gtx-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.45);
    animation: gtx-dot-pulse 2.4s var(--ease-in-out) infinite;
    will-change: transform, opacity;
}

@keyframes gtx-dot-pulse {
    0%   { transform: scale(1); opacity: 0.55; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   9. NAVBAR
   -------------------------------------------------------------------------- */
.navbar,
html[data-theme="dark"] .navbar {
    background: rgba(10, 13, 12, 0.7);
    border-bottom: 1px solid var(--border-color);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    transition: background-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.75);
}

.navbar .container {
    height: 70px;
    transition: height var(--dur) var(--ease-out);
}

.navbar.is-scrolled,
html[data-theme="dark"] .navbar.is-scrolled {
    background: rgba(10, 13, 12, 0.92);
    box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.9);
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px -24px rgba(12, 21, 18, 0.35);
}

.navbar.is-scrolled .container { height: 62px; }

/* Brand */
.nav-brand .logo,
html[data-theme="dark"] .nav-brand .logo {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}

.nav-brand .logo:hover { transform: translateY(-1px); opacity: 1; }

.logo-mark {
    border-radius: 8px;
    transition: transform var(--dur-slow) var(--ease-spring);
}

.nav-brand .logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }

/* Nav links + animated active indicator */
.navbar .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.87rem;
    font-weight: 550;
    color: var(--text-secondary);
    padding: 8px 11px;
    border-radius: 9px;
    transition: color var(--dur-fast) var(--ease-out),
                background-color var(--dur-fast) var(--ease-out);
}

.navbar .nav-link i { font-size: 0.82em; opacity: 0.85; transition: transform var(--dur) var(--ease-spring); }
.navbar .nav-link:hover i { transform: translateY(-1px); }

.navbar .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.navbar .nav-link.active {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    animation: gtx-underline-in var(--dur-slow) var(--ease-out) both;
}

@keyframes gtx-underline-in {
    from { transform: scaleX(0); transform-origin: left; opacity: 0; }
    to   { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

.nav-chevron {
    font-size: 0.6rem !important;
    opacity: 0.55 !important;
    transition: transform var(--dur) var(--ease-out) !important;
}

.nav-has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Mega dropdowns */
.nav-dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    overflow: hidden;
    transform-origin: top center;
}

.nav-dropdown-menu .mega-inner { gap: 2px; }

.mega-item {
    border-radius: 10px;
    padding: 10px 11px;
    transition: background-color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}

.mega-item:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}

.mega-icon {
    border-radius: 9px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-light);
    transition: transform var(--dur) var(--ease-spring),
                background-color var(--dur-fast);
}

.mega-item:hover .mega-icon {
    transform: scale(1.05);
    background: rgba(var(--primary-rgb), 0.18);
}

.mega-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mega-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.mega-divider {
    background: var(--border-color);
    margin: 6px 8px;
}

.mega-badge-new,
.mega-badge-beta {
    font-family: var(--font-family);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 5px;
    border-radius: 5px;
    margin-left: 5px;
    vertical-align: 1px;
}

.mega-badge-new { background: rgba(var(--primary-rgb), 0.16); color: var(--primary-light); }
.mega-badge-beta { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }

/* Icon buttons */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast);
}

.nav-icon-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-icon-btn:active { transform: translateY(0) scale(0.96); }

.notif-badge {
    background: var(--danger-color);
    border-radius: var(--radius-pill);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    padding: 0 4px;
    box-shadow: 0 0 0 2px var(--bg-primary);
}

/* Auth buttons in nav */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    transition: background-color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.btn-nav-login:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-nav-register {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    color: #04120d;
    font-size: 0.86rem;
    font-weight: 650;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 18px -10px rgba(16, 185, 129, 0.8);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur);
}

.btn-nav-register:hover {
    color: #04120d;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(16, 185, 129, 0.9);
}

/* User menu drawer/dropdown */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 0.87rem;
    color: var(--text-secondary);
    transition: background-color var(--dur-fast), color var(--dur-fast);
}

.dropdown-menu li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-cta-success { color: #34d399 !important; }

.text-danger { color: var(--danger-color) !important; }

/* ----------------------------------------------------------------------------
   10. TABLES
   -------------------------------------------------------------------------- */
.table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table tbody td {
    padding: 13px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }

.table tbody tr {
    transition: background-color var(--dur-fast) var(--ease-out);
}

.table tbody tr:hover { background: var(--bg-hover); }

.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   11. MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
    background: rgba(4, 8, 7, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: gtx-fade-in var(--dur) var(--ease-out);
}

[data-theme="light"] .modal-overlay { background: rgba(12, 21, 18, 0.28); }

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-header h3,
.modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

@keyframes gtx-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------------------------
   12. FLASH MESSAGES
   -------------------------------------------------------------------------- */
.flash-message {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 13px 18px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: gtx-flash-in var(--dur-slow) var(--ease-out);
}

@keyframes gtx-flash-in {
    from { opacity: 0; transform: translate(-50%, -14px) scale(0.98); }
    to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.flash-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.flash-error {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

.flash-info {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

[data-theme="light"] .flash-success { color: #047857; }
[data-theme="light"] .flash-error { color: #be123c; }
[data-theme="light"] .flash-info { color: #0369a1; }

/* ----------------------------------------------------------------------------
   13. EMPTY & LOADING STATES
   -------------------------------------------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: clamp(28px, 5vw, 48px) 20px;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-strong);
    background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.03));
    color: var(--text-muted);
}

.empty-state i {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.empty-state h4,
.empty-state strong {
    color: var(--text-secondary);
    margin: 0;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: transparent !important;
    min-height: 12px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: translateX(-100%);
    animation: gtx-shimmer 1.4s infinite;
}

[data-theme="light"] .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(12, 21, 18, 0.06), transparent);
}

@keyframes gtx-shimmer {
    100% { transform: translateX(100%); }
}

.spinner,
.fa-spin { animation-duration: 0.85s; }

/* ----------------------------------------------------------------------------
   14. MOTION SYSTEM
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 640ms var(--ease-out), transform 720ms var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Directional + scale variants (opt-in via data-reveal="up|left|right|scale|fade") */
.reveal[data-reveal="left"]  { transform: translateX(-26px); }
.reveal[data-reveal="right"] { transform: translateX(26px); }
.reveal[data-reveal="scale"] { transform: scale(0.96); }
.reveal[data-reveal="fade"]  { transform: none; }

.reveal[data-reveal="left"].active,
.reveal[data-reveal="right"].active,
.reveal[data-reveal="scale"].active,
.reveal[data-reveal="fade"].active {
    transform: none;
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* Generic entrance helpers for above-the-fold content */
.gtx-enter {
    animation: gtx-enter-up 760ms var(--ease-out) both;
}

.gtx-enter-1 { animation-delay: 60ms; }
.gtx-enter-2 { animation-delay: 150ms; }
.gtx-enter-3 { animation-delay: 240ms; }
.gtx-enter-4 { animation-delay: 330ms; }
.gtx-enter-5 { animation-delay: 420ms; }

@keyframes gtx-enter-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gtx-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes gtx-float-slow {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(-16px) translateX(6px); }
}

@keyframes gtx-spin-slow {
    to { transform: rotate(360deg); }
}

/* Scroll progress bar (injected by js/redesign.js) */
.gtx-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2000;
    pointer-events: none;
    will-change: transform;
}

/* ----------------------------------------------------------------------------
   15. ACCESSIBILITY - respect reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .gtx-scroll-progress { display: none; }
}

/* ----------------------------------------------------------------------------
   16. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .container { --container-pad: 20px; }
    .navbar .container { height: 64px; padding: 0 20px; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }

    .navbar .container {
        height: 60px;
        padding: 0 16px;
    }

    .navbar.is-scrolled .container { height: 56px; }

    .card { border-radius: var(--border-radius); }

    .btn, .gtx-btn { min-height: 42px; padding: 0.72em 1.15em; font-size: 0.89rem; }

    .table thead th { padding: 10px 12px; font-size: 0.68rem; }
    .table tbody td { padding: 11px 12px; }

    .section { padding: 44px 0; }

    .flash-message {
        left: 16px;
        right: 16px;
        transform: none;
        animation: none;
    }
}

@media (max-width: 480px) {
    .container { --container-pad: 14px; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
    .btn-lg { min-height: 48px; font-size: 0.94rem; }
}

/* ----------------------------------------------------------------------------
   17. NAVIGATION RESPONSIVENESS
   The legacy sheet hides the whole desktop menu below 1350px, which leaves
   ordinary 1280px laptops with a hamburger. Keep the inline menu down to
   1200px (compressed), and polish the mobile panel itself.
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1349px) {
    .navbar .nav-toggle { display: none; }

    .navbar .nav-center {
        flex: 1;
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .navbar .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .navbar .nav-link {
        padding: 7px 8px;
        font-size: 0.82rem;
        gap: 5px;
    }

    .navbar .nav-link > i:not(.nav-chevron) { display: none; }

    .navbar .nav-brand { margin-right: 14px; }

    .navbar .nav-mobile-only { display: none; }
}

/* Mobile menu panel */
@media (max-width: 1199px) {
    .navbar .nav-menu.active {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        margin: 0;
        max-height: min(72vh, 620px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-xl);
        animation: gtx-menu-in 260ms var(--ease-out);
    }

    @keyframes gtx-menu-in {
        from { opacity: 0; transform: translateY(-8px) scale(0.99); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .navbar .nav-menu.active .nav-link {
        width: 100%;
        padding: 11px 12px;
        font-size: 0.9rem;
        justify-content: flex-start;
        border-radius: 10px;
        color: var(--text-primary);
    }

    .navbar .nav-menu.active .nav-link.active {
        background: rgba(var(--primary-rgb), 0.12);
    }

    .navbar .nav-menu.active .nav-link.active::after { display: none; }

    .navbar .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin: 4px 0 8px;
        box-shadow: none;
        border-color: var(--border-color);
        background: var(--bg-secondary);
    }

    .navbar .nav-mobile-only { display: list-item; }
}

/* Keep the Growthinks wordmark visible on small screens - the legacy sheet
   hides it and leaves only a 28px mark, which reads as an empty navbar. */
@media (max-width: 768px) {
    .navbar .nav-brand .logo span:last-child { display: inline; }
    .navbar .nav-brand .logo { font-size: 1.06rem; gap: 7px; }
    .navbar .nav-brand .logo-mark { width: 24px; height: 24px; }
    .navbar .nav-brand { margin-right: 10px; }
}

/* In the 1200-1349px band the inline menu is restored, so the auth buttons
   must be restored with it - otherwise there is no visible sign-in path. */
@media (min-width: 1200px) and (max-width: 1349px) {
    .navbar .nav-actions .btn-nav-login,
    .navbar .nav-actions .btn-nav-register {
        display: inline-flex;
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .navbar .nav-actions { gap: 6px; }
}

/* ----------------------------------------------------------------------------
   18. AUTH EXPERIENCE (.gtx-*) - align with the new palette
   The gtx-auth components ship their own hardcoded "vintage" palette inside
   style.css. These overrides use the same selector specificity, loaded later,
   so the login/register/verify screens match the rest of the redesign.
   -------------------------------------------------------------------------- */
[data-theme="dark"] .gtx-auth {
    --gtx-bg-grad: linear-gradient(160deg, #0b1210 0%, #080d0b 55%, #050807 100%);
    --gtx-grain-opacity: 0;

    --gtx-text: #e9f0ed;
    --gtx-text-dim: #a3b4ad;
    --gtx-text-muted: #6f827b;
    --gtx-text-faint: #52625b;
    --gtx-label: #9fb0a8;
    --gtx-icon: #6f827b;

    --gtx-card-bg: rgba(17, 23, 21, 0.93);
    --gtx-card-border: rgba(255, 255, 255, 0.08);
    --gtx-surface: rgba(255, 255, 255, 0.04);
    --gtx-surface-border: rgba(255, 255, 255, 0.09);
    --gtx-surface-hover: rgba(255, 255, 255, 0.08);

    --gtx-accent: #10b981;
    --gtx-accent-2: #34d399;
    --gtx-accent-soft: rgba(16, 185, 129, 0.14);
    --gtx-accent-border: rgba(16, 185, 129, 0.26);
    --gtx-input-focus-border: rgba(16, 185, 129, 0.65);
    --gtx-tag-bg: rgba(16, 185, 129, 0.12);
    --gtx-tag-border: rgba(16, 185, 129, 0.22);
    --gtx-tag-text: #c3d6ce;
    --gtx-btn-shadow: rgba(16, 185, 129, 0.30);
    --gtx-btn-hover-shadow: rgba(16, 185, 129, 0.42);
    --gtx-btn-primary-text: #04120d;
    --gtx-trust-text: #6f827b;
}

[data-theme="light"] .gtx-auth {
    --gtx-bg-grad: linear-gradient(160deg, #f9fcfa 0%, #eef4f1 55%, #e6efea 100%);
    --gtx-grain-opacity: 0;

    --gtx-text: #0b1512;
    --gtx-text-dim: #47584f;
    --gtx-text-muted: #74857e;
    --gtx-text-faint: #8b9a94;
    --gtx-label: #5b6b64;
    --gtx-icon: #74857e;

    --gtx-card-bg: rgba(255, 255, 255, 0.95);
    --gtx-card-border: rgba(12, 21, 18, 0.08);
    --gtx-surface: rgba(12, 21, 18, 0.03);
    --gtx-surface-border: rgba(12, 21, 18, 0.08);
    --gtx-surface-hover: rgba(12, 21, 18, 0.06);

    --gtx-accent: #059669;
    --gtx-accent-2: #10b981;
    --gtx-accent-soft: rgba(5, 150, 105, 0.10);
    --gtx-accent-border: rgba(5, 150, 105, 0.22);
    --gtx-input-focus-border: rgba(5, 150, 105, 0.55);
    --gtx-tag-bg: rgba(5, 150, 105, 0.09);
    --gtx-tag-border: rgba(5, 150, 105, 0.2);
    --gtx-tag-text: #2f4a40;
    --gtx-btn-shadow: rgba(5, 150, 105, 0.22);
    --gtx-btn-hover-shadow: rgba(5, 150, 105, 0.32);
    --gtx-btn-primary-text: #04120d;
    --gtx-trust-text: #74857e;
}

/* Softer card edge instead of the vintage double border + grain */
.gtx-card {
    border-radius: 22px;
    box-shadow: var(--shadow-xl);
}

@media (prefers-reduced-motion: reduce) {
    .gtx-card,
    .gtx-btn { transition-duration: 0.001ms !important; }
}

/* ----------------------------------------------------------------------------
   19. BUTTON TEXT CONTRAST GUARD
   `[data-theme="light"] a` is more specific than a bare `.btn-primary`, which
   left primary buttons with dark-green-on-green text. These rules use an
   element+class selector (equal specificity, later in cascade) so link colours
   can never bleed into buttons.
   -------------------------------------------------------------------------- */
a.btn-primary,
a.btn-primary:hover,
a.gtx-btn-primary,
a.gtx-btn-primary:hover {
    color: #04120d;
}

a.btn-secondary,
a.btn-secondary:hover,
a.btn-outline,
a.btn-outline:hover,
a.btn-success,
a.btn-success:hover {
    color: var(--text-primary);
}

a.btn-danger,
a.btn-danger:hover {
    color: #ffffff;
}

a.btn-nav-login,
a.btn-nav-login:hover {
    color: var(--text-primary);
}

a.btn-nav-register,
a.btn-nav-register:hover {
    color: #04120d;
}

a.btn-premium,
a.btn-premium:hover {
    color: #231705;
}

a.btn-premium-outline,
a.btn-premium-outline:hover {
    color: #b45309;
}

[data-theme="dark"] a.btn-premium-outline,
[data-theme="dark"] a.btn-premium-outline:hover {
    color: #fbbf24;
}

/* Landing CTAs sit on tinted panels; keep them readable in both themes */
a.lp-feature-link,
a.lp-feature-link:hover {
    color: var(--primary-light);
}

[data-theme="light"] a.lp-feature-link,
[data-theme="light"] a.lp-feature-link:hover {
    color: var(--primary-dark);
}

/* The legacy sheet ends with `!important` colours for the two navbar auth
   buttons (white on blue / green-on-green). Match that weight so the header
   keeps the new palette and readable contrast. */
.navbar .nav-actions .btn-nav-register,
.navbar .nav-actions a.btn-nav-register {
    color: #04120d !important;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .nav-actions .btn-nav-login,
.navbar .nav-actions a.btn-nav-login {
    color: var(--text-primary) !important;
    background: transparent;
    border: 1px solid var(--border-strong);
}

.navbar .nav-actions .btn-nav-login:hover,
.navbar .nav-actions a.btn-nav-login:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

/* The hero accent gradient needs a darker ramp on white - the mint mid-stop
   is unreadable on a light background. */
[data-theme="light"] .lp-title-accent {
    background: linear-gradient(100deg, #047857 5%, #0f766e 45%, #0369a1 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

[data-theme="light"] .lp-title-accent::after {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.5), rgba(3, 105, 161, 0.35));
}

/* ----------------------------------------------------------------------------
   ASSET LOGOS
   One wrapper drives every instrument logo in the product. The initials badge
   sits underneath the image, so if a logo is missing the badge shows instead
   of a broken image icon.
   -------------------------------------------------------------------------- */
.gtx-asset-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--logo-size, 32px);
    height: var(--logo-size, 32px);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-color);
    overflow: hidden;
    vertical-align: middle;
    isolation: isolate;
    transition: border-color var(--dur-fast) var(--ease-out),
                background-color var(--dur-fast) var(--ease-out);
}

[data-theme="light"] .gtx-asset-logo {
    background: #ffffff;
    border-color: rgba(12, 21, 18, 0.10);
}

.gtx-asset-logo .gtx-asset-img {
    position: relative;
    z-index: 1;
    width: 76%;
    height: 76%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    display: block;
}

.gtx-asset-logo.is-fallback .gtx-asset-img {
    display: none;
}

.gtx-asset-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: calc(var(--logo-size, 32px) * 0.34);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    background: rgba(var(--primary-rgb), 0.10);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 180ms var(--ease-out);
}

.gtx-asset-logo.is-fallback .gtx-asset-fallback {
    opacity: 1;
}

/* Sizes used across surfaces */
.gtx-asset-logo.is-sm { border-radius: 8px; }
.gtx-asset-logo.is-lg { border-radius: 12px; }

/* Inside dark table rows the chip should not glow */
td .gtx-asset-logo,
li .gtx-asset-logo {
    margin-right: 8px;
}

/* Symbol cells that carry a logo: keep the mark and ticker on one line. */
.ht-symbol,
.tx-symbol,
.screener-table .sym,
.sym {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tx-symbol .gtx-asset-logo,
.ht-symbol .gtx-asset-logo {
    border-radius: 8px;
}

@media (max-width: 640px) {
    .ht-symbol,
    .screener-table .sym,
    .sym {
        gap: 6px;
    }
}

/* Watchlist rows in the profile page */
.pf-wl-logo {
    flex: 0 0 auto;
}

.charts-symbol-logo {
    flex: 0 0 auto;
    margin-right: 2px;
}

/* ----------------------------------------------------------------------------
   PERFORMANCE AND TOUCH
   Cheap wins that keep the approved look: no hover repaints on touch devices,
   no 300ms tap delay, and scroll containers that never trap the page.
   -------------------------------------------------------------------------- */
a,
button,
.nav-toggle,
.btn,
[role="button"] {
    touch-action: manipulation;
}

@media (hover: none) {
    /* Touch screens cannot hover, so skip hover-only shadows and lifts. */
    .lp-feature-card:hover,
    .lp-stat:hover,
    .pf-card:hover,
    .card:hover,
    .holdings-table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ----------------------------------------------------------------------------
   MOBILE DATA TABLES AS CARDS
   Below 640px a ten column financial table cannot be read by squeezing it.
   Rows become compact cards, labelled by the data-label attribute, so no
   information or behaviour is lost.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .holdings-table thead,
    .screener-table thead {
        display: none !important;
    }

    .holdings-table,
    .holdings-table tbody,
    .screener-table,
    .screener-table tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .holdings-table tbody tr,
    .screener-table tbody tr {
        display: block !important;
        position: relative;
        margin: 0 0 12px;
        padding: 14px 16px !important;
        background: var(--bg-card, #121715);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
        border-radius: 14px;
        box-shadow: none;
    }

    .holdings-table tbody td,
    .screener-table tbody td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: auto !important;
        padding: 5px 0 !important;
        border: 0 !important;
        font-size: 0.82rem !important;
        text-align: right !important;
        white-space: normal !important;
    }

    .holdings-table tbody td::before,
    .screener-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--text-muted, #8b9a94);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: left;
    }

    .holdings-table tbody td:first-child,
    .screener-table tbody td:first-child {
        margin-bottom: 6px;
        padding-bottom: 10px !important;
        border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
        font-size: 0.95rem !important;
        justify-content: flex-start;
        text-align: left !important;
    }

    .holdings-table tbody td:first-child::before,
    .screener-table tbody td:first-child::before {
        display: none;
    }

    .holdings-table .ht-name,
    .screener-table .name {
        max-width: none !important;
        white-space: normal !important;
        text-align: right;
    }

    .holdings-table-wrap,
    .screener-table-wrap {
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .holdings-table-wrap::after {
        display: none !important;
    }
}

/* ----------------------------------------------------------------------------
   TOUCH TARGETS
   Anything interactive gets at least a 44px hit area on phones.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .lp-feature-link,
    .footer-links a,
    .footer-links li a,
    .lp-footer a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .holdings-table tbody td,
    .screener-table tbody td {
        min-height: 38px;
    }

    /* Long ticker + name pairs never push the card wider than the screen. */
    .ht-symbol,
    .screener-table .sym,
    .sym {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Chart widgets: smaller viewport, same interaction. */
@media (max-width: 640px) {
    .chart-touch-guard {
        height: 420px !important;
        border-radius: 14px !important;
    }

    .charts-controlbar {
        padding: 10px !important;
    }

    .charts-tabs {
        width: 100%;
    }

    .charts-tabs .btn-tab {
        flex: 1 1 auto;
        min-height: 40px;
    }
}

/* ----------------------------------------------------------------------------
   COMPACT NAVBAR (320-380px)
   The action cluster must fit beside the wordmark, and every control keeps a
   40px+ touch target instead of being clipped off the edge.
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    .navbar .container {
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-actions {
        gap: 2px;
    }

    .nav-icon-btn,
    .notif-dropdown > a,
    .notif-dropdown > button,
    .theme-toggle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .nav-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .nav-avatar,
    .nav-user-trigger {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .nav-brand .logo {
        gap: 6px;
    }

    .nav-brand .logo span:last-child {
        font-size: 0.98rem;
        letter-spacing: -0.01em;
    }
}

/* A closed drawer is visually off canvas, so it must also be unreachable. */
.user-drawer {
    visibility: hidden;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 260ms;
}

html.user-drawer-open .user-drawer {
    visibility: visible;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

@media (max-width: 380px) {
    /* The navbar switch is replaced by "Ganti tema" inside the mobile menu. */
    .nav-actions .theme-toggle {
        display: none !important;
    }
}

.theme-toggle-mobile {
    width: 100%;
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Off-canvas drawer must never intercept taps while closed. */
html:not(.user-drawer-open) .user-drawer {
    pointer-events: none;
}
/* ============================================================================
   Growthinks - Landing Page Styles (home.php)
   ----------------------------------------------------------------------------
   Namespaced with .lp-* so nothing here can leak into the application pages.
   Depends on tokens from css/redesign.css.
   ========================================================================== */

.lp {
    --lp-hero-pad-top: clamp(48px, 8vw, 104px);
    --lp-hero-pad-bottom: clamp(56px, 9vw, 120px);
    overflow-x: clip;
}

/* ----------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.lp-hero {
    contain: layout style paint;
    position: relative;
    padding: var(--lp-hero-pad-top) 0 var(--lp-hero-pad-bottom);
    isolation: isolate;
}

/* Ambient decorative field */
.lp-hero-bg {
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 130%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.4;
    contain: layout paint style;
    animation: none !important;
}

.lp-orb-1 {
    width: 460px;
    height: 460px;
    top: -140px;
    left: -80px;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.5), transparent 68%);
    animation: gtx-float-slow 17s var(--ease-in-out) infinite;
}

.lp-orb-2 {
    width: 380px;
    height: 380px;
    top: -60px;
    right: -110px;
    background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, 0.38), transparent 68%);
    animation: gtx-float-slow 21s var(--ease-in-out) infinite reverse;
}

.lp-orb-3 {
    width: 300px;
    height: 300px;
    bottom: -140px;
    left: 42%;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.22), transparent 70%);
    animation: gtx-float 24s var(--ease-in-out) infinite;
}

[data-theme="light"] .lp-orb { opacity: 0.4; }

/* Fine grid texture, fading out downwards */
.lp-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

/* --- Copy column --- */
.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: 0.76rem;
    font-weight: 550;
    color: var(--text-secondary);
    letter-spacing: 0.005em;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur), transform var(--dur-fast) var(--ease-out);
}

.lp-pill:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.lp-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[data-theme="light"] .lp-pill-badge { color: var(--primary-dark); }

.lp-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin: 22px 0 0;
    text-wrap: balance;
}

.lp-title-accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(100deg, var(--primary-light) 10%, #7ef2c6 45%, var(--secondary-color) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Animated underline swash under the accent word */
.lp-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.04em;
    height: 0.09em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.55), rgba(56, 189, 248, 0.4));
    transform: scaleX(0);
    transform-origin: left;
    animation: lp-swash 900ms var(--ease-out) 700ms both;
}

@keyframes lp-swash { to { transform: scaleX(1); } }

.lp-sub {
    margin: 20px 0 0;
    font-size: clamp(1rem, 1.3vw, 1.09rem);
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 54ch;
    text-wrap: pretty;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.lp-hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lp-hero-note i { color: var(--primary-light); font-size: 0.78rem; }

.lp-avatars {
    display: flex;
    align-items: center;
}

.lp-avatars img,
.lp-avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
    object-fit: cover;
    background: var(--bg-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.lp-avatars > *:first-child { margin-left: 0; }

/* --- Visual column: app mock --- */
.lp-visual {
    position: relative;
    perspective: 1200px;
    padding: 46px 0;
}

.lp-mock {
    contain: layout paint;
    position: relative;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    background: linear-gradient(165deg, var(--bg-card), var(--bg-secondary) 55%, var(--bg-tertiary));
    box-shadow: var(--shadow-xl);
    padding: 16px;
    transform: rotateY(-7deg) rotateX(3deg);
    transition: transform 700ms var(--ease-out);
    will-change: transform; /* optimize */
}

.lp-visual:hover .lp-mock {
    contain: layout paint;
    transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.lp-mock-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.lp-mock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-strong);
}

.lp-mock-dot:nth-child(1) { background: #f87171; }
.lp-mock-dot:nth-child(2) { background: #fbbf24; }
.lp-mock-dot:nth-child(3) { background: #34d399; }

.lp-mock-url {
    margin-left: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.lp-mock-body { padding-top: 14px; }

.lp-mock-headline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.lp-mock-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    font-weight: 650;
}

.lp-mock-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.lp-mock-change {
    font-size: 0.74rem;
    font-weight: 650;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.12);
    padding: 3px 7px;
    border-radius: 6px;
}

/* Sparkline chart drawn with CSS (no library) */
.lp-spark {
    position: relative;
    height: 92px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(var(--primary-rgb), 0.16), transparent 85%);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 14px;
}

.lp-spark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.lp-spark path.lp-spark-line {
    fill: none;
    stroke: url(#lpSparkGradient);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: lp-draw 2000ms var(--ease-out) 500ms forwards;
}

@keyframes lp-draw { to { stroke-dashoffset: 0; } }

.lp-mock-rows { display: grid; gap: 7px; }

.lp-mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: border-color var(--dur), transform var(--dur-fast) var(--ease-out);
}

.lp-mock-row:hover { border-color: var(--border-strong); transform: translateX(2px); }

.lp-mock-sym {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 700;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    flex: 0 0 auto;
}

.lp-mock-sym.is-blue { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.lp-mock-sym.is-amber { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }

.lp-mock-meta { flex: 1; min-width: 0; }
.lp-mock-name { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }
.lp-mock-cap { font-size: 0.67rem; color: var(--text-muted); }
.lp-mock-price { font-size: 0.78rem; font-weight: 650; font-family: var(--font-mono); color: var(--text-secondary); }

.lp-mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
}

.lp-mock-bars span {
    width: 3px;
    border-radius: 2px;
    background: rgba(var(--primary-rgb), 0.55);
    animation: lp-bar 1.8s var(--ease-in-out) infinite;
    transform-origin: bottom;
}

.lp-mock-bars span:nth-child(1) { height: 40%; animation-delay: 0ms; }
.lp-mock-bars span:nth-child(2) { height: 70%; animation-delay: 120ms; }
.lp-mock-bars span:nth-child(3) { height: 55%; animation-delay: 240ms; }
.lp-mock-bars span:nth-child(4) { height: 90%; animation-delay: 360ms; }

@keyframes lp-bar {
    0%, 100% { transform: scaleY(0.65); opacity: 0.7; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* Floating cards around the mock */
.lp-float-card {
    position: absolute;
    display: flex;
    animation: none !important;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--shadow-lg);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 2;
    will-change: transform; /* optimize */
}

.lp-float-card i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: rgba(var(--primary-rgb), 0.16);
    color: var(--primary-light);
    flex: 0 0 auto;
}

.lp-float-card small {
    display: block;
    font-size: 0.64rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
}

.lp-float-1 {
    top: 0;
    left: -16px;
    animation: gtx-float 7s var(--ease-in-out) infinite;
}

.lp-float-2 {
    bottom: 6px;
    right: -14px;
    animation: gtx-float 9s var(--ease-in-out) 600ms infinite;
}

.lp-float-2 i { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }

/* ----------------------------------------------------------------------------
   TRUST STRIP / STATS
   -------------------------------------------------------------------------- */
.lp-stats {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.03));
    padding: clamp(26px, 4vw, 40px) 0;
}

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 32px);
}

.lp-stat {
    text-align: center;
    position: relative;
}

.lp-stat + .lp-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: var(--border-color);
}

.lp-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1.1;
    display: block;
}

.lp-stat-value .lp-stat-suffix { color: var(--primary-light); }

.lp-stat-label {
    display: block;
    margin-top: 5px;
    font-size: 0.79rem;
    color: var(--text-muted);
    letter-spacing: 0.005em;
}

/* ----------------------------------------------------------------------------
   SECTION HEADERS
   -------------------------------------------------------------------------- */
.lp-section {
    contain: layout style;
    padding: clamp(56px, 8vw, 104px) 0;
    position: relative;
}

.lp-section-head {
    max-width: 660px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
}

.lp-section-head .gtx-eyebrow { justify-content: center; }

.lp-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.55rem);
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -0.032em;
    margin: 0 0 14px;
    color: var(--text-primary);
    text-wrap: balance;
}

.lp-section-sub {
    margin: 0;
    font-size: clamp(0.95rem, 1.2vw, 1.04rem);
    color: var(--text-secondary);
    line-height: 1.7;
    text-wrap: pretty;
}

/* ----------------------------------------------------------------------------
   FEATURE GRID
   -------------------------------------------------------------------------- */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.lp-feature {
    position: relative;
    padding: clamp(20px, 2.6vw, 28px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}

.lp-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(var(--primary-rgb), 0.10), transparent 70%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
    pointer-events: none;
}

.lp-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.32);
    box-shadow: var(--shadow-lg);
}

.lp-feature:hover::before { opacity: 1; }

.lp-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.11);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    margin-bottom: 16px;
    transition: transform var(--dur-slow) var(--ease-spring);
}

.lp-feature:hover .lp-feature-icon { transform: translateY(-2px) scale(1.06) rotate(-3deg); }

.lp-feature h3 {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.018em;
    margin: 0 0 8px;
}

.lp-feature p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.lp-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
}

.lp-feature-link i { transition: transform var(--dur) var(--ease-out); }
.lp-feature:hover .lp-feature-link i { transform: translateX(3px); }

/* ----------------------------------------------------------------------------
   TOOLS BENTO
   -------------------------------------------------------------------------- */
.lp-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(130px, auto);
    gap: clamp(12px, 1.8vw, 18px);
}

.lp-bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(18px, 2.2vw, 24px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out),
                border-color var(--dur),
                box-shadow var(--dur) var(--ease-out);
}

.lp-bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.lp-bento-card.is-wide { grid-column: span 2; }
.lp-bento-card.is-tall { grid-row: span 2; }

.lp-bento-card.is-featured {
    background:
        radial-gradient(560px 220px at 85% -20%, rgba(var(--primary-rgb), 0.16), transparent 70%),
        linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
    border-color: rgba(var(--primary-rgb), 0.24);
}

.lp-bento-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.1);
}

.lp-bento-card h3 {
    font-size: 0.98rem;
    margin: 0 0 6px;
    letter-spacing: -0.016em;
}

.lp-bento-card p {
    margin: 0;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.lp-bento-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}

.lp-bento-card:hover .lp-bento-arrow { opacity: 1; transform: translate(0, 0); color: var(--primary-light); }

/* ----------------------------------------------------------------------------
   LEARNING PATH / STEPS
   -------------------------------------------------------------------------- */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    position: relative;
}

.lp-step {
    position: relative;
    padding-top: 34px;
}

.lp-step-index {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    z-index: 1;
}

.lp-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: -22px;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}

.lp-step:last-child::before { display: none; }

.lp-step h3 {
    font-size: 0.96rem;
    margin: 0 0 6px;
}

.lp-step p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.62;
}

/* ----------------------------------------------------------------------------
   SPLIT PANELS (community / events)
   -------------------------------------------------------------------------- */
.lp-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
}

.lp-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    background: linear-gradient(170deg, var(--bg-card), var(--bg-secondary));
    overflow: hidden;
    transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}

.lp-panel:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.lp-panel-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5), transparent 68%);
    pointer-events: none;
}

.lp-panel:nth-child(2) .lp-panel-glow {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 68%);
}

.lp-panel h3 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.42rem);
    font-weight: 750;
    letter-spacing: -0.026em;
    margin: 14px 0 10px;
}

.lp-panel p {
    font-size: 0.89rem;
    line-height: 1.68;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

.lp-panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
}

.lp-panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.lp-panel-list i {
    color: var(--primary-light);
    font-size: 0.78rem;
    margin-top: 4px;
    flex: 0 0 auto;
}

.lp-panel-cta { margin-top: auto; }

/* ----------------------------------------------------------------------------
   PRICING
   -------------------------------------------------------------------------- */
.lp-pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    max-width: 880px;
    margin: 0 auto;
    align-items: stretch;
}

.lp-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 34px);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur);
}

.lp-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.lp-price-card.is-featured {
    border-color: rgba(var(--primary-rgb), 0.4);
    background:
        radial-gradient(520px 260px at 80% -30%, rgba(var(--primary-rgb), 0.18), transparent 70%),
        linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
    box-shadow: 0 24px 60px -30px rgba(var(--primary-rgb), 0.55);
}

.lp-price-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #241705;
}

.lp-price-name {
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-price-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 12px 0 4px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.lp-price-amount .lp-price-currency { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.lp-price-amount .lp-price-value { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1; }
.lp-price-amount .lp-price-period { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }

.lp-price-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.6;
}

.lp-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 11px;
}

.lp-price-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.lp-price-list i {
    color: var(--primary-light);
    font-size: 0.75rem;
    margin-top: 3px;
    flex: 0 0 auto;
}

.lp-price-list li.is-muted { color: var(--text-muted); }
.lp-price-list li.is-muted i { color: var(--text-muted); opacity: 0.6; }

.lp-price-card .btn { margin-top: auto; }

/* ----------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.lp-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

.lp-quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(20px, 2.4vw, 26px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}

.lp-quote:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.lp-quote-stars { display: flex; gap: 3px; color: #fbbf24; font-size: 0.72rem; }

.lp-quote-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.68;
    color: var(--text-secondary);
}

.lp-quote-author {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 4px;
}

.lp-quote-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #04120d;
    background: linear-gradient(150deg, var(--primary-light), var(--secondary-color));
    flex: 0 0 auto;
}

.lp-quote-name { font-size: 0.84rem; font-weight: 650; color: var(--text-primary); display: block; line-height: 1.3; }
.lp-quote-role { font-size: 0.74rem; color: var(--text-muted); }

/* ----------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.lp-faq {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.lp-faq-item {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color var(--dur), background-color var(--dur);
}

.lp-faq-item[open] {
    border-color: rgba(var(--primary-rgb), 0.28);
    background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
}

.lp-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color var(--dur-fast);
}

.lp-faq-item summary::-webkit-details-marker { display: none; }

.lp-faq-item summary:hover { background: var(--bg-hover); }

.lp-faq-item summary i {
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: transform var(--dur) var(--ease-out), color var(--dur);
    flex: 0 0 auto;
}

.lp-faq-item[open] summary i { transform: rotate(45deg); color: var(--primary-light); }

.lp-faq-answer {
    padding: 0 20px 18px;
    font-size: 0.87rem;
    line-height: 1.7;
    color: var(--text-secondary);
    animation: gtx-fade-in var(--dur) var(--ease-out);
}

/* ----------------------------------------------------------------------------
   FINAL CTA
   -------------------------------------------------------------------------- */
.lp-cta {
    position: relative;
    padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 56px);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(var(--primary-rgb), 0.24);
    background:
        radial-gradient(700px 300px at 20% -30%, rgba(var(--primary-rgb), 0.22), transparent 70%),
        radial-gradient(560px 260px at 90% 120%, rgba(56, 189, 248, 0.16), transparent 72%),
        linear-gradient(170deg, var(--bg-card), var(--bg-secondary));
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.lp-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.034em;
    margin: 0 0 12px;
    text-wrap: balance;
}

.lp-cta p {
    max-width: 52ch;
    margin: 0 auto 26px;
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.lp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ----------------------------------------------------------------------------
   PARTNER MARQUEE
   -------------------------------------------------------------------------- */
.lp-partners {
    padding: clamp(32px, 5vw, 52px) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.lp-partners-label {
    text-align: center;
    font-size: 0.73rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.lp-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.lp-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 64px);
    width: max-content;
    animation: lp-marquee 38s linear infinite;
}

.lp-marquee:hover .lp-marquee-track { animation-play-state: paused; }

@keyframes lp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.lp-partner {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text-muted);
    opacity: 0.75;
    white-space: nowrap;
    transition: opacity var(--dur), color var(--dur);
}

.lp-partner:hover { opacity: 1; color: var(--text-secondary); }

.lp-partner img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter var(--dur), opacity var(--dur);
}

.lp-partner:hover img { filter: grayscale(0); opacity: 1; }

/* ----------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .lp-hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .lp-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .lp-mock {
    contain: layout paint; transform: none; }
    .lp-float-1 { left: -2%; }
    .lp-float-2 { right: -2%; }
    .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
    .lp-step::before { display: none; }
    .lp-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .lp-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .lp-stat:nth-child(3)::before { display: none; }
    .lp-split { grid-template-columns: 1fr; }
    .lp-pricing { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .lp-hero {
    contain: layout style paint; padding-top: 34px; }
    .lp-title { font-size: clamp(2rem, 9vw, 2.6rem); }
    .lp-hero-actions .btn,
    .lp-cta-actions .btn { flex: 1 1 100%; }
    .lp-features { grid-template-columns: 1fr; }
    .lp-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .lp-bento-card.is-wide,
    .lp-bento-card.is-tall { grid-column: auto; grid-row: auto; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-float-card { display: none; }
    .lp-mock-value { font-size: 1.25rem; }
    .lp-section {
    contain: layout style; padding: 44px 0; }
    .lp-stats-grid { gap: 18px; }
    .lp-stat + .lp-stat::before { display: none; }
    .lp-faq-item summary { padding: 14px 15px; font-size: 0.87rem; }
    .lp-faq-answer { padding: 0 15px 15px; }
}

/* ----------------------------------------------------------------------------
   TRUST STRIP (used when live counters are still small)
   -------------------------------------------------------------------------- */
.lp-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
}

.lp-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.86rem;
    font-weight: 550;
    color: var(--text-secondary);
    text-align: left;
}

.lp-trust-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.11);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    flex: 0 0 auto;
}

@media (max-width: 860px) {
    .lp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-trust-item { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .lp-trust { grid-template-columns: 1fr; }
}

/* Performance optimizations */
@media (max-width: 768px) {
    .lp-orb {
        filter: blur(28px);
        animation: none;
    }
    .lp-float-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 23, 42, 0.85);
    }
    .lp-pill {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .lp-mock {
        transform: none !important;
        box-shadow: var(--shadow-lg);
    }
    .lp-visual:hover .lp-mock {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-orb,
    .lp-float-card,
    .lp-mock-bars span,
    .lp-spark path.lp-spark-line,
    .gtx-float,
    .gtx-float-slow {
        animation: none !important;
    }
    .lp-title-accent::after {
        animation: none;
        transform: scaleX(1);
    }
    [data-parallax] {
        transform: none !important;
    }
}
