@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800;900&display=swap');

:root {
    --primary: #009640;
    --primary-light: #00b84d;
    --primary-dark: #007a33;
    --primary-darker: #005c26;
    --primary-glow: rgba(0, 150, 64, 0.3);
    --primary-glow-sm: rgba(0, 150, 64, 0.15);
    --accent: #E30613;
    --accent-dark: #b80510;
    --accent-glow: rgba(227, 6, 19, 0.3);
    --gold: #FFB800;
    --gold-glow: rgba(255, 184, 0, 0.25);

    --dark-900: #080c14;
    --dark-800: #0c1220;
    --dark-700: #111828;
    --dark-600: #161e30;
    --dark-500: #1c2538;
    --dark-400: #222d42;
    --dark-300: #2a3650;
    --dark-200: #344160;
    --dark-100: #3e4e72;

    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;
    --border: rgba(52, 65, 96, 0.4);
    --border-light: rgba(52, 65, 96, 0.25);

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-900);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--dark-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 8px var(--primary-glow-sm); } 50% { box-shadow: 0 0 24px var(--primary-glow); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes countPop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes borderPulse { 0%, 100% { border-color: rgba(0, 150, 64, 0.2); } 50% { border-color: rgba(0, 150, 64, 0.6); } }

/* ===== GLASS EFFECTS ===== */
.glass {
    background: rgba(17, 24, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.glass-card {
    background: rgba(22, 30, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 150, 64, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow-sm);
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 150, 64, 0.5), rgba(0, 90, 40, 0.1), rgba(0, 150, 64, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(12, 18, 32, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    animation: fadeInDown 0.4s ease both;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    opacity: 0.6;
}

.header-logo {
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 8px;
    transition: all var(--transition);
}

.header-logo:hover { transform: scale(1.05); box-shadow: 0 0 16px var(--primary-glow-sm); }

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 16px; }
.header-user { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none; position: relative; overflow: hidden; letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 6px 25px var(--primary-glow); transform: translateY(-1px); }

.btn-secondary {
    background: var(--dark-500);
    color: var(--primary-light);
    border: 1px solid rgba(0, 150, 64, 0.3);
}
.btn-secondary:hover { background: rgba(0, 150, 64, 0.1); border-color: var(--primary); }

.btn-sm { padding: 6px 14px; font-size: 11px; border-radius: 8px; }

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: var(--text-muted); }

/* ===== TABS ===== */
.tabs {
    display: flex;
    background: rgba(12, 18, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 28px;
    position: sticky;
    top: 64px;
    z-index: 99;
    animation: fadeInDown 0.4s ease 0.1s both;
}

.tab {
    padding: 14px 22px; cursor: pointer; font-size: 13px; font-weight: 600;
    color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: all var(--transition); user-select: none; letter-spacing: 0.3px;
}
.tab:hover { color: var(--primary-light); }
.tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }

/* ===== CONTENT ===== */
.content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px;
    animation: fadeIn 0.3s ease both;
}

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.section-icon {
    width: 42px; height: 42px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.section-icon.green {
    background: linear-gradient(135deg, rgba(0, 150, 64, 0.2), rgba(0, 150, 64, 0.08));
    box-shadow: 0 0 15px var(--primary-glow-sm);
}
.section-icon.gold {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.08));
    box-shadow: 0 0 15px var(--gold-glow);
}

.section-title { font-size: 18px; font-weight: 700; font-family: 'Poppins', sans-serif; letter-spacing: -0.3px; }
.section-subtitle { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ===== MATCH CARDS ===== */
.match-card {
    background: rgba(22, 30, 48, 0.8);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    animation: fadeInUp 0.4s ease both;
}

.match-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    transition: all var(--transition);
}

.match-card:hover {
    border-color: rgba(0, 150, 64, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow-sm);
}

.match-card.completed::before { background: linear-gradient(180deg, var(--primary-light), var(--primary-dark)); box-shadow: 0 0 8px var(--primary-glow-sm); }
.match-card.upcoming::before { background: var(--dark-200); }
.match-card.locked::before { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); box-shadow: 0 0 8px var(--accent-glow); }
.match-card.completed { background: linear-gradient(135deg, rgba(22, 30, 48, 0.9), rgba(0, 150, 64, 0.06)); }

.match-card.live {
    border-color: rgba(0, 150, 64, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}
.match-card.live::before {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    box-shadow: 0 0 12px var(--primary-glow);
    width: 4px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(227, 6, 19, 0.15);
    color: #f87171;
    border: 1px solid rgba(227, 6, 19, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-glow-red 1.5s ease-in-out infinite;
}

@keyframes pulse-glow-red {
    0%, 100% { box-shadow: 0 0 3px rgba(239, 68, 68, 0.4); opacity: 1; }
    50% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); opacity: 0.7; }
}

