/* ============================================================
   Kupa Tahmin — Premium Dark Gaming CSS
   789Fly inspired · Football themed · Telegram Mini App
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --bg:           #0D0D0F;
    --bg-card:      #161622;
    --bg-surface:   #1E1E2E;
    --bg-hover:     #252538;
    --border:       #2A2A3D;
    --orange:       #FF6B00;
    --orange-dim:   #cc5500;
    --gold:         #FFB800;
    --gold-dim:     #cc9200;
    --green:        #00C853;
    --red:          #FF3B3B;
    --blue:         #4B7BF5;
    --text-primary: #FFFFFF;
    --text-sec:     #A0A0B8;
    --text-muted:   #6B6B88;
    --nav-h:        68px;
    --safe-bottom:  env(safe-area-inset-bottom, 0px);
    --radius-card:  20px;
    --radius-btn:   14px;
    --radius-sm:    10px;
    --shadow-glow:  0 0 20px rgba(255, 107, 0, 0.35);
    --shadow-gold:  0 0 20px rgba(255, 184, 0, 0.35);
    --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.5);
    --font:         'Inter', system-ui, sans-serif;
    --transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
input, button, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── App Layout ─────────────────────────────────────────────── */
#app {
    min-height: 100vh;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

.app-content {
    min-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── Splash ─────────────────────────────────────────────────── */
.splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}
.splash-screen.fade-out { opacity: 0; pointer-events: none; }
.splash-screen.hidden    { display: none; }

.splash-content { text-align: center; }
.splash-logo { font-size: 72px; margin-bottom: 12px; animation: floatBounce 2s ease-in-out infinite; }
.splash-title { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--orange), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.splash-sub { color: var(--text-sec); margin-top: 6px; }
.splash-loader { width: 200px; height: 4px; background: var(--bg-surface); border-radius: 4px; margin: 28px auto 0; overflow: hidden; }
.splash-loader-bar {
    height: 100%; width: 40%;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    border-radius: 4px;
    animation: loadBar 1.4s ease-in-out infinite;
}
@keyframes loadBar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(600%); }
}
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* ── Page Transitions ───────────────────────────────────────── */
.page-enter { animation: slideUp 0.3s ease forwards; }
.page-exit  { animation: slideDown 0.15s ease forwards; opacity: 0; }
@keyframes slideUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ── Bottom Navigation ──────────────────────────────────────── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(22, 22, 34, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
}
.bottom-nav.hidden { display: none; }

.nav-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    transition: color var(--transition);
    padding: 8px 0;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--orange); }
.nav-item.active::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 32px; height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    border-radius: 0 0 4px 4px;
}
.nav-icon { transition: transform var(--transition); }
.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-label { font-size: 11px; font-weight: 500; }

/* ── Generic Page Styles ────────────────────────────────────── */
.page-header { padding: 20px 16px 8px; }
.page-title  { font-size: 22px; font-weight: 800; }
.bottom-spacer { height: 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.section-title  { font-size: 16px; font-weight: 700; }
.section-link   { font-size: 13px; color: var(--orange); font-weight: 600; }

/* ── Cards & Glassmorphism ──────────────────────────────────── */
.glass-card {
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-card);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--orange), #FF8C00);
    color: white; font-weight: 700; font-size: 15px;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition);
    width: 100%;
    border: none; cursor: pointer;
}
.btn-primary:active { transform: scale(0.97); box-shadow: none; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #FF8C00);
    box-shadow: var(--shadow-gold);
}

/* ── Loading Shimmer ────────────────────────────────────────── */
.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-surface) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    height: 80px; margin: 8px 16px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 14px; font-weight: 600;
    opacity: 0; transition: all 0.3s ease;
    z-index: 999; white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ────────────────────────────────────────────────────────────
   HOME PAGE
──────────────────────────────────────────────────────────── */
.page-home { padding-bottom: 8px; }

.home-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 16px 12px;
}
.home-greeting { display: flex; flex-direction: column; gap: 4px; }
.greeting-text { font-size: 15px; color: var(--text-sec); }
.greeting-text strong { color: var(--text-primary); }
.ranking-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: white; font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; width: fit-content;
}

.avatar-img, .avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--orange);
}
.avatar-placeholder {
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; color: var(--orange);
}

