/* ==========================================================================
   mundial.lafelicitta.com - SISTEMA DE DISEÑO DEPORTIVO PREMIUM (VIBRANTE iOS)
   Identidad visual enérgica, limpia, moderna y viva.
   Basada en una paleta medianoche profunda con degradados eléctricos.
   ========================================================================== */

@font-face {
    font-family: 'FWC2026-Normal';
    src: url('../fonts/FWC2026-NormalRegular.77c3c249.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FWC2026-CondensedLight';
    src: url('../fonts/FWC2026-CondensedLight.c11e508e.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'FWC2026-UltraCondensedBlack';
    src: url('../fonts/FWC2026-UltraCondensedBlack.8e6ba053.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'FWC2026-UltraCondensedMedium';
    src: url('../fonts/FWC2026-UltraCondensedMedium.4da29b9d.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --font-primary: 'FWC2026-Normal', sans-serif;

    /* Nueva Paleta Cromática Deportiva Electrizante */
    --color-bg: #030512;
    /* Fondo oscuro eléctrico profundo */
    --color-surface: #0a0e24;
    /* Superficie azul noche oscuro */
    --color-surface-hover: #12183a;
    --color-surface-dark: #02030a;

    --color-primary: #a7e601;
    /* Amarillo Neón / Lima */
    --color-primary-end: #6000eb;
    /* Morado Eléctrico */
    --color-success: #a7e601;
    /* Éxito usa el Neón */
    --color-warning: #a7e601;
    --color-danger: #ff003c;
    /* Rojo Eléctrico para botones */
    --color-accent: #6000eb;

    --color-text-primary: #ffffff;
    --color-text-secondary: #a7e601;
    /* Amarillo Neón para info secundaria */
    --color-border-card: rgba(96, 0, 235, 0.45);

    /* Configuración Redondeada */
    --border-solid: 1.5px solid #6000eb;
    --border-radius-geom: 18px;
    --border-radius-btn: 24px;
    --border-radius-input: 12px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: clip;
    line-height: 1.6;
    min-height: 100vh;
    /* Asegura que el body ocupe al menos la altura completa del viewport */
    display: flex;
    /* Habilita flexbox */
    flex-direction: column;
    /* Apila los elementos hijos verticalmente */
    -webkit-font-smoothing: antialiased;
}

.geom-bg {
    background: var(--color-bg);
}

/* --- ESTRUCTURAS ESTILO DEPORTIVO PREMIUM --- */

/* Tarjeta Limpia y Sólida */
.geom-card {
    background: #06091e !important;
    border-radius: var(--border-radius-geom);
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.geom-card:nth-child(odd) {
    border: 2.5px solid #6000eb !important;
}

.geom-card:nth-child(even) {
    border: 2.5px solid #6000eb !important;
}

.geom-card:nth-child(4n+1) {
    border-radius: 0 var(--border-radius-geom) var(--border-radius-geom) var(--border-radius-geom) !important;
}

.geom-card:nth-child(4n+2) {
    border-radius: var(--border-radius-geom) 0 var(--border-radius-geom) var(--border-radius-geom) !important;
}

.geom-card:nth-child(4n+3) {
    border-radius: var(--border-radius-geom) var(--border-radius-geom) 0 var(--border-radius-geom) !important;
}

.geom-card:nth-child(4n+4) {
    border-radius: var(--border-radius-geom) var(--border-radius-geom) var(--border-radius-geom) 0 !important;
}

.geom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    /* Borde grueso superior */
    z-index: 10;
}

.geom-card:nth-child(odd)::before {
    background: #6000eb !important;
}

.geom-card:nth-child(even)::before {
    background: #6000eb !important;
}

.geom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

/* Sobrescribir colores internos para igualar el diseño del cliente */
.geom-card h4 {
    color: #a7e601 !important;
    /* Nombre de equipos en Amarillo Lima */
}

.geom-card span {
    color: #6000eb !important;
    /* Separadores "VS" y textos morados */
}

.geom-card span.active,
.geom-card span i {
    color: #a7e601 !important;
}

.geom-card .geom-input {
    border-color: #6000eb !important;
    color: #a7e601 !important;
}



/* Botones con Degradado y Brillo */
.geom-btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.geom-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.geom-btn-primary {
    background: #ffffff;
    color: #05060b;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.geom-btn-primary:hover {
    background: #cbd5e1;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.geom-btn-primary:active {
    transform: scale(0.98);
}

.geom-btn-secondary {
    background: var(--color-primary);
    color: #000000;
    /* Texto negro para contraste en Amarillo Neón */
    border-color: transparent;
    font-weight: 800;
    box-shadow: none;
}

.geom-btn-secondary:hover {
    background: #92cf00;
    transform: scale(1.02);
    box-shadow: none;
}

.geom-btn-secondary:active {
    transform: scale(0.98);
}

/* Banderas */
.flag-geom {
    width: 50px;
    height: 35px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-spring);
}

/* Bandera izquierda (Home) - Esquina inferior derecha (bottom-right) y superior izquierda (top-left) en 0px (estilo hoja/ojo) */
.geom-card div[style*="gap: 8px"]>div:first-child .flag-geom {
    border-radius: 0px 20% 0px 20% !important;
}

/* Bandera derecha (Away) - Esquina inferior izquierda (bottom-left) y superior derecha (top-right) en 0px (estilo hoja/ojo) */
.geom-card div[style*="gap: 8px"]>div:last-child .flag-geom {
    border-radius: 20% 0px 20% 0px !important;
}

.flag-geom:hover {
    border-color: var(--color-primary);
    transform: scale(1.15);
}

/* Títulos y Headers */
h1,
h2,
h3,
h4 {
    font-family: 'FWC2026-UltraCondensedBlack', sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
}

/* Encabezados de Sección Modernos */
.title-skew {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
    border: none;
}

.title-skew::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 3px;
}

.title-skew h2 {
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: none;
}

/* Insignias circulares/redondeadas */
.badge-rank {
    font-size: 14px;
    font-weight: 700;
    background: var(--color-surface-hover);
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-card);
    border-radius: 50%;
}

/* Inputs Redondeados */
.geom-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-input);
    color: #ffffff;
    outline: none;
    transition: var(--transition-fast);
}