.live-score {
    color: var(--accent) !important;
    text-shadow: 0 0 20px var(--accent-glow) !important;
}

.live-pts-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    background: rgba(227, 6, 19, 0.12);
    border: 1px solid rgba(227, 6, 19, 0.25);
    padding: 1px 6px;
    border-radius: 6px;
    animation: countPop 0.4s var(--spring) both;
    letter-spacing: 0.3px;
}

.refresh-hint {
    font-size: 10px;
    color: var(--text-dim);
    text-align: center;
    padding: 8px;
    letter-spacing: 0.3px;
}

/* ===== BANNER ===== */
.banner-card {
    background: linear-gradient(135deg, rgba(0, 150, 64, 0.12), rgba(255, 184, 0, 0.08));
    border: 1px solid rgba(0, 150, 64, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.banner-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow-sm);
    transform: translateY(-2px);
}

.banner-icon { font-size: 32px; flex-shrink: 0; }
.banner-title { font-size: 15px; font-weight: 700; font-family: 'Poppins', sans-serif; color: var(--primary-light); }
.banner-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ===== TOURNAMENT TIP ===== */
.tt-points-box {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tt-medal { font-size: 18px; }

.tt-form { display: flex; flex-direction: column; gap: 12px; }

.tt-pick-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tt-pick-label {
    min-width: 90px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tt-select {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--dark-600);
    color: var(--text);
    border: 2px solid var(--dark-200);
    border-radius: 10px;
    outline: none;
    transition: all var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.tt-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow-sm);
}

.tt-select option {
    background: var(--dark-700);
    color: var(--text);
}

.tt-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.tt-user-block {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.tt-user-block:last-child { border-bottom: none; }

.tt-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.tt-user-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-user-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--dark-500);
    padding: 4px 10px;
    border-radius: 8px;
}

.tt-pos-label {
    font-weight: 700;
    color: var(--primary-light);
}

.match-meta {
    font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
    text-transform: uppercase; letter-spacing: 1px;
}

.match-group-badge {
    background: rgba(0, 150, 64, 0.1); color: var(--primary-light);
    padding: 3px 10px; border-radius: 8px; font-size: 10px; font-weight: 700;
    border: 1px solid rgba(0, 150, 64, 0.2);
}

.match-teams { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0; }
.match-team { display: flex; align-items: center; gap: 8px; flex: 1; }
.match-team.home { justify-content: flex-end; text-align: right; }

.match-team .flag { font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.match-team .name { font-weight: 600; font-size: 14px; color: var(--text); letter-spacing: -0.2px; }

.flag-img { width: 28px; height: 19px; vertical-align: middle; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); object-fit: cover; }
.flag-img-sm { width: 22px; height: 15px; vertical-align: middle; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); object-fit: cover; }

.match-score-container { min-width: 80px; text-align: center; flex-shrink: 0; }

.match-score {
    font-size: 28px; font-weight: 900; font-family: 'Poppins', sans-serif;
    color: var(--primary-light); letter-spacing: 3px; line-height: 1;
    text-shadow: 0 0 20px var(--primary-glow);
}

.match-score.pending {
    font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
    color: var(--text-muted); letter-spacing: 0; text-shadow: none;
    background: var(--dark-500); padding: 6px 14px; border-radius: 8px;
    border: 1px solid var(--border-light);
}

/* ===== TIP INPUTS ===== */
.tip-row {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light);
}
.tip-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.tip-input {
    width: 44px; height: 36px; text-align: center; font-size: 16px; font-weight: 700;
    border: 2px solid var(--dark-200); border-radius: 8px; outline: none;
    transition: all var(--transition); background: var(--dark-600); color: var(--text);
    font-family: 'Poppins', sans-serif;
}
.tip-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow-sm); background: var(--dark-500); }
.tip-input:disabled { background: var(--dark-700); color: var(--text-dim); }

.tip-separator { font-weight: 800; color: var(--dark-100); font-size: 18px; }

