/* ============================================
   WinZone - Play & Earn Platform
   APK-Native Redesigned Stylesheet
   Mobile-First | Dark Theme | Gaming UI
   ============================================ */

/* ====== CSS VARIABLES (PRESERVED) ====== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1525;
    --bg-card: #141b2d;
    --bg-card-hover: #1a2340;
    --bg-input: #1a2238;

    --gold: #f0b90b;
    --gold-light: #f8d12f;
    --gold-dark: #c99a00;
    --gold-glow: rgba(240, 185, 11, 0.3);

    --green: #00e676;
    --green-dark: #00c853;
    --green-glow: rgba(0, 230, 118, 0.3);

    --red: #ff1744;
    --red-dark: #d50000;
    --red-glow: rgba(255, 23, 68, 0.3);

    --violet: #aa00ff;
    --violet-glow: rgba(170, 0, 255, 0.3);

    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.3);

    --orange: #ff9100;
    --orange-glow: rgba(255, 145, 0, 0.3);

    --teal: #00bfa5;
    --teal-glow: rgba(0, 191, 165, 0.3);

    --indigo: #536dfe;
    --indigo-glow: rgba(83, 109, 254, 0.3);

    --pink: #f50057;
    --pink-glow: rgba(245, 0, 87, 0.3);

    --amber: #ffab00;
    --amber-glow: rgba(255, 171, 0, 0.3);

    --rose: #ff4081;
    --rose-glow: rgba(255, 64, 129, 0.3);

    --lime: #c6ff00;
    --lime-glow: rgba(198, 255, 0, 0.3);

    --purple: #7c4dff;
    --purple-glow: rgba(124, 77, 255, 0.3);

    --text-primary: #e8eaf6;
    --text-secondary: #9ea7c0;
    --text-muted: #5c6484;

    --border-color: #1e2a45;
    --border-light: #2a3555;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-gold: 0 4px 20px rgba(240, 185, 11, 0.2);
    --shadow-green: 0 4px 20px rgba(0, 230, 118, 0.2);

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* APK-specific variables */
    --app-bar-height: 48px;
    --bottom-nav-height: 56px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --desktop-sidebar-width: 120px;
    --ripple-color: rgba(240, 185, 11, 0.15);
}

/* ====== RESET & BASE ====== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text selection on UI elements for APK feel */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    /* APK body padding for fixed bars */
    padding-top: calc(var(--app-bar-height) + var(--safe-area-top));
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

/* Allow text selection only in content areas */
.form-input,
textarea,
.auth-card,
.bets-table,
.earn-features,
.demo-htp-content,
.notif-item-msg,
.notif-item-title,
.hero-subtitle,
.section-desc,
.footer-desc {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input, select, textarea {
    font-family: var(--font-body);
    outline: none;
}

/* ====== SCROLLBAR (Minimal APK style) ====== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ====== APK TOUCH RIPPLE ====== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--ripple-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* ====== PARTICLE CANVAS ====== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ================================================
   ====== SPLASH SCREEN (NEW) ======
   ================================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.splash-fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: splashLogoPulse 1.5s ease-in-out infinite;
}

.splash-logo-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    box-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(240,185,11,0.15);
    animation: splashIconRotate 2s ease-in-out infinite;
}

.splash-logo-text {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 5px;
    text-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(240,185,11,0.1);
}

.splash-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.splash-loader {
    width: 120px;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.splash-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--green));
    border-radius: 3px;
    animation: splashLoad 1.8s ease-in-out forwards;
}

@keyframes splashLogoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes splashIconRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

@keyframes splashLoad {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 90%; }
    100% { width: 100%; }
}

/* ================================================
   ====== APP TOP BAR (NAVBAR REDESIGNED) ======
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(var(--app-bar-height) + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(30, 42, 69, 0.6);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1280px;
    height: var(--app-bar-height);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 16px var(--gold-glow);
    flex-shrink: 0;
}

.nav-logo i {
    font-size: 1.1rem;
    color: var(--green);
    text-shadow: 0 0 12px var(--green-glow);
}

.nav-logo:hover {
    text-shadow: 0 0 24px var(--gold-glow);
}

/* ====== NAV LINKS (Hidden on mobile, sidebar on desktop) ====== */
.nav-links {
    display: none;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 0 8px var(--gold-glow);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ====== NAV ACTIONS (App bar right side) ====== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-wallet {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(240, 185, 11, 0.08);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-wallet:active {
    transform: scale(0.96);
}

.nav-wallet i {
    font-size: 0.85rem;
}

/* ====== BUTTONS (APK-style, rounded, touch-friendly) ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(240, 185, 11, 0.4);
}

.btn-gold:active {
    transform: scale(0.96) translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
}

.btn-outline:hover {
    background: rgba(240, 185, 11, 0.1);
    transform: translateY(-2px);
}

.btn-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #000;
    box-shadow: var(--shadow-green);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 230, 118, 0.4);
}

.btn-green:active {
    transform: scale(0.96) translateY(0);
}

.btn-red {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 23, 68, 0.35);
}

.btn-red:active {
    transform: scale(0.96) translateY(0);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.78rem;
    min-height: 36px;
    border-radius: 50px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: 50px;
}

.btn-block {
    width: 100%;
}

/* Mobile menu toggle (hamburger - APK style) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-toggle:active {
    background: rgba(240, 185, 11, 0.1);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   ====== BOTTOM NAVIGATION BAR (NEW) ======
   ================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: rgba(10, 14, 23, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(30, 42, 69, 0.6);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.4);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 22px;
    transition: var(--transition-fast);
}

.bottom-nav-item span {
    font-size: 10px;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
}

.bottom-nav-item.active {
    color: var(--gold);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* Active pill indicator */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--gold-glow);
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

/* Bottom nav badge (for wallet/notification count) */
.bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    margin-right: -18px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 6px rgba(255,23,68,0.5);
}

/* ================================================
   ====== LANGUAGE TOGGLE (NEW) ======
   ================================================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 42, 69, 0.6);
    border-radius: 50px;
    padding: 2px;
    border: 1px solid var(--border-color);
    gap: 0;
    flex-shrink: 0;
    margin-left: 5px;
}

.lang-toggle-btn {
    padding: 5px 60px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 50px;
    background: transparent;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
    cursor: pointer;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.lang-toggle-btn.active {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 8px var(--gold-glow);
}

.lang-toggle-btn:active {
    transform: scale(0.95);
}

/* ================================================
   ====== DESKTOP SIDEBAR ANIMATIONS (NEW) ======
   ================================================ */
.desktop-sidebar {
    position: fixed;
    top: 0;
    width: var(--desktop-sidebar-width);
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    display: none;
    pointer-events: none;
}

.desktop-sidebar-left {
    left: 0;
}

.desktop-sidebar-right {
    right: 0;
}

.desktop-sidebar canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Neon line decorations */
.sidebar-neon-line {
    position: absolute;
    width: 2px;
    height: 100%;
    opacity: 0.3;
    animation: neonFlow 3s ease-in-out infinite;
}

.desktop-sidebar-left .sidebar-neon-line {
    right: 0;
    background: linear-gradient(180deg, transparent, var(--gold), var(--cyan), var(--violet), transparent);
}

.desktop-sidebar-right .sidebar-neon-line {
    left: 0;
    background: linear-gradient(180deg, transparent, var(--violet), var(--cyan), var(--gold), transparent);
}

@keyframes neonFlow {
    0% { opacity: 0.2; filter: blur(0px); }
    50% { opacity: 0.6; filter: blur(1px); }
    100% { opacity: 0.2; filter: blur(0px); }
}

/* Glowing orbs */
.sidebar-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
}

