/* ============================================
   BETORSPIN WC2026 — PREMIUM DARK THEME
   ============================================ */

:root {
    --bg: #0a0b0f;
    --surface-1: #12131a;
    --surface-2: #181a24;
    --surface-3: #1f2130;
    --border: rgba(255,255,255,0.05);
    --border-hover: rgba(255,255,255,0.12);
    --accent: #e8520e;
    --accent-hover: #ff6b2e;
    --accent-glow: rgba(232,82,14,0.12);
    --text: #ecedf2;
    --text-2: #a0a2b4;
    --text-3: #7a7b90;
    --gold: #f0c030;
    --silver: #a8aab2;
    --bronze: #c27a3a;
    --danger: #e04040;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glow-orange: 0 0 30px rgba(232,82,14,0.15), 0 0 60px rgba(232,82,14,0.05);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
}
body.modal-open { overflow: hidden; }

h1, h2, h3, .hero-title, .strip-value, .time-num, .prize-amount {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* --- LAYOUT --- */
.app-container { display: flex; height: 100vh; overflow: hidden; }
main { flex: 1; overflow-y: auto; position: relative; }

/* --- SIDEBAR — ULTRA PREMIUM --- */
.sidebar {
    width: 220px;
    background: linear-gradient(180deg, var(--surface-1) 0%, rgba(10,11,15,0.98) 100%);
    border-right: 1px solid var(--border);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}
.sidebar::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(232,82,14,0.15), transparent);
}
.logo { text-align: center; margin-bottom: 1rem; }
.logo > img { height: 36px; cursor: pointer; transition: transform 0.2s; }
.logo > img:hover { transform: scale(1.05); }

/* Sub-branding */
.logo-subbrand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 12px;
}
.logo-emblem {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(232,82,14,0.45);
    box-shadow:
        0 0 0 1px rgba(232,82,14,0.15),
        0 0 18px rgba(232,82,14,0.25),
        inset 0 0 12px rgba(0,0,0,0.4);
    filter: brightness(1.05) saturate(1.1);
    transition: all 0.35s ease;
}
.logo-emblem:hover {
    border-color: rgba(232,82,14,0.75);
    box-shadow:
        0 0 0 1px rgba(232,82,14,0.3),
        0 0 28px rgba(232,82,14,0.4),
        inset 0 0 12px rgba(0,0,0,0.3);
    filter: brightness(1.12) saturate(1.2);
    transform: scale(1.04);
}
.logo-event-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    opacity: 0.75;
    position: relative;
    padding-bottom: 10px;
}
.logo-event-tag::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}
nav { display: flex; flex-direction: column; gap: 4px; }

/* Nav Buttons */
.nav-btn {
    background: none; border: none; color: var(--text-2);
    font-size: 13px; font-weight: 500; cursor: pointer;
    padding: 10px 14px; border-radius: var(--r-md);
    transition: all 0.25s var(--ease); text-align: left;
    text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    position: relative;
    overflow: hidden;
}
.nav-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--accent), #ff6b2e);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.25s var(--ease);
}
.nav-btn .nav-icon {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: all 0.25s var(--ease);
    color: var(--text-2);
}
.nav-btn .nav-icon svg {
    width: 16px; height: 16px;
}
.nav-btn .nav-label { font-size: inherit; color: inherit; font-weight: inherit; }
.nav-btn:hover {
    color: var(--text);
    background: linear-gradient(90deg, rgba(232,82,14,0.04), transparent);
    transform: translateX(3px);
}
.nav-btn:hover .nav-icon {
    background: var(--surface-3);
    border-color: rgba(232,82,14,0.15);
}

/* Active state */
.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(232,82,14,0.12), rgba(232,82,14,0.03));
    font-weight: 700;
}
.nav-btn.active::before {
    opacity: 1;
    transform: scaleY(1);
}
.nav-btn.active .nav-icon {
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,82,14,0.3);
}

/* Nav Separator */
.nav-separator {
    height: 1px;
    margin: 8px 14px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* BetorspinTV Nav Button */
.nav-tv-btn {
    margin-top: 4px;
    background: linear-gradient(135deg, rgba(232,82,14,0.06), rgba(232,185,49,0.03)) !important;
    border: 1px solid rgba(232,82,14,0.1) !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
}
.nav-tv-btn:hover {
    background: linear-gradient(135deg, rgba(232,82,14,0.12), rgba(232,185,49,0.08)) !important;
    border-color: rgba(232,82,14,0.2) !important;
    transform: translateX(3px);
}
.nav-tv-live {
    width: 8px; height: 8px;
    background: #e04040;
    border-radius: 50%;
    animation: tvPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes tvPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224,64,64,0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(224,64,64,0); }
}

/* Desktop/Mobile visibility helpers */
.desktop-only { display: inline; }
.mobile-only { display: none; }

/* BetorspinTV icon color */
.nav-tv-icon { background: none !important; border: none !important; color: var(--accent); }
.nav-tv-icon svg { width: 18px; height: 18px; }

