/* ==========================================================================
   PollaFutbol 2026 - Premium Dark Mode Sports CSS Stylesheet
   ========================================================================== */

/* 1. Variables de Color y Diseño (Tokens de Diseño HSL/Hex) */
:root {
    --bg-base: #0B0E14;          /* Azul marino ultra profundo */
    --bg-surface: #121824;       /* Fondo de tarjetas de vidrio */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 230, 118, 0.15);
    
    --primary-neon: #00E676;     /* Verde neón - cancha de fútbol */
    --primary-neon-hover: #00C853;
    --primary-neon-glow: rgba(0, 230, 118, 0.4);
    
    --gold: #FFD700;             /* Oro metálico - Copa Mundial */
    --gold-glow: rgba(255, 215, 0, 0.4);
    --silver: #C0C0C0;           /* Plata */
    --bronze: #CD7F32;           /* Bronce */
    
    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;       /* Gris plata suave */
    --text-dark: #1A202C;
    
    --glass-bg: rgba(18, 24, 36, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    
    --font-primary: 'Outfit', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset y Estilos Globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 230, 118, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* 3. Componentes Premium (Glassmorphism & Shadows) */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.7);
}

/* Botones Premium con Efecto Glow */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-neon);
    color: var(--text-dark);
    box-shadow: 0 4px 14px 0 var(--primary-neon-glow);
}

.btn-primary:hover {
    background-color: var(--primary-neon-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-neon-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #FF1744;
    color: #FFFFFF;
}

.btn-danger:hover {
    background-color: #D50000;
    transform: translateY(-2px);
}

.btn-paypal {
    background-color: #0070BA;
    color: #FFFFFF;
    box-shadow: 0 4px 14px 0 rgba(0, 112, 186, 0.4);
}

.btn-paypal:hover {
    background-color: #005EA6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 112, 186, 0.5);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.5);
}

.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    animation: cta-glow 4s infinite linear;
}

@keyframes cta-glow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.80rem;
    border-radius: 4px;
}

/* Badges y Alertas */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background-color: rgba(0, 230, 118, 0.15);
    color: var(--primary-neon);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.badge-pending {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.alert-box {
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-danger {
    background-color: rgba(255, 23, 68, 0.1);
    color: #FF1744;
    border: 1px solid rgba(255, 23, 68, 0.25);
}

.alert-success {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--primary-neon);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.alert-warning {
    background-color: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* 4. Estilos de la Cabecera y Menú */
.main-header {
    background-color: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-emoji {
    font-size: 1.6rem;
}

.logo-text .highlight {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.logo-text .year {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 400;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--primary-neon);
}

/* Selector de Idiomas */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.lang-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.lang-btn.active {
    color: var(--primary-neon);
}

.lang-divider {
    color: rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* 5. Página de Inicio (Index.php) */
.hero-section {
    margin-top: 24px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(18, 24, 36, 0.9) 0%, rgba(11, 14, 20, 0.9) 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
    top: -50px;
    left: -50px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Cuenta Regresiva */
.countdown-container {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    padding: 24px;
    max-width: 450px;
    margin: 0 auto;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 800;
}

.countdown-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.countdown-time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.time-num {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--text-main);
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
}

.started-banner {
    background-color: rgba(0, 230, 118, 0.15);
    color: var(--primary-neon);
    font-weight: 800;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 64px;
}

@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 420px 1fr;
    }
}

/* Sección de Premios */
.prizes-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.prizes-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.prizes-meta-info p {
    font-size: 0.95rem;
}

.highlight-green {
    color: var(--primary-neon);
    font-weight: 800;
}

.highlight-gold {
    color: var(--gold);
    font-weight: 800;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0 24px;
}

/* Lógica de Ocultamiento de Premios */
.prizes-hidden-box {
    text-align: center;
    padding: 16px 0;
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: lock-wobble 4s infinite ease-in-out;
}

@keyframes lock-wobble {
    0%, 100% { transform: rotate(0); }
    45% { transform: rotate(5deg); }
    55% { transform: rotate(-5deg); }
}

.hidden-notice {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.missing-users-label {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* Barra de progreso */
.progress-bar-container {
    margin-bottom: 32px;
}

.progress-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-align: right;
}

.progress-bar-track {
    background-color: rgba(255, 255, 255, 0.05);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--gold) 0%, var(--primary-neon) 100%);
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
    transition: width 1s ease-out;
}

/* Grilla de Premios */
.prize-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prize-card {
    border-radius: var(--border-radius-sm);
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.prize-card.locked {
    background-color: rgba(255, 255, 255, 0.01);
    opacity: 0.4;
}

.prize-card.locked h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.prize-val-locked {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.1);
}

.prize-tier-emoji {
    font-size: 2rem;
    position: absolute;
    right: 16px;
    top: 16px;
    opacity: 0.15;
}

.prize-card.gold-tier {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(18, 24, 36, 0.8) 100%);
    border-color: rgba(255, 215, 0, 0.15);
}
.prize-card.gold-tier:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.prize-card.silver-tier {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(18, 24, 36, 0.8) 100%);
    border-color: rgba(192, 192, 192, 0.15);
}
.prize-card.silver-tier:hover {
    border-color: var(--silver);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.25);
}

