:root {
    --bg-dark: #050505;
    --bg-panel: rgba(20, 20, 20, 0.95);
    /* Mais opaco no desktop para leitura */
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --accent-primary: #00f2ea;
    --accent-secondary: #ff0055;
    --accent-success: #00ff9d;
    --accent-gold: #ffd700;
    --accent-purple: #bd00ff;

    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: rgba(255, 255, 255, 0.4);

    --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, #1f45fc 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 242, 234, 0.15) 0%, transparent 70%);
    --gradient-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 100%);

    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.15);
    --neon-shadow: 0 0 20px rgba(0, 242, 234, 0.2);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --modal-z-index: 4000;
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;

    --pitch-grass: #132f13;
    --pitch-line: rgba(255, 255, 255, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 242, 234, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 85, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

body.modal-open {
    overflow: hidden;
    padding-right: 8px;
}

::selection {
    background: var(--accent-primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.news-btn-container {
    position: relative;
    margin-right: 10px;
}

.btn-news-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-news-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-news-toggle.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.news-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.news-badge.hidden {
    display: none;
}

/* =========================================
   NEWS PANEL (DESKTOP DEFAULT)
   Design: Clean List / Card Feed
   ========================================= */
.news-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.8);
    display: none;
    overflow: hidden;
    position: relative;
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.news-panel.open {
    display: block;
    max-height: 500px;
    /* Limit height on desktop */
    opacity: 1;
    margin-bottom: 2rem;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-feed-content {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* Vertical list on desktop */
    padding: 1rem 1.5rem;
    gap: 1rem;
}

/* Scrollbar for desktop panel */
.news-feed-content::-webkit-scrollbar {
    width: 4px;
}

.news-feed-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Desktop News Item (Card Style) */
.news-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.2s ease;
    position: relative;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.news-tag {
    align-self: flex-start;
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-item.highlight .news-tag {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.news-item.urgent .news-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Desktop Inner Content Styles (Compact) */
.news-headline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    /* Smaller for desktop list */
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: none;
    text-align: left;
}

.news-score-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align on desktop */
    gap: 1rem;
    font-family: var(--font-display);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    width: fit-content;
    font-size: 1rem;
}

.score-team {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.score-val {
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin: 0 5px;
}

.news-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: left;
    max-width: 100%;
}

.news-body p {
    margin-bottom: 0.5rem;
}

.mvp-text {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: bold;
    margin-top: 0.5rem;
    display: block;
}

.news-timestamp {
    position: static;
    /* No absolute position on desktop */
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    transform: none;
}

/* Close button base style (Hidden on Desktop) */
.mobile-news-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.mobile-news-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   MOBILE REELS MODE (Max Width 768px)
   This preserves the "Perfect" Mobile Experience
   ========================================= */
@media (max-width: 768px) {

    /* Show Close Button */
    .mobile-news-close {
        display: flex;
    }

    /* Full Screen Panel */
    .news-panel.open {
        position: fixed;
        inset: 0;
        z-index: 9998;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        background: #000;
        animation: slideUpFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        backdrop-filter: none;
    }

    .news-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
        border-bottom: none;
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    /* Horizontal Snap Scroll */
    .news-feed-content {
        height: 100%;
        width: 100%;
        max-height: none;
        padding: 0;
        gap: 0;
        /* Reset gap */
        display: flex;
        flex-direction: row;
        overflow-y: hidden;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .news-feed-content::-webkit-scrollbar {
        display: none;
    }

    /* Reel Item Styling (Huge & Centered) */
    .news-item {
        flex: 0 0 100%;
        width: 100vw;
        height: 100vh;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem;
        margin: 0;
        border: none;
        border-radius: 0;
        background: radial-gradient(circle at center, rgba(20, 20, 20, 1) 0%, rgba(5, 5, 5, 1) 100%);
        position: relative;
        transform: none !important;
        /* Disable hover transform */
    }

    .news-item:nth-child(odd) {
        background: radial-gradient(circle at bottom right, rgba(20, 30, 40, 0.4) 0%, #050505 80%);
    }

    .news-item:nth-child(even) {
        background: radial-gradient(circle at top left, rgba(40, 20, 30, 0.4) 0%, #050505 80%);
    }

    .news-item.highlight {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(255, 215, 0, 0.1) 50%, rgba(0, 0, 0, 0.9) 100%);
    }

    .news-item.urgent {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(239, 68, 68, 0.1) 50%, rgba(0, 0, 0, 0.9) 100%);
    }

    .news-tag {
        align-self: center;
        font-size: 0.9rem;
        padding: 6px 16px;
        margin-bottom: 2rem;
        border-radius: 50px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        order: -1;
    }

    /* Swipe Hint */
    .news-feed-content::after {
        content: '→';
        position: fixed;
        bottom: 50%;
        right: 10px;
        transform: translateY(50%);
        color: rgba(255, 255, 255, 0.2);
        animation: bounceX 2s infinite;
        font-size: 2rem;
        pointer-events: none;
        z-index: 20;
    }

    .news-item:hover {
        background: inherit;
    }

    /* Overrides for Reel Content (Huge Fonts) */
    .news-headline {
        font-size: clamp(2rem, 6vw, 3rem);
        font-weight: 800;
        text-transform: uppercase;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .news-score-box {
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        padding: 1.5rem 2rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        margin: 1rem 0;
        width: 100%;
        font-size: 1.5rem;
    }

    .score-team {
        font-size: 1.2rem;
        text-align: center;
        flex: 1;
    }

    .score-val {
        font-size: 3rem;
        margin: 0 10px;
    }

    .news-body {
        font-size: 1.1rem;
        text-align: center;
        color: #eee;
        max-width: 90%;
    }

    .mvp-text {
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    .news-timestamp {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
    }
}

/* --- End of News Styles --- */

.newspaper-modal {
    background: #e2e2e2;
    color: #1a1a1a;
    width: 100%;
    max-width: 600px;
}

.newspaper-content {
    background: #f0f0f0;
    color: #111;
    font-family: 'Times New Roman', serif;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
}

.newspaper-header {
    background: #111;
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    flex-shrink: 0;
}

.newspaper-brand {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.newspaper-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.newspaper-headline {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 1rem 0;
    color: #000;
    padding: 0 2rem;
    text-align: center;
    flex-shrink: 0;
}

.newspaper-body {
    padding: 1rem 2rem 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    border-top: 1px solid #ccc;
    margin-top: 1rem;
    overflow-y: auto;
    flex: 1;
}

.newspaper-body p {
    margin-bottom: 1rem;
}

.newspaper-stat-box {
    background: #fff;
    border: 1px solid #000;
    padding: 10px;
    margin: 0 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    text-transform: uppercase;
    flex-shrink: 0;
}

.start-screen {
    position: fixed;
    inset: 0;
    background: #020202;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6000;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), transform 0.8s ease;
}

.start-screen-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 242, 234, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.start-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
    filter: blur(10px);
}

.game-title-container {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.game-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.game-title-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.game-title span.subtitle {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    display: block;
    letter-spacing: 0.5em;
    margin-top: 1rem;
    font-weight: 500;
    opacity: 0;
    animation: fadeInSlideUp 1s ease 0.5s forwards;
}

.btn-start {
    font-family: var(--font-display);
    font-size: 1.25rem;
    padding: 1.25rem 4rem;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    z-index: 2;
    border-radius: 4px;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-start:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px var(--neon-shadow), inset 0 0 20px rgba(0, 242, 234, 0.1);
    transform: translateY(-3px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.btn-start:hover::before {
    left: 100%;
}

#app-content {
    display: none;
    opacity: 0;
    flex: 1;
    width: 100%;
    flex-direction: column;
}

#app-content.visible {
    display: flex;
    animation: fadeInPage 1.2s ease forwards;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background 0.3s;
}

header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    header h1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-size: 1.2rem;
    }

    header h1 span:last-child {
        font-size: 2.2rem;
        font-weight: 800;
        color: var(--accent-primary);
        line-height: 0.9;
        display: block;
        margin-top: 2px;
    }
}

.nav-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem;
    position: relative;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-step {
    padding: 0.7rem 2rem;
    border-radius: 100px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: not-allowed;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
}

.nav-step.enabled {
    cursor: pointer;
    opacity: 1;
}

.nav-step.enabled:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-step.active {
    background: var(--text-main);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

section {
    display: none;
}

section.active {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 1.2em;
    background: var(--accent-primary);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--accent-primary);
}

.btn-neon {
    background: rgba(0, 242, 234, 0.05);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 234, 0.3);
    padding: 0.8rem 2rem;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-neon:hover:not(:disabled) {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.4);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.btn-neon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-manage {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.btn-manage:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-final-pulse {
    animation: btnPulse 2s infinite;
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.input-group {
    position: relative;
    width: 100%;
}

select,
.input-dark,
input[type="text"],
input[type="number"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
}

select:focus,
.input-dark:focus,
input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

label {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.group-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.group-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    letter-spacing: 1px;
}

.group-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.team-row {
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.team-row:hover td {
    background: rgba(255, 255, 255, 0.04);
}

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

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    background: #333;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.qualified .status-dot {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.best-3rd .status-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.eliminated .status-dot {
    background: #ef4444;
}

.team-row.qualified td:first-child {
    border-left: 3px solid var(--accent-success);
}

.team-row.best-3rd td:first-child {
    border-left: 3px solid var(--accent-gold);
}

.bracket-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bracket-container {
    overflow-x: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.knockout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.match-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 234, 0.1);
    z-index: 10;
}

.team-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.team-line.winner {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.1), transparent);
    border-left: 2px solid var(--accent-success);
}

.team-line img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: var(--modal-z-index);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent);
}

.modal-title {
    font-family: var(--font-display);
    color: var(--accent-primary);
    letter-spacing: 2px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.team-header-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.team-name-lg {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.vs-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 0 30px var(--neon-shadow);
    z-index: 2;
}

.team-attributes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.attribute-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.attribute-icon {
    font-size: 1em;
    opacity: 0.7;
}

.vs-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.playoff-winner-badge {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--accent-success);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.preview-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-primary);
}

.star-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.star-player:last-child {
    border-bottom: none;
}

.rating-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.stats-container {
    max-width: 600px;
    margin: 0 auto;
}

.stat-row {
    margin-bottom: 1.2rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-brand);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
    width: 0;
    animation: fillBar 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
}