/* Coin Hero Card */
.coin-hero-card {
    margin: 0 16px;
    background: linear-gradient(135deg, #1A1030 0%, #0F1A30 50%, #1A0F20 100%);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    position: relative; overflow: hidden;
}
.coin-card-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255,107,0,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(255,184,0,0.08) 0%, transparent 60%);
}
.coin-card-content { position: relative; z-index: 1; }
.coin-label { font-size: 12px; font-weight: 600; color: var(--text-sec); text-transform: uppercase; letter-spacing: 1px; }
.coin-amount-big {
    font-size: 42px; font-weight: 900; line-height: 1.1;
    background: linear-gradient(135deg, #FFF 0%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-top: 4px;
}
.coin-sub-row { margin-top: 8px; }
.coin-sub { font-size: 13px; color: var(--text-sec); }
.coin-orb {
    position: absolute; right: -20px; top: -20px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255,107,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Daily Reward */
.daily-reward-card {
    margin: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: var(--radius-card);
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.daily-left { display: flex; align-items: center; gap: 12px; }
.daily-icon { font-size: 28px; }
.daily-title { font-size: 14px; font-weight: 700; }
.daily-sub   { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.btn-claim {
    position: relative;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold), #FF8C00);
    color: white; font-weight: 700; font-size: 14px;
    border-radius: var(--radius-btn);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 0 16px rgba(255,184,0,0.4);
}
.btn-claim:active { transform: scale(0.96); }
.btn-claim:disabled { background: var(--bg-surface); color: var(--text-muted); box-shadow: none; }
.claim-glow {
    position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: claimShine 2s ease-in-out infinite;
}
@keyframes claimShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Stats Row */
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; padding: 12px 16px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px; text-align: center;
}
.stat-val { display: block; font-size: 20px; font-weight: 800; color: var(--orange); }
.stat-label { display: block; font-size: 11px; color: var(--text-sec); margin-top: 2px; font-weight: 500; }

/* Today Matches Horizontal Scroll */
.today-matches-scroll {
    display: flex; gap: 10px;
    overflow-x: auto; padding: 0 16px 8px;
    scrollbar-width: none;
}
.today-matches-scroll::-webkit-scrollbar { display: none; }

.today-match-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition);
    active-color: var(--bg-hover);
}
.today-match-card:active { transform: scale(0.97); border-color: var(--orange); }
.tmatch-teams { display: flex; align-items: center; justify-content: space-between; }
.tmatch-team  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tmatch-team.right { }
.tmatch-flag  { font-size: 22px; }
.tmatch-name  { font-size: 11px; font-weight: 600; text-align: center; max-width: 60px; line-height: 1.2; }
.tmatch-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.score-display { font-size: 16px; font-weight: 800; color: var(--gold); }
.match-time   { font-size: 13px; font-weight: 700; color: var(--orange); }
.match-status-tag {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    padding: 2px 6px; border-radius: 4px;
    background: var(--bg-surface);
}
.status-live     .match-status-tag, .match-status-tag.status-live     { background: rgba(255,59,59,0.2); color: var(--red); }
.status-upcoming .match-status-tag, .match-status-tag.status-upcoming { background: rgba(255,107,0,0.2); color: var(--orange); }
.status-finished .match-status-tag, .match-status-tag.status-finished { background: var(--bg-surface); color: var(--text-muted); }

.tmatch-odds {
    display: flex; justify-content: space-around; margin-top: 10px;
    padding-top: 8px; border-top: 1px solid var(--border);
    font-size: 12px; font-weight: 700; color: var(--gold);
}

/* Active Predictions */
.active-preds-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.active-pred-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
    border-left: 3px solid var(--orange);
}
.status-border-won  { border-left-color: var(--green); }
.status-border-lost { border-left-color: var(--red); }
.status-border-pending { border-left-color: var(--orange); }
.pred-match-name { font-size: 13px; font-weight: 600; color: var(--text-sec); margin-bottom: 8px; }
.pred-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.pred-choice { color: var(--orange); font-weight: 600; }
.pred-odds   { color: var(--gold); font-weight: 700; }
.pred-stake  { color: var(--text-sec); }
.pred-potential { color: var(--green); font-weight: 600; }
.pred-date   { font-size: 11px; color: var(--text-muted); display: block; margin-top: 6px; }
.empty-state-sm { text-align: center; color: var(--text-muted); font-size: 14px; padding: 24px; }

/* ────────────────────────────────────────────────────────────
   MATCHES PAGE
──────────────────────────────────────────────────────────── */
.page-matches { }

.tab-bar {
    display: flex; gap: 8px; padding: 0 16px 12px;
    overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 13px; font-weight: 600; color: var(--text-sec);
    transition: all var(--transition);
    cursor: pointer;
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--orange), #FF8C00);
    color: white; border-color: transparent;
    box-shadow: 0 0 12px rgba(255,107,0,0.3);
}