.tip-status {
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    letter-spacing: 0.5px; text-transform: uppercase; animation: countPop 0.3s var(--spring) both;
}
.tip-status.saved { background: rgba(0, 150, 64, 0.15); color: var(--primary-light); border: 1px solid rgba(0, 150, 64, 0.3); }
.tip-status.locked { background: rgba(227, 6, 19, 0.1); color: #f87171; border: 1px solid rgba(227, 6, 19, 0.2); }

.tip-points {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; border-radius: 8px;
    font-size: 12px; font-weight: 800; color: #fff;
    animation: countPop 0.4s var(--spring) both;
}
.tip-points.p3 { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 2px 10px var(--primary-glow); }
.tip-points.p1 { background: linear-gradient(135deg, var(--gold), #e6a600); box-shadow: 0 2px 10px var(--gold-glow); }
.tip-points.p0 { background: var(--dark-300); }

/* ===== STANDINGS ===== */
.standings-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.standings-table th {
    text-align: left; padding: 12px 14px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.standings-table th.num { text-align: center; }

.standings-table td {
    padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.standings-table td.num { text-align: center; font-weight: 600; color: var(--text-secondary); }
.standings-table tbody tr { transition: all var(--transition); animation: fadeInUp 0.3s ease both; }
.standings-table tbody tr:hover { background: rgba(0, 150, 64, 0.04); }

.rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 10px; font-weight: 800; font-size: 13px;
}
.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500); color: #5c3d00;
    box-shadow: 0 0 15px var(--gold-glow); animation: float 3s ease-in-out infinite;
}
.rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #374151; }
.rank-3 { background: linear-gradient(135deg, #e8c496, #cd7f32); color: #4a2c0a; }
.rank-default { background: var(--dark-400); color: var(--text-muted); }

.trend-cell { width: 24px; text-align: center; padding: 0 2px !important; }
.trend-up { color: var(--primary-light); font-size: 10px; filter: drop-shadow(0 0 4px var(--primary-glow-sm)); }
.trend-down { color: var(--accent); font-size: 10px; filter: drop-shadow(0 0 4px var(--accent-glow)); }
.trend-same { color: var(--gold); font-size: 6px; opacity: 0.7; }

.player-name { font-weight: 600; color: var(--text); }
.player-name.is-me { color: var(--primary-light); text-shadow: 0 0 12px var(--primary-glow-sm); }
.player-name.is-me::after { content: ' (Du)'; font-size: 10px; font-weight: 500; opacity: 0.6; }

.points-cell { font-weight: 900; font-size: 18px; font-family: 'Poppins', sans-serif; color: var(--primary-light); text-shadow: 0 0 10px var(--primary-glow-sm); }

/* ===== SPLIT LAYOUT ===== */
.split { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.split-right { position: sticky; top: 90px; }

/* ===== GROUP TABLES ===== */
.group-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.group-tab {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer;
    background: var(--dark-500); color: var(--text-muted);
    border: 1px solid transparent; transition: all var(--transition);
}
.group-tab:hover { background: rgba(0, 150, 64, 0.1); border-color: rgba(0, 150, 64, 0.3); color: var(--primary-light); transform: translateY(-2px); }
.group-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow); transform: translateY(-2px);
}

.group-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.group-table th {
    padding: 8px 8px; text-align: center; font-weight: 700; font-size: 10px;
    color: var(--text-muted); border-bottom: 1px solid var(--border);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.group-table th:first-child, .group-table td:first-child { text-align: left; }
.group-table td { padding: 8px 8px; text-align: center; border-bottom: 1px solid var(--border-light); }
.group-table tbody tr { transition: all var(--transition); }
.group-table tbody tr:hover { background: rgba(0, 150, 64, 0.04); }
.group-table tbody tr:nth-child(-n+2) td:first-child { font-weight: 700; color: var(--primary-light); }
.group-table .pts-cell { font-weight: 800; color: var(--text); font-size: 13px; }

/* ===== MATCHDAY HEADER ===== */
.matchday-header {
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.2px; padding: 20px 0 10px;
    display: flex; align-items: center; gap: 14px;
}
.matchday-header::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: var(--dark-900); padding: 24px; position: relative; overflow: hidden;
}

.login-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(0, 150, 64, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(227, 6, 19, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 50% 50%, rgba(0, 150, 64, 0.03) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.login-card {
    background: rgba(22, 30, 48, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow-sm);
    padding: 48px 40px;
    width: 100%; max-width: 420px;
    text-align: center; position: relative; z-index: 1;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.login-card .logo { height: 56px; margin-bottom: 20px; animation: fadeInDown 0.6s ease 0.2s both; }
.login-title { font-size: 24px; font-weight: 800; font-family: 'Poppins', sans-serif; letter-spacing: -0.5px; animation: fadeInUp 0.5s ease 0.3s both; }
.login-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 6px; margin-bottom: 32px; animation: fadeInUp 0.5s ease 0.35s both; }

.form-group { margin-bottom: 20px; text-align: left; animation: fadeInUp 0.5s ease both; }
.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.45s; }

.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.3px; text-transform: uppercase; }

.form-input {
    width: 100%; padding: 12px 16px; font-size: 15px; font-family: 'Inter', sans-serif;
    border: 2px solid var(--dark-200); border-radius: 10px; outline: none;
    transition: all var(--transition); background: var(--dark-600); color: var(--text);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow-sm); }
.form-input::placeholder { color: var(--text-dim); }

.form-error {
    font-size: 13px; color: #f87171; margin-top: 8px; font-weight: 500;
    padding: 10px 14px; background: rgba(239, 68, 68, 0.1); border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2); animation: fadeInUp 0.3s ease both;
}

.login-buttons { display: flex; gap: 10px; margin-top: 28px; animation: fadeInUp 0.5s ease 0.5s both; }
.login-buttons .btn { flex: 1; padding: 14px; font-size: 14px; border-radius: 12px; }

/* ===== MODAL ===== */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(6px); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    animation: fadeIn 0.2s ease both;
}

