/* ============================================
   ZUPEE CLONE — DESIGN SYSTEM
   Color: Deep Purple #1A0533, Vibrant Yellow #FFD700
   Accent: Hot Pink #FF2D78, Green #00C853
   ============================================ */

:root {
    --bg-dark:     #0D0A1A;
    --bg-card:     #1A1530;
    --bg-glass:    rgba(255,255,255,0.06);
    --purple-deep: #1A0533;
    --purple-mid:  #2D1B69;
    --purple-light:#5B3FE8;
    --yellow:      #FFD700;
    --yellow-soft: #FFF176;
    --pink:        #FF2D78;
    --green:       #00C853;
    --cyan:        #00E5FF;
    --white:       #FFFFFF;
    --gray-100:    #F5F5F5;
    --gray-400:    #9E9E9E;
    --gray-600:    #616161;
    --text-main:   #FFFFFF;
    --text-sub:    #B0B0C8;
    --border:      rgba(255,255,255,0.1);
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --shadow-glow: 0 0 30px rgba(91,63,232,0.4);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================ SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius: 3px; }

/* ============================================ NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13,10,26,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(13,10,26,0.98); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.5px;
}
.logo-z {
    color: var(--yellow);
    font-size: 28px;
}
.logo-badge {
    font-size: 8px;
    font-weight: 700;
    background: var(--pink);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-balance {
    background: var(--green);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ============================================ BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--yellow) 0%, #FFA000 100%);
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,215,0,0.4);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-sub);
}
.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}
.btn-pink {
    background: linear-gradient(135deg, var(--pink) 0%, #C2185B 100%);
    color: white;
}
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,45,120,0.4); }

.btn-green {
    background: linear-gradient(135deg, var(--green) 0%, #00897B 100%);
    color: white;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,83,0.4); }

.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ============================================ NOTIFICATIONS */
.notif-wrapper { position: relative; }
.notif-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}
.notif-btn:hover { background: var(--border); }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notif-dropdown, .user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 280px;
    box-shadow: var(--shadow-card);
    display: none;
    z-index: 500;
    overflow: hidden;
}
.notif-dropdown.open, .user-dropdown.open { display: block; }
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.notif-item:hover { background: var(--bg-glass); }
.notif-item.unread { border-left: 3px solid var(--yellow); }
.notif-item strong { font-size: 13px; display: block; margin-bottom: 2px; }
.notif-item p { font-size: 12px; color: var(--text-sub); }
.notif-item small { font-size: 11px; color: var(--gray-600); }
.notif-empty { padding: 20px; text-align: center; color: var(--text-sub); font-size: 13px; }

/* USER DROPDOWN */
.user-menu-wrapper { position: relative; }
.user-avatar-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: white;
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.user-avatar-btn:hover { background: var(--border); }
.user-avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--purple-light), var(--pink));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-sub);
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg-glass); color: white; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); }
.logout-link { color: var(--pink) !important; }

/* ============================================ HAMBURGER */
.hamburger {
    display: none;
    background: none; border: none;
    color: white; font-size: 22px;
    cursor: pointer;
}

/* ============================================ PAGE CONTENT */
.page-content { padding-top: 64px; min-height: 100vh; }

/* ============================================ HERO */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px 60px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91,63,232,0.5) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 60%, rgba(255,45,120,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 20% 70%, rgba(0,229,255,0.15) 0%, transparent 60%),
        var(--bg-dark);
}
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,215,0,0.15);
    border: 1px solid rgba(255,215,0,0.3);
    color: var(--yellow);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 460px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 36px;
}
.stat-item {}
.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--yellow);
}
.stat-label {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 500;
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-phone {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, var(--bg-card), #0D0A1A);
    border: 2px solid rgba(91,63,232,0.5);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), var(--shadow-glow);
}
.phone-screen {
    padding: 20px 16px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple-mid) 0%, var(--bg-dark) 100%);
}
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.phone-logo { font-size: 16px; font-weight: 900; color: var(--yellow); }
.phone-wallet {
    background: rgba(0,200,83,0.2);
    border: 1px solid var(--green);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}
.phone-game-card {
    background: linear-gradient(135deg, #5B3FE8, var(--pink));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.phone-game-card::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.phone-game-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.phone-game-card p { font-size: 11px; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.phone-game-prize { font-size: 18px; font-weight: 900; color: var(--yellow); }
.phone-game-btn {
    position: absolute;
    bottom: 12px; right: 12px;
    background: white;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}
.phone-mini-games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.mini-game-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.mini-game-icon { font-size: 24px; margin-bottom: 4px; }
.mini-game-name { font-size: 10px; font-weight: 600; }
.mini-game-entry { font-size: 10px; color: var(--green); font-weight: 700; }

/* FLOATING BADGES */
.float-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-card);
    animation: floatBadge 3s ease-in-out infinite;
}
.float-badge-1 { top: 10%; left: -30%; animation-delay: 0s; }
.float-badge-2 { bottom: 20%; right: -25%; animation-delay: 1.5s; }
.float-badge span { font-size: 20px; display: block; margin-bottom: 4px; }
.float-badge strong { font-size: 13px; display: block; }
.float-badge small { font-size: 11px; color: var(--text-sub); }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================ SECTIONS */
.section { padding: 80px 24px; }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    display: inline-block;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.section-subtitle { font-size: 16px; color: var(--text-sub); max-width: 520px; margin: 0 auto; }