.geom-input:focus {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.geom-input::placeholder {
    text-align: inherit;
    line-height: inherit;
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.7;
}

/* Selector del Sistema */
select.geom-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

/* intlTelInput Full Width */
.iti {
    width: 100%;
    display: block;
}

/* Igualar la separación izquierda de la bandera con el padding derecho (Idéntico a Reservas) */
.iti__flag-container {
    padding-left: 8px;
    padding-right: 8px;
}

/* Padding interno de la bandera (8px a la izquierda y 16px a la derecha) */
.iti__selected-flag {
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px 0 8px !important;
}

/* Máscara visual con el logo del mundial sobre la bandera */
.iti__flag.mockup {
    background-image: url('../img/logo_mundial.png') !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none !important;
    /* Evita sombras de la bandera original */
}

/* Navegación Profesional Estilo iOS */
.geom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
    /* Altura fija en todas las pantallas */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* iOS Segmented Control (Pestañas) */
.ios-segmented-control {
    display: flex;
    background: #0b0d1e;
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ios-segmented-control button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.ios-segmented-control button.active {
    background: var(--color-primary);
    color: #000000;
    box-shadow: 0 4px 10px rgba(204, 255, 0, 0.25);
}

/* Wallet Card Premium */
.wallet-card-preview {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1.586 / 1;
    background: var(--color-surface);
    border: 1.5px solid #6000eb !important;
    border-radius: 16px 0 16px 16px !important;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wallet-card-preview::before {
    display: none;
}

/* Grid del Torneo y Layout */
.geom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
    width: 100%;
}

/* Wrapper exterior que centra y limita el ancho */
.tournament-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Contenedor de partidos */
#matchesContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Leaderboard Fila */
.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 10px;
    background: var(--color-surface);
    border: 1.5px solid #6000eb !important;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.leaderboard-row:nth-child(4n+1) {
    border-radius: 0 var(--border-radius-geom) var(--border-radius-geom) var(--border-radius-geom) !important;
}

.leaderboard-row:nth-child(4n+2) {
    border-radius: var(--border-radius-geom) 0 var(--border-radius-geom) var(--border-radius-geom) !important;
}

.leaderboard-row:nth-child(4n+3) {
    border-radius: var(--border-radius-geom) var(--border-radius-geom) 0 var(--border-radius-geom) !important;
}

.leaderboard-row:nth-child(4n+4) {
    border-radius: var(--border-radius-geom) var(--border-radius-geom) var(--border-radius-geom) 0 !important;
}

.leaderboard-row:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: var(--color-surface-hover);
}

