/* ══════════════════════════════════════════════════ */
/*  DBBET | فوتبال یار — LUXURY BESPOKE THEMES ENGINE  */
/* ══════════════════════════════════════════════════ */

/* Default Theme: Royal 24K Gold & Piano Obsidian VIP */
:root,
[data-theme="gold"] {
    --bg-dark: #0a0b0e;
    --bg-card: #12141a;
    --bg-card-light: #191c24;
    --border-card: rgba(245, 158, 11, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --primary-accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.38);
    --primary-green: #f59e0b;
    --accent-green: #fbbf24;
    --neon-cyan: #ffd066;
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.35);
    --green: #10b981;
    --red: #ff3355;
    --text-white: #ffffff;
    --text-slate: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --nav-bg: #0c0e13;
    --card-gradient: linear-gradient(135deg, #161820 0%, #0d0e13 100%);
    --btn-primary-bg: linear-gradient(135deg, #f59e0b, #d97706);
    --btn-primary-text: #0b0904;
    --hero-stadium-gradient: radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.25) 0%, rgba(10, 11, 14, 0) 70%), linear-gradient(180deg, #181613 0%, #0a0b0e 100%);
}

/* Theme 2: Cyber Pitch & Emerald */
[data-theme="cyber"] {
    --bg-dark: #07090c;
    --bg-card: #0e1217;
    --bg-card-light: #151a22;
    --border-card: rgba(0, 240, 118, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --primary-accent: #00f076;
    --accent-glow: rgba(0, 240, 118, 0.38);
    --primary-green: #00f076;
    --accent-green: #10f49c;
    --neon-cyan: #0df5a2;
    --gold: #ffb800;
    --gold-glow: rgba(255, 184, 0, 0.35);
    --green: #00f076;
    --red: #ff334b;
    --text-white: #ffffff;
    --text-slate: #d1d5db;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --nav-bg: #090c0f;
    --card-gradient: linear-gradient(135deg, #111713 0%, #08090c 100%);
    --btn-primary-bg: linear-gradient(135deg, #00f076, #00c75e);
    --btn-primary-text: #03140a;
    --hero-stadium-gradient: radial-gradient(circle at 50% -20%, rgba(0, 240, 118, 0.25) 0%, rgba(7, 9, 12, 0) 70%), linear-gradient(180deg, #111713 0%, #07090c 100%);
}

/* Theme 3: Crimson Velocity & Metallic Carbon */
[data-theme="crimson"] {
    --bg-dark: #0a0a0d;
    --bg-card: #121218;
    --bg-card-light: #1b1b24;
    --border-card: rgba(255, 46, 86, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --primary-accent: #ff2e56;
    --accent-glow: rgba(255, 46, 86, 0.38);
    --primary-green: #ff2e56;
    --accent-green: #ff6b8b;
    --neon-cyan: #ff94ab;
    --gold: #ffb800;
    --gold-glow: rgba(255, 184, 0, 0.35);
    --green: #10b981;
    --red: #ff2e56;
    --text-white: #ffffff;
    --text-slate: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --nav-bg: #0d0d12;
    --card-gradient: linear-gradient(135deg, #191215 0%, #0d0a0c 100%);
    --btn-primary-bg: linear-gradient(135deg, #ff2e56, #d91b40);
    --btn-primary-text: #ffffff;
    --hero-stadium-gradient: radial-gradient(circle at 50% -20%, rgba(255, 46, 86, 0.25) 0%, rgba(10, 10, 13, 0) 70%), linear-gradient(180deg, #1a1215 0%, #0a0a0d 100%);
}

/* Theme 4: Cosmic Violet & Ice */
[data-theme="violet"] {
    --bg-dark: #08080f;
    --bg-card: #10101d;
    --bg-card-light: #18182c;
    --border-card: rgba(139, 92, 246, 0.28);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --primary-accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.38);
    --primary-green: #8b5cf6;
    --accent-green: #a78bfa;
    --neon-cyan: #c4b5fd;
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.35);
    --green: #10b981;
    --red: #ef4444;
    --text-white: #ffffff;
    --text-slate: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --nav-bg: #0b0b14;
    --card-gradient: linear-gradient(135deg, #17142b 0%, #0c0a17 100%);
    --btn-primary-bg: linear-gradient(135deg, #8b5cf6, #7c3aed);
    --btn-primary-text: #ffffff;
    --hero-stadium-gradient: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.25) 0%, rgba(8, 8, 15, 0) 70%), linear-gradient(180deg, #18142c 0%, #08080f 100%);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
    line-height: 1.5;
    padding-bottom: 74px; /* Space for bottom nav */
    transition: background-color 0.25s ease, color 0.25s ease;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ══════════════════════════════════════════════════ */
/*  TOP APP BAR                                       */
/* ══════════════════════════════════════════════════ */
#top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: background 0.25s ease;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    margin: 0 auto;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar-mini {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    font-size: 16px;
}
.user-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-coins-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(18, 22, 28, 0.95);
    border: 1px solid rgba(255, 184, 0, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}
.header-coins-pill .coins-val { color: var(--gold); }
.header-coins-pill .coins-text { color: var(--gold); font-size: 0.7rem; }
.header-coins-pill .coins-icon { font-size: 0.8rem; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.app-title-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-white);
}
.app-logo-ball {
    font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════ */
/*  BOTTOM NAVIGATION BAR (6 TABS MATCHING UI)        */
/* ══════════════════════════════════════════════════ */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 4px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}
.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: var(--text-dim);
    transition: color 0.15s;
    min-width: 50px;
}
.nav-item .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-item .nav-label {
    font-size: 0.65rem;
    font-weight: 600;
}
.nav-item.active {
    color: var(--primary-accent);
}
.nav-item.active .nav-label {
    font-weight: 800;
}
/* Glowing top indicator line for active tab */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 3px;
    background: var(--primary-accent);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ══════════════════════════════════════════════════ */
/*  CONTENT CONTAINER                                 */
/* ══════════════════════════════════════════════════ */
.content-area {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px 20px;
}

/* ══════════════════════════════════════════════════ */
/*  TAB 1: HOME (خانه)                                */
/* ══════════════════════════════════════════════════ */
.home-hero-stadium {
    position: relative;
    background: var(--hero-stadium-gradient);
    border-radius: 20px;
    padding: 22px 18px;
    margin-bottom: 14px;
    border: 1px solid var(--border-card);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.home-hero-stadium::after {
    content: '🏆';
    position: absolute;
    left: -15px;
    bottom: -15px;
    font-size: 6.5rem;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(15deg);
}
.home-greeting-user {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.home-hero-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 6px;
    text-shadow: 0 2px 14px var(--accent-glow);
    letter-spacing: -0.5px;
}
.home-hero-desc {
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--text-slate);
    margin-bottom: 16px;
    max-width: 95%;
}
.btn-home-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 25px;
    padding: 10px 22px;
    font-weight: 900;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-home-primary:active { transform: scale(0.96); }

/* 4-Box Stats Strip (Image 3) */
.home-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.stat-pill-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 10px 4px;
    text-align: center;
}
.stat-pill-box .num {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.stat-pill-box .num.blue { color: var(--neon-cyan); }
.stat-pill-box .num.gold { color: var(--gold); }
.stat-pill-box .num.green { color: var(--green); }
.stat-pill-box .lbl {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Promo Banner */
.promo-banner-card {
    background: linear-gradient(135deg, #0e1611 0%, #111a14 100%);
    border: 1px solid rgba(0, 240, 118, 0.25);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.promo-banner-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 12px;
}
.promo-banner-code-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 118, 0.12);
    border: 1px dashed var(--primary-green);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 14px;
    cursor: pointer;
}
.promo-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}
.promo-feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.promo-feature-icon { font-size: 0.95rem; }
.promo-feature-text { font-size: 0.58rem; color: var(--text-muted); }

/* Next Match / Upcoming Section */
.section-title-sm {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
}
.next-match-card {
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 18px;
}
.next-match-icon { font-size: 2.2rem; margin-bottom: 8px; }
.next-match-title { font-size: 0.85rem; font-weight: 700; color: var(--text-slate); }
.next-match-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════ */
/*  TAB 2: MATCHES (بازی‌ها - EXACT IMAGE 1 UI)        */
/* ══════════════════════════════════════════════════ */
.matches-top-banner {
    position: relative;
    background: radial-gradient(circle at 50% 20%, var(--accent-glow) 0%, rgba(10, 11, 14, 0.95) 70%);
    padding: 20px 16px 12px;
    text-align: center;
    margin: -12px -16px 8px;
}
.matches-page-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.5px;
}
.matches-page-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Horizontal Circular Shamsi Date Slider (Image 1) */
.shamsi-slider-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.shamsi-slider-bar::-webkit-scrollbar { display: none; }
.shamsi-day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.2s;
    user-select: none;
}
.shamsi-day-item.active {
    opacity: 1;
}
.shamsi-day-name {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.shamsi-day-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-slate);
}

/* Selected Date Circle Bubble */
.shamsi-day-item.active .shamsi-day-bubble {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card-light);
    border: 2px solid var(--primary-accent);
    box-shadow: 0 0 18px var(--accent-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.shamsi-day-bubble .bubble-tag {
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--primary-accent);
    line-height: 1;
}
.shamsi-day-bubble .bubble-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
}

