/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Note: do NOT apply overflow-x:hidden to html — it breaks position:sticky.
   Apply only to body. */
body { overflow-x: hidden; }

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --secondary-light: #e6f4ea;
    --accent: #fbbc04;
    --danger: #ea4335;
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #16213e 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { width: 30px; height: 30px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-title { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }
.nav-subtitle { font-size: 0.6rem; opacity: 0.6; font-weight: 400; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-admin-link { color: rgba(255,255,255,0.6); display: flex; transition: var(--transition); }
.nav-admin-link:hover { color: white; }
.nav-user { display: flex; align-items: center; }
.user-name { font-size: 0.75rem; background: rgba(255,255,255,0.12); padding: 4px 10px; border-radius: 20px; }

/* === CONTAINER === */
.container { max-width: 640px; margin: 0 auto; padding: 0 12px 90px; }

/* === LOGIN BANNER === */
.login-banner {
    background: linear-gradient(135deg, var(--primary-light), #f0f7ff);
    border: 1px solid rgba(26,115,232,0.15);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 12px 0;
}

.login-banner-content { display: flex; flex-direction: column; gap: 10px; }
.login-banner-text { font-size: 0.8rem; color: var(--text); }
.login-banner-text strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.login-banner-text span { color: var(--text-light); }
.login-banner-input { display: flex; gap: 8px; }

/* === QUICK STATS === */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.qs-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.qs-value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.qs-label { display: block; font-size: 0.6rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

/* === BOTTOM NAVBAR === */
.tabs {
    display: flex;
    background: #f8fafc;
    padding: 7px 5px;
    border: 1px solid #d9e1ea;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    margin: 0;
    padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px));
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    color: #6b7280;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.tab.active::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.tab.active .tab-icon-svg { stroke-width: 2.5; }
.tab-icon-svg { width: 20px; height: 20px; }
.tab.active .tab-label { font-weight: 700; }
.tab-label { font-size: 0.6rem; letter-spacing: 0.02em; }

/* === TAB CONTENT === */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SECTION HEADER === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px 10px;
}

.section-header h2 { font-size: 1.1rem; font-weight: 700; }
.batch-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--bg-card); font-size: 0.75rem; font-family: inherit; }

/* === CARDS === */
.card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.info-card { text-align: center; padding: 30px 16px; }
.info-card p { color: var(--text-light); margin-bottom: 12px; font-size: 0.85rem; }
.info-icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--text-muted); opacity: 0.5; }

/* === LIVE SECTION === */
.live-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 12px 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.live-match-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.live-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.live-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-match-meta { font-size: 0.7rem; color: var(--text-muted); }
.live-countdown { font-size: 0.7rem; font-weight: 700; color: var(--danger); background: #fee2e2; padding: 3px 8px; border-radius: 20px; min-width: 80px; text-align: center; font-variant-numeric: tabular-nums; }
.countdown-closed { color: var(--text-muted); background: var(--border-light); }

.live-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.live-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.live-team img { width: 44px; height: 44px; object-fit: contain; cursor: pointer; transition: var(--transition); }
.live-team img:hover { transform: scale(1.1); }
.live-team.cursor-pointer { cursor: pointer; }
.live-team-name { font-size: 0.8rem; font-weight: 700; text-align: center; }
.live-vs { font-weight: 800; color: var(--text-muted); font-size: 0.9rem; }
.live-score { font-size: 1.8rem; font-weight: 900; color: var(--primary); }

.live-match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.live-venue { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.btn-predict-lg {
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(26,115,232,0.3);
}

.btn-predict-lg:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,115,232,0.4); }
.btn-predict-lg:disabled { background: #d1d5db; box-shadow: none; cursor: not-allowed; transform: none; }

/* === MATCH CARD (All tab) === */
.match-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
    border-left: 4px solid var(--border);
    transition: var(--transition);
}

.match-card.open { border-left-color: var(--secondary); }
.match-card.finished { border-left-color: var(--text-muted); }

/* Accent variant: top gradient stripe showing both team colors
   (consistent with live cards — top stripe only, no left border) */
.match-card-accent {
    border-left: none;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}
.match-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--home-color, var(--primary)) 0%,
        var(--home-color, var(--primary)) 45%,
        var(--away-color, var(--danger)) 55%,
        var(--away-color, var(--danger)) 100%);
}
.match-card-accent.finished { opacity: 0.85; }

