@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0b0c10;
    --bg-card: #151821;
    --bg-card-hover: #1c202d;
    --bg-input: #1b1e2a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #1e6091;
    --accent-blue-light: #1a80d4;
    --accent-red: #ef4444;
    --accent-gold: #f59e0b;
    --accent-gold-dark: #d97706;
    --border-color: #242936;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: #050608;
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Device Wrapper for Desktop Preview */
#device-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 92vh;
    max-height: 932px;
    background-color: var(--bg-main);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.05);
    border: 12px solid #1e2029;
    border-radius: 48px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
}

@media (max-width: 768px) {
    #device-wrapper {
        max-width: 100%;
        height: 100vh;
        max-height: 100%;
        border: none;
        border-radius: 0;
        margin: 0;
    }
}

/* Phone Status Bar Simulation (Desktop view only, hide on actual mobile) */
.status-bar {
    height: 28px;
    background-color: rgba(11, 12, 16, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.status-bar .right-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Screen Transitions & Views */
.screen {
    position: absolute;
    top: 0; /* Removed status bar offset */
    left: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.98);
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 10;
}

/* Splash Screen (Solid Black, sequential partnership logo reveal) */
#splash-screen {
    top: 0;
    z-index: 1000;
    background-color: #000000; /* Pure Black Background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

#splash-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

/* Splash Reveal side-by-side logo containers */
.splash-reveal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* FIFA logo starts exactly centered (offset by 70px) then slides to its place on the left */
.splash-fifa-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.85) translateX(70px);
    animation: seqFifa 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Divider line scales vertically in the center once FIFA slides to the left */
.splash-divider-line {
    width: 1.5px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 24px;
    transform: scaleY(0);
    transform-origin: center;
    opacity: 0;
    animation: seqDivider 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* 6over logo starts centered (offset by -70px) then reveals and slides to its place on the right */
.splash-6over-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.85) translateX(-70px);
    animation: seq6over 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Animations */