/* Empty State (Image 1) */
.empty-state-card {
    text-align: center;
    padding: 60px 20px 40px;
}
.empty-icon-3d {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(18, 20, 26, 0.8) 70%);
    border: 1px solid var(--border-card);
    box-shadow: 0 0 25px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}
.empty-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}
.empty-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Match Row */
.match-card-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
    transition: background 0.15s;
}
.match-card-row:active { background: var(--bg-card-light); }
.match-teams-box { flex: 1; }
.match-team-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-slate);
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-team-name.winner { color: var(--green); font-weight: 800; }
.match-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    margin-right: 12px;
}
.score-digits {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text-white);
}
.score-digits.live { color: var(--red); }
.score-vs { font-size: 0.65rem; color: var(--text-muted); }
.match-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 48px;
    margin-right: 10px;
}
.status-pill {
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 700;
}
.status-pill.live { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.status-pill.ht { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.status-pill.ft { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.status-pill.ns { color: var(--neon-cyan); }

/* ══════════════════════════════════════════════════ */
/*  TAB 3: LEAGUES & STANDINGS (لیگ‌ها - IMAGE 2 UI)   */
/* ══════════════════════════════════════════════════ */
.world-cup-banner-card {
    background: linear-gradient(135deg, #0e1812 0%, #112018 100%);
    border: 1px solid rgba(0, 240, 118, 0.28);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px -5px rgba(0, 240, 118, 0.2);
}
.wc-banner-info { flex: 1; }
.wc-tag-small {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.wc-title-big {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 2px;
}
.wc-sub-host {
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.wc-pills-row {
    display: flex;
    gap: 6px;
}
.wc-pill {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
}
.wc-pill.green { background: rgba(0, 240, 118, 0.2); color: var(--green); }
.wc-pill.blue { background: rgba(0, 240, 118, 0.15); color: var(--primary-green); }
.wc-trophy-img {
    font-size: 3.2rem;
    filter: drop-shadow(0 4px 10px rgba(255, 184, 0, 0.4));
}

/* Leagues Subtabs (Image 2) */
.leagues-subtabs-bar {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}
.subtab-btn {
    flex: 1;
    padding: 10px 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: color 0.15s;
}
.subtab-btn.active {
    color: var(--text-white);
    font-weight: 800;
}
.subtab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--primary-green);
}

/* Filters row (Image 2) */
.filters-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}
.filter-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-slate);
    cursor: pointer;
}

/* Group Standings Table (Image 2) */
.group-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 14px 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.standings-table-wrap {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}
.glass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}
.glass-table th {
    padding: 8px 6px;
    font-size: 0.6rem;
    color: var(--text-dim);
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-table td {
    padding: 10px 6px;
    text-align: center;
    color: var(--text-slate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.glass-table tr:last-child td { border-bottom: none; }
.glass-table td.team-cell {
    text-align: right;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}
.glass-table td.pts-cell {
    font-weight: 900;
    color: var(--neon-cyan);
}
/* Qualification status bar on the side */
.q-bar-green { border-right: 3px solid var(--green); }
.q-bar-amber { border-right: 3px solid var(--gold); }
.q-bar-red { border-right: 3px solid var(--red); }

/* ══════════════════════════════════════════════════ */
/*  TAB 6: PROFILE (پروفایل - EXACT IMAGE 4 UI)        */
/* ══════════════════════════════════════════════════ */
.profile-stadium-top {
    position: relative;
    background: radial-gradient(circle at 50% 10%, rgba(0, 240, 118, 0.22) 0%, rgba(8, 9, 12, 0.95) 75%);
    padding: 26px 16px 16px;
    text-align: center;
    margin: -12px -16px 12px;
}
.profile-big-avatar-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 12px;
}
.profile-big-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 240, 118, 0.45);
    background: var(--bg-card);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
}
.avatar-edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    color: #03140a;
}
.profile-user-fullname {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
}
.profile-user-handle {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 3-Box Stats Strip (Image 4) */
.profile-stats-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.profile-stat-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 6px;
    text-align: center;
}
.profile-stat-tile .num {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary-green);
}
.profile-stat-tile .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Action Menu Cards with Glowing Icons (Image 4) */
.menu-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.menu-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.menu-card-item:active {
    background: var(--bg-card-light);
    transform: scale(0.98);
}
.menu-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-icon-glow-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(18, 22, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.menu-icon-glow-box.bolt { border-color: rgba(255, 184, 0, 0.4); box-shadow: 0 0 12px rgba(255, 184, 0, 0.25); }
.menu-icon-glow-box.gem { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
.menu-icon-glow-box.help { border-color: rgba(0, 240, 118, 0.4); box-shadow: 0 0 12px rgba(0, 240, 118, 0.25); }
.menu-icon-glow-box.ref { border-color: rgba(0, 240, 118, 0.4); box-shadow: 0 0 12px rgba(0, 240, 118, 0.25); }

.menu-card-texts { text-align: right; }
.menu-card-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-white);
}
.menu-card-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.menu-chevron {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Language Selector (Image 4) */
.language-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: right;
}
.language-pills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}
.lang-pill-btn {
    padding: 10px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-slate);
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}
.lang-pill-btn.active {
    background: var(--accent-glow);
    border-color: var(--primary-accent);
    color: var(--text-white);
    font-weight: 800;
}