.matches-list { padding: 0 16px; display: flex; flex-direction: column; gap: 0; }
.match-date-group { margin-bottom: 8px; }
.date-label {
    font-size: 12px; font-weight: 700; color: var(--text-sec);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 8px 0 6px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
    margin-bottom: 10px;
    transition: all var(--transition);
    overflow: hidden;
}
.match-card.clickable { cursor: pointer; }
.match-card.clickable:active { transform: scale(0.98); border-color: var(--orange); }
.match-card.has-pred { border-color: rgba(255, 107, 0, 0.35); }

.match-status-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.match-stage { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.live-badge  { font-size: 11px; font-weight: 700; color: var(--red); animation: pulse 1.5s infinite; }
.time-until  { font-size: 11px; color: var(--orange); font-weight: 600; }
.finished-tag{ font-size: 11px; color: var(--text-muted); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.match-teams {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 8px;
}
.team-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-block.right { }
.team-flag-lg { font-size: 32px; }
.team-name-lg { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; }
.match-center { text-align: center; }
.final-score {
    font-size: 22px; font-weight: 900; color: var(--gold);
    display: flex; align-items: center; gap: 4px;
}
.final-score span { color: var(--text-muted); font-size: 16px; }
.match-time-center { font-size: 18px; font-weight: 800; color: var(--orange); }

.odds-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 6px; margin-top: 12px;
}
.odds-cell {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 6px; text-align: center;
    transition: all var(--transition);
}
.odds-cell.my-choice {
    background: rgba(255,107,0,0.15);
    border-color: var(--orange);
}
.odds-cell-label { display: block; font-size: 10px; color: var(--text-muted); font-weight: 500; }
.odds-cell-val   { display: block; font-size: 14px; font-weight: 800; color: var(--gold); margin-top: 2px; }

.my-pred-badge {
    margin-top: 10px; padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600;
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.25);
    color: var(--orange);
}
.my-pred-badge.status-won  { background: rgba(0,200,83,0.1); border-color: rgba(0,200,83,0.3); color: var(--green); }
.my-pred-badge.status-lost { background: rgba(255,59,59,0.1); border-color: rgba(255,59,59,0.3); color: var(--red); }
.tap-to-predict { margin-top: 8px; font-size: 12px; color: var(--text-muted); text-align: center; }

.match-card-shimmer { height: 160px; margin-bottom: 10px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; }

/* ────────────────────────────────────────────────────────────
   LEADERBOARD PAGE
──────────────────────────────────────────────────────────── */
.page-leaderboard { }

.my-rank-card {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,184,0,0.1));
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
}
.my-rank-label { font-size: 13px; color: var(--text-sec); flex: 1; }
.my-rank-val   { font-size: 24px; font-weight: 900; color: var(--orange); }
.my-coins-val  { font-size: 14px; font-weight: 700; color: var(--gold); }