/* ============================================ GAME CARDS */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(91,63,232,0.5);
    box-shadow: var(--shadow-glow);
}
.game-card-banner {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}
.game-card-banner-ludo { background: linear-gradient(135deg, #1A237E, #4A148C); }
.game-card-banner-quiz { background: linear-gradient(135deg, #1B5E20, #006064); }
.game-card-banner-trivia { background: linear-gradient(135deg, #B71C1C, #880E4F); }
.game-card-banner-speed { background: linear-gradient(135deg, #E65100, #BF360C); }
.game-card-banner-mega { background: linear-gradient(135deg, #4A148C, #1A237E); }
.game-card-banner-daily { background: linear-gradient(135deg, #01579B, #006064); }

.game-card-live {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    animation: pulse 2s infinite;
}
.game-card-free {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.game-card-body { padding: 20px; }
.game-card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.game-card-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }
.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.game-meta-item {}
.game-meta-label { font-size: 10px; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.game-meta-value { font-size: 16px; font-weight: 700; color: var(--yellow); }
.game-meta-value.green { color: var(--green); }
.game-meta-value.pink { color: var(--pink); }

/* ============================================ LEADERBOARD */
.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.lb-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px 120px;
    padding: 14px 20px;
    background: rgba(91,63,232,0.2);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lb-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px 120px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: var(--transition);
}
.lb-row:hover { background: var(--bg-glass); }
.lb-row:last-child { border-bottom: none; }
.lb-row.top-1 { background: rgba(255,215,0,0.08); }
.lb-row.top-2 { background: rgba(192,192,192,0.05); }
.lb-row.top-3 { background: rgba(205,127,50,0.05); }
.lb-rank { font-size: 18px; font-weight: 900; text-align: center; }
.lb-rank.gold { color: var(--yellow); }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }
.lb-player { display: flex; align-items: center; gap: 12px; }
.lb-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--purple-light), var(--pink));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.lb-username { font-weight: 600; font-size: 14px; }
.lb-wins { font-weight: 600; font-size: 14px; color: var(--cyan); }
.lb-score { font-weight: 700; font-size: 14px; }
.lb-prize { font-weight: 700; font-size: 14px; color: var(--green); }

/* ============================================ HOW IT WORKS */
.how-it-works { background: rgba(91,63,232,0.05); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}
.step-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--purple-light); }
.step-num {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--purple-light), var(--pink));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 900;
    margin: 0 auto 20px;
}
.step-icon { font-size: 28px; margin-bottom: 8px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

/* ============================================ CTA BANNER */
.cta-banner {
    margin: 0 24px 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--purple-mid) 0%, #1A0533 50%, #2D0A5F 100%);
    border: 1px solid rgba(91,63,232,0.4);
    padding: 60px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.15), transparent 70%);
}
.cta-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}
.cta-banner p {
    font-size: 16px;
    color: var(--text-sub);
    margin-bottom: 32px;
    position: relative;
}
.cta-banner .btn { position: relative; }

/* ============================================ WALLET PAGE */
.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.wallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.wallet-card.primary {
    background: linear-gradient(135deg, var(--purple-mid), #1A0533);
    border-color: rgba(91,63,232,0.4);
}
.wallet-label { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; font-weight: 500; }
.wallet-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--yellow);
    margin-bottom: 20px;
}
.wallet-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* TRANSACTION LIST */
.tx-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tx-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.tx-item:hover { background: var(--bg-glass); }
.tx-item:last-child { border-bottom: none; }
.tx-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tx-icon.credit { background: rgba(0,200,83,0.15); }
.tx-icon.debit { background: rgba(255,45,120,0.15); }
.tx-info { flex: 1; }
.tx-title { font-size: 14px; font-weight: 600; }
.tx-date { font-size: 12px; color: var(--text-sub); }
.tx-amount { font-size: 16px; font-weight: 700; }
.tx-amount.credit { color: var(--green); }
.tx-amount.debit { color: var(--pink); }

/* ============================================ FORMS */
.form-wrapper {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}
.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}
.form-subtitle { text-align: center; color: var(--text-sub); font-size: 14px; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-sub); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--purple-light); background: rgba(91,63,232,0.1); }
.form-control::placeholder { color: var(--gray-600); }

.form-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-sub); }
.form-footer a { color: var(--yellow); font-weight: 600; }