/* ══════════════════════════════════════════════════ */
/*  TOAST                                             */
/* ══════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 8px 25px var(--accent-glow);
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Loader */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.75);
    backdrop-filter: blur(5px);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════ */
/*  ODDS & PREDICTION BAR                             */
/* ══════════════════════════════════════════════════ */
.odds-prediction-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.odd-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 7px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.odd-btn:active {
    transform: scale(0.96);
}
.odd-btn.selected {
    background: var(--accent-glow);
    border-color: var(--primary-accent);
    box-shadow: 0 0 14px var(--accent-glow);
}
.odd-btn.selected .odd-lbl {
    color: var(--primary-accent);
    font-weight: 800;
}
.odd-btn.selected .odd-num {
    color: var(--text-white);
    font-weight: 900;
}
.odd-lbl {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.odd-num {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary-accent);
    direction: ltr;
}

/* ══════════════════════════════════════════════════ */
/*  CUSTOM ADMIN PROMO BANNER                         */
/* ══════════════════════════════════════════════════ */
.custom-admin-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-card);
    background: var(--card-gradient);
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.custom-admin-banner:active {
    transform: scale(0.99);
}
.custom-admin-banner-text-top {
    padding: 14px 16px 10px;
}
.custom-banner-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-green);
    background: rgba(0, 240, 118, 0.15);
    border: 1px solid rgba(0, 240, 118, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}