/* Page Banner Component */
.page-banner {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    height: 120px;
}
.page-banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,11,15,0.7), transparent);
}
.page-banner-title {
    position: absolute;
    bottom: 16px; left: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin: 0;
}

/* Predict Banner */
.predict-hero-banner {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    height: 80px;
}
.predict-banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.predict-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,11,15,0.5), rgba(10,11,15,0.2));
}

/* --- TOP USER BAR --- */
.top-user-bar {
    position: absolute; top: 12px; right: 16px; z-index: 50;
    display: flex; gap: 6px; align-items: center;
}
.top-user-bar-mobile { display: none; }

/* --- PAGES --- */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.3s var(--ease); }
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   HOME / LANDING
   ========================================== */
.home-landing {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.landing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Hero */
.landing-hero {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,11,15,0.92), rgba(10,11,15,0.6), rgba(232,82,14,0.08));
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
}
.hero-text-side { flex: 1; }
.hero-trophy-side {
    flex-shrink: 0;
    position: relative;
}
.hero-trophy-img {
    height: 220px;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 0 40px rgba(240,192,48,0.3));
    animation: trophyFloat 4s ease-in-out infinite;
    mask-image: radial-gradient(ellipse 70% 80% at center, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at center, black 50%, transparent 100%);
}
@keyframes trophyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(232,82,14,0.25);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), #ff8a50, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 20px rgba(232,82,14,0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(232,82,14,0.45); }
.cta-btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
    text-decoration: none;
    font-size: 13px;
    margin-left: 10px;
}
.cta-btn-secondary:hover {
    background: rgba(232,82,14,0.1);
    box-shadow: 0 4px 20px rgba(232,82,14,0.2);
    color: #ff6b2e;
    transform: translateY(-2px);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 0;
    backdrop-filter: blur(8px);
}
.strip-item {
    flex: 1;
    text-align: center;
}
.strip-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}
.strip-label {
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.strip-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Countdown */
.countdown-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.countdown-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
    animation: shimmerPulse 3s ease-in-out infinite;
}
@keyframes shimmerPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.countdown-header {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
.time-unit { text-align: center; }
.time-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1;
}
.time-txt {
    font-size: 12px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.time-sep {
    font-size: 22px;
    color: var(--accent);
    font-weight: 300;
    padding: 0 6px;
    align-self: flex-start;
    margin-top: 4px;
    opacity: 0.6;
}

/* How It Works */
.how-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}
.how-step {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 14px;
    text-align: center;
    transition: all 0.2s var(--ease);
}
.how-step:hover {
    border-color: rgba(232,82,14,0.15);
    transform: translateY(-2px);
    box-shadow: var(--glow-orange);
}
.step-num {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
    font-weight: 800; font-size: 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 2px 12px rgba(232,82,14,0.3);
}
.step-text {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
}
.step-text strong { color: var(--text); font-size: 13px; }

/* Participant Counter */
.participant-counter {
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    margin-top: 2rem;
    padding: 8px 0;
}
.participant-counter span {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   PREDICT PAGE — PREMIUM
   ========================================== */
/* Predict Topbar */
.predict-topbar {
    margin-bottom: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,11,15,0.92);
    backdrop-filter: blur(12px);
    padding: 10px 0;
}

.predict-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    position: relative;
    overflow: hidden;
}
.predict-info-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.predict-info-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin: 0;
    line-height: 1.4;
}

.predict-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.predict-save-btn {
    height: 32px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    box-shadow: 0 2px 10px rgba(232,82,14,0.25);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.predict-save-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,82,14,0.4); }

.predict-icon-btn {
    width: 32px;
    height: 32px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-3);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.predict-icon-btn:hover { color: var(--danger); border-color: rgba(224,64,64,0.3); background: rgba(224,64,64,0.06); }

