/* Safari FIFA 26 — Ultra Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --midnight: #071A3D;
    --electric: #00C6FF;
    --aqua: #00D7C3;
    --gold: #F4C542;
    --gold-light: #FFD700;
    --white: #FFFFFF;
    --dark-bg: #030712;
    --silver: #B8C5D6;
    --bronze: #CD7F32;

    --gradient-hero: linear-gradient(135deg, #071A3D 0%, #0B2C65 35%, #00C6FF 100%);
    --gradient-gold: linear-gradient(135deg, #F4C542 0%, #FFD700 50%, #FFF3B0 100%);
    --gradient-aqua: linear-gradient(135deg, #00D7C3 0%, #00C6FF 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

    --text-primary: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);

    --nav-height: 64px;
    --bottom-nav-height: 72px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --dark-bg: #f4f7fb;
    --text-primary: #071A3D;
    --text-muted: rgba(7, 26, 61, 0.65);
    --text-dim: rgba(7, 26, 61, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(7, 26, 61, 0.1);
    --glass-shadow: 0 20px 50px rgba(7, 26, 61, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body.app-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient-animated {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(0, 198, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(244, 197, 66, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0, 215, 195, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #030712 0%, #071A3D 40%, #030712 100%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

[data-theme="light"] .bg-gradient-animated {
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(0, 198, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(244, 197, 66, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #e8f4fc 0%, #f4f7fb 100%);
}

@keyframes bgShift {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(8deg) brightness(1.05); }
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.stadium-glow {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(0, 198, 255, 0.15) 0%, transparent 70%);
    animation: stadiumPulse 6s ease-in-out infinite;
}

@keyframes stadiumPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* PWA Splash */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.app-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-trophy {
    font-size: 4.5rem;
    animation: trophyGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(244, 197, 66, 0.6));
}

@keyframes trophyGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(244, 197, 66, 0.5)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(244, 197, 66, 0.9)); }
}

.splash-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 1rem;
    letter-spacing: -0.02em;
}

.splash-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.football-spinner {
    width: 48px;
    height: 48px;
    margin-top: 2rem;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--electric), var(--aqua), transparent);
    animation: spin 1s linear infinite;
    position: relative;
}

.football-spinner::after {
    content: '⚽';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--midnight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Layout */
.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    padding: 1rem 1rem calc(var(--bottom-nav-height) + 1.5rem);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .app-main {
        padding: 1.5rem 2rem 2rem;
        max-width: 1400px;
    }
}

.page-enter {
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Top Bar */
.premium-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .premium-navbar {
    background: rgba(255, 255, 255, 0.8);
}

.premium-navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.35);
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-name span {
    background: var(--gradient-aqua);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.desktop-nav {
    display: none;
    gap: 0.25rem;
    margin-left: 2rem;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        flex: 1;
        justify-content: center; /* center nav links between brand and right-side actions */
        margin-left: 0;
    }
}

.desktop-nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--electric);
    background: rgba(0, 198, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* Glass Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 198, 255, 0.12);
}

.glass-card-static:hover {
    transform: none;
}

.glass-alert {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
}

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-premium-primary {
    background: var(--gradient-aqua);
    color: var(--midnight);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.35);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 198, 255, 0.5);
    color: var(--midnight);
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(0, 198, 255, 0.35); }
    50% { box-shadow: 0 8px 35px rgba(0, 215, 195, 0.55); }
}

.btn-premium-gold {
    background: var(--gradient-gold);
    color: var(--midnight);
    box-shadow: 0 8px 25px rgba(244, 197, 66, 0.35);
}

.btn-premium-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
}

.btn-premium-glass:hover {
    border-color: var(--electric);
    color: var(--electric);
}

.btn-premium-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: var(--electric);
    color: var(--electric);
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-height: 280px;
    background: var(--gradient-hero);
    box-shadow: var(--glass-shadow);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:%23071A3D;stop-opacity:0.9"/><stop offset="100%25" style="stop-color:%2300C6FF;stop-opacity:0.3"/></linearGradient></defs><rect fill="url(%23g)" width="800" height="400"/><circle cx="650" cy="80" r="120" fill="rgba(244,197,66,0.15)"/><circle cx="100" cy="300" r="80" fill="rgba(0,215,195,0.1)"/></svg>') center/cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 2.5rem 2.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-text h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.1;
}