/* ALERT */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}
.alert-error { background: rgba(255,45,120,0.15); border: 1px solid rgba(255,45,120,0.3); color: #FF6B6B; }
.alert-success { background: rgba(0,200,83,0.15); border: 1px solid rgba(0,200,83,0.3); color: var(--green); }

/* ============================================ PROFILE */
.profile-header {
    background: linear-gradient(135deg, var(--purple-mid), #1A0533);
    border: 1px solid rgba(91,63,232,0.3);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}
.profile-avatar-lg {
    width: 96px; height: 96px;
    background: linear-gradient(135deg, var(--purple-light), var(--pink));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 900;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.2);
}
.profile-info h2 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.profile-info p { color: var(--text-sub); font-size: 14px; margin-bottom: 16px; }
.profile-stats { display: flex; gap: 28px; }
.pstat { text-align: center; }
.pstat-num { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 900; color: var(--yellow); }
.pstat-label { font-size: 11px; color: var(--text-sub); font-weight: 500; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.profile-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

/* ============================================ REFERRAL */
.referral-box {
    background: linear-gradient(135deg, #1B5E20, #006064);
    border: 1px solid rgba(0,200,83,0.3);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    margin-bottom: 32px;
}
.referral-code {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--yellow);
    letter-spacing: 8px;
    background: rgba(0,0,0,0.3);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 20px 0;
    border: 2px dashed rgba(255,215,0,0.4);
}

/* ============================================ PAGE HEADER */
.page-header {
    background: linear-gradient(180deg, rgba(91,63,232,0.15) 0%, transparent 100%);
    padding: 60px 24px 40px;
    border-bottom: 1px solid var(--border);
}
.page-header-container { max-width: 1280px; margin: 0 auto; }
.page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    margin-bottom: 8px;
}
.page-header p { color: var(--text-sub); font-size: 16px; }

/* ============================================ FILTER TABS */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
    background: none;
}
.filter-tab.active, .filter-tab:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(255,215,0,0.1);
}

/* ============================================ GAME LOBBY */
.lobby-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.lobby-card:hover { border-color: rgba(91,63,232,0.5); transform: translateX(4px); }
.lobby-icon { font-size: 40px; flex-shrink: 0; }
.lobby-info { flex: 1; }
.lobby-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.lobby-meta { font-size: 13px; color: var(--text-sub); }
.lobby-meta span { margin-right: 16px; }
.lobby-prize { font-size: 22px; font-weight: 900; color: var(--yellow); margin-bottom: 8px; }

/* ============================================ TOAST */
.toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 280px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-card);
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--pink); }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================ FOOTER */
.footer {
    background: #060410;
    border-top: 1px solid var(--border);
    padding: 60px 24px 24px;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 20px; }
.footer-badges { display: flex; flex-direction: column; gap: 8px; }
.badge-cert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 500;
}
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; color: white; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: var(--text-sub); transition: var(--transition); }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--gray-600); }
.footer-disclaimer { font-size: 11px; margin-top: 6px; }

/* ============================================ ADMIN */
.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    padding: 24px 16px;
    overflow-y: auto;
}
.admin-main { margin-left: 240px; padding: 32px; min-height: 100vh; }
.admin-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-sub);
    transition: var(--transition);
    margin-bottom: 4px;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(91,63,232,0.2);
    color: white;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.stat-card-value {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--yellow);
}
.stat-card-label { font-size: 14px; color: var(--text-sub); font-weight: 500; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    background: rgba(91,63,232,0.2);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sub);
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-glass); }

/* ============================================ BADGE STATUS */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.badge-green { background: rgba(0,200,83,0.15); color: var(--green); }
.badge-pink { background: rgba(255,45,120,0.15); color: var(--pink); }
.badge-yellow { background: rgba(255,215,0,0.15); color: var(--yellow); }
.badge-gray { background: rgba(255,255,255,0.08); color: var(--text-sub); }

/* ============================================ EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-sub);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: white; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

/* ============================================ LOADING */
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--purple-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================ RESPONSIVE */
@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-subtitle, .hero-cta, .hero-stats { justify-content: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .wallet-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .lb-header, .lb-row { grid-template-columns: 50px 1fr 100px 100px; }
    .lb-header span:last-child, .lb-row > *:last-child { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(13,10,26,0.98);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    .games-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .cta-banner { padding: 40px 24px; }
    .footer-container { grid-template-columns: 1fr; gap: 28px; }
    .profile-header { flex-direction: column; text-align: center; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .lb-header, .lb-row { grid-template-columns: 50px 1fr 100px; }
    .lb-header span:nth-child(4), .lb-row > *:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .steps-grid { grid-template-columns: 1fr; }
    .form-wrapper { padding: 24px 20px; }
    .profile-stats { flex-wrap: wrap; gap: 16px; }
}

/* ============================================ UTILITIES */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-yellow { color: var(--yellow); }
.text-green { color: var(--green); }
.text-pink { color: var(--pink); }
.text-sub { color: var(--text-sub); }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