.prize-card.bronze-tier {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, rgba(18, 24, 36, 0.8) 100%);
    border-color: rgba(205, 127, 50, 0.15);
}
.prize-card.bronze-tier:hover {
    border-color: var(--bronze);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.25);
}

.tier-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-bottom-right-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.gold-tier .tier-badge { color: var(--gold); background: rgba(255, 215, 0, 0.1); }
.silver-tier .tier-badge { color: var(--silver); background: rgba(192, 192, 192, 0.1); }
.bronze-tier .tier-badge { color: var(--bronze); background: rgba(205, 127, 50, 0.1); }

.prize-card h3 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.winner-desc {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.prize-value-display {
    display: flex;
    flex-direction: column;
    margin: 6px 0;
}

.val-usd {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.val-cop {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-neon);
}

.places-covered {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.prize-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* 6. Tabla Leaderboard */
.leaderboard-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.real-podium-card {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
}

.real-podium-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
    margin-top: 8px;
}

.search-bar-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.leaderboard-table th {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Resaltar Filas Ganadoras (Oro, Plata, Bronce) */
.leaderboard-table tr.highlight-rank-gold {
    background-color: rgba(255, 215, 0, 0.02);
}
.leaderboard-table tr.highlight-rank-gold:hover {
    background-color: rgba(255, 215, 0, 0.04);
}
.leaderboard-table tr.highlight-rank-gold .rank-col {
    color: var(--gold);
    font-weight: 800;
}

.leaderboard-table tr.highlight-rank-silver {
    background-color: rgba(192, 192, 192, 0.01);
}
.leaderboard-table tr.highlight-rank-silver:hover {
    background-color: rgba(192, 192, 192, 0.03);
}
.leaderboard-table tr.highlight-rank-silver .rank-col {
    color: var(--silver);
    font-weight: 800;
}

.leaderboard-table tr.highlight-rank-bronze {
    background-color: rgba(205, 127, 50, 0.01);
}
.leaderboard-table tr.highlight-rank-bronze:hover {
    background-color: rgba(205, 127, 50, 0.03);
}
.leaderboard-table tr.highlight-rank-bronze .rank-col {
    color: var(--bronze);
    font-weight: 800;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

.rank-col {
    font-weight: 600;
}

.name-col {
    display: flex;
    flex-direction: column;
}

.user-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.predictions-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pred-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.champ-badge { color: var(--gold); border-color: rgba(255, 215, 0, 0.15); background: rgba(255, 215, 0, 0.03); }
.runner-badge { color: var(--silver); border-color: rgba(192, 192, 192, 0.15); background: rgba(192, 192, 192, 0.03); }
.third-badge { color: var(--bronze); border-color: rgba(205, 127, 50, 0.15); background: rgba(205, 127, 50, 0.03); }

.goals-col {
    font-size: 1rem;
}

.goal-diff-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.points-badge {
    background-color: var(--primary-neon);
    color: var(--text-dark);
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
}

.no-data-row {
    color: var(--text-muted);
    padding: 48px !important;
}

/* 7. Formulario de Registro Wizard */
.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 32px;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.step-indicator.active {
    opacity: 1;
}

.step-num {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid transparent;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.step-indicator.active .step-num {
    background-color: var(--primary-neon);
    color: var(--text-dark);
    box-shadow: 0 0 12px var(--primary-neon-glow);
}

.step-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 0 12px;
    margin-bottom: 22px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fade-in-slide 0.4s ease-out;
}

@keyframes fade-in-slide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr 1fr;
    }
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.required {
    color: #FF1744;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.input-error {
    border-color: #FF1744 !important;
    background-color: rgba(255, 23, 68, 0.03) !important;
}

.input-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.large-label {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.number-input-large {
    max-width: 150px;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    padding: 12px;
}

/* Grilla Métodos de Pago */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.payment-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gold);
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.payment-value {
    font-weight: 700;
}

.receipt-reference-group {
    background-color: rgba(0, 230, 118, 0.02);
    border: 1px dashed rgba(0, 230, 118, 0.2);
    padding: 20px;
    border-radius: var(--border-radius-sm);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.btn-submit-quiniela {
    background-color: var(--gold);
    color: var(--text-dark);
    box-shadow: 0 4px 14px 0 var(--gold-glow);
    font-weight: 800;
}

.btn-submit-quiniela:hover {
    background-color: #E6C200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--gold-glow);
}

/* Pantalla de Éxito */
.success-card {
    text-align: center;
    max-width: 650px;
    margin: 40px auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: success-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes success-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.success-heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary-neon);
}

.success-message {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.user-summary-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    margin: 24px 0;
    text-align: left;
}

.user-summary-card h3 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.podium-preview {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin: 24px 0;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.podium-item .medal { font-size: 1.8rem; margin-bottom: 4px; }
.podium-item .country-name { font-weight: 700; font-size: 0.9rem; text-align: center; }
.podium-item .place-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-top: 4px;}

.podium-item.champion { height: 130px; background-color: rgba(255, 215, 0, 0.03); border-color: rgba(255, 215, 0, 0.1); }
.podium-item.runner-up { height: 110px; background-color: rgba(192, 192, 192, 0.02); border-color: rgba(192, 192, 192, 0.1); }
.podium-item.third-place { height: 100px; background-color: rgba(205, 127, 50, 0.02); border-color: rgba(205, 127, 50, 0.1); }

.goals-summary {
    font-size: 0.95rem;
    text-align: center;
    margin-top: 16px;
}

.social-share-section {
    background-color: rgba(37, 211, 102, 0.03);
    border: 1px dashed rgba(37, 211, 102, 0.2);
    padding: 24px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
}

.social-share-section h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* 8. Panel de Administración (admin.php) */
.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.login-card {
    max-width: 400px;
    width: 100%;
}

.login-form {
    margin-top: 24px;
    text-align: left;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .admin-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.summary-details p {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.highlight-border-gold {
    border-color: rgba(255, 215, 0, 0.25) !important;
}

.financial-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.financial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.admin-control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .admin-control-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.control-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.control-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.api-status-info {
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
}

.admin-podium-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-table-section {
    margin-bottom: 32px;
}

.admin-table-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.user-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pred-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* 9. Estilos del Pie de Página (Footer) */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(11, 14, 20, 0.9);
    padding: 32px 0;
    margin-top: auto;
    font-size: 0.8rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.copyright {
    color: var(--text-main);
    font-weight: 600;
}

.legal-notice {
    color: var(--text-muted);
    font-style: italic;
}

/* 10. Animaciones de Entrada */
.fade-in {
    animation: fade-in-keyframes 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fade-in-keyframes {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 11. Ajustes del Héroe Bicolumna y Animaciones Flotantes */
.hero-section {
    margin-top: 24px;
    padding: 32px 48px;
    background: linear-gradient(135deg, rgba(18, 24, 36, 0.9) 0%, rgba(11, 14, 20, 0.9) 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    max-width: 960px; /* Centrado y acotado para evitar que las letras y la imagen queden lejos */
    margin-left: auto;
    margin-right: auto;
}

.hero-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-visual-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 260px; /* Tamaño más controlado */
}

.floating-image-container {
    perspective: 1000px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.soccer-hero-image {
    width: 100%;
    max-height: 160px; /* Imagen más compacta y centrada */
    object-fit: contain;
    border-radius: var(--border-radius-md);
    filter: drop-shadow(0 10px 20px rgba(0, 230, 118, 0.2)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.1));
    animation: float-slow 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px;
}

/* Nuevas Imágenes Alusivas */
.locked-trophy-image {
    max-height: 110px;
    object-fit: contain;
    margin-bottom: 12px;
    animation: float-slow 5s ease-in-out infinite;
    filter: drop-shadow(0 8px 15px rgba(255, 215, 0, 0.2));
}

.soccer-tactics-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    filter: drop-shadow(0 8px 15px rgba(0, 230, 118, 0.2));
    animation: float-slow 7s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.tactics-bicolumn-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@media (min-width: 768px) {
    .hero-grid-layout {
        display: grid;
        grid-template-columns: 1.3fr 1fr; /* Más balanceado */
        gap: 24px; /* Brecha más estrecha para acercar elementos */
    }
    
    .hero-content.text-left-desktop {
        align-items: flex-start;
        text-align: left;
    }
    
    .hero-content.text-left-desktop .countdown-container {
        margin: 0;
    }
    
    .hero-content.text-left-desktop .hero-cta-wrapper {
        justify-content: flex-start;
    }
    
    .soccer-hero-image {
        max-height: 200px; /* Imagen no tan masiva */
    }
    
    .tactics-bicolumn-layout {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* 12. Estilos para el Botón de Acción Principal (CTA) Gigante */
.hero-cta-wrapper {
    margin-top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-large-hero {
    font-size: 1.15rem;
    padding: 16px 36px;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
    animation: pulse-breathing 2s infinite alternate ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse-breathing {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 14px var(--primary-neon-glow);
    }
    100% {
        transform: scale(1.04);
        box-shadow: 0 8px 26px rgba(0, 230, 118, 0.65);
    }
}