.sidebar-glow-orb:nth-child(1) {
    width: 80px;
    height: 80px;
    background: var(--gold);
    top: 20%;
    animation-delay: 0s;
}

.sidebar-glow-orb:nth-child(2) {
    width: 60px;
    height: 60px;
    background: var(--cyan);
    top: 50%;
    animation-delay: 2s;
}

.sidebar-glow-orb:nth-child(3) {
    width: 70px;
    height: 70px;
    background: var(--violet);
    top: 75%;
    animation-delay: 4s;
}

.desktop-sidebar-left .sidebar-glow-orb {
    right: -20px;
}

.desktop-sidebar-right .sidebar-glow-orb {
    left: -20px;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.12; }
    33% { transform: translateY(-20px) scale(1.1); opacity: 0.2; }
    66% { transform: translateY(15px) scale(0.95); opacity: 0.1; }
}

/* Circuit board pattern overlay */
.sidebar-circuit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(240,185,11,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240,185,11,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: circuitScroll 10s linear infinite;
}

@keyframes circuitScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 200px; }
}

/* Animated gradient border for main content area on desktop */
.desktop-content-frame {
    display: none;
}

/* ================================================
   ====== PAGE TRANSITIONS (NEW) ======
   ================================================ */
.page-transition {
    animation: pageSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-enter {
    animation: pageEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-exit {
    animation: pageExit 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pageExit {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); }
}

/* ====== PULL-DOWN REFRESH INDICATOR ====== */
.pull-refresh-indicator {
    position: fixed;
    top: calc(var(--app-bar-height) + var(--safe-area-top));
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 999;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.pull-refresh-indicator.visible {
    transform: translateX(-50%) translateY(0);
}

.pull-refresh-indicator .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* ================================================
   ====== HERO SECTION (APK Splash/Home) ======
   ================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--app-bar-height) - var(--bottom-nav-height));
    min-height: calc(100dvh - var(--app-bar-height) - var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px 24px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(240,185,11,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(0,230,118,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(170,0,255,0.03) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(240, 185, 11, 0.08);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(240,185,11,0.1); }
    50% { box-shadow: 0 0 20px rgba(240,185,11,0.3); }
}

.hero-badge i {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-title .text-gold {
    color: var(--gold);
    text-shadow: 0 0 24px var(--gold-glow);
}

.hero-title .text-green {
    color: var(--green);
    text-shadow: 0 0 24px var(--green-glow);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 16px var(--gold-glow);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ====== SECTION COMMON ====== */
.section {
    position: relative;
    z-index: 2;
    padding: 48px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(240, 185, 11, 0.06);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title .text-gold {
    color: var(--gold);
    text-shadow: 0 0 16px var(--gold-glow);
}

.section-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ====== APP-LIKE PAGE HEADERS ====== */
.app-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15, 21, 37, 0.6);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: calc(var(--app-bar-height) + var(--safe-area-top));
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-page-header-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.app-page-header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.08);
    color: var(--gold);
    font-size: 0.9rem;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

.app-page-header-back:active {
    transform: scale(0.92);
    background: rgba(240, 185, 11, 0.2);
}

.app-page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   ====== GAMES SECTION (Rounded cards, gradient borders) ======
   ================================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: var(--transition);
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(240,185,11,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover::after {
    opacity: 1;
}

.game-card:active {
    transform: scale(0.97);
}

.game-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.game-card:hover .game-card-icon {
    transform: scale(1.08);
}

.game-card-name {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.game-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.game-card-bet {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.game-card-bet span {
    color: var(--gold);
    font-weight: 600;
}

.game-card-play {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition);
}

.game-card-play i {
    font-size: 0.65rem;
    transition: var(--transition);
}

.game-card:hover .game-card-play i {
    transform: translateX(3px);
}

/* Game Card Themes - gc-* */
.gc-red .game-card-icon { background: rgba(255,23,68,0.12); color: var(--red); }
.gc-red .game-card-tag { background: rgba(255,23,68,0.15); color: var(--red); }
.gc-red .game-card-play { background: rgba(255,23,68,0.12); color: var(--red); }
.gc-red .game-card-play:hover { background: var(--red); color: #fff; }
.gc-red::before { background: linear-gradient(90deg, var(--red), transparent); }
.gc-red:hover { border-color: rgba(255,23,68,0.3); }

.gc-gold .game-card-icon { background: rgba(240,185,11,0.12); color: var(--gold); }
.gc-gold .game-card-tag { background: rgba(240,185,11,0.15); color: var(--gold); }
.gc-gold .game-card-play { background: rgba(240,185,11,0.12); color: var(--gold); }
.gc-gold .game-card-play:hover { background: var(--gold); color: #000; }
.gc-gold::before { background: linear-gradient(90deg, var(--gold), transparent); }
.gc-gold:hover { border-color: rgba(240,185,11,0.3); }

.gc-green .game-card-icon { background: rgba(0,230,118,0.12); color: var(--green); }
.gc-green .game-card-tag { background: rgba(0,230,118,0.15); color: var(--green); }
.gc-green .game-card-play { background: rgba(0,230,118,0.12); color: var(--green); }
.gc-green .game-card-play:hover { background: var(--green); color: #000; }
.gc-green::before { background: linear-gradient(90deg, var(--green), transparent); }
.gc-green:hover { border-color: rgba(0,230,118,0.3); }

.gc-cyan .game-card-icon { background: rgba(0,229,255,0.12); color: var(--cyan); }
.gc-cyan .game-card-tag { background: rgba(0,229,255,0.15); color: var(--cyan); }
.gc-cyan .game-card-play { background: rgba(0,229,255,0.12); color: var(--cyan); }
.gc-cyan .game-card-play:hover { background: var(--cyan); color: #000; }
.gc-cyan::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.gc-cyan:hover { border-color: rgba(0,229,255,0.3); }

.gc-purple .game-card-icon { background: rgba(124,77,255,0.12); color: var(--purple); }
.gc-purple .game-card-tag { background: rgba(124,77,255,0.15); color: var(--purple); }
.gc-purple .game-card-play { background: rgba(124,77,255,0.12); color: var(--purple); }
.gc-purple .game-card-play:hover { background: var(--purple); color: #fff; }
.gc-purple::before { background: linear-gradient(90deg, var(--purple), transparent); }
.gc-purple:hover { border-color: rgba(124,77,255,0.3); }

.gc-orange .game-card-icon { background: rgba(255,145,0,0.12); color: var(--orange); }
.gc-orange .game-card-tag { background: rgba(255,145,0,0.15); color: var(--orange); }
.gc-orange .game-card-play { background: rgba(255,145,0,0.12); color: var(--orange); }
.gc-orange .game-card-play:hover { background: var(--orange); color: #000; }
.gc-orange::before { background: linear-gradient(90deg, var(--orange), transparent); }
.gc-orange:hover { border-color: rgba(255,145,0,0.3); }

.gc-teal .game-card-icon { background: rgba(0,191,165,0.12); color: var(--teal); }
.gc-teal .game-card-tag { background: rgba(0,191,165,0.15); color: var(--teal); }
.gc-teal .game-card-play { background: rgba(0,191,165,0.12); color: var(--teal); }
.gc-teal .game-card-play:hover { background: var(--teal); color: #000; }
.gc-teal::before { background: linear-gradient(90deg, var(--teal), transparent); }
.gc-teal:hover { border-color: rgba(0,191,165,0.3); }

.gc-indigo .game-card-icon { background: rgba(83,109,254,0.12); color: var(--indigo); }
.gc-indigo .game-card-tag { background: rgba(83,109,254,0.15); color: var(--indigo); }
.gc-indigo .game-card-play { background: rgba(83,109,254,0.12); color: var(--indigo); }
.gc-indigo .game-card-play:hover { background: var(--indigo); color: #fff; }
.gc-indigo::before { background: linear-gradient(90deg, var(--indigo), transparent); }
.gc-indigo:hover { border-color: rgba(83,109,254,0.3); }

.gc-pink .game-card-icon { background: rgba(245,0,87,0.12); color: var(--pink); }
.gc-pink .game-card-tag { background: rgba(245,0,87,0.15); color: var(--pink); }
.gc-pink .game-card-play { background: rgba(245,0,87,0.12); color: var(--pink); }
.gc-pink .game-card-play:hover { background: var(--pink); color: #fff; }
.gc-pink::before { background: linear-gradient(90deg, var(--pink), transparent); }
.gc-pink:hover { border-color: rgba(245,0,87,0.3); }

.gc-amber .game-card-icon { background: rgba(255,171,0,0.12); color: var(--amber); }
.gc-amber .game-card-tag { background: rgba(255,171,0,0.15); color: var(--amber); }
.gc-amber .game-card-play { background: rgba(255,171,0,0.12); color: var(--amber); }
.gc-amber .game-card-play:hover { background: var(--amber); color: #000; }
.gc-amber::before { background: linear-gradient(90deg, var(--amber), transparent); }
.gc-amber:hover { border-color: rgba(255,171,0,0.3); }

.gc-rose .game-card-icon { background: rgba(255,64,129,0.12); color: var(--rose); }
.gc-rose .game-card-tag { background: rgba(255,64,129,0.15); color: var(--rose); }
.gc-rose .game-card-play { background: rgba(255,64,129,0.12); color: var(--rose); }
.gc-rose .game-card-play:hover { background: var(--rose); color: #fff; }
.gc-rose::before { background: linear-gradient(90deg, var(--rose), transparent); }
.gc-rose:hover { border-color: rgba(255,64,129,0.3); }

.gc-lime .game-card-icon { background: rgba(198,255,0,0.12); color: var(--lime); }
.gc-lime .game-card-tag { background: rgba(198,255,0,0.15); color: var(--lime); }
.gc-lime .game-card-play { background: rgba(198,255,0,0.12); color: var(--lime); }
.gc-lime .game-card-play:hover { background: var(--lime); color: #000; }
.gc-lime::before { background: linear-gradient(90deg, var(--lime), transparent); }
.gc-lime:hover { border-color: rgba(198,255,0,0.3); }

/* ====== HOW IT WORKS SECTION ====== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.step-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240,185,11,0.3);
    box-shadow: 0 8px 30px rgba(240,185,11,0.1);
}

.step-card:active {
    transform: scale(0.97);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold);
    background: rgba(240,185,11,0.1);
    border: 2px solid rgba(240,185,11,0.3);
    margin: 0 auto 14px;
    text-shadow: 0 0 10px var(--gold-glow);
}

.step-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: none;
}

/* ====== EARNINGS SECTION ====== */
.earn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.earn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.earn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.earn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.earn-card:active {
    transform: scale(0.98);
}

.earn-card.featured {
    border-color: rgba(240,185,11,0.4);
    background: linear-gradient(180deg, rgba(240,185,11,0.05) 0%, var(--bg-card) 100%);
}

.earn-card.featured::before {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.earn-card.starter::before {
    background: linear-gradient(90deg, var(--green-dark), var(--green));
}

.earn-card.vip::before {
    background: linear-gradient(90deg, var(--violet), var(--purple));
}

.earn-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.earn-card.starter .earn-label {
    background: rgba(0,230,118,0.12);
    color: var(--green);
}

.earn-card.featured .earn-label {
    background: rgba(240,185,11,0.12);
    color: var(--gold);
}

.earn-card.vip .earn-label {
    background: rgba(170,0,255,0.12);
    color: var(--violet);
}

.earn-tier {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.earn-card.starter .earn-tier { color: var(--green); }
.earn-card.featured .earn-tier { color: var(--gold); }
.earn-card.vip .earn-tier { color: var(--violet); }

.earn-range {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.earn-features {
    text-align: center;
    margin-bottom: 24px;
    display: inline-block;
}

.earn-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(30,42,69,0.5);
}

.earn-features li:last-child {
    border-bottom: none;
}

.earn-features li i {
    font-size: 0.78rem;
    width: 20px;
    text-align: center;
}

.earn-card.starter .earn-features li i { color: var(--green); }
.earn-card.featured .earn-features li i { color: var(--gold); }
.earn-card.vip .earn-features li i { color: var(--violet); }

.earn-features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

/* ====== DEMO SECTION ====== */
.demo-container {
    max-width: 600px;
    margin: 0 auto;
}

.demo-game {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.demo-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-header h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-header h3 i {
    color: var(--gold);
}

.demo-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

.demo-result {
    padding: 20px;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.demo-result-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
}

.dot-red { background: var(--red); box-shadow: 0 0 12px var(--red-glow); }
.dot-green { background: var(--green); box-shadow: 0 0 12px var(--green-glow); }
.dot-violet { background: var(--violet); box-shadow: 0 0 12px var(--violet-glow); }

.demo-bet-area {
    padding: 16px 20px;
    display: flex;
    gap: 10px;
}

.demo-bet-btn {
    flex: 1;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    min-height: 44px;
}

.demo-bet-btn:hover {
    transform: scale(1.02);
}

.demo-bet-btn:active {
    transform: scale(0.96);
}

.demo-bet-btn.bet-red {
    background: rgba(255,23,68,0.12);
    border-color: rgba(255,23,68,0.4);
    color: var(--red);
}

.demo-bet-btn.bet-red:hover,
.demo-bet-btn.bet-red.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
}

.demo-bet-btn.bet-green {
    background: rgba(0,230,118,0.12);
    border-color: rgba(0,230,118,0.4);
    color: var(--green);
}

.demo-bet-btn.bet-green:hover,
.demo-bet-btn.bet-green.active {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 20px var(--green-glow);
}

.demo-bet-btn.bet-violet {
    background: rgba(170,0,255,0.12);
    border-color: rgba(170,0,255,0.4);
    color: var(--violet);
}

.demo-bet-btn.bet-violet:hover,
.demo-bet-btn.bet-violet.active {
    background: var(--violet);
    color: #fff;
    box-shadow: 0 0 20px var(--violet-glow);
}

.demo-history {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.demo-history-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.demo-history-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
}

.demo-htp {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
}

.demo-htp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 0;
    min-height: 44px;
}

.demo-htp-btn i {
    transition: var(--transition);
}

.demo-htp-btn.open i {
    transform: rotate(180deg);
}

.demo-htp-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.demo-htp-content.open {
    max-height: 300px;
}

.demo-htp-content p {
    padding: 10px 0 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====== TECH STACK SECTION ====== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: rgba(240,185,11,0.3);
    box-shadow: 0 6px 25px rgba(240,185,11,0.1);
}

.tech-item:active {
    transform: scale(0.96);
}

.tech-item i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.tech-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* ====== FOOTER (Minimal on mobile, replaced by bottom nav) ====== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 36px 16px 24px;
    margin-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    color: var(--green);
}

.footer-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240,185,11,0.08);
    border: 1px solid rgba(240,185,11,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-copyright span {
    color: var(--gold);
    font-weight: 600;
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    max-width: 400px;
    text-align: right;
}

/* ================================================
   ====== AUTH PAGES (Full-screen APK login/register) ======
   ================================================ */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    padding-top: calc(var(--app-bar-height) + var(--safe-area-top) + 24px);
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 24px);
    position: relative;
    z-index: 2;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    animation: authCardSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes authCardSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 4px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.auth-logo p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* APK-style form inputs - rounded, Material-like */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,185,11,0.12);
    background: rgba(26, 34, 56, 0.8);
}

.form-input-icon {
    position: relative;
}

.form-input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.form-input-icon .form-input {
    padding-left: 44px;
}

.form-input-icon .form-input:focus + i,
.form-input-icon:focus-within i {
    color: var(--gold);
}

.form-error {
    font-size: 0.72rem;
    color: var(--red);
    margin-top: 4px;
    display: none;
    padding-left: 16px;
}

.form-error.show {
    display: block;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    display: none;
    text-align: center;
}

.auth-alert.show {
    display: block;
}

.auth-alert.alert-error {
    background: rgba(255,23,68,0.08);
    border: 1px solid rgba(255,23,68,0.25);
    color: var(--red);
}

.auth-alert.alert-success {
    background: rgba(0,230,118,0.08);
    border: 1px solid rgba(0,230,118,0.25);
    color: var(--green);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--gold);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 44px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-check label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ================================================
   ====== PROFILE PAGE (APK settings-like layout) ======
   ================================================ */
.profile-page {
    padding: calc(var(--app-bar-height) + var(--safe-area-top) + 16px) 16px calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 2;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 24px var(--gold-glow);
}

.profile-info h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.profile-referral {
    text-align: center;
}

.profile-referral-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.profile-referral-code {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    background: rgba(240,185,11,0.08);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(240,185,11,0.2);
    display: inline-block;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.stat-card:active {
    transform: scale(0.97);
}

.stat-card-icon {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.stat-card.wallet .stat-card-icon { color: var(--gold); }
.stat-card.deposit .stat-card-icon { color: var(--green); }
.stat-card.withdraw .stat-card-icon { color: var(--cyan); }
.stat-card.won .stat-card-icon { color: var(--amber); }

.stat-card-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.stat-card.wallet .stat-card-value { color: var(--gold); }
.stat-card.deposit .stat-card-value { color: var(--green); }
.stat-card.withdraw .stat-card-value { color: var(--cyan); }
.stat-card.won .stat-card-value { color: var(--amber); }

.stat-card-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-section-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-section-header h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-header h3 i {
    color: var(--gold);
}

/* Bets Table */
.bets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.bets-table thead th {
    padding: 10px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    background: rgba(20,27,45,0.5);
}

.bets-table tbody td {
    padding: 10px 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(30,42,69,0.5);
}

.bets-table tbody tr:hover {
    background: rgba(240,185,11,0.03);
}

.bet-status {
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.bet-status.won {
    background: rgba(0,230,118,0.12);
    color: var(--green);
}

.bet-status.lost {
    background: rgba(255,23,68,0.12);
    color: var(--red);
}

.bet-status.pending {
    background: rgba(240,185,11,0.12);
    color: var(--gold);
}

.bet-status.cancelled {
    background: rgba(92,100,132,0.12);
    color: var(--text-muted);
}

/* Change Password */
.change-password {
    padding: 16px;
}

.change-password .form-group {
    margin-bottom: 14px;
}

.change-password .form-group label {
    font-size: 0.78rem;
}

.no-data {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.no-data i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

/* ================================================
   ====== WALLET PAGE (APK finance app feel) ======
   ================================================ */
.wallet-page {
    padding: calc(var(--app-bar-height) + var(--safe-area-top) + 16px) 16px calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 2;
}

.wallet-balance-card {
    background: linear-gradient(135deg, rgba(240,185,11,0.12) 0%, rgba(0,230,118,0.06) 100%);
    border: 1px solid rgba(240,185,11,0.25);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,185,11,0.08), transparent 70%);
    pointer-events: none;
}

.wallet-balance-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.wallet-balance-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
    letter-spacing: 1px;
}

.wallet-balance-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.wallet-balance-actions .btn {
    flex: 1;
    font-size: 0.82rem;
    padding: 10px 16px;
}

.wallet-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
}

.wallet-quick-action:hover {
    border-color: rgba(240,185,11,0.3);
    transform: translateY(-2px);
}

.wallet-quick-action:active {
    transform: scale(0.96);
}

.wallet-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.wallet-quick-action-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ================================================
   ====== TOAST NOTIFICATIONS (Bottom on mobile) ======
   ================================================ */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(20, 27, 45, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 420px;
    animation: toastSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.toast.toast-success::before { background: var(--green); }
.toast.toast-error::before { background: var(--red); }
.toast.toast-warning::before { background: var(--amber); }
.toast.toast-info::before { background: var(--cyan); }

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--green); }
.toast-error .toast-icon { color: var(--red); }
.toast-warning .toast-icon { color: var(--amber); }
.toast-info .toast-icon { color: var(--cyan); }

.toast-message {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.toast.removing {
    animation: toastSlideDown 0.3s ease forwards;
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* ================================================
   ====== BOTTOM SHEET MODAL (NEW - APK style) ======
   ================================================ */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5001;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: var(--safe-area-bottom);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border-light);
    border-radius: 4px;
    margin: 10px auto 0;
}

.bottom-sheet-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.bottom-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.bottom-sheet-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.bottom-sheet-body {
    padding: 16px 20px 24px;
}

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ====== UTILITY CLASSES ====== */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ================================================
   ====== PAGE TITLE BAR (APK page header) ======
   ================================================ */
.page-title-bar {
    padding: calc(var(--app-bar-height) + var(--safe-area-top) + 24px) 16px 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title-bar h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.page-title-bar p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ====== NOTIFICATION BELL & DROPDOWN ====== */
.nav-notification {
    position: relative;
}

.nav-notification-bell {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.05rem;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.nav-notification-bell:hover {
    color: var(--gold);
    background: rgba(240, 185, 11, 0.08);
}

.nav-notification-bell:active {
    transform: scale(0.92);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    animation: notifBadgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255,23,68,0.5);
}

@keyframes notifBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown - Bottom sheet on mobile */
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    overflow: hidden;
    margin-top: 8px;
}

.notif-dropdown.open {
    display: block;
    animation: notifSlideIn 0.25s ease;
}

@keyframes notifSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(240,185,11,0.03);
}

.notif-dropdown-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-dropdown-title i { font-size: 0.7rem; }

.notif-mark-all {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50px;
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.notif-mark-all:hover {
    background: rgba(0,229,255,0.1);
    color: var(--cyan);
}

.notif-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

.notif-dropdown-body::-webkit-scrollbar { width: 3px; }
.notif-dropdown-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.notif-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notif-24h-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.notif-24h-hint i { font-size: 0.55rem; }

/* Notification Items */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(30,42,69,0.5);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.notif-item:hover {
    background: rgba(240,185,11,0.04);
}

.notif-item:active {
    background: rgba(240,185,11,0.08);
}

.notif-item:last-child { border-bottom: none; }

.notif-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.notif-type-info .notif-item-icon { background: rgba(0,229,255,0.12); color: var(--cyan); }
.notif-type-success .notif-item-icon { background: rgba(0,230,118,0.12); color: var(--green); }
.notif-type-warning .notif-item-icon { background: rgba(255,171,0,0.12); color: var(--amber); }
.notif-type-error .notif-item-icon { background: rgba(255,23,68,0.12); color: var(--red); }
.notif-type-deposit .notif-item-icon { background: rgba(0,230,118,0.12); color: var(--green); }
.notif-type-withdraw .notif-item-icon { background: rgba(240,185,11,0.12); color: var(--gold); }
.notif-type-game .notif-item-icon { background: rgba(124,77,255,0.12); color: var(--purple); }
.notif-type-referral .notif-item-icon { background: rgba(83,109,254,0.12); color: var(--indigo); }
.notif-type-admin .notif-item-icon { background: rgba(255,145,0,0.12); color: var(--orange); }

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.notif-item-msg {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.notif-item-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 6px var(--gold-glow);
}

.notif-item.notif-read {
    opacity: 0.6;
}

.notif-item.notif-unread {
    background: rgba(240,185,11,0.02);
}

.notif-loading,
.notif-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.notif-loading i,
.notif-empty i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.3;
}

.notif-empty small {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.notif-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998;
}

.notif-overlay.open { display: block; }

/* ====== LOADING SPINNER ====== */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(240,185,11,0.2);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
    display: inline-block;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ====== GLOW EFFECTS ====== */
.glow-gold {
    box-shadow: 0 0 20px var(--gold-glow);
}

.glow-green {
    box-shadow: 0 0 20px var(--green-glow);
}

.glow-red {
    box-shadow: 0 0 20px var(--red-glow);
}

/* ====== MOBILE NAV OVERLAY ====== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-overlay.open {
    display: block;
    animation: overlayFadeIn 0.25s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================================
   ====== APK-STYLE SETTINGS LIST (NEW) ======
   ================================================ */
.settings-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(30,42,69,0.5);
    cursor: pointer;
    transition: var(--transition);
    min-height: 52px;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:active {
    background: rgba(240,185,11,0.06);
}

.settings-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.settings-item-content {
    flex: 1;
    min-width: 0;
}

.settings-item-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-item-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.settings-item-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.settings-item-danger .settings-item-title {
    color: var(--red);
}

/* ================================================
   ====== APK-STYLE TOGGLE SWITCH (NEW) ======
   ================================================ */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border-light);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-switch-slider {
    background: var(--gold);
}

.toggle-switch input:checked + .toggle-switch-slider::before {
    transform: translateX(20px);
}

/* ================================================
   ====== APK-STYLE CHIPS / TAGS (NEW) ======
   ================================================ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    min-height: 32px;
    cursor: pointer;
    border: 1px solid transparent;
}

.chip-active {
    background: rgba(240,185,11,0.12);
    border-color: rgba(240,185,11,0.3);
    color: var(--gold);
}

.chip-default {
    background: rgba(30,42,69,0.5);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.chip:active {
    transform: scale(0.95);
}

/* ================================================
   ====== APK-STYLE FAB BUTTON (NEW) ======
   ================================================ */
.fab {
    position: absolute;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: var(--transition);
    cursor: pointer;
    color: #ffffff;
}

.fab:active {
    transform: scale(0.92);
}

.fab-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.fab-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #000;
    box-shadow: 0 4px 20px var(--green-glow);
}

/* ================================================
   ====== APK-STYLE PROGRESS BAR (NEW) ======
   ================================================ */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--gold), var(--green));
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ================================================
   ====== APK-STYLE AVATAR STACK (NEW) ======
   ================================================ */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: -8px;
}

.avatar-stack-item:first-child {
    margin-left: 0;
}

/* ================================================
   ====== APK-STYLE SKELETON LOADER (NEW) ======
   ================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius-lg);
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ================================================
   ====== ANIMATED GRADIENT BORDER (NEW) ======
   ================================================ */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    padding: 1px;
    background: linear-gradient(
        var(--gradient-angle, 135deg),
        var(--gold),
        var(--cyan),
        var(--violet),
        var(--gold)
    );
    background-size: 300% 300%;
    animation: gradientRotate 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ====== PULSING GLOW EFFECT (NEW) ====== */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(240,185,11,0.15); }
    50% { box-shadow: 0 0 24px rgba(240,185,11,0.35), 0 0 48px rgba(240,185,11,0.1); }
}

/* ================================================
   ====== RESPONSIVE - TABLET (768px+) ======
   ================================================ */
@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .earn-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .profile-header {
        flex-direction: row;
        text-align: left;
        padding: 28px 24px;
    }

    .profile-referral {
        margin-left: auto;
        text-align: right;
    }

    .profile-grid {
        grid-template-columns: 2fr 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: row;
    }

    .footer-disclaimer {
        text-align: right;
    }

    .auth-card {
        padding: 36px 32px;
    }

    .demo-bet-area {
        flex-direction: row;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.4rem);
    }

    .hero-stats {
        gap: 36px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section {
        padding: 64px 24px;
    }

    /* Toast on tablet - right side like desktop */
    .toast-container {
        bottom: 24px;
        left: auto;
        right: 24px;
        width: auto;
        align-items: flex-end;
    }

    .toast {
        width: auto;
        min-width: 320px;
    }

    /* Notification dropdown - right side on tablet */
    .notif-dropdown {
        right: 0;
        left: auto;
    }
}

/* ================================================
   ====== RESPONSIVE - DESKTOP (1024px+) ======
   ================================================ */
@media (min-width: 1024px) {
    /* Show desktop sidebars */
    .desktop-sidebar {
        display: block;
    }

    /* Show nav links in top bar */
    .nav-links {
        display: flex;
    }

    /* Hide hamburger */
    .nav-toggle {
        display: none;
    }

    /* Remove bottom nav padding from body on desktop */
    body {
        padding-bottom: 0;
    }

    /* Adjust content for sidebar width */
    .navbar {
        left: var(--desktop-sidebar-width);
        right: var(--desktop-sidebar-width);
    }

    .bottom-nav {
        display: none;
    }

    .footer {
        margin-bottom: 0;
        margin-left: var(--desktop-sidebar-width);
        margin-right: var(--desktop-sidebar-width);
    }

    /* Main content area offset for sidebars */
    .hero,
    .section,
    .auth-page,
    .profile-page,
    .wallet-page,
    .page-title-bar {
        margin-left: var(--desktop-sidebar-width);
        margin-right: var(--desktop-sidebar-width);
    }

    /* Toast - top right on desktop */
    .toast-container {
        top: calc(var(--app-bar-height) + var(--safe-area-top) + 16px);
        bottom: auto;
        left: auto;
        right: calc(var(--desktop-sidebar-width) + 16px);
    }

    .toast {
        animation: toastIn 0.3s ease;
        border-radius: var(--radius-md);
    }

    @keyframes toastIn {
        from { opacity: 0; transform: translateX(40px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .toast.removing {
        animation: toastOut 0.3s ease forwards;
    }

    @keyframes toastOut {
        from { opacity: 1; transform: translateX(0); }
        to { opacity: 0; transform: translateX(40px); }
    }

    /* Games grid - more columns on desktop */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .game-card {
        padding: 24px;
    }

    .game-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .game-card-name {
        font-size: 1rem;
    }

    .earn-grid {
        gap: 20px;
    }

    .earn-card {
        padding: 32px 24px;
    }

    .steps-grid {
        gap: 20px;
    }

    .step-card {
        padding: 32px 20px;
    }

    .section {
        padding: 80px 32px;
    }

    .hero {
        padding: 80px 32px 60px;
    }

    .hero-stats {
        gap: 48px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Notification dropdown on desktop */
    .notif-dropdown {
        width: 380px;
    }

    /* Hide mobile overlay menu */
    .nav-overlay {
        display: none !important;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 24px;
        transform: none;
        border: none;
    }

    .nav-links a {
        padding: 4px 0;
        font-size: 0.82rem;
        width: auto;
        border-bottom: none;
    }

    /* Desktop content frame - phone frame look */
    .desktop-content-frame {
        display: block;
        position: fixed;
        top: calc(var(--app-bar-height) + var(--safe-area-top));
        left: var(--desktop-sidebar-width);
        right: var(--desktop-sidebar-width);
        bottom: 0;
        border-left: 1px solid rgba(30, 42, 69, 0.3);
        border-right: 1px solid rgba(30, 42, 69, 0.3);
        pointer-events: none;
        z-index: 1;
    }

    /* Language toggle visible on desktop */
    .lang-toggle {
        display: inline-flex;
    }
}

/* ================================================
   ====== RESPONSIVE - LARGE DESKTOP (1440px+) ======
   ================================================ */
@media (min-width: 1440px) {
    :root {
        --desktop-sidebar-width: 160px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .container {
        max-width: 1280px;
    }
}

/* ================================================
   ====== RESPONSIVE - SMALL MOBILE (480px and below) ======
   ================================================ */
@media (max-width: 480px) {
    .hero {
        padding: 24px 12px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card {
        padding: 14px 12px;
    }

    .game-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .game-card-name {
        font-size: 0.82rem;
    }

    .game-card-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .game-card-meta {
        padding-top: 8px;
    }

    .game-card-play {
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    .game-card-tag {
        top: 8px;
        right: 8px;
        padding: 2px 6px;
        font-size: 0.55rem;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .section {
        padding: 36px 12px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .bets-table {
        font-size: 0.72rem;
    }

    .bets-table thead th,
    .bets-table tbody td {
        padding: 8px 8px;
    }

    .earn-grid {
        gap: 12px;
    }

    .earn-card {
        padding: 20px 16px;
    }

    /* Bottom nav adjustments for very small screens */
    .bottom-nav-item i {
        font-size: 20px;
    }

    .bottom-nav-item span {
        font-size: 9px;
    }

    /* Toast full-width on small mobile */
    .toast {
        border-radius: var(--radius-md);
    }

    /* Notification dropdown full-width on mobile */
    /*.notif-dropdown {*/
    /*    position: fixed;*/
    /*    top: auto;*/
    /*    bottom: 0;*/
    /*    left: 0;*/
    /*    right: 0;*/
    /*    width: 100%;*/
    /*    max-height: 70vh;*/
    /*    border-radius: var(--radius-xl) var(--radius-xl) 0 0;*/
    /*    margin-top: 0;*/
    /*}*/

    /*.notif-dropdown.open {*/
    /*    animation: notifBottomSheetIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
    /*}*/

    @keyframes notifBottomSheetIn {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Auth card more compact */
    .auth-card {
        padding: 24px 16px;
    }

    /* Wallet balance card compact */
    .wallet-balance-value {
        font-size: 1.6rem;
    }

    .wallet-quick-actions {
        gap: 8px;
    }

    .wallet-quick-action {
        padding: 12px 6px;
    }
}

/* ================================================
   ====== RESPONSIVE - EXTRA SMALL (360px and below) ======
   ================================================ */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-wallet {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .bottom-nav-item span {
        font-size: 8px;
    }

    .bottom-nav-item i {
        font-size: 18px;
    }
}

/* ================================================
   ====== LANDSCAPE ORIENTATION ======
   ================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .bottom-nav {
        height: 48px;
    }

    .bottom-nav-item i {
        font-size: 18px;
    }

    .bottom-nav-item span {
        display: none;
    }

    .bottom-nav-item.active::before {
        width: 24px;
        height: 2px;
    }

    .hero {
        min-height: auto;
        padding: 24px 16px;
    }

    .splash-screen {
        flex-direction: row;
        gap: 16px;
    }

    .splash-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .splash-logo-text {
        font-size: 1.6rem;
    }
}

/* ================================================
   ====== PREFER-REDUCED-MOTION ======
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .splash-screen {
        display: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ================================================
   ====== DARK MODE OVERRIDES (System preference) ======
   ================================================ */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless - this is a gaming platform */
}

/* ================================================
   ====== PRINT STYLES ======
   ================================================ */
@media print {
    .navbar,
    .bottom-nav,
    .desktop-sidebar,
    .splash-screen,
    .toast-container,
    .bottom-sheet,
    .bottom-sheet-overlay,
    #particleCanvas {
        display: none !important;
    }

    body {
        padding: 0;
        background: #fff;
        color: #000;
    }

    .hero,
    .section,
    .profile-page,
    .wallet-page {
        margin: 0;
        padding: 20px;
    }
}

/* ================================================
   ====== HOVER MEDIA QUERY (Touch devices) ======
   ================================================ */
@media (hover: none) {
    .game-card:hover {
        transform: none;
        box-shadow: none;
    }

    .game-card:active {
        transform: scale(0.97);
        box-shadow: var(--shadow-md);
    }

    .earn-card:hover {
        transform: none;
    }

    .earn-card:active {
        transform: scale(0.98);
    }

    .step-card:hover {
        transform: none;
    }

    .step-card:active {
        transform: scale(0.97);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.96);
    }

    /* Disable hover ::before sweep on touch */
    .btn::before {
        display: none;
    }

    .nav-links a:hover::after {
        width: 0;
    }
}

/* ================================================
   ====== PWA STANDALONE MODE ======
   ================================================ */
@media (display-mode: standalone) {
    .navbar {
        padding-top: var(--safe-area-top);
    }

    body {
        padding-top: calc(var(--app-bar-height) + var(--safe-area-top));
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    }

    /* Hide browser-like elements in standalone */
    .nav-toggle {
        display: none;
    }
}

/* ====== ADDITIONAL APK FEEL ENHANCEMENTS ====== */

/* Smooth scrolling for iOS */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    .notif-dropdown-body,
    .bottom-sheet {
        -webkit-overflow-scrolling: touch;
    }
}

/* Status bar background for PWA */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }

    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }

    body {
        padding-top: calc(var(--app-bar-height) + env(safe-area-inset-top));
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    }
}

/* Focus styles for accessibility (keyboard nav) */
.btn:focus-visible,
.form-input:focus-visible,
.nav-links a:focus-visible,
.bottom-nav-item:focus-visible,
.game-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Disable outline for mouse users */
.btn:focus:not(:focus-visible),
.form-input:focus:not(:focus-visible),
.nav-links a:focus:not(:focus-visible),
.bottom-nav-item:focus:not(:focus-visible) {
    outline: none;
}

/* ================================================
   ====== NEON TEXT ANIMATION (NEW) ======
   ================================================ */
.neon-text {
    animation: neonTextFlicker 3s ease-in-out infinite;
}

@keyframes neonTextFlicker {
    0%, 100% { text-shadow: 0 0 8px var(--gold-glow); }
    50% { text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(240,185,11,0.1); }
}

/* ================================================
   ====== MATRIX RAIN EFFECT (CSS-only fallback) ======
   ================================================ */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.06;
}

.matrix-rain-char {
    position: absolute;
    font-family: monospace;
    font-size: 12px;
    color: var(--green);
    animation: matrixFall 4s linear infinite;
}

@keyframes matrixFall {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(1000%); opacity: 0; }
}

/* ================================================
   ====== CARD SHIMMER EFFECT (NEW) ======
   ================================================ */
.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(240, 185, 11, 0.04),
        transparent
    );
    animation: cardShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* ================================================
   ====== REFERRAL PAGE STYLES (NEW) ======
   ================================================ */
.referral-page {
    padding: calc(var(--app-bar-height) + var(--safe-area-top) + 16px) 16px calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 16px);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 2;
}

.referral-code-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.referral-code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--violet), var(--purple));
}