.hero-text .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

.hero-text .welcome {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-top: 0.75rem;
}

.hero-trophy {
    font-size: 5rem;
    animation: trophyFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(244, 197, 66, 0.5));
    text-align: center;
}

@keyframes trophyFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.floating-football {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatBall 8s ease-in-out infinite;
}

.floating-football:nth-child(1) { top: 15%; right: 10%; animation-delay: 0s; }
.floating-football:nth-child(2) { bottom: 20%; left: 8%; animation-delay: 2s; font-size: 1rem; }
.floating-football:nth-child(3) { top: 40%; right: 25%; animation-delay: 4s; font-size: 0.85rem; }

@keyframes floatBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.stat-card-premium {
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-aqua);
    opacity: 0;
    transition: var(--transition);
}

.stat-card-premium:hover::before { opacity: 1; }

.stat-card-premium .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.stat-card-premium .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-aqua);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-card-premium .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
    font-weight: 600;
}

/* Next Match Premium Card */
.next-match-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.next-match-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.next-match-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--electric);
    margin-bottom: 1rem;
}

.match-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.match-team-h {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.match-team-h.away { flex-direction: column; }

.team-flag-premium {
    width: 56px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition);
}

.glass-card:hover .team-flag-premium {
    transform: scale(1.08);
}

.team-flag-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-flag-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--midnight);
}

.team-name-premium {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 90px;
}

