/* CSS Principal - Panel de Estadísticas Deportivas Premium */

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

:root {
    --bg-main: #0a0b0e;
    --bg-surface: #111318;
    --bg-card: #181b23;
    --bg-card-hover: #20242e;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(0, 255, 135, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-green: #00ff87;
    --accent-green-hover: #00e074;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    
    --glass-bg: rgba(24, 27, 35, 0.6);
    --glass-blur: blur(16px);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-outfit: 'Outfit', sans-serif;
    --font-jakarta: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-jakarta);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #2b303c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3e4556;
}

/* Layout General */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: var(--glass-blur);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.5));
}

.logo-section h1 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-dot.demo {
    background-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Main Layout */
main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    main {
        grid-template-columns: 280px 1fr;
    }
}

/* Sidebar & Filtros */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Buscador */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-jakarta);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

/* Categorias / Ligas de Acceso Rapido */
.league-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.league-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.league-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.league-nav-item.active {
    background: rgba(0, 255, 135, 0.08);
    color: var(--accent-green);
    font-weight: 500;
}

.league-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Seccion Favoritos */
.favorites-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(17, 19, 24, 0.6) 100%);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

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

.fav-card {
    background: rgba(24, 27, 35, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.fav-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.05);
}

/* Ligas / Torneos */
.league-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.league-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.league-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.league-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.league-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.league-country {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.league-group.collapsed .league-matches {
    display: none;
}

.league-group.collapsed .accordion-icon {
    transform: rotate(-90deg);
}

.league-matches {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tarjeta de Partido */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
}

@media (min-width: 768px) {
    .match-card {
        grid-template-columns: 240px 1fr 180px;
        align-items: center;
    }
}

.match-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Info del Partido (Equipos, Hora) */
.match-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b303c, #1f222d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}

.score {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-green);
    min-width: 20px;
    text-align: center;
}