@keyframes seqFifa {
    0% {
        opacity: 0;
        transform: scale(0.85) translateX(70px);
    }
    35% {
        opacity: 1;
        transform: scale(1) translateX(70px);
    }
    60% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes seqDivider {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    50% {
        transform: scaleY(0);
        opacity: 0;
    }
    75% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes seq6over {
    0% {
        opacity: 0;
        transform: scale(0.85) translateX(-70px);
    }
    55% {
        opacity: 0;
        transform: scale(0.85) translateX(-70px);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes flashDot {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Home / Main Dashboard Screen */
#main-screen {
    display: flex;
    flex-direction: column;
}

/* Static header flows naturally, leaving upper space for the banner card */
.main-header {
    height: 60px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    flex-shrink: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 3D Gold Premium Upgrade Pill Button */
.premium-pill {
    background: linear-gradient(to bottom, #ffd700 0%, #f59e0b 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 6px 14px 10px 14px; /* extra bottom padding for 3D depth */
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    box-shadow: 0 4px 0 #b45309; /* 3D depth */
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-pill svg {
    flex-shrink: 0;
    fill: #000;
}

.premium-pill:hover {
    box-shadow: 0 5px 0 #b45309, 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.premium-pill:active {
    transform: translateY(4px); /* depress 3D height */
    box-shadow: 0 0px 0 #b45309; /* collapse shadow */
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.icon-btn:hover {
    border-color: var(--text-secondary);
    background-color: var(--bg-card-hover);
}

/* Dashboard Scrollable Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 110px; /* Space for floating bottom nav */
}

.main-content::-webkit-scrollbar {
    width: 0;
}

/* Hero Section (Blends into background on all 4 sides: top, bottom, left, right) */
.hero-banner {
    position: relative;
    width: 100%;
    margin: 16px 0 12px 0; /* leaves upper space, full bleed on sides for fade blending */
    aspect-ratio: 480 / 589;
    height: auto;
    background: 
        /* Vertical fade to top AND bottom */
        linear-gradient(to bottom, var(--bg-main) 0%, transparent 20%, transparent 65%, rgba(11, 12, 16, 0.8) 80%, var(--bg-main) 100%),
        /* Horizontal fade to left AND right */
        linear-gradient(to right, var(--bg-main) 0%, transparent 12%, transparent 88%, var(--bg-main) 100%),
        /* Poster image (Updated to Spain vs Austria poster) */
        url('https://akamaividz2.zee5.com/image/upload/w_480,h_589,c_scale,f_webp,q_auto:eco/resources/0-1-6z5976576/vert_banner/match83espvsaut02ndjuly845x1080b6a7f0db48a04143af086529d44a8f8e.jpg');
    background-size: cover;
    background-position: center top;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 16px 12px 16px; /* Reduced bottom padding from 20px to 12px to slide down elements */
    transition: background 0.4s ease;
}

.hero-countdown-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.08em;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-family: monospace;
}

.hero-info {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* High-Legibility overlay texts with shadows (Sized down slightly) */
.hero-tournament {
    font-size: 0.72rem; /* reduced from 0.78rem */
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.55rem; /* reduced from 1.8rem */
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--text-primary);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
    font-size: 0.78rem; /* reduced from 0.85rem */
    color: #e2e8f0;
    margin-bottom: 16px; /* reduced from 20px to slide down elements */
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
    font-weight: 600;
}

.hero-subtitle span {
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--accent-gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* 3D Button Base Styles */
.btn {
    padding: 10px 24px 14px 24px; /* extra bottom padding for 3D depth */
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Premium Gold Gradient Action Button (Matches Upgrade styling) */
.hero-actions .btn {
    padding: 8px 20px 11px 20px; /* reduced height from 10px-14px to 8px-11px */
    border-radius: 12px;
    font-size: 0.78rem; /* reduced from 0.85rem */
}

.btn-primary {
    background: linear-gradient(to bottom, #ffd700 0%, #f59e0b 100%);
    color: #000;
    flex: 1;
    box-shadow: 0 4px 0 #b45309; /* 3D bevel shadow in amber/dark gold */
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary svg {
    fill: #000;
}

.btn-primary:hover {
    box-shadow: 0 5px 0 #b45309, 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(4px); /* push down */
    box-shadow: 0 0px 0 #b45309; /* collapse 3D offset */
}

/* 3D Glassmorphic Secondary Button */
.btn-secondary {
    background: linear-gradient(to bottom, #242936 0%, #1c1f2b 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 0 #0f1118; /* 3D bevel shadow */
}

.btn-secondary:hover {
    box-shadow: 0 5px 0 #0f1118, 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(4px); /* push down */
    box-shadow: 0 0px 0 #0f1118;
}

/* Scroll Section General Styles */
.section-container {
    padding: 12px 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

.section-link {
    font-size: 0.75rem;
    color: var(--accent-blue-light);
    text-decoration: none;
    font-weight: 600;
}

.horizontal-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

/* Sports Selector Row Styles (Second image reference) */
.sports-scroller {
    padding: 10px 4px 14px 4px;
    align-items: center;
}

.sports-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 76px;
    transition: transform 0.2s ease;
}

.sports-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #152238 0%, #050a12 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.05);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sports-card:hover .sports-circle {
    border-color: rgba(26, 128, 212, 0.4);
    transform: translateY(-2px);
}

/* Double-ring active border with dark gap and outer blue glow */
.sports-card.active .sports-circle {
    border-color: #1a80d4;
    box-shadow: 0 0 0 2px #0b0c10, 
                0 0 0 4.5px #1a80d4, 
                0 0 14px rgba(26, 128, 212, 0.7);
    transform: translateY(-2px);
}

.sports-ball-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.sports-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
    transition: color 0.2s, font-weight 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.sports-card:hover .sports-label {
    color: var(--text-primary);
}

.sports-card.active .sports-label {
    color: var(--text-primary);
    font-weight: 800;
}

/* ==========================================================================
   COMING SOON / STAY TUNED SPORTS CARD STYLING
   ========================================================================== */
.sports-card.coming-soon {
    opacity: 0.45;
    cursor: default; /* Disable hover hand pointer */
}

/* Dark layout overlay over locked sport circle */
.sports-card.coming-soon .sports-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 16, 0.65);
    border-radius: 50%;
    z-index: 2;
}

.sports-card.coming-soon .sports-circle {
    filter: grayscale(0.7);
}

.sports-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.sports-lock-overlay svg {
    color: var(--accent-gold);
}

.sports-card.coming-soon:hover .sports-circle {
    border-color: rgba(255,255,255,0.05); /* ignore hover blue borders */
    transform: none; /* disable hover translation lift */
}

/* Match Card */
.match-card {
    min-width: 250px;
    width: 250px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.3s, background-color 0.3s;
}

.match-card:hover {
    border-color: var(--accent-blue);
    background-color: var(--bg-card-hover);
}

.match-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Resolved UI overlapping by truncating text gracefully if too long */
.match-league {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    flex: 1;
}

.match-live-badge {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.match-live-badge .dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 50%;
    animation: flashDot 0.8s infinite alternate;
}

/* Stable grey-colored badge for scheduled/upcoming matches (instead of live) */
.match-scheduled-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Flag image component styling */
.team-flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.flag-large {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.team-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.team-score.dimmed {
    color: var(--text-muted);
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
}

.match-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.match-watch-btn {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Zee5 Premium Upcoming Match Preview Card Styling */
.upcoming-preview-card {
    min-width: 260px;
    width: 260px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.upcoming-preview-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-preview-image-container {
    width: 100%;
    aspect-ratio: 1101 / 620;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-card);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.upcoming-preview-card:hover .upcoming-preview-image-container {
    border-color: var(--accent-gold);
    transform: scale(1.01);
}

.upcoming-preview-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upcoming-preview-time {
    font-size: 0.65rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.upcoming-notify-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px 5px 8px; /* 3D depth bottom */
    border-radius: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.1s, box-shadow 0.1s;
}

.upcoming-notify-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0px 0 rgba(0, 0, 0, 0);
}

/* ==========================================================================
   POINTS TABLE SECTION DESIGN SYSTEM (Matches Mockup)
   ========================================================================== */
.table-tabs {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    padding: 4px;
    border-radius: 25px;
    margin-bottom: 16px;
    gap: 4px;
}

.table-tab {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
}

.table-tab.active {
    background-color: #ffffff;
    color: #0b0c10;
    font-weight: 700;
}

/* Horizontal slider for Group Buttons (Group A to Group L) */
.group-selector-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.group-selector-scroller::-webkit-scrollbar {
    display: none;
}

.group-select-btn {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px 8px 14px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
}

.group-select-btn.active {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Points Table Grid Elements */
.points-table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.table-grid {
    display: grid;
    grid-template-columns: 36px 1fr 34px 34px 34px 34px 44px;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-header-row {
    background-color: rgba(255, 255, 255, 0.015);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1.5px solid var(--border-color);
}

.table-row {
    color: var(--text-primary);
    transition: background-color 0.15s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.col-rank {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.col-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.col-team img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}

.col-stat {
    text-align: center;
    color: var(--text-secondary);
}

.col-stat.font-bold {
    color: var(--text-primary);
    font-weight: 700;
}

/* Knockout Bracket Tree styling */
.knockout-bracket {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px;
}

.bracket-match {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.round-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.match-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.match-team:last-child {
    border-bottom: none;
}

.match-team.winner {
    color: var(--text-primary);
}

.match-team .score {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
}

.match-team.winner .score {
    color: var(--accent-gold);
}

.match-team span {
    flex: 1;
    margin-left: 10px;
}

.match-team img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Floating Pill Bottom Navigation Bar (Matches Mockup) */
.bottom-nav {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    height: 70px;
    background: linear-gradient(180deg, #161726 0%, #0c0d18 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.22); /* Indigo glow outline */
    border-radius: 35px; /* Fully rounded pill ends */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 700;
    padding: 0 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 
                0 0 15px rgba(139, 92, 246, 0.08);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
    position: relative;
    flex: 1;
    padding: 4px 0;
}

.nav-item.active {
    color: #ffffff;
}

.nav-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
}

/* Static radial blue glow behind active nav icon */
.nav-item.active .nav-icon-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.32) 0%, transparent 72%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(5px);
}

.nav-svg {
    color: inherit;
    fill: none;
    transition: fill 0.3s ease, filter 0.3s ease;
}

/* Fill inner shapes with a soft static glow */
.nav-item.active .nav-svg {
    fill: currentColor;
    filter: drop-shadow(0 0 5px rgba(180, 210, 255, 0.65));
}

/* Subscription Paywall Screen */
#paywall-screen {
    z-index: 500;
    background-color: var(--bg-main);
    padding: 20px 16px 40px;
    overflow-y: auto;
}

.paywall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.paywall-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.paywall-logo span {
    color: var(--accent-gold);
}

.paywall-logo svg {
    fill: var(--accent-gold);
    color: var(--accent-gold);
    flex-shrink: 0;
}

.paywall-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.paywall-hero {
    text-align: center;
    margin-bottom: 16px;
}

.paywall-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.paywall-badge svg {
    color: var(--accent-gold);
    fill: var(--accent-gold);
}

.paywall-hero h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 6px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.paywall-hero p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* The ₹29 Plan Card */
.plan-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(20, 22, 33, 0.95) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.08);
}

.plan-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.plan-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.plan-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price-row .plan-period {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features li svg {
    color: var(--accent-gold);
}

/* OTT Comparison Section */
.comparison-section {
    margin-bottom: 16px;
}

.comparison-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.comparison-table {
    width: 100%;
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    font-size: 0.75rem;
}

.comp-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-muted);
}

.comp-row {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1fr;
    padding: 8px 12px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-row.highlighted {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), transparent);
    font-weight: 700;
}

.comp-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.comp-name svg {
    color: var(--accent-gold);
    fill: var(--accent-gold);
    flex-shrink: 0;
}

.comp-row.highlighted .comp-name {
    color: var(--accent-gold);
}

.comp-price {
    color: var(--text-primary);
}

.comp-row.highlighted .comp-period {
    color: var(--accent-gold);
    font-weight: 700;
    text-align: right;
}

.comp-period {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: right;
}

/* Paywall Sticky CTA Action (Tactile 3D Gold Button) */
.paywall-cta-box {
    margin-top: 12px;
}

.btn-paywall {
    width: 100%;
    background: linear-gradient(to bottom, #ffd700 0%, #f59e0b 50%, #d97706 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 16px 18px 16px; /* extra bottom padding for 3D depth */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 0 #b45309; /* 3D bevel shadow */
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-paywall:hover {
    box-shadow: 0 5px 0 #b45309, 0 4px 15px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.btn-paywall:active {
    transform: translateY(4px); /* push down */
    box-shadow: 0 0px 0 #b45309; /* collapse 3D offset */
}

.paywall-guarantee {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* Bottom Sheet / Payment Drawer */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px 20px;
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.5);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sheet-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.sheet-close {
    cursor: pointer;
    color: var(--text-muted);
}

.payment-details {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.payment-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.payment-row:last-child {
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    font-weight: 700;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.pay-option.selected {
    border-color: var(--accent-gold);
    background-color: rgba(245, 158, 11, 0.03);
}

.pay-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-logo-mock {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    color: white;
}

.pay-logo-gpay { background-color: #4285F4; }
.pay-logo-phonepe { background-color: #5f259f; }
.pay-logo-paytm { background-color: #00baf2; }
.pay-logo-card { 
    background-color: #1a1f36; 
    border: 1px solid rgba(255,255,255,0.05);
}

.pay-logo-card svg {
    color: var(--text-secondary);
}

.pay-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.pay-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-option.selected .pay-radio {
    border-color: var(--accent-gold);
}

.pay-option.selected .pay-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

/* Loading/Processing Overlay inside the phone container */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 16, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(245, 158, 11, 0.1);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 20px;
}

.success-icon-mock {
    width: 60px;
    height: 60px;
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin-bottom: 20px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}

.loader-overlay.success .loading-circle {
    display: none;
}

.loader-overlay.success .success-icon-mock {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.loader-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Video Player Screen */
#player-screen {
    background-color: #000;
}

.player-header {
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.player-back {
    cursor: pointer;
    color: white;
}

.player-title-box {
    display: flex;
    flex-direction: column;
}

.player-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.player-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.video-container {
    width: 100%;
    height: 230px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.mock-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #07090e;
}

/* Mock Soccer Match Visualization inside player */
.video-match-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-soccer-field {
    width: 100%;
    height: 100%;
    background-color: #1e5a2e; /* Soccer pitch green */
    background-image: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.15) 36%, transparent 37%),
                      linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.4) 49.5%, rgba(255,255,255,0.4) 50.5%, transparent 50.5%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Moving soccer players representation */
.soccer-ball {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    position: absolute;
    animation: moveBall 8s infinite alternate ease-in-out;
}

.soccer-player {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.player-team-a {
    background-color: #3b82f6; /* Blue jerseys */
    border: 1px solid white;
}

.player-team-b {
    background-color: #ef4444; /* Red jerseys */
    border: 1px solid white;
}

.player-1 { top: 30%; left: 40%; animation: movePlayer1 6s infinite alternate ease-in-out; }
.player-2 { top: 60%; left: 45%; animation: movePlayer2 7s infinite alternate ease-in-out; }
.player-3 { top: 40%; left: 55%; animation: movePlayer3 8s infinite alternate ease-in-out; }
.player-4 { top: 50%; left: 60%; animation: movePlayer4 5s infinite alternate ease-in-out; }

/* Custom video controls overlay */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.controls-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-blue-light);
    width: 72%;
    border-radius: 2px;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 72%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.controls-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.left-ctrls {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.75rem;
}

.right-ctrls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-indicator-player {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--accent-red);
    font-weight: 700;
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Player Info Tabs */
.player-tabs {
    display: flex;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.player-tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.player-tab-btn.active {
    color: var(--accent-blue-light);
    border-bottom: 2px solid var(--accent-blue-light);
}

/* Tab Panels */
.player-tab-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-main);
    display: none;
}

.player-tab-content.active {
    display: block;
}

/* Live Chat Tab */
.chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    max-height: 480px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
    margin-bottom: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 2px;
}

.chat-msg {
    font-size: 0.75rem;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chat-user {
    font-weight: 700;
    color: var(--accent-gold);
}

.chat-text {
    color: var(--text-primary);
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.chat-input {
    flex: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-blue-light);
}

/* 3D Chat Send Button */
.chat-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #1a80d4 0%, #0055aa 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 0 #003d80; /* 3D depth shadow */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.chat-send:hover {
    box-shadow: 0 4px 0 #003d80, 0 2px 5px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.chat-send:active {
    transform: translateY(3px); /* push down */
    box-shadow: 0 0px 0 #003d80;
}

/* Stats/Match Info Tab */
.stats-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-scorecard {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.scorecard-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.scorecard-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.scorecard-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scorecard-goals {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 4px;
}

.scorecard-status {
    font-size: 0.65rem;
    color: var(--accent-red);
    font-weight: 700;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.stats-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-bar-outer {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    display: flex;
    overflow: hidden;
}

.stat-bar-a {
    background-color: #3b82f6;
    height: 100%;
}

.stat-bar-b {
    background-color: #ef4444;
    height: 100%;
}

/* Animations */
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); opacity: 0.95; }
}

@keyframes flashDot {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo Reveal Animations */
@keyframes fadeUpContainer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes revealRight {
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes scaleLine {
    to {
        transform: scaleY(1);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* Mock Soccer Animations */
@keyframes moveBall {
    0% { top: 48%; left: 49%; }
    15% { top: 32%; left: 41%; }
    30% { top: 58%; left: 44%; }
    45% { top: 38%; left: 56%; }
    60% { top: 48%; left: 59%; }
    75% { top: 72%; left: 35%; }
    90% { top: 22%; left: 65%; }
    100% { top: 50%; left: 50%; }
}

@keyframes movePlayer1 {
    0% { top: 30%; left: 40%; }
    50% { top: 33%; left: 38%; }
    100% { top: 28%; left: 42%; }
}

@keyframes movePlayer2 {
    0% { top: 60%; left: 45%; }
    50% { top: 63%; left: 42%; }
    100% { top: 58%; left: 46%; }
}

@keyframes movePlayer3 {
    0% { top: 40%; left: 55%; }
    50% { top: 38%; left: 58%; }
    100% { top: 43%; left: 53%; }
}

@keyframes movePlayer4 {
    0% { top: 50%; left: 60%; }
    50% { top: 48%; left: 62%; }
    100% { top: 52%; left: 58%; }
}

/* iOS Standalone WebApp Safe Area Top Spacing Handling */
@media (max-width: 768px) {
    .main-header {
        height: calc(60px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        display: flex !important;
        align-items: center !important;
    }
    .paywall-header {
        padding-top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    }
    #saves-screen, #account-screen {
        padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
    }
}