.podium { padding: 0 16px 16px; }
.podium-stage {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    align-items: flex-end; gap: 8px; height: 200px;
}
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium-avatar { position: relative; }
.podium-img, .podium-avatar-placeholder {
    width: 52px; height: 52px; border-radius: 50%;
    border: 3px solid var(--border);
}
.podium-avatar-placeholder {
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; color: var(--text-sec);
}
.podium-medal {
    position: absolute; bottom: -4px; right: -4px;
    font-size: 18px;
}
.podium-1 .podium-img, .podium-1 .podium-avatar-placeholder { border-color: var(--gold); width: 60px; height: 60px; }
.podium-2 .podium-img, .podium-2 .podium-avatar-placeholder { border-color: #C0C0C0; }
.podium-3 .podium-img, .podium-3 .podium-avatar-placeholder { border-color: #CD7F32; }
.podium-name  { font-size: 12px; font-weight: 700; text-align: center; }
.podium-coins { font-size: 11px; color: var(--gold); font-weight: 600; }
.podium-block {
    width: 100%; border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border); border-bottom: none;
}
.h-podium-1 { height: 90px; }
.h-podium-2 { height: 65px; }
.h-podium-3 { height: 45px; }
.podium-1 .podium-block { background: linear-gradient(180deg, rgba(255,184,0,0.15), var(--bg-card)); border-color: rgba(255,184,0,0.25); }
.is-me .podium-img, .is-me .podium-avatar-placeholder { box-shadow: 0 0 0 3px var(--orange); }

.lb-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.lb-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.lb-row.lb-me { border-color: rgba(255,107,0,0.4); background: rgba(255,107,0,0.07); }
.lb-rank { width: 28px; font-size: 14px; font-weight: 800; color: var(--text-sec); text-align: center; }
.lb-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.lb-avatar-ph {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: var(--orange);
}
.lb-avatar-wrap { flex-shrink: 0; }
.lb-user-info { flex: 1; min-width: 0; }
.lb-name     { display: block; font-size: 14px; font-weight: 700; }
.lb-username { display: block; font-size: 12px; color: var(--text-muted); }
.lb-coins    { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.lb-row-shimmer { height: 62px; }
.lb-sentinel { height: 40px; }

/* ────────────────────────────────────────────────────────────
   PROFILE PAGE
──────────────────────────────────────────────────────────── */
.profile-hero {
    padding: 20px 16px 16px; text-align: center;
}
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.profile-avatar, .profile-avatar-ph {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid var(--orange);
}
.profile-avatar-ph {
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: var(--orange);
}
.profile-level-ring {
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--orange), var(--gold)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.profile-name     { font-size: 22px; font-weight: 800; }
.profile-username { font-size: 14px; color: var(--text-sec); margin-top: 2px; }

.profile-coin-card {
    margin: 0 16px 12px;
    background: linear-gradient(135deg, #1A1030, #0F1A30);
    border: 1px solid rgba(255,107,0,0.25);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.pcc-label { font-size: 13px; color: var(--text-sec); font-weight: 600; }
.pcc-value {
    font-size: 28px; font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.profile-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; padding: 0 16px 12px;
}
.pstat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px; text-align: center;
}
.pstat-card.win  { border-color: rgba(0,200,83,0.25); }
.pstat-card.loss { border-color: rgba(255,59,59,0.25); }
.pstat-card.rate { border-color: rgba(75,123,245,0.25); }
.pstat-val   { display: block; font-size: 26px; font-weight: 900; color: var(--orange); }
.pstat-card.win  .pstat-val { color: var(--green); }
.pstat-card.loss .pstat-val { color: var(--red); }
.pstat-card.rate .pstat-val { color: var(--blue); }
.pstat-label { display: block; font-size: 12px; color: var(--text-sec); margin-top: 4px; font-weight: 500; }

.referral-card {
    margin: 0 16px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255,184,0,0.2);
    border-radius: var(--radius-card);
    padding: 16px;
}
.ref-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ref-title  { font-size: 15px; font-weight: 700; }
.ref-badge  {
    background: rgba(255,184,0,0.15);
    color: var(--gold); font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    border: 1px solid rgba(255,184,0,0.3);
}
.ref-desc   { font-size: 13px; color: var(--text-sec); margin-bottom: 12px; }
.ref-link-box {
    display: flex; gap: 8px; align-items: center;
    background: var(--bg-surface); border-radius: var(--radius-sm);
    padding: 10px 12px; margin-bottom: 10px;
}
.ref-link   { font-size: 12px; color: var(--text-sec); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-copy   {
    padding: 8px 14px; background: var(--orange);
    border-radius: 8px; color: white; font-size: 12px; font-weight: 700;
    white-space: nowrap; transition: all var(--transition); cursor: pointer;
}
.btn-copy:active { transform: scale(0.95); }
.ref-stats  { font-size: 13px; color: var(--text-sec); }

.tx-list    { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.tx-row     { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.tx-icon    { font-size: 22px; flex-shrink: 0; }
.tx-info    { flex: 1; min-width: 0; }
.tx-desc    { display: block; font-size: 13px; font-weight: 600; }
.tx-date    { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tx-amount  { font-size: 14px; font-weight: 800; white-space: nowrap; }
.tx-positive .tx-amount { color: var(--green); }
.tx-negative .tx-amount { color: var(--red); }

.profile-settings { margin: 8px 16px 16px; }
.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px;
}
.setting-info { display: flex; align-items: center; gap: 10px; }
.setting-icon { font-size: 20px; }
.setting-label { font-size: 14px; font-weight: 600; }

/* Toggle Switch */
.toggle-switch { position: relative; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--bg-surface); border-radius: 26px;
    transition: var(--transition); cursor: pointer;
    border: 1px solid var(--border);
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--text-muted);
    left: 3px; top: 3px;
    transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: rgba(255,107,0,0.2); border-color: var(--orange); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); background: var(--orange); }

/* ────────────────────────────────────────────────────────────
   RULES PAGE
──────────────────────────────────────────────────────────── */
.rules-page {
    min-height: 100vh; display: flex; flex-direction: column;
    padding-bottom: 120px;
}
.rules-header {
    background: linear-gradient(135deg, #0F1A30 0%, #1A0F20 100%);
    padding: 40px 20px 30px; text-align: center;
}
.rules-trophy { font-size: 56px; margin-bottom: 12px; animation: floatBounce 3s ease-in-out infinite; }
.rules-title  { font-size: 28px; font-weight: 900; background: linear-gradient(135deg, var(--orange), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rules-subtitle { font-size: 14px; color: var(--text-sec); margin-top: 6px; }

.rules-content { flex: 1; padding: 20px 16px; }
.rules-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
}
.rules-section-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--gold); }
.rule-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.rule-item:last-child { margin-bottom: 0; }
.rule-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.rule-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.rule-text p { font-size: 13px; color: var(--text-sec); line-height: 1.5; }

.rules-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px;
    padding-bottom: calc(16px + var(--safe-bottom));
}
.checkbox-wrapper {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; margin-bottom: 12px;
}
.rules-checkbox { display: none; }
.checkmark {
    width: 22px; height: 22px; border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--bg-surface);
    flex-shrink: 0; transition: all var(--transition);
    position: relative;
}
.rules-checkbox:checked + .checkmark { background: var(--orange); border-color: var(--orange); }
.rules-checkbox:checked + .checkmark::after {
    content: '✓'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 13px; font-weight: 900;
}
.checkbox-label { font-size: 13px; font-weight: 600; }

