/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #dc2626;
    --accent-bright: #ef4444;
    --accent-dim: rgba(220, 38, 38, 0.15);
    --accent-glow: rgba(220, 38, 38, 0.3);
    --bg-dark: #0a0a14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --text-muted: #666;
    --header-height: 70px;
    --radius: 12px;
    --radius-sm: 8px;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Fixed Background ─── */
.bg-fixed {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/backgroundB.png') center center / cover no-repeat;
    z-index: 0;
}
.bg-fixed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* ─── Header ─── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex; align-items: center;
}
.header-inner {
    width: 100%; max-width: 1400px; margin: 0 auto;
    padding: 0 2rem;
    display: flex; align-items: center; gap: 2rem;
}
.header-logo { flex-shrink: 0; }
.header-logo-img { height: 32px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 0.5rem; flex: 1; justify-content: center; }
.nav-link {
    color: var(--text-dim); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
    transition: all 0.2s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent-bright); background: var(--accent-dim); }
.header-right { flex-shrink: 0; }

/* ─── Auth ─── */
.btn-kick {
    display: flex; align-items: center; gap: 0.5rem;
    background: #1a1a2e; border: 1px solid #53fc18;
    color: #53fc18; padding: 0.5rem 1rem;
    border-radius: var(--radius-sm); text-decoration: none;
    font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
.btn-kick:hover { background: rgba(83,252,24,0.1); }
.user-profile { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-profile-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.btn-logout { color: var(--text-dim); text-decoration: none; font-size: 0.75rem; padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: 4px; }

/* ─── Mobile ─── */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; background: rgba(10,10,20,0.98); padding: 1rem; flex-direction: column; gap: 0.25rem; z-index: 999; border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: flex; }

/* ─── Main Content ─── */
.main-content { position: relative; z-index: 1; min-height: calc(100vh - var(--header-height) - 80px); padding-top: calc(var(--header-height) + 2rem); padding-bottom: 2rem; max-width: 1400px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }

/* ─── Footer ─── */
.site-footer { position: relative; z-index: 1; background: rgba(10,10,20,0.92); backdrop-filter: blur(20px); border-top: 1px solid var(--border); padding: 1.5rem 2rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-socials { display: flex; gap: 1rem; }
.social-link { color: var(--text-dim); transition: all 0.2s; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); }
.social-link:hover { color: var(--accent-bright); border-color: var(--accent); background: var(--accent-dim); }
.footer-text p { color: var(--text-muted); font-size: 0.8rem; }

/* ─── Page Sections ─── */
.page-hero { text-align: center; padding: 4rem 0 3rem; }
.page-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(135deg, var(--accent-bright) 0%, #ff6b6b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ─── Cards & Buttons ─── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: all 0.3s; }
.card:hover { background: var(--bg-card-hover); border-color: rgba(220,38,38,0.2); transform: translateY(-2px); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ─── Tables ─── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: rgba(255,255,255,0.03); padding: 1rem; text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 0.875rem 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Home ─── */
.hero-logos { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.hero-logo { height: 110px; width: auto; object-fit: contain; }
.hero-logo-stake { height: 80px; margin-top: 0; }
.hero-slogan { font-size: 2rem; font-weight: 800; text-align: center; color: var(--accent-bright); margin: 0.5rem 0; line-height: 1.2; text-transform: uppercase; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.promo-btn { display: block; border-radius: var(--radius); overflow: hidden; transition: all 0.3s; border: 2px solid transparent; }
.promo-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px var(--accent-glow); }
.promo-btn img { height: 180px; width: auto; display: block; }
.kick-embed-wrapper { width: 100%; aspect-ratio: 16/9; max-width: 900px; margin: 3rem auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.kick-embed-wrapper iframe { width: 100%; height: 100%; display: block; }

/* ─── Leaderboard ─── */
.leaderboard-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.lb-nav-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: var(--accent-bright); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.lb-nav-btn:hover { background: var(--accent-dim); border-color: var(--accent); }
.leaderboard-period { text-align: center; font-size: 1.2rem; font-weight: 700; }
.leaderboard-period small { font-size: 0.75rem; color: var(--accent-bright); font-weight: 600; letter-spacing: 1px; }
.podium-section { margin-bottom: 2rem; }
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1rem; align-items: end; max-width: 900px; margin: 0 auto; }
.podium-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.podium-card.podium-1st { border-color: #FFD700; background: rgba(255,215,0,0.05); padding: 2rem 1.5rem; }
.podium-card.podium-2nd { border-color: #C0C0C0; background: rgba(192,192,192,0.03); }
.podium-card.podium-3rd { border-color: #CD7F32; background: rgba(205,127,50,0.03); }
.podium-rank { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: 0.85rem; margin-bottom: 0.75rem; }
.podium-1st .podium-rank { background: rgba(255,215,0,0.2); color: #FFD700; }
.podium-2nd .podium-rank { background: rgba(192,192,192,0.2); color: #C0C0C0; }
.podium-3rd .podium-rank { background: rgba(205,127,50,0.2); color: #CD7F32; }
.podium-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.podium-wagered { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.podium-wagered strong { color: var(--text); }
.podium-payout { font-size: 0.9rem; color: var(--text-dim); }
.podium-payout span { color: var(--accent-bright); font-weight: 700; }
.podium-trophy { font-size: 1.5rem; margin-top: 0.75rem; }
.countdown-section { text-align: center; margin: 2rem 0; }
.countdown-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 0.5rem; }
.countdown-timer { display: inline-flex; align-items: center; gap: 0.15rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 1.25rem; }
.cd-num { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 0.65rem; color: var(--accent-bright); font-weight: 600; margin-right: 0.25rem; }
.cd-sep { color: var(--text-muted); font-size: 1.2rem; margin: 0 0.15rem; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: 0.8rem; }
.rank-1 td { background: rgba(255,215,0,0.05); }
.rank-2 td { background: rgba(192,192,192,0.05); }
.rank-3 td { background: rgba(205,127,50,0.05); }
.rank-1 .rank-badge { background: rgba(255,215,0,0.2); color: #FFD700; }
.rank-2 .rank-badge { background: rgba(192,192,192,0.2); color: #C0C0C0; }
.rank-3 .rank-badge { background: rgba(205,127,50,0.2); color: #CD7F32; }

/* ─── Wheels ─── */
.slot-wheel-wrapper { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.slot-wheel-frame { position: relative; width: 100%; max-width: 700px; height: 432px; overflow: hidden; border: 3px solid var(--accent); border-radius: var(--radius); background: rgba(10,15,40,0.95); box-shadow: 0 0 40px var(--accent-glow), inset 0 0 60px rgba(0,0,0,0.5); }
.slot-wheel-highlight { position: absolute; top: 50%; left: 0; right: 0; height: 72px; transform: translateY(-50%); border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); background: rgba(220,38,38,0.08); z-index: 2; pointer-events: none; }
.slot-wheel-list { will-change: transform; }
.slot-wheel-row { display: grid; grid-template-columns: 50px 1fr 1fr; align-items: center; height: 72px; padding: 0 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.slot-wheel-row.winner { background: rgba(220,38,38,0.15); }
.swr-num { font-size: 0.9rem; color: var(--accent-bright); font-weight: 600; }
.swr-name { font-size: 1.1rem; font-weight: 700; }
.swr-choice { font-size: 0.9rem; color: var(--text-dim); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-wheel-empty { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--text-muted); }
.slot-wheel-spin-btn { font-size: 1.1rem; padding: 1rem 3rem; letter-spacing: 1px; }

/* ─── VIP Eligibility ─── */
.vip-elig-card { max-width: 700px; margin: 0 auto 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); text-align: center; }
.vip-elig-card.eligible { background: rgba(220,38,38,0.05); border: 1px solid rgba(220,38,38,0.3); color: var(--text); }
.vip-elig-card.locked { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: var(--text-dim); }

/* ─── Forms ─── */
.admin-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.form-input { padding: 0.6rem 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.85rem; font-family: inherit; width: 100%; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }

/* ─── Wager Rewards ─── */
.wager-notice { background: rgba(255,193,7,0.08); border: 1px solid rgba(255,193,7,0.3); border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; text-align: center; font-size: 0.8rem; color: #ffc107; margin-bottom: 2rem; }
.wager-table-wrapper { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.wager-table { width: 100%; border-collapse: collapse; }
.wager-table thead th { background: rgba(255,255,255,0.03); padding: 1rem 1.25rem; text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.wager-row { border-bottom: 1px solid var(--border); transition: background 0.2s; }
.wager-row:hover { background: rgba(255,255,255,0.02); }
.wager-row.unlocked { background: rgba(220,38,38,0.03); }
.wager-row td { padding: 0.9rem 1.25rem; text-align: center; font-size: 0.9rem; }
.wager-amount { font-weight: 700; }
.wager-reward-val { color: var(--accent-bright); font-weight: 700; }
.wager-total { color: var(--accent-bright); font-weight: 600; }
.wager-status { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }
.wager-status.locked { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.wager-status.eligible { background: var(--accent-dim); color: var(--accent-bright); }
.wager-legend { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-dim); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.locked { background: var(--text-muted); }
.legend-dot.eligible { background: var(--accent-bright); }

/* ─── Profile ─── */
.profile-container { max-width: 600px; margin: 0 auto; }
.profile-header-card { display: flex; align-items: center; gap: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.profile-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--accent); }
.profile-header-info h2 { font-size: 1.1rem; font-weight: 700; }
.profile-header-info p { font-size: 0.8rem; color: var(--accent-bright); }
.profile-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.profile-section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 0.5rem; }
.profile-section-desc { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1rem; line-height: 1.5; }
.profile-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.toggle-group { display: flex; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.toggle-btn { flex: 1; padding: 0.6rem 1rem; background: transparent; border: none; color: var(--text-dim); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.toggle-btn.active { background: var(--accent-dim); color: var(--accent-bright); }
.profile-save-btn { width: 100%; padding: 1rem; font-size: 1rem; }

/* ─── Bonus Hunts ─── */
.hunt-tabs { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.25rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.hunt-tab { flex: 1; padding: 0.6rem 1rem; background: transparent; border: none; color: var(--text-dim); font-size: 0.85rem; font-weight: 600; cursor: pointer; border-radius: 6px; transition: all 0.2s; }
.hunt-tab:hover { color: var(--text); }
.hunt-tab.active { color: var(--accent-bright); background: var(--accent-dim); }
.hunt-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.hunt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; cursor: pointer; transition: all 0.3s; }
.hunt-card:hover { border-color: rgba(220,38,38,0.3); transform: translateY(-2px); }
.hunt-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.25rem; }
.hunt-card-number { font-weight: 700; color: var(--accent-bright); }
.hunt-card-lb { font-size: 0.75rem; color: var(--accent-bright); cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.hunt-card-lb:hover { opacity: 1; text-decoration: underline; }
.hunt-card-date { font-size: 0.8rem; color: var(--text-muted); }
.hunt-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.hunt-stat-item { display: flex; justify-content: space-between; font-size: 0.85rem; }
.hunt-stat-label { color: var(--text-dim); }
.hunt-stat-value { font-weight: 600; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--accent-bright); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Loading ─── */
.loading-spinner { display: flex; justify-content: center; padding: 3rem; }
.loading-spinner::after { content: ''; width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent-bright); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-enter { animation: fadeIn 0.3s ease forwards; }

/* ─── Responsive ─── */
@media (max-width: 1024px) { .main-nav { display: none; } .mobile-menu-btn { display: flex; } .page-hero h1 { font-size: 2rem; } }
@media (max-width: 768px) { .header-inner { padding: 0 1rem; } .main-content { padding-left: 1rem; padding-right: 1rem; } .footer-inner { flex-direction: column; gap: 1rem; text-align: center; } .hero-cta { flex-direction: column; align-items: center; } .podium { grid-template-columns: 1fr; } }