.time-badge-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.match-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-live {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.status-finished {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-scheduled {
    background: rgba(0, 255, 135, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 135, 0.2);
}

/* Sección de Predicciones y Probabilidades */
.predictions-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-content: center;
}

.probability-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.probability-bar-1x2 {
    display: flex;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.prob-segment {
    height: 100%;
    transition: width 0.8s ease-in-out;
}

.prob-home {
    background: linear-gradient(90deg, var(--accent-green) 0%, #00e0b0 100%);
}

.prob-draw {
    background: #4b5563;
}

.prob-away {
    background: linear-gradient(90deg, #6366f1 0%, var(--accent-purple) 100%);
}

/* Otras Probabilidades (BTTS, Over/Under) */
.other-probabilities {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.prob-mini-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 100px;
}

.mini-box-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.mini-box-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.val-green {
    color: var(--accent-green);
}

.val-purple {
    color: var(--accent-purple);
}

/* Botones y Acciones de la Tarjeta */
.card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .card-actions {
        justify-content: space-between;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
    }
}

.btn-details {
    background: linear-gradient(135deg, #1f232e 0%, #15171e 100%);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    font-family: var(--font-jakarta);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-details:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.15);
    background: rgba(0, 255, 135, 0.05);
}

.btn-fav {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.btn-fav:hover {
    color: var(--accent-gold);
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.btn-fav.active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
    animation: starBounce 0.3s ease;
}

/* MODAL DE DETALLES Y ANALISIS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

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

.modal-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 10;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Scoreboard H2H y Comparaciones */
.modal-teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 14px;
}

.modal-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.modal-team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    border: 2px solid var(--border-color);
}

.modal-vs {
    font-family: var(--font-outfit);
    font-weight: 800;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Tabla H2H */
.h2h-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.h2h-table th, .h2h-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.h2h-table th {
    color: var(--text-secondary);
    font-weight: 600;
}

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

/* Formas Recientes */
.form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.form-title-sub {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.form-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-dot {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.dot-w { background-color: var(--accent-green); }
.dot-d { background-color: #555; }
.dot-l { background-color: var(--accent-red); }

/* Promedios de Goles y Estadísticas */
.stat-bar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-visual-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    overflow: hidden;
}

.stat-fill-home {
    background: var(--accent-green);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-fill-away {
    background: var(--accent-purple);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Corners - Ámbar */
.stat-fill-corners-home {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-fill-corners-away {
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tiros a puerta - Cian */
.stat-fill-shots-home {
    background: linear-gradient(90deg, #06b6d4, #0284c7);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-fill-shots-away {
    background: linear-gradient(90deg, #67e8f9, #06b6d4);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Faltas - Naranja */
.stat-fill-fouls-home {
    background: linear-gradient(90deg, #f97316, #ea580c);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-fill-fouls-away {
    background: linear-gradient(90deg, #fb923c, #f97316);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tarjetas amarillas */
.stat-fill-yellow-home {
    background: linear-gradient(90deg, #eab308, #ca8a04);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-fill-yellow-away {
    background: linear-gradient(90deg, #fde047, #eab308);
    height: 100%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Consejos e Insights */
.advice-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.advice-icon {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.advice-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Animaciones */
@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes starBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Varios */
.empty-favorites {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===========================
   PRONÓSTICO LÍDER (TOP PICK)
   =========================== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), 0 0 40px rgba(245, 158, 11, 0.05), inset 0 1px 0 rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.3), 0 0 60px rgba(245, 158, 11, 0.1), inset 0 1px 0 rgba(255,255,255,0.08); }
}

@keyframes badgePop {
    0% { transform: scale(0.8) rotate(-5deg); opacity: 0; }
    70% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.top-pick-section {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg,
        rgba(24, 20, 5, 0.95) 0%,
        rgba(30, 20, 0, 0.9) 40%,
        rgba(20, 10, 30, 0.9) 100%
    );
    border: 1px solid rgba(245, 158, 11, 0.35);
    animation: glowPulse 3s ease-in-out infinite;
    padding: 2rem 2rem 1.75rem;
}

/* Decorative background orbs */
.top-pick-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.top-pick-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.top-pick-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-pick-icon {
    font-size: 1.5rem;
    animation: floatY 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
}

.top-pick-title {
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #f59e0b, #fcd34d, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.top-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Confidence threshold badge variants */
.top-pick-badge.high-conf {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.15), rgba(0, 255, 135, 0.05));
    border-color: rgba(0, 255, 135, 0.4);
    color: var(--accent-green);
}

.top-pick-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .top-pick-body {
        grid-template-columns: 1fr auto;
        gap: 2rem;
    }
}

.top-pick-match {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-pick-league-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.top-pick-league-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    background: rgba(255,255,255,0.05);
}

.top-pick-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-pick-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 100px;
}

.top-pick-team-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(30, 20, 0, 0.5) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.1rem;
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.top-pick-team-name {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-primary);
}

.top-pick-team-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.top-pick-vs {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1rem;
    color: rgba(245, 158, 11, 0.5);
    padding: 0 0.5rem;
}

.top-pick-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.top-pick-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}

.top-pick-prediction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    min-width: 160px;
    text-align: center;
}

.confidence-ring {
    position: relative;
    width: 88px;
    height: 88px;
}

.confidence-ring svg {
    transform: rotate(-90deg);
}

.confidence-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 7;
}

.confidence-ring-fill {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.confidence-ring-fill.high {
    stroke: url(#goldGradient);
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
}

.confidence-ring-fill.very-high {
    stroke: url(#greenGradient);
    filter: drop-shadow(0 0 4px rgba(0, 255, 135, 0.5));
}

.confidence-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 1.4rem;
    color: #f59e0b;
    line-height: 1;
}

.confidence-number.very-high {
    color: var(--accent-green);
}

.confidence-pct {
    font-size: 0.65rem;
    font-weight: 700;
    display: block;
    margin-top: 1px;
}

.top-pick-prediction-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.top-pick-prediction-type {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f59e0b;
    text-align: center;
    line-height: 1.3;
}

.top-pick-prediction-type.very-high {
    color: var(--accent-green);
}

.top-pick-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.btn-top-pick-analysis {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #000;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-top-pick-analysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-top-pick-analysis.high-conf-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00c974 100%);
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.25);
}

.btn-top-pick-analysis.high-conf-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 135, 0.4);
}

.btn-top-pick-fav {
    background: none;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: rgba(245, 158, 11, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.btn-top-pick-fav:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.08);
}

.btn-top-pick-fav.active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.15);
}

/* Decorative stars */
.top-pick-stars {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    display: flex;
    gap: 0.2rem;
    opacity: 0.5;
    font-size: 0.65rem;
    color: #f59e0b;
    pointer-events: none;
}

/* Selector de Fecha */
.date-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.quick-dates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.quick-date-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.quick-date-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}
.quick-date-btn.active {
    background: rgba(0, 255, 135, 0.08);
    color: var(--accent-green);
    border-color: rgba(0, 255, 135, 0.3);
}
.date-picker-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-jakarta);
    transition: var(--transition-smooth);
    outline: none;
}
.date-picker-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

/* 3 Logros Fijos */
.logros-fijos-section {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.logros-fijos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.premium-badge {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #a78bfa 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}
.logros-fijos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.logro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.logro-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: rgba(0, 255, 135, 0.25);
    box-shadow: 0 8px 24px rgba(0, 255, 135, 0.05);
}
.logro-league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.logro-league-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.logro-teams {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.logro-prediction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}
.logro-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
}
.logro-prob {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.logro-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Modal Detalle: Logro Fijo Premium */
.modal-premium-logro {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}
.premium-logro-icon {
    font-size: 2rem;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.premium-logro-badge {
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.25);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* Factores de Clima y Árbitro */
.factors-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .factors-container {
        grid-template-columns: 1fr 1fr;
    }
}
.factor-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.factor-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.factor-emoji {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.factor-impact {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.weather-impact {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--accent-blue);
}
.referee-impact {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
}

/* Temas de Deportes */
body.sport-baloncesto {
    --accent-green: #f97316;
    --accent-green-hover: #ea580c;
    --border-glow: rgba(249, 115, 22, 0.2);
}
body.sport-beisbol {
    --accent-green: #06b6d4;
    --accent-green-hover: #0891b2;
    --border-glow: rgba(6, 182, 212, 0.2);
}
body.sport-tenis {
    --accent-green: #eab308;
    --accent-green-hover: #ca8a04;
    --border-glow: rgba(234, 179, 8, 0.2);
}
body.sport-nba {
    --accent-green: #3b82f6;
    --accent-green-hover: #2563eb;
    --border-glow: rgba(59, 130, 246, 0.2);
}
body.sport-nfl {
    --accent-green: #a855f7;
    --accent-green-hover: #9333ea;
    --border-glow: rgba(168, 85, 247, 0.2);
}
body.sport-mma {
    --accent-green: #ef4444;
    --accent-green-hover: #dc2626;
    --border-glow: rgba(239, 68, 68, 0.2);
}

/* Estilo del Botón de Regreso */
.btn-back:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 12px var(--border-glow);
}