.btn-accept {
    width: 100%; padding: 15px;
    background: var(--bg-surface); color: var(--text-muted);
    font-size: 16px; font-weight: 700; border-radius: var(--radius-btn);
    transition: all var(--transition); cursor: pointer;
    border: 1px solid var(--border);
}
.btn-accept.ready {
    background: linear-gradient(135deg, var(--orange), #FF8C00);
    color: white; border-color: transparent;
    box-shadow: var(--shadow-glow);
}
.btn-accept:disabled:not(.ready) { pointer-events: none; }

/* ────────────────────────────────────────────────────────────
   CHANNEL GATE PAGE
──────────────────────────────────────────────────────────── */
.channel-gate {
    min-height: 100vh;
    display: flex; flex-direction: column;
    padding: 40px 16px 32px;
}
.gate-hero { text-align: center; margin-bottom: 32px; }
.gate-icon  { font-size: 64px; margin-bottom: 12px; animation: floatBounce 2.5s ease-in-out infinite; }
.gate-title { font-size: 26px; font-weight: 900; }
.gate-subtitle { font-size: 14px; color: var(--text-sec); margin-top: 8px; line-height: 1.5; }

.channels-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.channel-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px;
}
.channel-avatar { font-size: 32px; flex-shrink: 0; }
.channel-info { flex: 1; }
.channel-name { display: block; font-size: 15px; font-weight: 700; }
.channel-id   { display: block; font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.btn-join {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--blue), #3a6fd8);
    color: white; font-size: 13px; font-weight: 700;
    border-radius: var(--radius-btn); text-decoration: none;
    transition: all var(--transition); flex-shrink: 0;
}
.btn-join:active { transform: scale(0.96); }

.gate-footer { margin-top: auto; text-align: center; }
.gate-hint  { font-size: 13px; color: var(--text-sec); margin-bottom: 16px; }
.btn-check  {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, var(--green), #00a844);
    color: white; font-size: 16px; font-weight: 700;
    border-radius: var(--radius-btn);
    box-shadow: 0 0 20px rgba(0,200,83,0.3);
    transition: all var(--transition);
}
.btn-check:active { transform: scale(0.97); }
.gate-spinner {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; font-size: 14px; color: var(--text-sec);
}
.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--orange);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ────────────────────────────────────────────────────────────
   PREDICTION MODAL
