:root {
    --bg-main: #0a0d14;
    --bg-sec: #111620;
    --bg-card: #181d28;
    --bg-card-hover: #212836;
    --border-color: #273142;
    --accent-primary: #3b82f6;
    /* Blue */
    --accent-success: #10b981;
    /* Green */
    --accent-danger: #ef4444;
    /* Red */
    --accent-warning: #f59e0b;
    /* Orange */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Base Layout */
section[id] {
    scroll-margin-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------- HEADER (FIXED) ------------- */
.main-header {
    background: rgba(10, 13, 20, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-box .text-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

/* Header Nav */
.nav-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
}

.nav-menu .nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-menu .nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-menu .nav-links a:hover,
.nav-menu .nav-links a.active {
    color: #fff;
}

.nav-menu .nav-links a.active {
    position: relative;
}

.nav-menu .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-success);
    border-radius: 2px;
}

/* Header Stats */
.stats-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stats-badge p {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-success);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-badge {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
}

/* ------------- HERO SECTION ------------- */
.hero-section {
    padding: 15px 20px 10px;
    text-align: center;
}

.badge-new {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 span {
    color: var(--accent-success);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-success), #059669);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    color: #fff;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ------------- DASHBOARD ------------- */
.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.dash-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    justify-content: center;
}

.hit-rate-card {
    grid-column: span 1;
    text-align: center;
    align-items: center;
}

.matches-slider-card {
    grid-column: span 2;
    overflow: hidden;
}

/* Circular Hit Rate */
.circular-progress {
    width: 100px;
    height: 100px;
    background: conic-gradient(var(--accent-success) 78%, rgba(255, 255, 255, 0.05) 0deg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.inner-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-val {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}

/* Matches Slider */
.matches-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.match-mini-card {
    min-width: 200px;
    background: var(--bg-sec);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
}

.vs {
    opacity: 0.4;
    font-size: 11px;
    font-style: italic;
}

/* ------------- PICKS GRID ------------- */
.picks-section {
    margin-bottom: 40px;
}

.section-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contenedor-pronosticos-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.pronosticos-header-info {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 12px;
}

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.pick-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pick-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.league-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.laliga {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.premier {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.bundesliga {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.seriea {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.pick-teams {
    background: var(--bg-sec);
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

.vs-badge {
    font-size: 10px;
    opacity: 0.4;
    margin: 4px 0;
}

.pick-prediction {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    align-items: center;
    gap: 8px;
}

.pick-prediction span {
    font-size: 12px !important;
}

.pred-value {
    font-weight: 800;
    color: var(--accent-success);
    font-size: 13px !important;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    text-align: right;
}

.pick-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.odds-box strong {
    font-size: 15px;
    margin-left: 4px;
}

.confidence-box {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.conf-high {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.conf-med {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}

/* IA CARDS */
.ai-section .section-header h2 {
    color: var(--accent-primary);
}

.ai-status {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-card {
    border-top: 2px solid var(--accent-primary);
}

.ai-card .pred-value {
    color: var(--accent-primary);
}

.conf-ai {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

/* ------------- INFO SECTION ------------- */
.info-section {
    margin-bottom: 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tl-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.won .tl-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.lost .tl-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.leagues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.league-item {
    background: var(--bg-sec);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------- FOOTER ------------- */
footer {
    background: var(--bg-sec);
    padding: 50px 0 30px;
    border-top: 1px solid var(--border-color);
}

.legal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.legal-box h3 {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-box p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Age Popup */
#agePopup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 420px;
    border: 1px solid var(--border-color);
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 900px) {
    /* Eliminamos el colapso a column en 900px para el header, lo pasaremos a 768px */

    .dashboard-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .matches-slider-card {
        grid-column: span 1;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px !important;
        height: 60px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .logo-box {
        flex-grow: 1;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .contenedor-pronosticos-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .pronosticos-header-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-top: 8px !important;
        margin-bottom: 15px !important;
        gap: 8px !important;
    }

    .nav-menu-btn {
        display: block;
        z-index: 10;
    }

    /* Ocultar menú normal y prepararlo como desplegable */
    nav.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 13, 20, 0.98);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 9;
    }

    nav.nav-menu.show {
        display: flex;
    }

    .nav-menu .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Forzar botón PREMIUM compacto */
    .stats-badge .premium-btn {
        white-space: nowrap !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 600px) {
    .picks-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ------------- LEAGUE PAGE ------------- */
.league-page {
    background-color: var(--bg-main);
}

.league-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.league-header-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-sec) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.league-info-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.league-logo-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.league-details h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
}

.league-details p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* ------------- NEW 2-COLUMN LEAGUE LAYOUT ------------- */
.league-layout-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.league-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-leagues-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.league-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.league-nav-item:hover {
    background: var(--bg-sec);
    color: #fff;
}

.league-nav-item.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.league-nav-item img {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

.scroll-competiciones {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch; 
}

/* Estilos para navegadores WebKit (Chrome, Safari, Edge) */
.scroll-competiciones::-webkit-scrollbar {
    width: 6px;
}
.scroll-competiciones::-webkit-scrollbar-track {
    background: #151923;
    border-radius: 8px;
}
.scroll-competiciones::-webkit-scrollbar-thumb {
    background: #2a3142;
    border-radius: 8px;
}
.scroll-competiciones::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Main Content */
.league-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.league-content-grid-stacked {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.full-width-card {
    width: 100%;
}

/* Original grid kept for fallback/reference if needed */
.league-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.league-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

/* Standings Table */
.table-responsive {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.standings-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.standings-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.mini-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.standings-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
    /* Ocultar la cabecera de la tabla */
    .standings-table thead {
        display: none;
    }

    /* Convertir la tabla en un bloque */
    .standings-table, .standings-table tbody {
        display: block;
        width: 100%;
    }

    /* Cada fila es ahora una tarjeta con fondo oscuro */
    .standings-table tr {
        display: block;
        background-color: var(--bg-sec);
        margin-bottom: 15px;
        padding: 15px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
    }

    /* Cada celda se divide en dos: Etiqueta (izq) y Valor (der) */
    .standings-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }

    /* Quitar el borde al último elemento de la tarjeta */
    .standings-table td:last-child {
        border-bottom: none;
    }

    /* Mostrar el título del dato usando el atributo data-label */
    .standings-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 11px;
        text-align: left;
        margin-right: 15px;
    }
}

/* Fixtures List */
.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixture-item {
    background: var(--bg-sec);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fixture-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.fixture-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.fixture-teams .vs {
    color: var(--accent-primary);
    font-style: normal;
    opacity: 1;
    font-size: 12px;
}

.fixtures-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.simple-footer {
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.league-item {
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.league-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    color: var(--accent-success);
}

@media (max-width: 900px) {
    .league-layout-split {
        grid-template-columns: 1fr;
    }

    .league-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .league-content-grid {
        grid-template-columns: 1fr;
    }
    
    .fixtures-grid-view {
        grid-template-columns: 1fr;
    }

    .league-header-card {
        padding: 20px;
    }
    
    .league-logo-box img {
        width: 60px;
        height: 60px;
    }
    
    .league-details h1 {
        font-size: 24px;
    }
}

/* ------------- TRANSPARENCIA PAGE ------------- */
.section-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; display: flex; align-items: center; gap: 8px; }

.stats-grid-top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 60px; }
.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.stat-card-simple { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.stat-card-simple h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; white-space: nowrap; }
.stat-card-simple .stat-val { font-family: var(--font-heading); font-size: 30px; font-weight: 800; }
.val-high { color: var(--accent-success); }
.val-mid { color: var(--accent-warning); }
.val-low { color: var(--accent-danger); }

.stats-grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 60px; }
.league-stat-card { background: var(--bg-sec); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.league-stat-info { display: flex; align-items: center; gap: 10px; }
.league-stat-info img { width: 28px; height: 28px; object-fit: contain; }
.league-stat-info span.name { font-size: 13px; font-weight: 600; }
.league-stat-acc { font-size: 16px; font-weight: 800; }

.matrix-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px; overflow-x: auto; margin-bottom: 60px; }
.matrix-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.matrix-table th, .matrix-table td { padding: 16px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.matrix-table th { background: var(--bg-sec); color: var(--text-muted); font-weight: 600; font-size: 13px; }
.matrix-table th.row-header { text-align: left; color: #fff; font-family: var(--font-heading); font-size: 14px; display: flex; align-items: center; gap: 10px; border-right: 2px solid var(--border-color); background: var(--bg-sec); position: sticky; left: 0; z-index: 2; }
.matrix-table th.row-header img { width: 20px; height: 20px; }
.matrix-table td { font-family: var(--font-heading); font-weight: 700; font-size: 16px; transition: transform 0.2s; border-radius: 4px; }
.matrix-table td:hover { transform: scale(1.08); cursor: default; }

.clickable-ratio { cursor: pointer !important; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.clickable-ratio:hover { transform: scale(1.1) !important; color: var(--accent-success); }

.cell-high { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3) !important; }
.cell-mid { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3) !important; }
.cell-low { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3) !important; }
.cell-empty { background: rgba(255,255,255,0.02); color: var(--text-muted); opacity: 0.5; font-size: 12px !important; }

@media (max-width: 900px) {
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-top { grid-template-columns: repeat(3, 1fr); }
    .matrix-section { padding: 15px; }
}
@media (max-width: 600px) {
    .stats-grid-4 { grid-template-columns: 1fr; }
    .stats-grid-top { grid-template-columns: repeat(2, 1fr); }
}

/* --- Estilos del Modal Beta --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 13, 20, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-text {
    font-family: 'Inter', sans-serif;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #2AABEE; /* Color oficial de Telegram */
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-telegram:hover {
    background: #2298d6;
}

/* ------------- COOKIE BANNER ------------- */
.cookie-banner {
    position: fixed;
    top: -150px; /* Oculto inicialmente por arriba */
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: top 0.4s ease-in-out;
    display: flex;
    justify-content: center;
}

.cookie-banner.show {
    top: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-shrink: 0;
}

.btn-cookie {
    background: var(--accent-success);
    color: #000;
    border: none;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background: #0ea5e9; /* Cambia a tu azul de acento o lo que prefieras */
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
    }
    .btn-cookie {
        width: 100%;
    }
}