.match-vs-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.match-score-live {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-aqua);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.match-time-display {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Countdown */
.countdown-premium {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.countdown-unit {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    min-width: 58px;
    text-align: center;
}

.countdown-unit .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--electric);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit .lbl {
    font-size: 0.55rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* Status Badges */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-live .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.badge-upcoming {
    background: rgba(0, 198, 255, 0.15);
    color: var(--electric);
    border: 1px solid rgba(0, 198, 255, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-finished {
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-ht {
    background: rgba(244, 197, 66, 0.2);
    color: var(--gold);
    border: 1px solid rgba(244, 197, 66, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.golden-badge {
    background: var(--gradient-gold);
    color: var(--midnight);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* Match Card Horizontal (list) */
.match-card-h {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 576px) {
    .match-card-h {
        flex-direction: row;
        align-items: center;
    }
    .match-card-h .match-horizontal { flex: 1; }
}

.match-card-h .match-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

/* Live Scoreboard */
.live-scoreboard {
    background: linear-gradient(180deg, rgba(239,68,68,0.08) 0%, transparent 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    animation: liveBorder 3s ease-in-out infinite;
}

@keyframes liveBorder {
    0%, 100% { border-color: rgba(239, 68, 68, 0.2); }
    50% { border-color: rgba(239, 68, 68, 0.5); }
}

.live-minute {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff6b6b;
    text-align: center;
}

/* Leaderboard Podium */
.leaderboard-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-hero h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
}

.leaderboard-hero p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.podium-place {
    flex: 1;
    max-width: 140px;
    text-align: center;
    animation: podiumRise 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.podium-place:nth-child(1) { animation-delay: 0.2s; }
.podium-place:nth-child(2) { animation-delay: 0s; max-width: 160px; }
.podium-place:nth-child(3) { animation-delay: 0.4s; }

@keyframes podiumRise {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.podium-card {
    padding: 1.25rem 0.75rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.podium-card.gold {
    background: linear-gradient(180deg, rgba(244,197,66,0.25) 0%, rgba(244,197,66,0.05) 100%);
    border: 1px solid rgba(244, 197, 66, 0.4);
    box-shadow: 0 0 40px rgba(244, 197, 66, 0.2);
    transform: scale(1.05);
}

.podium-card.gold::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(244,197,66,0.15), transparent);
    animation: goldGlow 4s linear infinite;
}

@keyframes goldGlow { to { transform: rotate(360deg); } }

.podium-card.silver {
    background: linear-gradient(180deg, rgba(184,197,214,0.2) 0%, rgba(184,197,214,0.05) 100%);
    border: 1px solid rgba(184, 197, 214, 0.35);
}

.podium-card.bronze {
    background: linear-gradient(180deg, rgba(205,127,50,0.2) 0%, rgba(205,127,50,0.05) 100%);
    border: 1px solid rgba(205, 127, 50, 0.35);
}

.podium-rank {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--midnight);
    position: relative;
    z-index: 1;
}

.podium-card.gold .podium-avatar { background: var(--gradient-gold); box-shadow: 0 0 20px rgba(244,197,66,0.5); }
.podium-card.silver .podium-avatar { background: linear-gradient(135deg, #B8C5D6, #E8EDF2); }
.podium-card.bronze .podium-avatar { background: linear-gradient(135deg, #CD7F32, #E8A862); color: #fff; }

.podium-name {
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-dept {
    font-size: 0.65rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.podium-points {
    font-size: 1.25rem;
    font-weight: 900;
    margin-top: 0.35rem;
    position: relative;
    z-index: 1;
}

.podium-card.gold .podium-points { color: var(--gold); }

.podium-pedestal {
    height: 24px;
    border-radius: 6px 6px 0 0;
    margin-top: 0.75rem;
}

.podium-card.gold .podium-pedestal { height: 48px; background: var(--gradient-gold); opacity: 0.4; }
.podium-card.silver .podium-pedestal { height: 32px; background: linear-gradient(180deg, #B8C5D6, transparent); opacity: 0.3; }
.podium-card.bronze .podium-pedestal { height: 20px; background: linear-gradient(180deg, #CD7F32, transparent); opacity: 0.3; }

/* Leaderboard Table */
.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.lb-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
    transition: background var(--transition);
}

.lb-table tr:hover td { background: rgba(0, 198, 255, 0.05); }

.lb-table tr.lb-highlight td {
    background: rgba(0, 215, 195, 0.12);
    border-left: 3px solid var(--aqua);
}

.lb-rank {
    font-weight: 800;
    color: var(--text-muted);
    width: 50px;
}

.lb-points {
    font-weight: 800;
    color: var(--electric);
}

.lb-animate {
    animation: lbSlide 0.5s ease forwards;
    opacity: 0;
}

@keyframes lbSlide {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Tab Pills Premium */
.tab-pills {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.tab-pill {
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
    transition: var(--transition);
}

.tab-pill:hover { color: var(--electric); border-color: rgba(0,198,255,0.3); }

.tab-pill.active {
    background: var(--gradient-aqua);
    color: var(--midnight);
    border-color: transparent;
}

.filter-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Profile */
.profile-header-card {
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--midnight);
    background: var(--gradient-aqua);
    box-shadow: 0 0 40px rgba(0, 198, 255, 0.3);
    position: relative;
}

.profile-avatar-lg::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-gold) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.rank-badge-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: var(--gradient-gold);
    color: var(--midnight);
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-ring .ring-bg { stroke: rgba(255,255,255,0.1); }
.progress-ring .ring-fill {
    stroke: url(#aquaGradient);
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring .ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-ring .ring-value .pct {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--electric);
}

.progress-ring .ring-value .lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Prediction Form */
.prediction-form-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.prediction-input-premium {
    width: 72px;
    height: 72px;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--glass-border);
    color: var(--electric);
    transition: var(--transition);
}

.prediction-input-premium:focus {
    outline: none;
    border-color: var(--electric);
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.25);
}

.prediction-separator {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dim);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0;
}

.section-title-lg {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Leader Card (dashboard) */
.leader-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.leader-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--midnight);
    font-size: 0.9rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--bottom-nav-height);
    display: flex;
    align-items: stretch;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 0 0.25rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 992px) {
    .bottom-nav { display: none; }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.6rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    min-height: 56px;
}

.bottom-nav-item .nav-emoji {
    font-size: 1.35rem;
    transition: transform var(--transition);
}

.bottom-nav-item.active {
    color: var(--electric);
}

.bottom-nav-item.active .nav-emoji {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 198, 255, 0.5));
}

.bottom-nav-item:hover {
    color: var(--electric);
}

/* Auth Pages */
.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-card-premium {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-aqua);
}

.auth-logo-premium {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-premium .trophy-icon {
    font-size: 3.5rem;
    animation: trophyGlow 3s ease-in-out infinite;
}

.auth-logo-premium h1 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0.75rem 0 0;
    letter-spacing: -0.02em;
}

.auth-logo-premium .tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-control-premium,
.form-select-premium {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

[data-theme="light"] .form-control-premium,
[data-theme="light"] .form-select-premium {
    background: rgba(255, 255, 255, 0.9);
}

.form-control-premium:focus,
.form-select-premium:focus {
    outline: none;
    border-color: var(--electric);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.15);
}

.form-control-premium::placeholder { color: var(--text-dim); }

.form-label-premium {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: block;
}

.form-check-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Analytics bar */
.analytics-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    background: rgba(255,255,255,0.05);
}

.analytics-bar .seg-home { background: var(--electric); }
.analytics-bar .seg-draw { background: var(--gold); }
.analytics-bar .seg-away { background: #f87171; }

/* Notification dropdown */
.notif-dropdown {
    position: relative;
}

.notif-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    max-height: 360px;
    overflow-y: auto;
    background: rgba(7, 26, 61, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    display: none;
    z-index: 100;
}

.notif-menu.show { display: block; }

.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.6; }

/* Utilities */
.text-gradient {
    background: var(--gradient-aqua);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold { color: var(--gold) !important; }
.text-muted-premium { color: var(--text-muted); }

.locked-overlay { opacity: 0.55; pointer-events: none; filter: grayscale(0.3); }

/* Hide legacy layout */
.navbar, .app-sidebar, .app-layout { display: none !important; }

/* Admin premium */
.admin-premium .glass-card:hover { transform: none; }

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .admin-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .admin-stat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.admin-stat-grid .stat-card {
    padding: 1.25rem 1rem;
    text-align: center;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-stat-grid .stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.admin-stat-grid .stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--electric);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-stat-grid .stat-card .stat-value--name {
    font-size: 0.95rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-stat-grid .stat-card .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
}

.admin-premium .stat-card,
.stat-card { padding: 1.25rem; text-align: center; }
.admin-premium .stat-card .stat-value,
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--electric); }
.admin-premium .stat-card .stat-label,
.stat-card .stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.admin-premium .sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.admin-premium .sidebar-link i {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
}

.admin-premium .sidebar-link:hover,
.admin-premium .sidebar-link.active {
    color: var(--electric);
}

.admin-premium .page-header {
    margin-bottom: 1.5rem;
}

.admin-premium .page-header p {
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.admin-empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-empty-state .icon {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* Bootstrap overrides */
.btn-primary {
    background: var(--gradient-aqua) !important;
    border: none !important;
    color: var(--midnight) !important;
    font-weight: 700;
    border-radius: var(--radius-md) !important;
}
.btn-glass, .btn-premium-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-sm);
}
.btn-glass:hover { border-color: var(--electric); color: var(--electric); }
.text-primary-custom { color: var(--electric) !important; }

/* Group Standings */
.standings-group-header {
    padding: 0.85rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: var(--gradient-aqua);
    color: var(--midnight);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.standings-table th {
    padding: 0.5rem 0.6rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.standings-table th:nth-child(2) { text-align: left; }

.standings-table td {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    vertical-align: middle;
}

.standings-table td:nth-child(2) { text-align: left; }

.standings-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.standings-flag {
    width: 22px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
}

.standings-rank {
    font-weight: 800;
    color: var(--text-muted);
    width: 28px;
}

.standings-pts {
    font-weight: 800;
    color: var(--electric);
}

.standings-qualified {
    background: rgba(0, 215, 195, 0.06);
}

.standings-qualified .standings-rank {
    color: var(--aqua);
}

.live-data-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.page-header h2 { font-weight: 800; font-size: 1.5rem; }
.form-control, .form-select { background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); color: var(--text-primary); border-radius: var(--radius-sm); }
.form-control:focus, .form-select:focus { background: rgba(0,0,0,0.25); border-color: var(--electric); color: var(--text-primary); box-shadow: 0 0 0 3px rgba(0,198,255,0.15); }
.table { color: var(--text-primary); }
.leaderboard-table { width: 100%; }
.leaderboard-table th { color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; padding: 0.75rem; border-bottom: 1px solid var(--glass-border); }
.leaderboard-table td { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