──────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    display: flex; align-items: flex-end;
}
.modal-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.modal-sheet {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    padding: 16px 20px calc(20px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-sheet.active { transform: translateY(0); }
.modal-handle {
    width: 40px; height: 4px;
    background: var(--border); border-radius: 4px;
    margin: 0 auto 20px;
}

.match-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; text-align: center;
}
.team-info { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.team-flag { font-size: 36px; }
.team-name { font-size: 14px; font-weight: 700; }
.vs-badge  { font-size: 12px; font-weight: 900; color: var(--text-muted); padding: 6px 10px; background: var(--bg-surface); border-radius: 8px; }

.odds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.odds-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 12px 8px;
    background: var(--bg-surface); border: 2px solid var(--border);
    border-radius: var(--radius-card);
    transition: all var(--transition); cursor: pointer;
}
.odds-btn.selected {
    background: rgba(255,107,0,0.12);
    border-color: var(--orange);
    box-shadow: 0 0 12px rgba(255,107,0,0.25);
}
.odds-label { font-size: 11px; color: var(--text-sec); font-weight: 600; }
.odds-value { font-size: 18px; font-weight: 900; color: var(--gold); }
.odds-name  { font-size: 11px; color: var(--text-sec); }

.stake-section { margin-bottom: 16px; }
.stake-label   { display: block; font-size: 13px; font-weight: 700; color: var(--text-sec); margin-bottom: 8px; }
.stake-input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; margin-bottom: 10px;
    flex-wrap: wrap;
}
.coin-icon  { font-size: 20px; }
.stake-input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 18px; font-weight: 800; color: var(--text-primary);
    min-width: 80px;
}
.balance-hint { font-size: 11px; color: var(--text-muted); width: 100%; }
.quick-stakes { display: flex; gap: 6px; }
.quick-btn {
    flex: 1; padding: 8px 4px;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-sec);
    transition: all var(--transition); cursor: pointer;
}
.quick-btn:active { background: var(--orange); color: white; border-color: var(--orange); }

.potential-win {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,200,83,0.08); border: 1px solid rgba(0,200,83,0.2);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px;
}
.pw-label { font-size: 13px; color: var(--text-sec); font-weight: 600; }
.pw-value { font-size: 16px; font-weight: 900; color: var(--green); }

.btn-confirm {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, var(--orange), #FF8C00);
    color: white; font-size: 16px; font-weight: 800;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition);
    margin-bottom: 10px;
}
.btn-confirm:disabled { background: var(--bg-surface); color: var(--text-muted); box-shadow: none; }
.btn-confirm:not(:disabled):active { transform: scale(0.97); }

.modal-close {
    width: 100%; padding: 12px;
    background: none; color: var(--text-muted);
    font-size: 14px; font-weight: 600;
    border-radius: var(--radius-sm);
}

.existing-prediction { text-align: center; padding: 20px 0; }
.existing-badge  { font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.existing-details { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-bottom: 12px; }
.prediction-status { padding: 8px 16px; border-radius: 20px; font-weight: 700; display: inline-block; margin: 0 auto; }
.status-pending  { background: rgba(255,107,0,0.15); color: var(--orange); }
.status-won      { background: rgba(0,200,83,0.15); color: var(--green); }
.status-lost     { background: rgba(255,59,59,0.15); color: var(--red); }
.status-refunded { background: var(--bg-surface); color: var(--text-muted); }

.success-overlay { text-align: center; padding: 30px 0; }
.success-icon  { font-size: 64px; margin-bottom: 16px; animation: floatBounce 0.6s ease; }
.success-title { font-size: 24px; font-weight: 900; color: var(--green); }
.success-sub   { font-size: 15px; color: var(--text-sec); margin-top: 8px; }
.success-win   { font-size: 16px; font-weight: 600; margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════
   HOME v2 -- Branding Header
   ═══════════════════════════════════════════════════════════ */
.brand-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 8px;
    position: sticky; top: 0; z-index: 10;
    background: linear-gradient(180deg, var(--bg) 80%, transparent);
}
.brand-left { display: flex; align-items: center; gap: 10px; }
.brand-logo-wrap {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: var(--shadow-glow);
}
.brand-logo-img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; background: var(--blue); color: white;
    font-size: 9px; font-weight: 900; border-radius: 50%; margin-left: 4px; vertical-align: middle;
}
.brand-channel { font-size: 11px; color: var(--text-muted); }
.header-avatar { position: relative; cursor: pointer; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--orange); }
.avatar-placeholder {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.avatar-greeting { position: absolute; bottom: -4px; right: -4px; font-size: 14px; }

/* -- Tournament Bar -- */
.tournament-bar {
    display: flex; align-items: center; justify-content: space-around;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 10px 8px; margin: 8px 16px;
}
.tourn-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tourn-icon { font-size: 18px; }
.tourn-val  { font-size: 18px; font-weight: 800; color: var(--gold); }
.tourn-lbl  { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tourn-divider { width: 1px; height: 32px; background: var(--border); }

/* -- Coin Hero Compact -- */
.coin-hero-compact { margin: 8px 16px !important; }
.coin-amount-compact { font-size: 28px !important; }
.coin-compact-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.coin-rank-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rank-chip { background: rgba(255,184,0,0.15); color: var(--gold); border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.last-win-row {
    display: flex; align-items: center; gap: 6px; margin-top: 8px;
    padding: 6px 10px; background: rgba(0,200,83,0.08);
    border-radius: 10px; border: 1px solid rgba(0,200,83,0.2);
}
.last-win-icon { font-size: 14px; }
.last-win-text { font-size: 12px; color: var(--text-sec); flex: 1; }
.last-win-amount { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* -- Next Match Countdown -- */
.next-match-card {
    margin: 8px 16px;
    background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,184,0,0.08));
    border: 1px solid rgba(255,107,0,0.3); border-radius: 16px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.next-match-left { display: flex; flex-direction: column; gap: 2px; }
.next-match-label { font-size: 10px; color: var(--orange); text-transform: uppercase; font-weight: 700; }
.next-match-teams { font-size: 13px; font-weight: 600; }
.next-match-countdown { font-size: 22px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -1px; }

/* -- Daily Bonus v2 -- */
.daily-bonus-card {
    margin: 8px 16px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
    border: 2px solid rgba(255,184,0,0.3); border-radius: 20px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
}
.daily-bonus-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.daily-bonus-icon { font-size: 32px; animation: float 2s ease-in-out infinite; }
.daily-bonus-info { display: flex; flex-direction: column; gap: 2px; }
.daily-bonus-amount { font-size: 17px; font-weight: 800; color: var(--gold); }
.daily-bonus-sub { font-size: 11px; color: var(--text-sec); }
.daily-streak { font-size: 11px; color: var(--orange); font-weight: 600; }
.btn-daily-claim {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 14px; padding: 10px 18px;
    color: white; font-weight: 700; font-size: 13px; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255,184,0,0.4); transition: all 0.2s;
}
.btn-daily-claim:disabled { opacity: 0.6; box-shadow: none; }
.btn-daily-label { position: relative; z-index: 1; }
.btn-daily-shine {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.3) 50%, transparent 65%);
    transform: translateX(-100%); animation: shine 2.5s ease-in-out infinite;
}
@keyframes shine { 0%{ transform: translateX(-100%); } 40%{ transform: translateX(100%); } 100%{ transform: translateX(100%); } }
.btn-daily-claim.claimed { background: var(--bg-surface); box-shadow: none; }