.predict-download-btn {
    height: 32px;
    padding: 0 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.predict-download-btn:hover { background: var(--surface-3); color: var(--text); }

/* Groups */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.group-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.25s var(--ease);
}
.group-card:hover { border-color: rgba(232,82,14,0.25); box-shadow: var(--glow-orange); }
/* No transform on hover - prevents HTML5 DnD coordinate issues */
body.sorting-active .group-card:hover { box-shadow: none !important; }
.group-header {
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 13px;
    letter-spacing: 0.03em;
    position: relative;
}
.group-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,82,14,0.3), transparent);
}
.team-list { list-style: none; }
.rank-item {
    height: 42px; margin-bottom: 3px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--text-3);
    transition: all 0.15s;
}
/* Rank position colors: 1=qualified, 2=playoff */
.rank-item:nth-child(1) { color: #34d399; font-weight: 800; }
.rank-item:nth-child(2) { color: #fbbf24; font-weight: 800; }
.rank-active { color: var(--accent); transform: scale(1.25); }
.team-item {
    display: flex; align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    margin-bottom: 3px; padding: 0 10px;
    border-radius: var(--r-sm);
    cursor: grab; transition: all 0.2s var(--ease);
    height: 42px; border-left: 2px solid transparent;
    text-decoration: none;
}
/* Position-based left border colors */
.team-item:nth-child(1) { border-left: 2px solid rgba(52,211,153,0.4); }
.team-item:nth-child(2) { border-left: 2px solid rgba(251,191,36,0.4); }
.team-item:active { cursor: grabbing; }
.team-item:hover { background: rgba(232,82,14,0.06); border-left-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(232,82,14,0.08); }
.team-name { flex: 1; font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.team-name img { flex-shrink: 0; }
.team-item.sortable-ghost { opacity: 0.3; }
.team-item.sortable-drag { background: var(--accent) !important; color: #000; }

/* Rank Legend */
.rank-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    margin-top: 8px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
}
.legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.legend-qualified { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,0.4); }
.legend-playoff { background: #fbbf24; box-shadow: 0 0 6px rgba(251,191,36,0.4); }
.legend-eliminated { background: var(--text-3); }

/* ==========================================
   CONTENT PAGES — PREMIUM
   ========================================== */
.content-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem;
}
.content-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-desc { color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.page-note {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-note::before { content: '🏆'; }
.info-bar {
    background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.info-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Rules — Premium Redesigned */
.rules-prize-hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(18, 16, 22, 0.95), rgba(14, 13, 18, 0.98));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-lg);
    padding: 36px 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 40px rgba(255, 255, 255, 0.015);
}
.rules-prize-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    animation: prizePulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}
.rules-prize-hero::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-25deg);
    animation: sweepPremium 5s infinite;
    pointer-events: none;
}
@keyframes prizePulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}
@keyframes sweepPremium {
    0%, 20% { left: -150%; }
    50%, 100% { left: 200%; }
}
.prize-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #f0ede8 50%, #c8bfb0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    position: relative;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
    margin-bottom: 4px;
}
.prize-label {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-top: 8px;
    position: relative;
    display: inline-block;
}
.prize-label::before, .prize-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.prize-label::before { right: 100%; margin-right: 12px; }
.prize-label::after { left: 100%; margin-left: 12px; }
.rules-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}
.rules-section:hover { border-color: rgba(232,82,14,0.15); box-shadow: var(--glow-orange); }
.rules-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.rules-section:hover::before { opacity: 1; }
.rules-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.rules-section-icon {
    font-size: 18px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent-glow), rgba(232,82,14,0.12));
    border-radius: var(--r-sm);
    border: 1px solid rgba(232,82,14,0.1);
}
.rules-section h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.rules-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rules-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    padding: 6px 0;
}
.rs-num {
    width: 24px; height: 24px;
    background: linear-gradient(135deg, rgba(232,82,14,0.15), rgba(232,82,14,0.06));
    color: var(--accent);
    font-weight: 800; font-size: 12px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    border: 1px solid rgba(232,82,14,0.1);
}
.rules-list {
    list-style: none;
    color: var(--text-2);
    font-size: 13px;
}
.rules-list li {
    padding: 8px 0 8px 14px;
    position: relative;
    line-height: 1.6;
    transition: color 0.2s;
}
.rules-list li:hover { color: var(--text); }
.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-3);
    transition: background 0.2s;
}
.rules-list li:hover::before { background: var(--accent); }
.rules-list li.rule-warn { color: var(--danger); font-weight: 600; }
.rules-list li.rule-warn::before { background: var(--danger); }
.rules-list li + li { border-top: 1px solid var(--border); }
.rule-warn { color: var(--danger); font-weight: 600; }

/* Leaderboard — Premium */
.leaderboard-item {
    display: flex; align-items: center;
    background: var(--surface-1);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: var(--r-md);
    margin-bottom: 6px;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}
.leaderboard-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.lb-rank { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; color: var(--accent); width: 32px; }
.lb-user { flex: 1; font-size: 13px; font-weight: 500; }
.lb-score { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; color: var(--accent); }