.referral-code-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 4px;
    padding: 12px;
    background: rgba(240,185,11,0.06);
    border: 1px dashed rgba(240,185,11,0.3);
    border-radius: var(--radius-md);
    margin: 12px 0;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.referral-stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
}

.referral-stat-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
}

.referral-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== END OF STYLESHEET ====== */

/* ================================================
   ====== APP TOP BAR (NEW HEADER) ======
   ================================================ */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(var(--app-bar-height) + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(30, 42, 69, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 12px;
    transition: var(--transition);
}

.app-topbar.topbar-scrolled {
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar-back-btn,
.topbar-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.08);
    color: var(--gold);
    font-size: 0.9rem;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    border: none;
    cursor: pointer;
}

.topbar-back-btn:active,
.topbar-hamburger:active {
    transform: scale(0.92);
    background: rgba(240, 185, 11, 0.2);
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 0 0 16px var(--gold-glow);
    text-decoration: none;
}

.topbar-logo i {
    font-size: 0.9rem;
    color: var(--green);
    text-shadow: 0 0 12px var(--green-glow);
}

.topbar-center {
    flex: 1;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar-wallet {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(240, 185, 11, 0.08);
    border: 1px solid rgba(240, 185, 11, 0.25);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.topbar-wallet:active {
    transform: scale(0.96);
}

.topbar-wallet i {
    font-size: 0.8rem;
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}

.topbar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 36px;
    border-radius: 0%;
    background: rgba(240, 185, 11, 0.08);
    color: var(--gold);
    font-size: 0.85rem;
    text-decoration: none;
    min-width: 44px;
    min-height: 30px;
    transition: var(--transition);
}

.topbar-action-btn.register {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}

.topbar-action-btn:active {
    transform: scale(0.92);
}

/* ================================================
   ====== MOBILE DRAWER (Slide-from-left) ======
   ================================================ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--bg-secondary);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(240,185,11,0.08), rgba(0,230,118,0.05));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: #000;
    flex-shrink: 0;
}

.drawer-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.drawer-balance {
    font-size: 0.78rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.drawer-login-link {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

.guest-profile .drawer-avatar {
    background: rgba(240, 185, 11, 0.15);
    color: var(--gold);
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    transition: var(--transition);
}

.drawer-close:active {
    background: rgba(255,23,68,0.15);
    color: var(--red);
}

.drawer-body {
    padding: 12px 0;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.drawer-link:active {
    background: rgba(240, 185, 11, 0.08);
}

.drawer-link.active {
    color: var(--gold);
    background: rgba(240, 185, 11, 0.06);
    border-left-color: var(--gold);
}

.drawer-link i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.drawer-link.active i {
    color: var(--gold);
}

.drawer-link-logout {
    color: var(--red);
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding-top: 20px;
}

.drawer-link-logout i {
    color: var(--red);
}

/* Body drawer-open state */
body.drawer-open {
    overflow: hidden;
}

/* Splash screen fade-out class */
.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Desktop: show nav links in topbar */
@media (min-width: 1024px) {
    .topbar-center {
        display: none;
    }
    
    .topbar-back-btn,
    .topbar-hamburger {
        display: none !important;
    }
    
    .app-topbar {
        padding-left: calc(var(--desktop-sidebar-width) + 16px);
        padding-right: calc(var(--desktop-sidebar-width) + 16px);
    }
    
    .desktop-sidebar {
        display: block !important;
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
    
    .mobile-drawer {
        display: none !important;
    }
    
    .nav-overlay {
        display: none !important;
    }
}

/* Mobile: hide wallet text on very small screens */
@media (max-width: 380px) {
    .topbar-wallet span {
        display: none;
    }
    
    .topbar-logo span {
        display: none;
    }
}