/* -- Stats Row -- */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 8px 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 8px; text-align: center; }
.stat-val   { display: block; font-size: 18px; font-weight: 800; color: var(--gold); }
.stat-label { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* -- Today Matches Scroll -- */
.today-matches-scroll { display: flex; gap: 10px; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.today-matches-scroll::-webkit-scrollbar { display: none; }
.today-match-card { flex-shrink: 0; width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; cursor: pointer; transition: transform 0.2s; position: relative; }
.today-match-card:active { transform: scale(0.97); }
.today-match-card.today-live { border-color: var(--red); }
.tmatch-teams { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tmatch-team  { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; }
.tmatch-flag  { font-size: 22px; }
.tmatch-name  { font-size: 9px; font-weight: 600; text-align: center; color: var(--text-sec); }
.tmatch-score { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.score-display { font-size: 18px; font-weight: 800; }
.match-time    { font-size: 14px; font-weight: 700; color: var(--orange); }
.match-status-tag { font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 600; }
.tmatch-odds  { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.tmatch-odd-cell { font-size: 11px; font-weight: 700; color: var(--text-sec); }
.tmatch-odd-sep  { color: var(--border); font-size: 10px; }
.live-pulse { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity: 1; } 50%{ transform: scale(1.4); opacity: 0.5; } }

/* -- Active Predictions -- */
.active-preds-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.active-pred-card { background: var(--bg-card); border: 1px solid var(--border); border-left-width: 3px; border-radius: 14px; padding: 12px; }
.status-border-pending { border-left-color: var(--orange); }
.status-border-won     { border-left-color: var(--green); }
.status-border-lost    { border-left-color: var(--red); }
.pred-match-name { font-size: 12px; color: var(--text-sec); margin-bottom: 6px; }
.pred-row  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.pred-choice { font-size: 13px; font-weight: 700; }
.pred-odds   { font-size: 12px; color: var(--gold); }
.pred-stake  { font-size: 12px; color: var(--text-muted); }
.pred-potential { font-size: 12px; color: var(--green); font-weight: 600; }
.pred-date   { font-size: 10px; color: var(--text-muted); display: block; margin-top: 4px; }

/* -- Matches v2 -- */
.match-card-v2 { border-radius: 20px; }
.match-status-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.match-stage-badge { font-size: 10px; font-weight: 700; background: rgba(75,123,245,0.15); color: var(--blue); padding: 3px 8px; border-radius: 8px; }
.live-badge { font-size: 11px; font-weight: 700; color: var(--red); animation: liveBlink 1.2s ease-in-out infinite; }
@keyframes liveBlink { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }
.time-until { font-size: 11px; color: var(--orange); }
.finished-tag { font-size: 11px; color: var(--text-muted); }
.match-teams-v2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.team-block-v2 { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; }
.team-block-v2.right { align-items: flex-end; }
.team-flag-xl  { font-size: 36px; line-height: 1; }
.team-name-v2  { font-size: 11px; font-weight: 700; text-align: center; color: var(--text-sec); }
.match-center-v2 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.final-score-v2  { font-size: 28px; font-weight: 900; }
.final-score-v2 span { color: var(--text-muted); }
.match-time-v2   { font-size: 20px; font-weight: 800; color: var(--orange); }
.live-dot-row { display: flex; align-items: center; gap: 4px; }
.live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1s ease-in-out infinite; }
.odds-row { display: flex; gap: 8px; }
.odds-cell { flex: 1; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 4px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.odds-cell.my-choice { border-color: var(--orange); background: rgba(255,107,0,0.12); }
.odds-cell-label { display: block; font-size: 9px; color: var(--text-muted); margin-bottom: 2px; }
.odds-cell-val   { display: block; font-size: 14px; font-weight: 700; color: var(--gold); }
.my-pred-badge { margin-top: 8px; padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; text-align: center; }
.tap-to-predict { margin-top: 8px; text-align: center; font-size: 11px; color: var(--orange); opacity: 0.8; }
.match-card-shimmer { height: 160px; border-radius: 20px; margin-bottom: 12px; }

/* -- Leaderboard Rank Targets -- */
.my-rank-card-v2 {
    background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,184,0,0.08));
    border: 1px solid rgba(255,107,0,0.3); border-radius: 20px; padding: 14px 16px;
    margin: 8px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.my-rank-left { display: flex; flex-direction: column; gap: 2px; }
.my-rank-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.my-rank-val   { font-size: 28px; font-weight: 900; color: var(--gold); }
.my-coins-val  { font-size: 13px; color: var(--text-sec); }
.my-rank-targets { display: flex; flex-direction: column; gap: 6px; }
.rank-target-chip { display: flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; min-width: 140px; }
.rank-target-chip.achieved { border-color: var(--green); background: rgba(0,200,83,0.08); }
.rt-icon  { font-size: 16px; }
.rt-info  { display: flex; flex-direction: column; gap: 1px; }
.rt-label { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.rt-coins { font-size: 11px; color: var(--orange); font-weight: 700; }
.rank-target-chip.achieved .rt-coins { color: var(--green); }
.lb-rank-top { color: var(--gold); font-weight: 900; }
.lb-you-badge { display: inline-block; padding: 1px 6px; background: rgba(255,107,0,0.2); color: var(--orange); border-radius: 8px; font-size: 9px; font-weight: 700; margin-left: 4px; }

/* -- Profile Referral v2 -- */
.referral-card-v2 { padding: 16px; }
.ref-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.ref-stat-item { text-align: center; }
.ref-stat-val { display: block; font-size: 20px; font-weight: 800; }
.ref-stat-val.ref-stat-gold  { color: var(--gold); }
.ref-stat-val.ref-stat-green { color: var(--green); }
.ref-stat-label { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.btn-ref-share { width: 100%; margin-top: 8px; background: linear-gradient(135deg, var(--orange), var(--gold)); color: white; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 14px; box-shadow: var(--shadow-glow); }

/* -- Notification Settings -- */
.notif-settings-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin: 0 16px 16px; }
.setting-row-master { background: rgba(255,107,0,0.05); border-bottom: 1px solid var(--border); }
.setting-sublabel { display: block; font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.pref-row { border-bottom: 1px solid var(--border); }
.pref-row:last-child { border-bottom: none; }
.notif-prefs-list { padding: 4px 0; }

/* -- Coin Burst -- */
.coin-burst-particle { position: fixed; font-size: 20px; pointer-events: none; z-index: 9999; animation: coinBurst 0.8s ease-out forwards; }
@keyframes coinBurst { 0%{ transform: translate(0,0) scale(1); opacity: 1; } 100%{ transform: translate(var(--dx),var(--dy)) scale(0.3); opacity: 0; } }

/* -- Toast -- */
.toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 20px + var(--safe-bottom));
    left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
    padding: 10px 20px; font-size: 13px; font-weight: 600; white-space: nowrap;
    opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 999; box-shadow: var(--shadow-card);
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
