/* ===== 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
   ============================================================ */
.gtx-auth {
    /* === 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; gap: 12px; width: 100%; padding: 0 16px; background: var(--gtx-input-bg); border: 1px solid var(--gtx-input-border); border-radius: 14px; height: 52px; box-sizing: border-box; }
.gtx-input .gtx-input-icon { color: var(--gtx-icon); display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 18px; pointer-events: none; }
.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 { color: var(--gtx-icon); display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 18px; pointer-events: none; font-size: 16px; line-height: 1; object-fit: contain; }
.gtx-input input {
    flex: 1 1 auto; width: 100%; height: 100%; padding: 0 32px 0 0;
    background: transparent; border: none; outline: none;
    color: var(--gtx-input-text); font-size: .95rem; font-family: inherit;
    box-sizing: border-box;
}
.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: 2; }
.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; }
}