.custom-banner-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1.4;
}
.custom-banner-sub {
    font-size: 0.76rem;
    color: var(--text-slate);
    line-height: 1.5;
}
.custom-admin-banner-img-wrap {
    width: 100%;
    max-height: 190px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}
.custom-admin-banner-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 190px;
    object-fit: cover;
    display: block;
}
.custom-admin-banner-link-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 240, 118, 0.12);
    border-top: 1px solid rgba(0, 240, 118, 0.2);
    color: var(--primary-green);
    font-size: 0.78rem;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════ */
/*  NAV BADGE & RESPONSIVENESS                        */
/* ══════════════════════════════════════════════════ */
.nav-item {
    min-width: 0 !important;
    flex: 1 !important;
    padding: 5px 2px !important;
}
.nav-counter-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--red);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(255, 51, 75, 0.8);
}

/* ══════════════════════════════════════════════════ */
/*  FORMS / BETSLIP TAB STYLING                       */
/* ══════════════════════════════════════════════════ */
.forms-subtabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.subtab-counter-pill {
    background: var(--primary-accent);
    color: var(--btn-primary-text);
    font-weight: 900;
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-right: 4px;
}
.betslip-empty-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    margin-top: 10px;
}
.betslip-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.betslip-empty-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}
.betslip-empty-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}
.betslip-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}
.betslip-count-label {
    font-size: 0.8rem;
    color: var(--text-slate);
}
.betslip-clear-all-btn {
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}
.betslip-items-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.betslip-match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 12px 14px;
}
.betslip-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.betslip-league-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}
.betslip-item-del-btn {
    background: rgba(255, 51, 75, 0.15);
    border: 1px solid rgba(255, 51, 75, 0.3);
    color: var(--red);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.betslip-card-teams {
    font-size: 0.88rem;
    color: var(--text-white);
    margin-bottom: 8px;
}
.betslip-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}
.betslip-choice-pill {
    display: flex;
    align-items: center;
    gap: 6px;
}
.betslip-choice-pill .choice-title {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.betslip-choice-pill .choice-val {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-accent);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 6px;
}
.betslip-odd-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold);
}
.betslip-summary-box {
    background: var(--card-gradient);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
}
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
}
.summary-row .sum-lbl {
    color: var(--text-slate);
}
.summary-row .sum-val.highlight {
    color: var(--text-white);
    font-weight: 800;
}
.summary-row .sum-val.odds-num {
    color: var(--primary-accent);
    font-size: 1rem;
    font-weight: 900;
}
.summary-row .sum-val.coins-cost {
    color: var(--gold);
    font-weight: 800;
}
.summary-row .sum-val.green {
    color: var(--green);
    font-weight: 800;
}
.summary-row .sum-val.red {
    color: var(--red);
    font-weight: 800;
}
.betslip-submit-btn {
    width: 100%;
    margin-top: 14px;
    justify-content: center;
    padding: 14px;
    font-size: 0.88rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 18px var(--accent-glow);
}
.betslip-insufficient-alert {
    background: rgba(255, 51, 75, 0.12);
    border: 1px solid rgba(255, 51, 75, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
}
.betslip-insufficient-alert .alert-icon {
    font-size: 1rem;
}
.betslip-insufficient-alert .alert-text {
    font-size: 0.74rem;
    color: var(--text-slate);
    line-height: 1.5;
}
.betslip-insufficient-alert .alert-text b {
    color: var(--red);
}

/* Betslip History Cards */
.betslip-history-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.betslip-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 14px;
}
.betslip-history-card.won {
    border-color: rgba(0, 240, 118, 0.4);
}
.betslip-history-card.lost {
    border-color: rgba(255, 51, 75, 0.3);
}
.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.history-id-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-white);
}
.history-type-tag {
    font-size: 0.7rem;
    color: var(--primary-green);
    background: rgba(0, 240, 118, 0.12);
    padding: 1px 6px;
    border-radius: 6px;
}
.slip-status-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
}
.slip-status-badge.pending {
    color: #ffb800;
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.3);
}
.slip-status-badge.won {
    color: var(--green);
    background: rgba(0, 240, 118, 0.15);
    border: 1px solid rgba(0, 240, 118, 0.35);
}
.slip-status-badge.lost {
    color: var(--red);
    background: rgba(255, 51, 75, 0.15);
    border: 1px solid rgba(255, 51, 75, 0.3);
}
.history-meta-bar {
    display: flex;
    gap: 14px;
    font-size: 0.74rem;
    color: var(--text-slate);
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.history-items-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.slip-history-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
}
.slip-history-item-row .item-teams {
    color: var(--text-white);
    flex: 1;
    margin: 0 8px;
}
.slip-history-item-row .item-pick-odd {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════ */
/*  TEAM DETAILS BOTTOM SHEET MODAL                   */
/* ══════════════════════════════════════════════════ */
.match-teams-box {
    cursor: pointer;
    transition: opacity 0.15s;
}
.match-teams-box:active {
    opacity: 0.8;
}
.team-info-dot {
    font-size: 0.7rem;
    opacity: 0.55;
    margin-right: 4px;
    vertical-align: middle;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.25s ease;
}
.team-modal-sheet {
    background: var(--bg-card);
    border-top: 1px solid var(--border-card);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 18px 16px 28px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.team-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.team-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.team-header-icon {
    font-size: 1.8rem;
}
.team-header-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
}
.team-header-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.team-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-modal-subtabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
}
.t-subtab-btn {
    padding: 8px 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.t-subtab-btn.active {
    background: var(--accent-glow);
    border-color: var(--primary-accent);
    color: var(--text-white);
}
.team-recent-matches-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-recent-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 22, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 10px;
}
.t-match-date-col {
    display: flex;
    flex-direction: column;
    font-size: 0.65rem;
    color: var(--text-muted);
    min-width: 65px;
}
.t-match-teams-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--text-slate);
}
.t-match-teams-col .t-score {
    font-weight: 800;
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 6px;
}
.t-match-teams-col .t-team.self {
    font-weight: 800;
    color: var(--primary-green);
}
.t-match-res-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
}
.t-match-res-badge.win {
    background: rgba(0, 240, 118, 0.2);
    color: var(--green);
    border: 1px solid rgba(0, 240, 118, 0.35);
}
.t-match-res-badge.draw {
    background: rgba(255, 184, 0, 0.2);
    color: #ffb800;
    border: 1px solid rgba(255, 184, 0, 0.35);
}
.t-match-res-badge.loss {
    background: rgba(255, 51, 75, 0.2);
    color: var(--red);
    border: 1px solid rgba(255, 51, 75, 0.35);
}
.team-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.t-stat-card {
    background: rgba(18, 22, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.t-stat-num {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 4px;
}
.t-stat-num.cyan { color: var(--primary-green); }
.t-stat-num.orange { color: #f97316; }
.t-stat-num.green { color: var(--green); }
.t-stat-num.purple { color: #a855f7; }
.t-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.team-form-strip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 22, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
}
.team-form-strip-box .strip-label {
    font-size: 0.76rem;
    color: var(--text-slate);
}
.team-form-strip-box .strip-badges {
    display: flex;
    gap: 6px;
}
.form-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
}
.form-circle.win {
    background: var(--green);
    color: #03140a;
}
.form-circle.draw {
    background: #ffb800;
    color: #141003;
}
.form-circle.loss {
    background: var(--red);
    color: white;
}
.h2h-summary-bar-box {
    background: rgba(18, 22, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}
.h2h-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-slate);
    margin-bottom: 8px;
}
.h2h-bar-visual {
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    gap: 2px;
}
.h2h-bar-visual .bar-seg.t1 { background: var(--primary-green); }
.h2h-bar-visual .bar-seg.draw { background: #ffb800; }
.h2h-bar-visual .bar-seg.t2 { background: var(--red); }

/* ══════════════════════════════════════════════════ */
/*  DISABLED COIN SHOP & HISTORY BUTTONS              */
/* ══════════════════════════════════════════════════ */
.menu-card-item.disabled-action {
    opacity: 0.55;
    filter: grayscale(0.2);
    cursor: not-allowed;
}
.menu-icon-glow-box.off {
    background: rgba(100, 116, 139, 0.15) !important;
    border-color: rgba(100, 116, 139, 0.3) !important;
    box-shadow: none !important;
}
.badge-disabled-soon {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffb800;
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
}

/* ══════════════════════════════════════════════════ */
/*  TASK DISABLED & TIMER BADGES                      */
/* ══════════════════════════════════════════════════ */
.task-timer-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffb800;
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 4px 8px;
    border-radius: 8px;
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.task-badge-off {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
}
.task-badge-active {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--green);
    background: rgba(0, 240, 118, 0.15);
    border: 1px solid rgba(0, 240, 118, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
}

/* ══════════════════════════════════════════════════ */
/*  THEME SELECTOR & PRESETS                          */
/* ══════════════════════════════════════════════════ */
.header-theme-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    color: var(--text-white);
}
.header-theme-btn:active {
    transform: scale(0.9);
    border-color: var(--primary-accent);
}

.theme-selector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.theme-selector-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}
.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.theme-chip-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-slate);
    transition: all 0.2s ease;
}
.theme-chip-btn:active {
    transform: scale(0.97);
}
.theme-chip-btn.active {
    border-color: var(--primary-accent);
    background: rgba(245, 158, 11, 0.14);
    color: var(--text-white);
    box-shadow: 0 0 12px var(--accent-glow);
}
[data-theme="cyber"] .theme-chip-btn.active {
    background: rgba(0, 240, 118, 0.14);
}
[data-theme="crimson"] .theme-chip-btn.active {
    background: rgba(255, 46, 86, 0.14);
}
[data-theme="violet"] .theme-chip-btn.active {
    background: rgba(139, 92, 246, 0.14);
}

