@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Default: Dark Mode (High-Roller Emerald & Gold) */
    --bg-body: #050d09;
    --bg-surface: rgba(8, 26, 18, 0.88);
    --bg-card: rgba(12, 34, 25, 0.78);
    --bg-card-solid: #0b2218;
    --bg-elevated: rgba(17, 48, 35, 0.7);

    /* Royal Emerald & Gold Accent System */
    --neon-cyan: #00E676; /* Vivid Emerald / Jade */
    --neon-magenta: #FFB800; /* Imperial Gold / Amber */
    --neon-purple: #10B981; /* Lustrous Jade */
    --neon-gold: #FFD700; /* Champagne Gold */
    --neon-green: #00E676; /* Electric Emerald */
    --accent-emerald: #00E676;
    --accent-gold: #FFB800;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FFB800 0%, #FF8F00 100%);
    --gradient-accent: linear-gradient(135deg, #00E676 0%, #00B359 100%);
    --gradient-gold: linear-gradient(135deg, #FFE082 0%, #FFB800 50%, #E69500 100%);
    --gradient-dark: linear-gradient(180deg, #06140F 0%, #0A221A 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

    /* Text */
    --text-main: #EDF6F1;
    --text-muted: #95ADA1;
    --text-dim: #5A7568;
    --text-white: #FFFFFF;

    /* Borders & Glows */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow-cyan: rgba(0, 230, 118, 0.3);
    --border-glow-magenta: rgba(255, 184, 0, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 230, 118, 0.35), 0 0 60px rgba(0, 230, 118, 0.1);
    --glow-magenta: 0 0 20px rgba(255, 184, 0, 0.4), 0 0 60px rgba(255, 184, 0, 0.15);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 50px rgba(255, 184, 0, 0.15);
    --shadow-deep: 0 14px 40px rgba(0, 0, 0, 0.6);

    /* Shell Environment */
    --page-bg: #030806;
    --body-radial-1: rgba(0, 230, 118, 0.07);
    --body-radial-2: rgba(255, 184, 0, 0.05);
    --header-bg: rgba(5, 13, 9, 0.94);
    --nav-drawer-bg: rgba(5, 13, 9, 0.97);
    --footer-bg: linear-gradient(180deg, #050d09 0%, #030806 100%);
    --mobile-bar-bg: rgba(5, 13, 9, 0.95);
    --btn-primary-text: #05140D;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;

    --mobile-width: 480px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Refined Emerald & Warm Gold Light Mode */
    --bg-body: #F4F8F5;
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-card: #FFFFFF;
    --bg-card-solid: #FFFFFF;
    --bg-elevated: #EBF3EE;

    --neon-cyan: #008744; /* High-contrast emerald for light background */
    --neon-magenta: #D97706; /* Rich amber gold */
    --neon-purple: #059669;
    --neon-gold: #B45309;
    --neon-green: #008744;
    --accent-emerald: #008744;
    --accent-gold: #D97706;

    --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-accent: linear-gradient(135deg, #008744 0%, #047857 100%);
    --gradient-gold: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    --gradient-dark: linear-gradient(180deg, #EDF4EF 0%, #E2ECE5 100%);
    --gradient-glass: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);

    --text-main: #132219;
    --text-muted: #4B6355;
    --text-dim: #71897C;
    --text-white: #0B1710;

    --border-glass: rgba(19, 34, 25, 0.1);
    --border-color: rgba(19, 34, 25, 0.1);
    --border-glow-cyan: rgba(0, 135, 68, 0.35);
    --border-glow-magenta: rgba(217, 119, 6, 0.35);
    --glow-cyan: 0 4px 20px rgba(0, 135, 68, 0.15);
    --glow-magenta: 0 4px 20px rgba(217, 119, 6, 0.18);
    --glow-gold: 0 4px 20px rgba(180, 83, 9, 0.18);
    --shadow-deep: 0 10px 30px rgba(19, 34, 25, 0.08);

    --page-bg: #EAEFEA;
    --body-radial-1: rgba(0, 135, 68, 0.06);
    --body-radial-2: rgba(217, 119, 6, 0.05);
    --header-bg: rgba(255, 255, 255, 0.95);
    --nav-drawer-bg: rgba(244, 248, 245, 0.98);
    --footer-bg: linear-gradient(180deg, #EDF4EF 0%, #E0ECE4 100%);
    --mobile-bar-bg: rgba(255, 255, 255, 0.96);
    --btn-primary-text: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--page-bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--body-radial-1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, var(--body-radial-2) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 74px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   STRICT MOBILE SHELL
========================================= */
body > header,
body > main,
body > footer {
    width: 100%;
    max-width: var(--mobile-width);
    background: var(--bg-body);
    position: relative;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
}

@media (max-width: 480px) {
    body > header,
    body > main,
    body > footer {
        border-left: none;
        border-right: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.no-scroll { overflow: hidden; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--page-bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-gold));
    border-radius: var(--radius-pill);
}

/* =========================================
   HEADER — Frosted Glass Shell
========================================= */
body > header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease;
}

body > header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-gold), transparent);
    opacity: 0.6;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    gap: 10px;
}

.logo a { display: flex; align-items: center; }

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.35));
}