.pitch-container {
    background-color: var(--pitch-grass);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    aspect-ratio: 2/3;
    margin: 2rem auto;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    max-width: 400px;
}

.pitch-container::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pitch-midline {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.pitch-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.pitch-box-top,
.pitch-box-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 15%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pitch-box-top {
    top: 0;
    border-top: none;
}

.pitch-box-bottom {
    bottom: 0;
    border-bottom: none;
}

.player-dot {
    width: 32px;
    height: 32px;
    background: #09090b;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
    transition: all 0.3s;
    cursor: pointer;
}

.player-dot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #000;
    z-index: 100;
}

.player-pitch-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
    text-align: center;
    font-weight: 500;
}

.live-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    color: #fff;
    border: 1px solid #333;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #f00;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1s infinite;
}

.timeline-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-secondary);
    }

    50% {
        box-shadow: 0 0 20px var(--accent-secondary);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@media (max-width: 900px) {
    .modal-container {
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .knockout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .section-title {
        justify-content: center;
        font-size: 1.8rem;
    }

    .team-header-vs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .vs-circle {
        margin: 0 auto;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.02);
        border-left: none;
        border-right: none;
        scrollbar-width: none;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .nav-step {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }
}

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

.text-success {
    color: var(--accent-success);
}

.text-gold {
    color: var(--accent-gold);
}

.text-white {
    color: #fff;
}

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

#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(10, 10, 10, 0.95);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    top: auto;
    right: auto;
}

.mobile-tabs-wrapper,
#mobile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.mobile-tab {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
}

.mobile-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-tab.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

@media (max-width: 768px) {

    .mobile-tabs-wrapper,
    #mobile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
    }

    .mobile-tabs-wrapper::-webkit-scrollbar,
    #mobile-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-tab {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

#champion-modal .modal-container {
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
}

#champion-card-container {
    background: #111;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent-gold);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

#export-header-bg {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #050505, #111);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#export-content {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
}

#champion-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 1rem 0;
    font-family: var(--font-display);
}

#confetti {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.player-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.player-info h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
}

.player-meta {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.radar-chart-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.trait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.trait-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.3s;
}

.trait-badge:hover {
    background: rgba(0, 242, 234, 0.1);
    border-color: var(--accent-primary);
}

.trait-icon {
    font-size: 1.2rem;
}

.stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-weight: bold;
    color: var(--accent-primary);
}