.theme-chip-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
.dot-gold { background: #f59e0b; color: rgba(245, 158, 11, 0.6); }
.dot-cyber { background: #00f076; color: rgba(0, 240, 118, 0.6); }
.dot-crimson { background: #ff2e56; color: rgba(255, 46, 86, 0.6); }
.dot-violet { background: #8b5cf6; color: rgba(139, 92, 246, 0.6); }

/* Task actions & Avatar Presets */
.btn-task-action {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-task-action.open {
    background: var(--bg-card-light);
    border: 1px solid var(--border-subtle);
    color: var(--text-slate);
}
.btn-task-action.check {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 0 10px var(--accent-glow);
}
.avatar-preset-btn {
    background: var(--bg-card-light);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px 2px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.avatar-preset-btn.selected {
    border-color: var(--primary-accent);
    background: var(--accent-glow);
    box-shadow: 0 0 10px var(--accent-glow);
}
.betslip-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--primary-accent);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s;
}
.betslip-toggle-btn:active {
    transform: scale(0.98);
}

/* ── Matches 3-Category Filter Pills ── */
.matches-filter-pills-row {
    display: flex;
    gap: 6px;
    padding: 4px 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.matches-filter-pills-row::-webkit-scrollbar {
    display: none;
}
.matches-filter-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.matches-filter-pill.active {
    background: var(--bg-card-light);
    border-color: var(--primary-accent);
    color: var(--text-white);
    box-shadow: 0 0 12px var(--accent-glow);
}
.live-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3355;
    box-shadow: 0 0 8px #ff3355;
    animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.filter-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-slate);
    border-radius: 8px;
    padding: 1px 6px;
    font-size: 0.62rem;
    font-weight: 800;
}
.matches-filter-pill.active .filter-count-badge {
    background: var(--primary-accent);
    color: var(--btn-primary-text);
}

/* ── Weekly Reward Official Banner ── */
.weekly-reward-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(18, 20, 26, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 16px 14px;
    margin: 14px 16px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 0 16px rgba(245, 158, 11, 0.05);
}
.reward-crown-icon {
    font-size: 2.2rem;
    position: absolute;
    top: 14px;
    left: 14px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
    animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.reward-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.reward-title {
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.4;
    padding-left: 45px;
}
.reward-body {
    color: var(--text-slate);
    font-size: 0.72rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ── Leaderboard Weekly Timer Card ── */
.leaderboard-timer-card {
    background: linear-gradient(135deg, #181b24 0%, #101218 100%);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 14px;
    margin: 12px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.timer-header-lbl {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.timer-countdown-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    direction: ltr;
}
.timer-unit-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px 8px;
    min-width: 48px;
}
.timer-unit-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
    font-family: monospace, sans-serif;
}
.timer-unit-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-top: 2px;
}
.timer-sep {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.6;
}
.timer-pause-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

/* ── League Accordion Clean List ── */
.league-accordion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.league-accordion-card.open {
    border-color: var(--primary-accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.league-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
}
.league-accordion-header:active {
    background: var(--bg-card-light);
}
.league-acc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.league-acc-flag {
    font-size: 1.35rem;
    line-height: 1;
}
.league-acc-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-white);
}
.league-acc-sub {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 2px;
}
.league-acc-arrow {
    font-size: 0.75rem;
    color: var(--text-dim);
    transition: transform 0.2s;
}
.league-accordion-card.open .league-acc-arrow {
    transform: rotate(180deg);
    color: var(--primary-accent);
}
.league-accordion-body {
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 12px 14px;
}
.league-table-grid-header {
    display: grid;
    grid-template-columns: 24px 1fr 28px 48px 32px 36px;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-dim);
    padding: 4px 6px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
.league-table-grid-header .team-col {
    text-align: right;
}
.league-table-grid-row {
    display: grid;
    grid-template-columns: 24px 1fr 28px 48px 32px 36px;
    gap: 4px;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-slate);
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
}
.league-table-grid-row:hover,
.league-table-grid-row:active {
    background: rgba(255, 255, 255, 0.05);
}
.league-table-grid-row .team-col {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    color: var(--text-white);
}
.league-table-grid-row .pts-col {
    font-weight: 900;
    color: var(--gold);
}
.rank-badge-cell {
    font-size: 0.7rem;
    font-weight: 800;
}

/* ══════════════════════════════════════════════════
   Leaderboard Avatars & Privacy Badges
   ══════════════════════════════════════════════════ */
.lb-avatar-badge,
.lb-avatar-fallback,
.lb-avatar-img {
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-shrink: 0;
}

.lb-avatar-badge.sm,
.lb-avatar-fallback.sm,
.lb-avatar-img.sm {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.lb-avatar-badge.md,
.lb-avatar-fallback.md,
.lb-avatar-img.md {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
    margin: 0 auto 6px;
}

.lb-avatar-badge.lg,
.lb-avatar-fallback.lg,
.lb-avatar-img.lg {
    width: 60px;
    height: 60px;
    font-size: 1.85rem;
    border: 2.5px solid var(--gold);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
    margin: 0 auto 6px;
}

.lb-avatar-fallback {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-weight: 900;
}

.lb-avatar-fallback.gold-grad {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lb-podium-card {
    position: relative;
    text-align: center;
    border-radius: 16px;
    padding: 12px 6px;
    transition: transform 0.2s;
}

.lb-rank-num {
    font-size: 0.85rem;
    font-weight: 900;
    min-width: 26px;
    color: var(--text-muted);
}

.lb-coins-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--gold);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   Odds State Badges (Active / Unavailable / Finished)
   ══════════════════════════════════════════════════ */
.odds-unavailable-badge {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.odds-finished-badge {
    margin-top: 8px;
    padding: 7px 12px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    font-size: 0.72rem;
    color: var(--green);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ══════════════════════════════════════════════════
   OWNER-ONLY MINI APP ADMIN PANEL (MATCHORA AI THEME)
   ══════════════════════════════════════════════════ */

.header-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-size: 0.72rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 14px var(--accent-glow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-admin-btn:active {
    transform: scale(0.95);
}

.admin-panel-wrap {
    padding: 4px 0 28px;
    animation: fadeIn 0.22s ease;
}

/* Top Header Bar (matching screenshot) */
.admin-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.admin-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-close-btn:active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

.admin-title-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.admin-title-main {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.2px;
}

.admin-title-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.admin-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.admin-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulseLive 1.6s infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

/* Sub-navigation Pill Tabs (داشبورد | کاربران | لینک‌ها | پیام همگانی | گزارش) */
.admin-subnav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-bottom: 6px;
}

.admin-subnav-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-slate);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-subnav-btn.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* 2x2 KPI Grid (کل کاربران | فعال امروز | عضو جدید امروز | درخواست‌های امروز) */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-kpi-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 112px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.admin-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.admin-kpi-value {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.admin-kpi-sub {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Section Card (Chart & Progress Bars) */
.admin-section-card {
    background: var(--card-gradient);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.admin-section-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-section-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: var(--text-white);
}

.admin-section-subtitle {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* 14-Day SVG Area Chart */
.admin-chart-wrap {
    width: 100%;
    overflow: hidden;
    padding-top: 4px;
}

.admin-chart-svg {
    width: 100%;
    height: 185px;
    display: block;
}

/* Most Used Sections Horizontal Bars (پراستفاده‌ترین بخش‌ها) */
.admin-usage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-usage-row {
    display: grid;
    grid-template-columns: 112px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.admin-usage-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-slate);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-usage-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    direction: ltr;
}

.admin-usage-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--btn-primary-bg);
    box-shadow: 0 0 10px var(--accent-glow);
    margin-left: auto;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-usage-pct {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: left;
    direction: ltr;
}

/* Admin Inputs, Buttons & User Cards */
.admin-input {
    width: 100%;
    background: var(--bg-card-light);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.admin-input:focus {
    border-color: var(--primary-accent);
}

.admin-user-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 9px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.admin-btn-sm {
    padding: 6px 11px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 800;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.admin-btn-sm.primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: transparent;
}

.admin-btn-sm.danger {
    background: rgba(255, 51, 85, 0.14);
    color: var(--red);
    border-color: rgba(255, 51, 85, 0.32);
}

.admin-btn-sm.success {
    background: rgba(16, 185, 129, 0.14);
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.32);
}