/* Mobile drawer nav */
.nav-list {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    height: 100vh;
    background: var(--nav-drawer-bg);
    padding: 5rem 1.5rem 3rem;
    z-index: 999;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow-y: auto;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    transition: background 0.3s ease;
}

.nav-list.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.nav-list ul {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1rem;
}

.nav-list a {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 12px 18px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    display: block;
}

.nav-list a:hover {
    color: var(--neon-cyan);
    border-color: var(--border-glow-cyan);
    background: rgba(0, 230, 118, 0.08);
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--neon-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--neon-gold);
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 0 12px rgba(255, 184, 0, 0.35);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(19, 34, 25, 0.06);
    color: #D97706;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(19, 34, 25, 0.12);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.25);
}

.header-auth .btn-signup:first-child {
    background: transparent;
    color: var(--neon-cyan);
    border: 1.5px solid var(--border-glow-cyan);
    padding: 6px 12px;
    font-size: 0.78rem;
    box-shadow: none;
}

.header-auth .btn-signup {
    background: var(--gradient-primary);
    color: var(--btn-primary-text);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: var(--glow-magenta);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* Global Primary Button — Radiant Gold */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--btn-primary-text);
    padding: 13px 20px;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    border-radius: var(--radius-pill);
    box-shadow: var(--glow-magenta);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: btnShimmer 3s infinite;
}

@keyframes btnShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-primary:active { transform: scale(0.97); }

.mobile-menu-toggle {
    display: flex !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4.5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   SECTION STYLES
========================================= */
section {
    padding: 2.5rem 0;
    position: relative;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    background: rgba(0, 230, 118, 0.08);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 230, 118, 0.22);
}

.section-subtitle::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* =========================================
   FOOTER — Multi-theme
========================================= */
footer {
    background: var(--footer-bg);
    padding: 3rem 16px 2.5rem;
    color: var(--text-dim);
    position: relative;
    transition: background 0.3s ease;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-gold), transparent);
    opacity: 0.6;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand .footer-desc {
    margin-top: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--neon-cyan);
    padding-left: 4px;
}

.contact-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-list li i {
    color: var(--neon-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.78rem;
    gap: 8px;
    color: var(--text-dim);
}

.footer-links a {
    color: var(--neon-cyan);
    font-weight: 600;
}

/* =========================================
   MOBILE BOTTOM BAR — Neon Glass
========================================= */
.mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 1005;
    background: var(--mobile-bar-bg);
    padding: 10px 14px;
    gap: 10px;
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease;
}

.mobile-bottom-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-gold), transparent);
    opacity: 0.6;
}

@media (max-width: 480px) {
    .mobile-bottom-bar {
        border-left: none;
        border-right: none;
    }
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: var(--radius-pill);
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--neon-cyan);
    border: 1.5px solid var(--border-glow-cyan);
}

.mobile-bottom-bar .btn-register {
    background: var(--gradient-primary);
    color: #05140D;
    font-weight: 800;
    box-shadow: var(--glow-magenta);
    border: none;
}

.ad-container img,
.ad-wrapper img {
    width: 100%;
    height: auto;
    min-height: 40px;
    display: block;
}