/* Top 3 premium */
.lb-rank-1 {
    border-color: rgba(232,185,49,0.25);
    background: linear-gradient(135deg, rgba(232,185,49,0.06), rgba(232,185,49,0.02));
    box-shadow: 0 2px 12px rgba(232,185,49,0.08);
}
.lb-rank-1:hover { box-shadow: 0 4px 20px rgba(232,185,49,0.15); }
.lb-rank-1 .lb-rank, .lb-rank-1 .lb-score { color: var(--gold); }
.lb-rank-2 {
    border-color: rgba(168,170,178,0.2);
    background: linear-gradient(135deg, rgba(168,170,178,0.04), transparent);
}
.lb-rank-2 .lb-rank, .lb-rank-2 .lb-score { color: var(--silver); }
.lb-rank-3 {
    border-color: rgba(194,122,58,0.2);
    background: linear-gradient(135deg, rgba(194,122,58,0.04), transparent);
}
.lb-rank-3 .lb-rank, .lb-rank-3 .lb-score { color: var(--bronze); }
.lb-avatar {
    width: 30px; height: 30px;
    background: var(--surface-3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
    color: var(--text-2);
    margin-right: 10px;
    flex-shrink: 0;
}
.lb-rank-1 .lb-avatar { background: rgba(232,185,49,0.15); color: var(--gold); border: 1px solid rgba(232,185,49,0.2); }
.lb-rank-2 .lb-avatar { background: rgba(168,170,178,0.1); color: var(--silver); border: 1px solid rgba(168,170,178,0.15); }
.lb-rank-3 .lb-avatar { background: rgba(194,122,58,0.1); color: var(--bronze); border: 1px solid rgba(194,122,58,0.15); }
.lb-current-user { border-color: var(--accent) !important; background: rgba(232,82,14,0.06) !important; }
.lb-you-badge {
    display: inline-block;
    font-size: 9px; font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lb-separator {
    text-align: center;
    padding: 10px 0;
    color: var(--text-3);
    font-size: 12px;
    position: relative;
}
.lb-separator::before, .lb-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 50px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.lb-separator::before { left: 0; }
.lb-separator::after { right: 0; }
.lb-total-count {
    text-align: center;
    padding: 10px 0 4px;
    color: var(--text-3);
    font-size: 12px;
}

/* Live TV Link (Rules page) */
.live-tv-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: all 0.15s;
}
.live-tv-link:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================
   AUTH / MODALS
   ========================================== */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
    z-index: 999; justify-content: center; align-items: flex-start; padding: 1rem;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.modal-close {
    position: absolute; top: 10px; right: 10px;
    width: 26px; height: 26px;
    background: var(--surface-3); border: none; border-radius: 50%;
    color: var(--text-2); font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.auth-container {
    position: relative; max-width: 380px; width: 100%; margin: 0;
    background: linear-gradient(145deg, var(--surface-1), rgba(18,19,26,0.95));
    padding: 28px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
}
.auth-container::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}
.auth-tabs {
    display: flex;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.auth-tab {
    flex: 1; padding: 8px; border: none; border-radius: 4px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--text-3); transition: all 0.2s var(--ease);
}
.auth-tab.active {
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,82,14,0.3);
}
.auth-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.auth-container p { color: var(--text-2); margin-bottom: 16px; font-size: 13px; }
.auth-container input {
    width: 100%; padding: 10px 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-sm); color: var(--text);
    font-size: 13px; outline: none; transition: all 0.2s var(--ease);
    margin-bottom: 10px;
}
.auth-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,82,14,0.08);
}
.input-highlight { border-color: rgba(232,82,14,0.3) !important; }
.input-with-action { position: relative; margin-bottom: 10px; }
.input-with-action input { margin-bottom: 0; padding-right: 56px; }
.input-action {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-3);
    cursor: pointer; font-size: 12px;
}
.checkbox-label {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-2); font-size: 12px; margin-bottom: 12px; cursor: pointer;
}
.checkbox-label input { width: auto; margin: 0; accent-color: var(--accent); }
.disclaimer-check {
    align-items: flex-start;
    background: rgba(232,82,14,0.04);
    border: 1px solid rgba(232,82,14,0.12);
    border-radius: var(--r-sm);
    padding: 12px;
    margin-bottom: 14px;
    line-height: 1.5;
}
.disclaimer-check input { margin-top: 3px; flex-shrink: 0; }
.disclaimer-check span { font-size: 12px; color: var(--text-2); }
.auth-footer { text-align: center; margin-top: 12px; }
.auth-footer a { color: var(--text-3); font-size: 12px; text-decoration: underline; }
.betorspin-link { margin-bottom: 10px; }
.betorspin-link a { color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; }

.primary-btn {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
    border: none; border-radius: var(--r-sm); font-size: 14px;
    font-weight: 700; cursor: pointer; transition: all 0.2s var(--ease);
    box-shadow: 0 3px 14px rgba(232,82,14,0.3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,82,14,0.4); }
.primary-btn:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; opacity: 0.6; box-shadow: none; transform: none; }
.primary-btn::before { display: none; }
.primary-btn.warning { background: linear-gradient(135deg, #b45309, #d97706); }

/* Admin */
.admin-login-box {
    max-width: 340px; margin: 2rem auto;
    background: var(--surface-1); border: 1px solid var(--border);
    padding: 24px; border-radius: var(--r-md); text-align: center;
}
.admin-login-box h3 { color: var(--accent); margin-bottom: 6px; font-size: 15px; }
.admin-login-box p { color: var(--text-2); margin-bottom: 12px; font-size: 13px; }
.admin-login-box input {
    width: 100%; padding: 9px; border-radius: var(--r-sm);
    border: 1px solid var(--border); background: var(--surface-2);
    color: #fff; margin-bottom: 10px; font-size: 13px;
}
.admin-tabs { display: flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 3px; margin-bottom: 16px; max-width: 300px; }
.admin-tab {
    flex: 1; padding: 7px; border: none; border-radius: 4px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--text-3); transition: all 0.15s;
}
.admin-tab.active { background: var(--accent); color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; text-align: left; }
.admin-table th { color: var(--accent); font-weight: 600; background: var(--surface-2); }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-action-btn {
    background: var(--accent-glow); color: var(--accent);
    border: 1px solid rgba(232,82,14,0.2); padding: 3px 8px;
    border-radius: 4px; cursor: pointer; font-size: 12px;
}
.admin-action-btn:hover { background: var(--accent); color: #fff; }

/* Save Success Overlay */
#save-success-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.success-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}
.success-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), #ff8a50);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: #fff;
    margin: 0 auto 16px;
}
.success-card h2 {
    font-size: 1.3rem; font-weight: 700;
    color: var(--text); margin-bottom: 8px;
}
.success-card p {
    font-size: 13px; color: var(--text-2);
    line-height: 1.6; margin-bottom: 20px;
}
.success-download-btn {
    width: 100%; padding: 12px;
    background: var(--accent); color: #fff;
    border: none; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
    margin-bottom: 10px;
}
.success-download-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.success-close-btn {
    width: 100%; padding: 10px;
    background: transparent; color: var(--text-3);
    border: 1px solid var(--border); border-radius: var(--r-sm);
    font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
}
.success-close-btn:hover { color: var(--text); border-color: var(--border-hover); }