.modal {
    background: var(--dark-700); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto; padding: 28px;
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-close-btn {
    background: var(--dark-400); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; color: var(--text-secondary); font-family: 'Inter', sans-serif;
    transition: all var(--transition);
}
.modal-close-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.modal-scoreboard {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin: 16px 0 12px; padding: 16px 0;
}

.modal-team-col {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; flex: 1; min-width: 0;
}

.modal-flag {
    width: 48px; height: 32px; border-radius: 4px; object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.modal-team-name {
    font-size: 14px; font-weight: 700; color: var(--text);
    text-align: center; word-break: break-word;
}

.modal-score-center { flex-shrink: 0; text-align: center; }

.modal-score {
    font-size: 36px; font-weight: 900; font-family: 'Poppins', sans-serif;
    color: var(--primary-light); letter-spacing: 4px; white-space: nowrap;
    text-shadow: 0 0 20px var(--primary-glow);
}

.modal-score.live-score {
    color: var(--accent) !important;
    text-shadow: 0 0 20px var(--accent-glow) !important;
}

.modal-meta {
    font-size: 12px; color: var(--text-muted); text-align: center;
    margin-bottom: 20px; font-weight: 500;
    padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}

.modal-section-title {
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}

.tips-list { list-style: none; }
.tips-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 10px; margin-bottom: 4px;
    transition: background var(--transition); animation: fadeInUp 0.3s ease both;
}
.tips-list li:hover { background: rgba(0, 150, 64, 0.05); }
.tips-list .tip-user { font-weight: 600; font-size: 13px; }
.tips-list .tip-detail { display: flex; align-items: center; gap: 10px; }
.tips-list .tip-score-text { font-size: 14px; font-weight: 700; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* ===== FOOTER ===== */
.footer-accent {
    height: 3px; margin-top: 48px; opacity: 0.7;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--gold), var(--accent), var(--primary), transparent);
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-muted); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-text { font-size: 13px; font-weight: 500; }

/* ===== LOADING ===== */
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--dark-300);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.6s linear infinite; margin: 0 auto;
}

/* ===== MINI LEADERBOARD ===== */
.mini-rank-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 6px; border-bottom: 1px solid var(--border-light);
    transition: all var(--transition); animation: fadeInUp 0.3s ease both;
}
.mini-rank-row:hover { background: rgba(0, 150, 64, 0.04); }
.mini-rank-row:last-child { border-bottom: none; }

.mini-rank-name { font-size: 13px; font-weight: 600; }
.mini-rank-pts { font-size: 14px; font-weight: 800; color: var(--primary-light); font-family: 'Poppins', sans-serif; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split-right { position: static; }
}

@media (max-width: 640px) {
    .content { padding: 16px; }
    .header { padding: 0 16px; height: 56px; }
    .header-logo { height: 30px; }
    .tabs { padding: 0 16px; overflow-x: auto; }
    .tab { padding: 12px 16px; font-size: 12px; }
    .match-team .name { font-size: 12px; }
    .match-team .flag { font-size: 22px; }
    .match-score { font-size: 22px; }
    .match-card { padding: 12px 16px; }
    .login-card { padding: 32px 24px; }
    .modal { padding: 16px; border-radius: var(--radius); }
    .modal-score { font-size: 28px; letter-spacing: 2px; }
    .modal-flag { width: 36px; height: 24px; }
    .modal-team-name { font-size: 13px; }
    .modal-scoreboard { gap: 12px; }
    .section-title { font-size: 16px; }
    .header-title { font-size: 14px; }
}