/* Date Carousel Container (Inline Flow) */
#date-carousel-container {
    width: 100%;
    margin-bottom: 0px;
    box-sizing: border-box;
    min-width: 0;
}

/* Carrusel de Fechas Premium (Estilo Reservas/Host) */
#date-carousel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 12px;
    padding: 4px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#date-carousel::-webkit-scrollbar {
    display: none;
}

.date-item {
    flex: 0 0 auto;
    width: 4.8rem;
    height: 4.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: var(--color-surface);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--color-text-secondary);
    border: 1.5px solid var(--color-border-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.date-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background-color: var(--color-surface-hover);
    transform: translateY(-2px);
}

.date-item.active {
    border-color: #a7e601 !important;
    background: #a7e601 !important;
    color: #000000 !important;
    transform: scale(1.05);
    z-index: 10;
}

.date-item.is-today {
    color: var(--color-warning);
    font-weight: 800;
}

.date-item.has-matches {
    box-shadow: 0 0 0 2px var(--color-primary);
    /* Un pequeño borde para indicar que tiene partidos */
}

/* Modal Onboarding Premium iOS 2026 */
.ios-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ios-modal-overlay.active {
    display: flex;
}

.ios-modal-card {
    background: var(--color-surface);
    border: 1.5px solid #6000eb !important;
    border-radius: 20px 20px 0 20px !important;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1001;
}

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

.dot-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    transition: var(--transition-fast);
}

.dot-indicator.active {
    background: var(--color-primary);
    width: 20px;
    border-radius: 4px;
}

/* --- ANIMACIONES DE SPLASH --- */
@keyframes pulse-logo {
    0% {
        transform: scale(0.95);
        .soccer-scene {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.5s ease-in;
            /* Visible por defecto detrás de la pantalla de carga / splash */
            overflow: visible !important;
        }
        transform: scale(1.0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes bounce-dot {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.splash-logo {
    animation: pulse-logo 2s infinite ease-in-out;
    will-change: transform;
    -webkit-backface-visibility: hidden;
}

.splash-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: bounce-dot 1.4s infinite ease-in-out both;
}

.splash-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.splash-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* --- RESPONSIVIDAD Y AJUSTE MÓVIL --- */
@media (max-width: 768px) {
    /* Se mantiene la altura de 72px fija del geom-nav en móviles */

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .geom-btn {
        padding: 10px 16px;
        font-size: 11px;
    }

    .tournament-wrapper {
        padding: 0px 12px;
    }

    #matchesContainer {
        grid-template-columns: 1fr;
    }

    #matchesContainer .geom-card {
        padding: 16px;
    }
}

/* Estilos para centrar el contenido principal, similar a host.php */
/* Se mueve aquí desde el HTML para una mejor organización */
.centered-content-wrapper {
    max-width: 1280px;
    /* Equivalente a Tailwind's max-w-7xl (1280px) */
    margin: 0 auto;
    /* Centrar horizontalmente */
    padding: 0 20px;
    /* Añadir padding horizontal para evitar que el contenido toque los bordes */
}

/* Clase para el padding vertical del footer */
.geom-footer-padding {
    padding-top: 40px;
    padding-bottom: 40px;
}

#appContainer {
    flex-grow: 1;
    /* Permite que el main ocupe todo el espacio vertical disponible */
}

#calendarSection {
    gap: 12px !important;
}

/* --- TAB Layout & Desktop --- */
.tab-section.hidden {
    display: none !important;
}

.tab-section.active {
    display: flex !important;
    min-width: 0;
}

@media (min-width: 1025px) {
    .geom-grid {
        grid-template-columns: 1.2fr 0.8fr;
        /* matches calendar on left, rankings on right */
        gap: 32px;
        align-items: start;
    }

    .ios-segmented-control {
        display: none !important;
    }

    #date-carousel {
        justify-content: center;
    }

    .pwa-banner-header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .pwa-app-details {
        align-items: center;
    }
}