/* Toast — Premium */
.toast {
    position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
    background: var(--surface-2); color: var(--text);
    padding: 12px 20px 12px 16px; border-radius: var(--r-md);
    font-weight: 600; font-size: 13px;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 10000;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    max-width: 90vw;
    backdrop-filter: blur(20px);
}
.toast::before {
    content: '✓'; display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(34,197,94,0.15); color: #22c55e;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.toast.toast-error::before { content: '✕'; background: rgba(224,64,64,0.15); color: var(--danger); }
.toast.toast-info::before { content: 'i'; background: rgba(59,130,246,0.15); color: #3b82f6; font-style: italic; }
.toast.show { bottom: 5rem; }

/* Page Transition — unified with pageIn (see line 271) */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-line { height: 14px; margin-bottom: 8px; border-radius: 6px; }
.skeleton-card { height: 180px; border-radius: var(--r-md); }

/* Countdown Flip Animation */
.time-num {
    transition: transform 0.3s var(--ease);
}
.time-num.flip {
    animation: countFlip 0.5s var(--ease);
}
@keyframes countFlip {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* Form Focus Glow */
.auth-container input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(232,82,14,0.15), 0 0 20px rgba(232,82,14,0.08) !important;
    outline: none;
}
.password-strength {
    height: 3px; border-radius: 2px; margin-top: 4px;
    background: var(--surface-3); overflow: hidden; transition: all 0.3s;
}
.password-strength-fill {
    height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s;
}
.pw-weak { width: 33%; background: var(--danger); }
.pw-medium { width: 66%; background: #f59e0b; }
.pw-strong { width: 100%; background: #22c55e; }

/* Confirm Dialog */
.confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-card {
    background: var(--surface-1); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px 24px;
    max-width: 380px; width: 90%; text-align: center;
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.confirm-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.confirm-card p { font-size: 13px; color: var(--text-2); margin-bottom: 20px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions button {
    flex: 1; padding: 10px; border-radius: var(--r-sm);
    font-weight: 600; font-size: 13px; cursor: pointer; border: none;
    transition: all 0.15s;
}
.confirm-yes {
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
}
.confirm-yes:hover { filter: brightness(1.1); transform: translateY(-1px); }
.confirm-no {
    background: var(--surface-3); color: var(--text-2);
    border: 1px solid var(--border);
}
.confirm-no:hover { border-color: var(--border-hover); color: var(--text); }

/* Confetti Canvas */
#confetti-canvas {
    position: fixed; inset: 0; z-index: 10002;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center; padding: 3rem 1.5rem;
    background: var(--surface-2); border-radius: var(--r-lg);
    border: 1px dashed var(--border);
}
.empty-state-icon {
    font-size: 3rem; margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.empty-state h3 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1.1rem; }
.empty-state p { color: var(--text-2); font-size: 0.85rem; line-height: 1.6; }

/* FAQ Accordion */
.faq-section { margin-top: 2rem; }
.faq-item {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--r-md); margin-bottom: 8px; overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
    padding: 14px 16px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 13px; color: var(--text);
    user-select: none;
}
.faq-question::after {
    content: '+'; font-size: 18px; color: var(--accent);
    transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
    padding: 0 16px;
}
.faq-item.open .faq-answer {
    max-height: 200px; padding: 0 16px 14px;
}
.faq-answer p { font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* Ghost/drag shared */
.sortable-ghost { opacity: 0.3; border: 1px dashed var(--accent); }
.sortable-drag { box-shadow: 0 4px 16px rgba(0,0,0,0.5) !important; }
.sortable-fallback { opacity: 0.9 !important; background: var(--accent) !important; color: #fff !important; border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(255,85,0,0.4) !important; z-index: 9999 !important; }

/* ==========================================
   ARROW BUTTONS (team reorder)
   ========================================== */
.team-arrows {
    display: none;
    gap: 2px;
    margin-left: auto;
    margin-right: 4px;
}
.arrow-btn {
    width: 30px; height: 26px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-2);
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.arrow-btn:active { background: var(--accent); color: #fff; transform: scale(0.92); }

/* Drag handle */
.drag-handle {
    color: var(--text-3);
    cursor: grab;
    font-size: 14px;
    padding: 0 4px;
}

/* ==========================================
   MOBILE SLIDER NAV (hidden on desktop)
   ========================================== */
.mobile-slider-nav { display: none; }
.mobile-sticky-footer { display: none; }

/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 768px) {
    .app-container { flex-direction: column; height: auto; overflow: visible; }
    main { flex: none; }
    .page { padding: 0 12px 68px; height: auto; }

    #home-page { padding: 0; }
    .home-landing { padding: 12px 14px 80px; }
    .landing-topbar { margin-bottom: 1rem; }

    .hero-badge { font-size: 12px; padding: 4px 10px; margin-bottom: 8px; }
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 13px; margin-bottom: 1rem; }
    .hero-content { flex-direction: column; padding: 1.5rem 1rem; gap: 0.5rem; }
    .hero-trophy-side { order: -1; }
    .hero-trophy-img { height: 130px; }
    .hero-text-side { text-align: left; }
    .cta-btn { width: 100%; justify-content: center; padding: 10px; }
    .cta-btn-secondary { margin-left: 0; margin-top: 8px; }

    .stats-strip { margin: 1.25rem 0; padding: 12px 0; }
    .strip-value { font-size: 16px; }
    .strip-label { font-size: 12px; }
    .strip-divider { height: 24px; }

    .countdown-section { padding: 12px 14px; margin-bottom: 1.25rem; }
    .time-num { font-size: 20px; }
    .time-sep { font-size: 16px; padding: 0 4px; }

    .how-section { gap: 6px; }
    .how-step { padding: 12px 8px; }
    .step-num { width: 24px; height: 24px; font-size: 12px; }
    .step-text { font-size: 12px; }

    /* Bottom Nav */
    .sidebar {
        width: 100%; position: fixed; bottom: 0; left: 0; right: 0;
        height: calc(54px + env(safe-area-inset-bottom, 0px)); 
        padding: 0 0 env(safe-area-inset-bottom, 0px) 0; flex-direction: row;
        border-right: none; border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 9999; 
        background: rgba(10,11,15,0.92);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    }
    .sidebar::after { display: none; }
    .logo { display: none; }
    .nav-separator { display: none; }
    nav { flex-direction: row; width: 100%; gap: 0; justify-content: space-around; align-items: stretch; height: 100%; }
    .nav-btn {
        flex: 1; padding: 0; border-radius: 0; justify-content: center;
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        border-bottom: 2px solid transparent; font-size: 0; height: 100%;
        transform: none !important;
    }
    .nav-btn::before { display: none; }
    .nav-btn .nav-icon {
        width: auto; height: auto;
        background: none !important; border: none !important;
        box-shadow: none !important;
        color: var(--text-2);
    }
    .nav-btn .nav-icon svg { width: 18px; height: 18px; }
    .nav-btn .nav-label { font-size: 9px; font-weight: 500; color: inherit; }
    .nav-btn.active {
        background: none !important;
        color: var(--accent);
        position: relative;
    }
    .nav-btn.active::after {
        content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
        width: 4px; height: 4px; border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 6px var(--accent);
    }
    /* BetorspinTV mobile */
    .nav-tv-btn { margin-top: 0 !important; border: none !important; background: none !important; position: relative; }
    .nav-tv-btn .nav-label { font-size: 9px !important; }
    .nav-tv-icon svg { width: 18px !important; height: 18px !important; }
    .nav-tv-live { width: 6px; height: 6px; position: absolute; top: 3px; right: calc(50% - 14px); }
    #admin-nav-btn { display: none !important; }
    .top-user-bar { display: none !important; }
    .top-user-bar-mobile { display: flex; justify-content: flex-end; }
    /* Text visibility */
    .desktop-only { display: none !important; }
    .mobile-only { display: inline !important; }
    /* Mobile banner adjustments */
    .predict-hero-banner { height: 50px; margin-bottom: 6px; }
    .page-banner { height: 80px; }
    .page-banner-title { font-size: 1.1rem; bottom: 10px; left: 14px; }

    /* ---- PREDICT: Mobile Slider ---- */
    .predict-topbar { padding: 6px 0; position: static; }
    .predict-info-card h3 { font-size: 12px; }
    .desktop-save-btn { display: none !important; }
    .predict-download-btn { display: none !important; }
    .predict-icon-btn { width: 28px; height: 28px; font-size: 12px; }

    /* Show arrows, hide drag handle on mobile */
    .team-arrows { display: flex; }
    .drag-handle { display: none; }

    /* Slider nav */
    .mobile-slider-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 4px;
        margin-bottom: 6px;
    }
    .slider-arrow {
        width: 42px; height: 42px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--r-sm);
        color: var(--text);
        font-size: 22px; font-weight: 300;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.15s var(--ease);
        -webkit-tap-highlight-color: transparent;
    }
    .slider-arrow:active { background: var(--accent); color: #fff; }
    .slider-arrow:disabled { opacity: 0.3; pointer-events: none; }
    .slider-progress {
        display: flex; flex-direction: column; align-items: center; gap: 6px;
    }
    .slider-progress-text { font-size: 14px; font-weight: 700; color: var(--text); }
    .slider-progress-text span { color: var(--accent); }
    .slider-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
    .slider-dot {
        width: 7px; height: 7px;
        border-radius: 50%;
        background: var(--surface-3);
        transition: all 0.2s var(--ease);
    }
    .slider-dot.active { background: var(--accent); transform: scale(1.3); }

    /* Show one group at a time (only on main predict page, not modals) */
    .groups-grid { display: block !important; }
    #groups-grid .group-card {
        display: none;
        animation: slideIn 0.25s var(--ease);
    }
    #groups-grid .group-card.mobile-visible { display: block; }

    /* Public user predictions modal: show all groups in a scrollable grid */
    #public-user-predictions-grid { display: grid !important; grid-template-columns: 1fr; gap: 12px; }
    #public-user-predictions-grid .group-card { display: block; }
    @keyframes slideIn {
        from { opacity: 0; transform: translateX(20px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .group-header { padding: 10px; font-size: 14px; font-weight: 700; }
    .team-item {
        height: 46px; font-size: 13px;
        padding: 0 8px 0 12px;
        touch-action: manipulation;
    }
    .rank-item { height: 46px; font-size: 14px; font-weight: 800; }

    /* Sticky save footer */
    .mobile-sticky-footer {
        display: block;
        position: fixed;
        bottom: calc(50px + env(safe-area-inset-bottom, 0px));
        left: 0; right: 0;
        padding: 8px 16px;
        background: rgba(12,12,16,0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        z-index: 9998;
    }
    .mobile-save-btn {
        width: 100%;
        padding: 13px;
        background: linear-gradient(135deg, var(--accent), #ff6b2e);
        color: #fff;
        border: none;
        border-radius: var(--r-sm);
        font-size: 14px; font-weight: 700;
        cursor: pointer;
        transition: all 0.15s var(--ease);
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 3px 14px rgba(232,82,14,0.3);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .mobile-save-btn:active { background: var(--accent-hover); transform: scale(0.98); }
    .mobile-save-btn:disabled { background: var(--surface-3); color: var(--text-3); box-shadow: none; }

    #predict-page { padding-bottom: 130px; }

    /* Content pages */
    .content-container { padding: 12px 2px; }
    .content-container h2 { font-size: 1.15rem; }

    .leaderboard-item { padding: 8px 10px; }
    .lb-rank { font-size: 12px; width: 26px; }
    .lb-user { font-size: 12px; }
    .lb-score { font-size: 12px; }

    /* Auth */
    .auth-container { padding: 18px; border-radius: var(--r-md); max-height: 90vh; overflow-y: auto; }
    .auth-container h2 { font-size: 1.1rem; }
    .auth-container input { padding: 8px 10px; font-size: 16px; }

    .toast { font-size: 12px; padding: 10px 14px 10px 12px; }
    .toast::before { width: 20px; height: 20px; font-size: 12px; }
    .toast.show { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================
   ADMIN GROUP LOCK TOGGLE
   ========================================== */
.group-header {
    display: flex;
    align-items: center;
    justify-content: center;
}
.group-header-text { flex: 1; }

.group-lock-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    user-select: none;
    margin-left: auto;
    padding-right: 4px;
}
.group-lock-label input { display: none; }

.group-lock-slider {
    width: 34px;
    height: 18px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.group-lock-slider::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 12px; height: 12px;
    background: var(--text-3);
    border-radius: 50%;
    transition: all 0.25s ease;
}
.group-lock-label input:checked + .group-lock-slider {
    background: rgba(52, 211, 153, 0.25);
    border-color: rgba(52, 211, 153, 0.5);
}
.group-lock-label input:checked + .group-lock-slider::after {
    transform: translateX(16px);
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}

.group-lock-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-3);
    min-width: 48px;
    transition: color 0.2s;
}
.group-lock-label input:checked ~ .group-lock-text {
    color: #34d399;
}

/* ==========================================
   FIXTURES & LIVE SCORES
   ========================================== */

/* Tab Navigation */
.fixture-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 1.25rem;
}
.fixture-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-3);
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: center;
}
.fixture-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.fixture-tab.active {
    background: linear-gradient(135deg, var(--accent), #ff6b2e);
    color: #fff;
    box-shadow: 0 2px 10px rgba(232,82,14,0.25);
}

/* Loading */
.fixture-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 3rem 1rem;
    color: var(--text-3);
    font-size: 13px;
}
.fixture-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--surface-3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Notice */
.fixture-notice {
    text-align: center;
    padding: 10px 16px;
    margin-bottom: 1rem;
    background: rgba(232,82,14,0.06);
    border: 1px solid rgba(232,82,14,0.15);
    border-radius: var(--r-sm);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

/* Date Header */
.fixture-date-header {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding: 12px 0 8px;
    margin-top: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fixture-date-header span { font-size: 16px; }

/* Match Card */
.fixture-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    transition: all 0.2s var(--ease);
    position: relative;
    overflow: hidden;
}
.fixture-card:hover {
    border-color: rgba(255,255,255,0.1);
    background: var(--surface-2);
}

/* Live match glow */
.fixture-card.fixture-live {
    border-color: rgba(239,68,68,0.3);
    box-shadow: 0 0 20px rgba(239,68,68,0.08), inset 0 0 0 1px rgba(239,68,68,0.05);
}
.fixture-card.fixture-live::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    animation: liveShimmer 2s ease-in-out infinite;
}
@keyframes liveShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.fixture-card.fixture-finished { opacity: 0.75; }
.fixture-card.fixture-finished:hover { opacity: 1; }

/* Group Badge */
.fixture-group-badge {
    position: absolute;
    top: 6px; right: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 0.05em;
    background: var(--surface-3);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Match Row */
.fixture-match-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.fixture-home { justify-content: flex-end; text-align: right; }
.fixture-away { justify-content: flex-start; text-align: left; }

.fixture-team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixture-crest {
    width: 28px; height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

/* Score Area */
.fixture-score-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
    flex-shrink: 0;
}

.fixture-score {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
}
.fixture-score.live { color: #ef4444; }
.fixture-score.finished { color: var(--text); }
.fixture-score.scheduled {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0;
}

/* Status Badge */
.fixture-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.03em;
}
.fixture-status-badge.live {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}
.fixture-status-badge.finished {
    background: rgba(255,255,255,0.05);
    color: var(--text-3);
}
.fixture-status-badge.scheduled {
    background: rgba(232,82,14,0.08);
    color: var(--text-3);
}

/* Live Dot */
.live-dot {
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* ==========================================
   STANDINGS
   ========================================== */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.standings-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.2s var(--ease);
}
.standings-card:hover {
    border-color: rgba(232,82,14,0.2);
    box-shadow: var(--glow-orange);
}

.standings-header {
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}
.standings-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,82,14,0.3), transparent);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.standings-table th {
    padding: 8px 6px;
    font-weight: 700;
    color: var(--text-3);
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
.standings-table th:nth-child(2) { text-align: left; }

.standings-table td {
    padding: 8px 6px;
    text-align: center;
    color: var(--text-2);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-variant-numeric: tabular-nums;
}

.standings-pos {
    font-weight: 800;
    color: var(--text-3);
    width: 24px;
}

.standings-team {
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text) !important;
}

.standings-crest {
    width: 18px; height: 18px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.standings-pts {
    font-weight: 800;
    color: var(--accent) !important;
}

/* Qualify highlighting */
.standings-qualify .standings-pos {
    color: #34d399;
}
.standings-qualify {
    background: rgba(52,211,153,0.03);
}
.standings-qualify td:first-child {
    border-left: 2px solid rgba(52,211,153,0.4);
}

/* ==========================================
   FIXTURES MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .fixture-tabs { margin-bottom: 1rem; }
    .fixture-tab { padding: 8px 8px; font-size: 12px; }
    
    .fixture-card { padding: 12px; }
    .fixture-match-row { gap: 6px; }
    .fixture-team-name { font-size: 12px; }
    .fixture-crest { width: 22px; height: 22px; }
    .fixture-score { font-size: 18px; }
    .fixture-score.scheduled { font-size: 14px; }
    .fixture-score-area { min-width: 56px; }
    .fixture-group-badge { font-size: 9px; top: 4px; right: 6px; }
    
    .standings-grid { grid-template-columns: 1fr; }
    .standings-table { font-size: 11px; }
    .standings-table th { padding: 6px 4px; font-size: 9px; }
    .standings-table td { padding: 7px 4px; }

    .fixture-odds-inline { gap: 6px; padding: 6px 0 0; margin-top: 8px; }
    .odds-main-row { gap: 4px; }
    .odds-btn { padding: 4px 0; }
    .odds-label { font-size: 9px; }
    .odds-value { font-size: 12px; }
    .odds-totals-stack { min-width: 46px; }
    .odds-btn-sm { padding: 3px 5px; }
    .odds-value-sm { font-size: 10px; }
}

/* Odds Inline Layout */
.fixture-odds-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 0 62px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 10px;
}
.odds-main-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    max-width: 280px;
}
.odds-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 0;
    width: 72px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}
.odds-btn:hover {
    background: rgba(52,211,153,0.1);
    border-color: rgba(52,211,153,0.3);
    transform: translateY(-1px);
}
.odds-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.odds-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}
.odds-btn:hover .odds-value {
    color: #34d399;
}

/* Over/Under stacked on the right */
.odds-totals-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 56px;
}
.odds-btn-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}
.odds-btn-sm:hover {
    background: rgba(52,211,153,0.1);
    border-color: rgba(52,211,153,0.3);
}
.odds-label-sm {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.odds-value-sm {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}
.odds-btn-sm:hover .odds-value-sm {
    color: #34d399;
}