.match-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.match-badge { font-size: 0.65rem; font-weight: 600; padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-open { background: var(--secondary-light); color: #166534; }
.badge-closed { background: #fef3c7; color: #92400e; }
.badge-finished { background: #f3f4f6; color: #4b5563; }
.match-group { font-size: 0.7rem; color: var(--text-muted); }

.match-teams { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.match-team { flex: 1; text-align: center; }
.match-team-name { font-weight: 600; font-size: 0.85rem; }
.match-vs { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; padding: 0 10px; }
.match-score { font-size: 1.4rem; font-weight: 800; color: var(--primary); padding: 0 10px; }

.match-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light); }
.match-time { font-size: 0.7rem; color: var(--text-muted); }

.btn-predict { font-size: 0.7rem; padding: 5px 12px; background: var(--primary); color: white; border: none; border-radius: 20px; cursor: pointer; font-weight: 600; transition: var(--transition); }
.btn-predict:hover { background: var(--primary-dark); }
.btn-predict:disabled { background: #d1d5db; cursor: not-allowed; }

/* === PREDICTIONS === */
.prediction-card { background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 8px; position: relative; overflow: hidden; }
.prediction-match { font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.prediction-scores { display: flex; align-items: center; gap: 12px; }
.prediction-my-score { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.prediction-actual { font-size: 0.8rem; color: var(--text-muted); }
.prediction-points { margin-left: auto; font-weight: 700; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; }
.points-3 { background: #dcfce7; color: #166534; }
.points-2 { background: #dbeafe; color: #1e40af; }
.points-1 { background: #fef3c7; color: #92400e; }
.points-0 { background: #fee2e2; color: #991b1b; }
.points-pending { background: #f3f4f6; color: #6b7280; }

/* Accent variant: top gradient stripe showing both team colors
   (consistent with live cards — top stripe only, no left border) */
.prediction-card-accent {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}
.prediction-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--home-color, var(--primary)) 0%,
        var(--home-color, var(--primary)) 48%,
        var(--away-color, var(--danger)) 52%,
        var(--away-color, var(--danger)) 100%);
}

/* === LEADERBOARD === */
/* Summary header card */
.lb-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #16213e 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 15, 35, 0.25);
}
.lb-summary-trophy {
    width: 32px;
    height: 32px;
    color: #fbbf24;
    flex-shrink: 0;
}
.lb-summary-trophy svg { width: 100%; height: 100%; }
.lb-summary-text { flex: 1; min-width: 0; }
.lb-summary-title { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.01em; }
.lb-summary-stats { font-size: 0.68rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* === PODIUM (stacked tier cards) ===
   Each tier is a horizontal card. Ties are shown as a "fan" of overlapping
   coins (initial avatars). Works for any number of tied players in any
   tier and for sparse rank gaps (e.g., 1 → 5 → 12). */
.lb-podium-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lb-tier-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.lb-tier-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}
.lb-tier-card-gold   { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fcd34d; }
.lb-tier-card-gold::before   { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.lb-tier-card-silver { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border-color: #cbd5e1; }
.lb-tier-card-silver::before { background: linear-gradient(180deg, #cbd5e1, #64748b); }
.lb-tier-card-bronze { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-color: #fdba74; }
.lb-tier-card-bronze::before { background: linear-gradient(180deg, #fb923c, #ea580c); }

.lb-tier-card-champion {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25), 0 2px 6px rgba(245, 158, 11, 0.15);
}

/* Big rank number on the left */
.lb-tier-rankbadge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    border: 3px solid #fff;
}
.lb-tier-rankbadge-gold   { background: linear-gradient(135deg, #fcd34d, #f59e0b); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45); }
.lb-tier-rankbadge-silver { background: linear-gradient(135deg, #cbd5e1, #64748b); box-shadow: 0 3px 10px rgba(100, 116, 139, 0.35); }
.lb-tier-rankbadge-bronze { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35); }

.lb-tier-card-champion .lb-tier-rankbadge {
    width: 64px;
    height: 64px;
    font-size: 1.9rem;
}

/* Crown above the gold rank badge */
.lb-tier-crown {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    color: #f59e0b;
    filter: drop-shadow(0 2px 3px rgba(245, 158, 11, 0.55));
    animation: lb-crown-bounce 2.4s ease-in-out infinite;
}
.lb-tier-crown svg { width: 100%; height: 100%; display: block; }
@keyframes lb-crown-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
    50%      { transform: translateX(-50%) translateY(-3px) rotate(4deg); }
}

/* Body holds the label, coin fan, and tied names */
.lb-tier-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.lb-tier-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-tier-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.lb-tier-card-champion .lb-tier-label { color: #b45309; }
.lb-tier-card-silver   .lb-tier-label { color: #475569; }
.lb-tier-card-bronze   .lb-tier-label { color: #c2410c; }

.lb-tier-count {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.06);
    color: var(--text-light);
}
.lb-tier-card-gold .lb-tier-count   { background: rgba(245, 158, 11, 0.15); color: #92400e; }
.lb-tier-card-silver .lb-tier-count { background: rgba(100, 116, 139, 0.18); color: #334155; }
.lb-tier-card-bronze .lb-tier-count { background: rgba(234, 88, 12, 0.15); color: #9a3412; }

/* Fan of initial coins. Single member = single coin, no overlap.
   Multiple members overlap to form a fan/stack effect. */
.lb-coin-fan {
    display: flex;
    align-items: center;
    padding-left: 0;
}
.lb-coin-fan-multi { padding-left: 4px; }

.lb-coin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 0.78rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    position: relative;
    /* Stack-fan effect: each successive coin shifts left & is layered behind */
    margin-left: -10px;
    z-index: calc(20 - var(--coin-i, 0));
    transform: rotate(calc(var(--coin-i, 0) * -3deg));
    transition: transform 0.18s ease, margin 0.18s ease;
}
.lb-coin:first-child { margin-left: 0; }
.lb-coin:hover { transform: rotate(0deg) translateY(-2px); z-index: 50; }

.lb-coin-big {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    border-width: 3px;
    margin-left: -12px;
}
.lb-coin-big:first-child { margin-left: 0; }

.lb-coin-gold   { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.lb-coin-silver { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.lb-coin-bronze { background: linear-gradient(135deg, #fb923c, #ea580c); }

/* Overflow coin "+N" — neutral, slightly transparent so it reads as "more" */
.lb-coin-overflow {
    background: linear-gradient(135deg, #94a3b8, #475569);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: -0.02em;
}
.lb-coin-overflow.lb-coin-big { font-size: 0.82rem; }

/* Names row: single = inline, multi = wrap chips */
.lb-tier-names {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-width: 0;
}
.lb-tier-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.lb-tier-card-champion .lb-tier-name { font-size: 1rem; }

.lb-tier-name-chip {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-tier-name-more {
    background: rgba(0,0,0,0.08);
    color: var(--text-light);
    font-weight: 800;
    font-style: italic;
}

/* Make tappable elements look tappable */
button.lb-tier-name-chip,
button.lb-coin-overflow,
button.lb-tier-count {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
button.lb-tier-name-more:hover { background: rgba(0,0,0,0.15); color: var(--text); transform: translateY(-1px); }
button.lb-coin-overflow:hover  { transform: rotate(0deg) translateY(-2px) scale(1.05); z-index: 50; }

button.lb-tier-count { color: inherit; }
button.lb-tier-count:hover { transform: translateY(-1px); filter: brightness(1.05); }

.lb-tier-card-clickable { cursor: pointer; }
.lb-tier-card-clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.10); }

/* Leaderboard Tier modal contents */
.lb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    color: #1a1a2e;
}
.lb-modal-header-rank { font-size: 0.95rem; font-weight: 800; }
.lb-modal-header-pts {
    font-size: 1.1rem;
    font-weight: 900;
    background: rgba(255,255,255,0.7);
    padding: 4px 12px;
    border-radius: 20px;
}
.lb-modal-header-gold   { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #fcd34d; }
.lb-modal-header-silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border: 1px solid #cbd5e1; }
.lb-modal-header-bronze { background: linear-gradient(135deg, #ffedd5, #fed7aa); border: 1px solid #fdba74; }

.lb-modal-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 2px;
}

.lb-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
}

.lb-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.lb-modal-item-info { flex: 1; min-width: 0; }
.lb-modal-item-name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Points block on the right */
.lb-tier-points {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.lb-tier-points span {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.lb-tier-card-champion .lb-tier-points { font-size: 1.85rem; }
.lb-tier-points-gold   { color: #b45309; }
.lb-tier-points-silver { color: #475569; }
.lb-tier-points-bronze { color: #c2410c; }

@media (max-width: 420px) {
    .lb-tier-card { grid-template-columns: auto 1fr; padding: 12px; gap: 10px; }
    .lb-tier-points { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 6px; justify-content: flex-end; padding-top: 4px; border-top: 1px dashed rgba(0,0,0,0.08); }
    .lb-tier-card-champion .lb-tier-rankbadge { width: 56px; height: 56px; font-size: 1.6rem; }
}

/* Section title above the rest of the list */
.lb-list-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 4px 4px 8px;
    margin-top: 4px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.leaderboard-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.lb-rank {
    font-size: 0.85rem;
    font-weight: 800;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--text-muted);
    background: var(--border-light);
}

.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 5px; color: var(--text); }

.lb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lb-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Small colored dot in each pill for visual scanning */
.lb-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.5;
}

.lb-pill-exact   { background: #dcfce7; color: #166534; }
.lb-pill-correct { background: #dbeafe; color: #1e40af; }
.lb-pill-draw    { background: #fef3c7; color: #92400e; }
.lb-pill-wrong   { background: #fee2e2; color: #991b1b; }
.lb-pill-matches { background: #f1f5f9; color: #475569; }

.lb-points-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 48px;
}
.lb-points {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.lb-pts-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
    font-weight: 700;
}


/* === TEAMS GRID === */
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* Per-group team grid */
.teams-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

/* Group section header */
.wc-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 2px 4px;
    margin-top: 4px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 8px;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);    padding: 16px 8px 12px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--team-color, var(--primary)), var(--team-color-secondary, var(--primary)));
}

.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.team-card img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.team-card-name { font-size: 0.7rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* Group-mode team card */
.team-card-group {
    padding: 10px 6px 8px;
}

.team-card-flag-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
}

.team-card-flag {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: block;
    cursor: pointer;
    transition: var(--transition);
}
.team-card-flag:hover { transform: scale(1.1); border-color: var(--primary); }

.team-card-flag-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.team-rank-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
    border: 1px solid #fff;
    white-space: nowrap;
    line-height: 1.4;
}

.team-conf-badge {
    display: block;
    font-size: 0.52rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* TBD match style */
.match-tbd { opacity: 0.7; }


/* === TEAM MODAL THEMED === */
.modal-content.team-themed {
    padding: 0 0 16px;
    overflow-x: hidden;
}

.modal-content.team-themed .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 10;
    margin-bottom: 0;
}

.modal-content.team-themed .modal-header h3 {
    visibility: hidden;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.modal-content.team-themed .modal-close {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Team Modal Badge Header */
.team-modal-badge-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 62px 18px 20px;
    margin: 0 0 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.team-modal-badge-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.team-modal-badge-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.team-modal-flag {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.team-modal-badge-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.team-modal-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.team-modal-badge-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-modal-badge-short {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Team Info Header */
.team-info-header {
    text-align: center;
    margin-bottom: 16px;
}

.team-badge-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.team-badge-showcase img { transition: var(--transition); }
.team-badge-showcase img:hover { transform: scale(1.08); }

.team-badge-large {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.team-info-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.team-info-short {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.team-country-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Team Description */
.team-description {
    margin-top: 12px;
    padding: 14px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.team-description p {
    font-size: 0.76rem;
    color: var(--text-light);
    line-height: 1.8;
    word-break: break-word;
    white-space: pre-wrap;
    text-align: justify;
    margin: 0;
    overflow-wrap: break-word;
}

.team-desc-paragraph {
    display: block;
    margin-bottom: 10px;
}

.team-desc-paragraph:last-child {
    margin-bottom: 0;
}

.foot-balance-bar {
    position: relative;
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--border-light);
}

.foot-balance-segment {
    height: 100%;
    min-width: 0;
}

.foot-balance-right {
    background: var(--primary);
}

.foot-balance-left {
    background: var(--accent);
}

.foot-balance-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.foot-balance-label-right {
    left: 12px;
    color: #ffffff;
}

.foot-balance-label-left {
    right: 12px;
    color: #111827;
    text-shadow: 0 1px 2px rgba(255,255,255,0.45);
}

/* === TEAM MODAL TABS === */
.team-modal-tabs {
    display: flex;
    gap: 0;
    margin: 0 16px 16px;
    border-bottom: 2px solid var(--border-light);
}

.team-modal-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.team-modal-tab.active {
    color: var(--team-primary, var(--primary));
    border-bottom-color: var(--team-primary, var(--primary));
}

.team-tab-content { display: none; overflow: visible; padding: 0 16px 2px; }
.team-tab-content.active { display: block; animation: fadeIn 0.2s ease; }

/* === THIN SCROLLBAR === */
.modal-content::-webkit-scrollbar,
.team-tab-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track,
.team-tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb,
.team-tab-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.team-tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Firefox */
.modal-content, .team-tab-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

/* === PILL FILTERS === */
.pill-filter {
    padding: 5px 12px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.pill-filter:hover {
    border-color: var(--pill-color, var(--primary));
    color: var(--pill-color, var(--primary));
}

.pill-filter.active {
    background: var(--pill-color, var(--primary));
    border-color: var(--pill-color, var(--primary));
    color: white;
}

/* === FORMS === */
.input { padding: 9px 12px; border: 2px solid var(--border); border-radius: var(--radius-xs); font-size: 0.85rem; font-family: inherit; transition: var(--transition); width: 100%; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
.input-sm { padding: 7px 10px; font-size: 0.8rem; }

.btn { padding: 9px 18px; border: none; border-radius: var(--radius-xs); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border-light); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* === MODAL === */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { position: relative; background: var(--bg-card); border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; padding: 20px; animation: slideUp 0.3s ease; max-height: 90vh; overflow-y: auto; overflow-x: hidden; }
.modal-content-lg { max-height: 85vh; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; background: var(--bg); border-radius: 50%; cursor: pointer; }

/* Keep team modal on a single scroll container to avoid layout artifacts on mobile. */
#teamModal .modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 560px;
}

#teamModal .modal-body {
    overflow: visible;
    overflow-x: hidden;
    word-break: break-word;
}

.modal-match-info { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; padding: 8px; background: var(--border-light); border-radius: var(--radius-xs); }

.score-input-container { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0; }
.team-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-badge-modal { width: 44px; height: 44px; object-fit: contain; }
.team-name { font-size: 0.75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; }
.score-input { width: 60px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; transition: var(--transition); }
.score-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
.score-separator { font-size: 1.8rem; font-weight: 800; color: var(--text-muted); }

/* === PREDICTION MODAL — themed (mirrors team modal style) === */
.modal-content.predict-themed {
    padding: 0 0 16px;
    overflow-x: hidden;
    max-width: 480px;
}

.predict-modal-header {
    position: relative;
    padding: 18px 20px 20px;
    /* Gradient is set inline by JS using team colors; this is the fallback */
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 50%, #ea4335 100%);
    color: #fff;
    overflow: hidden;
}

.predict-modal-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}

.predict-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.predict-header-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.predict-header-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.predict-team-flag {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.predict-team-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.predict-header-team .home-away-label {
    background: rgba(255,255,255,0.22);
    color: #fff;
    backdrop-filter: blur(2px);
}

.predict-header-vs {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    letter-spacing: 0.05em;
    padding: 0 6px;
}

.predict-header-meta {
    margin-top: 14px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.92);
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    position: relative;
    z-index: 1;
}

.predict-body {
    padding: 18px 20px 4px;
}

.predict-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 12px;
}

.predict-score-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 0 16px;
}

.predict-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.score-btn {
    width: 44px;
    height: 32px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    user-select: none;
}

.score-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.score-btn:active {
    transform: scale(0.92);
}

.predict-score-col .score-input {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-weight: 900;
    /* Hide native number spinners — we use custom +/- buttons */
    -moz-appearance: textfield;
}

.predict-score-col .score-input::-webkit-outer-spin-button,
.predict-score-col .score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.predict-footer {
    padding: 0 20px;
}

@media (max-width: 480px) {
    .predict-team-flag { width: 48px; height: 48px; }
    .predict-team-name { font-size: 0.78rem; }
    .predict-score-col .score-input { width: 60px; height: 60px; font-size: 1.7rem; }
    .score-btn { width: 38px; height: 28px; }
}

.modal-rules { display: flex; justify-content: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.rule-item { font-size: 0.7rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.rule-pts { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 0.65rem; color: white; }
.pts-3 { background: #16a34a; }
.pts-2 { background: #2563eb; }
.pts-1 { background: #d97706; }
.pts-0 { background: #dc2626; }

.modal-info { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
.modal-footer { display: flex; gap: 10px; margin-top: 16px; }
.modal-footer .btn { flex: 1; padding: 12px; }

/* === PROFILE === */
.profile-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.profile-name { font-size: 1.2rem; font-weight: 700; }
.profile-rank { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin: 8px 0; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.stat-item { background: var(--bg); padding: 10px; border-radius: var(--radius-xs); text-align: center; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* === TOAST === */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--text); color: white; padding: 10px 20px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 300; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* === LOADING === */
.loading { text-align: center; padding: 30px; color: var(--text-muted); font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 30px 16px; color: var(--text-muted); }
.empty-state-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
    margin: 0 auto 10px;
    display: block;
}
.empty-state-title {
    font-size: 0.92rem;
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
}
.empty-state-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .container { padding: 0 20px 24px; }
    .modal { align-items: center; }
    .modal-content { border-radius: var(--radius); margin-bottom: 20px; }
    .teams-grid { grid-template-columns: repeat(4, 1fr); }

    .tabs {
        position: sticky;
        top: 72px;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 10px 0 8px;
        border-radius: 12px;
        padding-bottom: 7px;
    }

    #teamModal .modal-content {
        width: min(540px, calc(100vw - 32px));
        max-height: 82vh;
        border-radius: var(--radius);
        margin: 0;
    }

    .team-modal-badge-name { font-size: 1.2rem; }
}

@media (max-width: 767px) {
    #teamModal {
        align-items: center;
        padding: 12px 0;
    }

    #teamModal .modal-content {
        width: min(560px, calc(100vw - 28px));
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
        margin: 0 auto;
    }

    .team-modal-badge-header {
        min-height: 76px;
        padding: 16px 58px 16px 18px;
    }

    .team-modal-badge-name { font-size: 1rem; }

    .team-modal-flag {
        width: 38px;
        height: 38px;
    }

    .team-modal-badge-img {
        width: 48px;
        height: 48px;
    }
}

/* === ODDS BAR === */
/* Odds bar — labels live inside each segment so they always track the
   actual segment width. No separate static labels row underneath. */
.odds-container {
    margin: 8px 0 2px;
}

.odds-bar {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--border);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.odds-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0 4px;
    transition: width 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
}

.odds-seg-code {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.03em;
}

.odds-seg-pct {
    font-size: 0.62rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.odds-home { background: linear-gradient(135deg, #1a73e8, #1557b0); }
.odds-draw { background: linear-gradient(135deg, #94a3b8, #64748b); }
.odds-away { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.odds-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 2px;
}

.odds-meta-title {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Confidence shown as a small colored dot — tooltip explains it.
   Avoids the "wordy chip on every card" clutter. */
.odds-confidence-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.odds-confidence-low    { background: #f59e0b; }
.odds-confidence-medium { background: #3b82f6; }
.odds-confidence-high   { background: #10b981; }

/* Single shared legend for a whole match list section.
   Render once via renderOddsLegend(), not per card. */
.odds-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    margin: 8px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    font-size: 0.65rem;
    color: var(--text-light);
}

.odds-legend-item { display: flex; align-items: center; gap: 5px; font-weight: 600; }

.odds-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.swatch-home { background: linear-gradient(135deg, #1a73e8, #1557b0); }
.swatch-draw { background: linear-gradient(135deg, #94a3b8, #64748b); }
.swatch-away { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* === PREDICTION STATS BADGE === */
.pred-badge {
    display: none; /* hidden until data loaded */
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    margin: 6px 0 2px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #1d4ed8;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.pred-badge.has-data { display: inline-flex; }
.pred-badge:hover { background: #dbeafe; border-color: #93c5fd; transform: scale(1.03); }

.pred-badge-icon { width: 12px; height: 12px; flex-shrink: 0; }
.pred-badge-count { white-space: nowrap; }

/* === PREDICTION STATS MODAL === */
/* When team-themed: header gets gradient bg + white text + white close btn */
.pred-stats-header-themed {
    margin: -20px -20px 16px;
    padding: 16px 20px;
    color: #fff;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}
.pred-stats-header-themed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}
.pred-stats-header-themed h3 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    font-weight: 800;
    position: relative;
    z-index: 1;
}
.pred-stats-header-themed .modal-close {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .pred-stats-header-themed { border-radius: var(--radius) var(--radius) 0 0; }
}

.pred-stats-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

/* Cards use a soft team-accent tint when --pred-accent is set */
.pred-stats-metric {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.pred-stats-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pred-accent, var(--primary));
}

.pred-stats-value { display: block; font-size: 1.5rem; font-weight: 900; color: var(--pred-accent, var(--primary)); }
.pred-stats-label { display: block; font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }

.pred-stats-picks-title {
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pred-accent, var(--primary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pred-pick-row {
    display: grid;
    grid-template-columns: 42px 1fr 36px;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.pred-pick-score { font-size: 0.85rem; font-weight: 800; color: var(--text); text-align: center; }
.pred-pick-bar-wrap { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.pred-pick-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pred-accent, var(--primary)), color-mix(in srgb, var(--pred-accent, var(--primary)) 60%, white));
    border-radius: 4px;
}
.pred-pick-count { font-size: 0.7rem; font-weight: 700; color: var(--pred-accent, var(--primary)); text-align: center; }
.pred-pick-users { grid-column: 1 / -1; font-size: 0.6rem; color: var(--text-muted); padding-left: 50px; margin-top: -2px; }

.pred-stats-footer { margin-top: 14px; text-align: center; }

/* Full predictions list (after batch close) */
.pred-full-list { font-size: 0.75rem; }
.pred-full-header { display: grid; grid-template-columns: 1fr 60px 40px; font-weight: 700; color: var(--text-muted); padding-bottom: 6px; border-bottom: 2px solid var(--border); text-transform: uppercase; font-size: 0.6rem; letter-spacing: 0.05em; }
.pred-full-row { display: grid; grid-template-columns: 1fr 60px 40px; padding: 6px 0; border-bottom: 1px solid var(--border-light); align-items: center; }
.pred-full-name { font-weight: 600; }
.pred-full-score { font-weight: 800; text-align: center; }
.pred-full-pts { font-weight: 700; text-align: center; padding: 2px 6px; border-radius: 10px; font-size: 0.65rem; }

/* === MEDAL BADGES === */
.team-medal-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: 800;
    vertical-align: middle;
    line-height: 1;
}

.medal-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.medal-count {
    font-size: 0.55rem;
    font-weight: 800;
}

.medal-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b40;
}

.medal-gold .medal-icon { stroke: #d97706; }

.medal-silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 1px solid #94a3b840;
}

.medal-silver .medal-icon { stroke: #64748b; }

.medal-bronze {
    background: linear-gradient(135deg, #fef2e8, #fed7aa);
    color: #9a3412;
    border: 1px solid #f9731640;
}

.medal-bronze .medal-icon { stroke: #c2410c; }

/* === FIFA RANKING BADGES === */
.fifa-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid #c7d2fe;
    font-size: 0.58rem;
    font-weight: 700;
    color: #4338ca;
    vertical-align: middle;
    margin-top: 2px;
}

.fifa-rank-number {
    font-weight: 800;
    font-size: 0.6rem;
}

/* FIFA Ranking Detail (Team Modal) */
.fifa-ranking-detail {
    margin-bottom: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #eef2ff, #e8eaff);
    border-radius: var(--radius-sm);
    border: 1px solid #c7d2fe;
}

.fifa-ranking-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.fifa-ranking-icon {
    width: 16px;
    height: 16px;
    color: #4338ca;
}

.fifa-ranking-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4338ca;
}

.fifa-ranking-update {
    margin-left: auto;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.fifa-ranking-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fifa-rank-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fifa-rank-pos {
    font-size: 1.5rem;
    font-weight: 900;
    color: #312e81;
}

.fifa-rank-change {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 700;
}

.fifa-rank-meta {
    text-align: right;
}

.fifa-rank-pts {
    font-size: 0.72rem;
    color: var(--text-light);
}

.fifa-rank-conf {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === HOME / AWAY LABELS === */
.home-away-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}
.home-label {
    background: rgba(26, 115, 232, 0.12);
    color: var(--primary);
}
.away-label {
    background: rgba(234, 67, 53, 0.12);
    color: var(--danger);
}
/* In stacked team columns (live cards), put a small gap above the label */
.live-team .home-away-label { margin-top: 3px; }

/* === TEAM IDENTITY ACCENT (match cards) === */
/* Replaces the default green→blue stripe with home-color → away-color so the
   user can immediately associate a card with the two teams playing. */
.live-match-card.team-accent::before {
    background: linear-gradient(90deg,
        var(--home-color, var(--secondary)) 0%,
        var(--home-color, var(--secondary)) 45%,
        var(--away-color, var(--primary)) 55%,
        var(--away-color, var(--primary)) 100%);
}

/* === BACK TO TOP BUTTON === */
.btn-back-to-top {
    position: fixed;
    bottom: 90px;
    right: 16px;
    z-index: 95;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(26,115,232,0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.btn-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,115,232,0.45);
}

.btn-back-to-top:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .btn-back-to-top {
        bottom: 32px;
        right: 32px;
        width: 44px;
        height: 44px;
    }
}

/* === FAVORITE TEAM BADGE (match cards) ===
   Subtle, secondary indicator showing which team users are backing most.
   Sits next to the prediction count badge so the row reads:
   "🎯 12 tebakan   ★ 67% jagoin Brazil"
*/
.fav-badge-slot {
    display: inline-flex;
    vertical-align: middle;
}
.fav-badge-slot:not(:empty) {
    margin-left: 6px;
}

.fav-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease;
}

.fav-badge-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Home win favorite — primary blue accent */
.fav-badge.fav-home {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #fcd34d;
}
.fav-badge.fav-home .fav-badge-icon { color: #d97706; }

/* Away win favorite — same warm gold so neither team gets visually penalised
   (the team name in the text is what disambiguates) */
.fav-badge.fav-away {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #fcd34d;
}
.fav-badge.fav-away .fav-badge-icon { color: #d97706; }

/* Draw favorite — neutral gray */
.fav-badge.fav-draw {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}
.fav-badge.fav-draw .fav-badge-icon { color: #6b7280; }

/* On the compact match-card grid the badge wants its own line so the layout
   stays tidy alongside the time/predict button row. */
.match-card .fav-badge-slot {
    display: flex;
    justify-content: center;
    margin: 6px 0 0;
}
.match-card .fav-badge {
    font-size: 0.6rem;
    padding: 2px 7px;
}

/* === USER DETAIL MODAL (leaderboard click) === */
.lb-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    margin-bottom: 14px;
}
.lb-user-header-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}
.lb-user-header-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.15);
}
.lb-user-header-bronze {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.15);
}

.lb-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.lb-user-avatar-default { background: linear-gradient(135deg, #6b7280, #4b5563); }
.lb-user-avatar-gold    { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lb-user-avatar-silver  { background: linear-gradient(135deg, #94a3b8, #64748b); }
.lb-user-avatar-bronze  { background: linear-gradient(135deg, #ea580c, #c2410c); }

.lb-user-head-info {
    flex: 1;
    min-width: 0;
}
.lb-user-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-user-rank-line {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
}

.lb-user-pts {
    text-align: right;
    flex-shrink: 0;
}
.lb-user-pts-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}
.lb-user-pts-lbl {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Metrics grid */
.lb-user-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}
.lb-user-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.lb-user-metric-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}
.lb-user-metric-lbl {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lb-user-metric-exact   { background: #ecfdf5; border-color: #a7f3d0; }
.lb-user-metric-exact .lb-user-metric-num   { color: #047857; }
.lb-user-metric-correct { background: #eff6ff; border-color: #bfdbfe; }
.lb-user-metric-correct .lb-user-metric-num { color: #1d4ed8; }
.lb-user-metric-draw    { background: #fef3c7; border-color: #fde68a; }
.lb-user-metric-draw .lb-user-metric-num    { color: #92400e; }
.lb-user-metric-wrong   { background: #fef2f2; border-color: #fecaca; }
.lb-user-metric-wrong .lb-user-metric-num   { color: #b91c1c; }
.lb-user-metric-matches { background: #f5f3ff; border-color: #ddd6fe; }
.lb-user-metric-matches .lb-user-metric-num { color: #6d28d9; }

@media (max-width: 480px) {
    .lb-user-metrics {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    .lb-user-metric { padding: 6px 2px; }
    .lb-user-metric-num { font-size: 0.95rem; }
    .lb-user-metric-lbl { font-size: 0.52rem; }
}

/* History list */
.lb-user-history-slot { margin-top: 4px; }
.lb-user-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}
.lb-user-section-divider {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 10px 0 4px;
}
.lb-user-pred-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lb-user-pred-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "teams pts" "scores pts";
    gap: 4px 10px;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    align-items: center;
}
.lb-user-pred-teams {
    grid-area: teams;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
}
.lb-user-pred-vs {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 4px;
}
.lb-user-pred-scores {
    grid-area: scores;
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-light);
}
.lb-user-pred-scores strong {
    color: var(--text-dark);
    font-weight: 700;
}
.lb-user-pred-pts {
    grid-area: pts;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    min-width: 56px;
}
.lb-user-pred-pts.points-3 { background: #d1fae5; color: #065f46; }
.lb-user-pred-pts.points-2 { background: #dbeafe; color: #1e40af; }
.lb-user-pred-pts.points-1 { background: #fef3c7; color: #92400e; }
.lb-user-pred-pts.points-0 { background: #fee2e2; color: #991b1b; }
.lb-user-pred-pts.points-pending { background: #f3f4f6; color: #6b7280; }

/* === LEADERBOARD UTILITY STYLES (referenced by leaderboard.js) === */
.lb-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}
.lb-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}
.lb-pill-exact   { background: #ecfdf5; color: #047857; }
.lb-pill-correct { background: #eff6ff; color: #1d4ed8; }
.lb-pill-draw    { background: #fef3c7; color: #92400e; }
.lb-pill-wrong   { background: #fef2f2; color: #b91c1c; }
.lb-pill-matches { background: #f5f3ff; color: #6d28d9; }
.lb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

/* Tier list modal items */
.lb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 800;
}
.lb-modal-header-gold   { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.lb-modal-header-silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }
.lb-modal-header-bronze { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #9a3412; }
.lb-modal-header-rank   { font-size: 0.85rem; }
.lb-modal-header-pts    { font-size: 1rem; }
.lb-modal-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.lb-modal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lb-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    cursor: default;
    text-align: left;
}
.lb-modal-item-clickable { cursor: pointer; transition: background 0.15s ease; }
.lb-modal-item-clickable:hover { background: #f3f4f6; }
.lb-modal-item-info { flex: 1; min-width: 0; }
.lb-modal-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-modal-item-chev {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Generic clickable leaderboard row */
.leaderboard-item-clickable { cursor: pointer; transition: background 0.15s ease; }
.leaderboard-item-clickable:hover { background: rgba(26, 115, 232, 0.04); }
.lb-tier-card-clickable { cursor: pointer; }