/* Bottom Nav Flotante Estilo iOS */
.ios-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 768px;
    background: rgba(18, 22, 42, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid #6000eb !important;
    border-radius: 0 20px 20px 20px !important;
    display: flex;
    justify-content: space-around;
    padding: 8px 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.ios-bottom-nav button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 8px 4px;
    border-radius: 12px;
    outline: none;
}

.ios-bottom-nav button i {
    font-size: 18px;
}

.ios-bottom-nav button.active {
    color: #000000 !important;
    background: #a7e601 !important;
}

.ios-bottom-nav button.active i {
    color: #000000 !important;
}

/* --- PWA Install Banner Style --- */
.pwa-install-banner {
    position: fixed;
    bottom: 95px;
    /* Justo arriba del bottom nav flotante */
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 480px;
    background: var(--color-primary) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid #6000eb !important;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    z-index: 999;
    box-sizing: border-box;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-banner.visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.pwa-banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.pwa-app-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: cover;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.pwa-app-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-app-details h4 {
    font-size: 14px;
    font-weight: 800;
    color: #6000eb !important;
    margin: 0;
    text-transform: uppercase;
}

.pwa-app-details p {
    font-size: 11px;
    color: #6000eb !important;
    margin: 0;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: #6000eb !important;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    position: absolute;
    top: -2px;
    right: -2px;
    transition: color 0.2s ease;
}

.pwa-close-btn:hover {
    color: #6000eb !important;
    opacity: 0.8;
}

.pwa-prompt-so.hidden {
    display: none !important;
}

.pwa-apple-instructions {
    background: rgba(96, 0, 235, 0.07) !important;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(96, 0, 235, 0.15) !important;
}

.pwa-apple-instructions p {
    font-size: 12px;
    font-weight: 700;
    color: #6000eb !important;
    margin-bottom: 6px;
}

.pwa-apple-instructions ol {
    margin: 0;
    padding-left: 16px;
    font-size: 11px;
    color: #6000eb !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwa-apple-instructions ol li i {
    color: #6000eb !important;
}

#pwaInstallBtn {
    background: #6000eb !important;
    color: var(--color-primary) !important;
    border: 1.5px solid #6000eb !important;
    box-shadow: none !important;
}

#pwaInstallBtn:hover {
    background: #4f00c4 !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.02) !important;
}

/* Splash Footer matching LunchClub / main page footer styling */
.splash-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
}

.splash-footer p {
    font-family: 'Jersey 10', sans-serif;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Sticky Calendar Selector matching geom-nav height */
#calendarSelector {
    position: sticky;
    top: 71px;
    z-index: 90;
    background: rgba(3, 5, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* padding: 10px 0 0; */
    width: 100%;
}

/* ==========================================================================
   CONFIGURACIONES INTELIGENTES DE FUENTES (FWC2026)
   ========================================================================== */

/* Condensed para goleadores y asistencias */
#playerStatsSection,
#playerStatsSection,
#playerStatsSection *:not(i):not(.fa-solid):not(.fa-brands),
#scorersList,
#scorersList *:not(i):not(.fa-solid):not(.fa-brands),
#assistsList,
#assistsList *:not(i):not(.fa-solid):not(.fa-brands),
#btnShowGoles,
#btnShowAsist,
#groupsContainer,
#groupsContainer *:not(i):not(.fa-solid):not(.fa-brands),
#thirdPlacesContainer,
#thirdPlacesContainer *:not(i):not(.fa-solid):not(.fa-brands) {
    font-family: 'FWC2026-CondensedLight', sans-serif !important;
}

/* Light para account */
.account-grid,
.account-grid *:not(i):not(.fa-solid):not(.fa-brands),
#dynamicProfileHeader,
#dynamicProfileHeader *:not(i):not(.fa-solid):not(.fa-brands) {
    font-family: 'FWC2026-CondensedLight', sans-serif !important;
}

/* Bold para equipos */
.geom-card h4 {
    font-family: 'FWC2026-UltraCondensedBlack', sans-serif !important;
    font-weight: 900 !important;
    font-size: 18px !important;
}

.playoff-match-card span[title],
.geom-card div>div>span[style*="white-space: nowrap"],
.geom-card div[style*="min-width: 0"]>span:last-child {
    font-family: 'FWC2026-UltraCondensedBlack', sans-serif !important;
    font-weight: 900 !important;
}

/* La fecha en partidos debe ser lima */
.geom-card .fa-calendar-days,
.geom-card span:has(.fa-calendar-days),
.geom-card div[style*="margin-bottom: 12px"] span {
    color: #a7e601 !important;
}

/* Nombres de los jugadores en las listas por CondensedLight */
#scorersList div div span,
#assistsList div div span {
    font-family: 'FWC2026-CondensedLight', sans-serif !important;
}

/* Fuentes dentro de contenedores son lima por defecto */
.geom-card,
.geom-card *:not(button):not(input):not(select):not(.fa-solid):not(.fa-brands):not(i),
.leaderboard-row,
.leaderboard-row *:not(button):not(input):not(select):not(.fa-solid):not(.fa-brands):not(i),
.wallet-card-preview,
.wallet-card-preview *:not(button):not(input):not(select):not(.fa-solid):not(.fa-brands):not(i),
.ios-modal-card,
.ios-modal-card *:not(button):not(input):not(select):not(.fa-solid):not(.fa-brands):not(i) {
    color: #a7e601 !important;
}

/* Listas de goleadores y asistencias en 16px */
#scorersList,
#scorersList *,
#assistsList,
#assistsList *,
#groupsContainer,
#groupsContainer *,
#thirdPlacesContainer,
#thirdPlacesContainer * {
    font-size: 16px !important;
}

/* Selectores con fuente morada */
select,
select.geom-input,
select.geom-input option {
    color: #6000eb !important;
}

/* Forzar color de posiciones a lima */
#groupsContainer,
#groupsContainer *,
#thirdPlacesContainer,
#thirdPlacesContainer * {
    color: #a7e601 !important;
}

/* Selectores de pestañas con letra morada y fuente CondensedLight */
#btnShowGoles,
#btnShowAsist,
#btnShowGroups,
#btnShowThirdPlaces,
#btnShowPlayoffs {
    font-family: 'FWC2026-CondensedLight', sans-serif !important;
    color: #6000eb !important;
}

/* Cards de Predicciones */
.geom-card.success-card {
    border: 2.5px solid var(--color-success) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
}

.geom-card.success-card::before {
    background: var(--color-success) !important;
}

.geom-card.danger-card {
    border: 2.5px solid var(--color-danger) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
}

.geom-card.danger-card::before {
    background: var(--color-danger) !important;
}

/* Card de partido de hoy */
.geom-card.today-card {
    border: 2.5px solid #6000eb !important;
}

.geom-card.today-card::before {
    background: #6000eb !important;
}

/* Card de partido activo (live) */
.geom-card.live-card {
    border: 2.5px solid #F0F0F0 !important;
}

.geom-card.live-card::before {
    background: #F0F0F0 !important;
}

/* Botón de Resumen Finalizado */
.geom-btn.finished-resumen-btn:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-primary) !important;
}

/* Eliminar controles/spinners de inputs numéricos */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Modal de Inicio de Sesión Tipo Bottom Sheet */
.login-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-bottom-sheet-overlay.active {
    display: flex;
    opacity: 1;
}

.login-bottom-sheet-card {
    background: var(--color-surface);
    border: 2px solid var(--color-primary) !important;
    border-bottom: none !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 36px 24px 48px 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.login-bottom-sheet-overlay.active .login-bottom-sheet-card {
    transform: translateY(0);
}

.login-bottom-sheet-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.login-bottom-sheet-close:hover {
    color: #ffffff;
}

/* Hover para las filas clasificadas en Grupos y Terceros */
.qualified-row {
    transition: background-color 0.2s ease, transform 0.2s ease;
    /* border-radius: 6px; */
    padding: 6px 8px !important;
    margin: 0 -8px;
    background: rgba(167, 230, 1, 0.09) !important;
}
.qualified-row:hover {
    background: rgba(167, 230, 1, 0.2) !important;
    cursor: pointer;
    transform: translateX(2px);
}
.eliminated-row {
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 6px 8px !important;
    margin: 0 -8px;
    background: rgba(239, 68, 68, 0.14) !important;
}
.eliminated-row:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    cursor: pointer;
    transform: translateX(2px);
}