/* ============================================
🎾 COURT SIGHT TENNIS - PRONÓSTICOS CSS
🎨 TEMA: PRO CIRCUIT DARK (Tenis Premium Nocturno)
📦 VERSIÓN: 3.0 - Estética profesional, cero lógica
============================================ */

/* ============================================
🔹 VARIABLES SEMÁNTICAS PARA PRONÓSTICOS
============================================ */
:root {
    /* Escenarios de apuesta - colores semánticos */
    --scenario-inversion: #38bdf8;        /* Azul cielo - Inversión de mercado */
    --scenario-discrepancia: #f59e0b;     /* Ámbar - Discrepancia detectada */
    --scenario-validacion: #10b981;       /* Esmeralda - Validación del modelo */
    --scenario-neutro: #64748b;           /* Gris acero - Neutral/Espera */
    
    /* Superficies de cancha - badges */
    --surface-clay: #c46b4b;              /* Arcilla */
    --surface-hard: #3b82f6;              /* Dura */
    --surface-grass: #22c55e;             /* Césped */
    --surface-carpet: #8b5cf6;            /* Moqueta */
    
    /* Estados de partido */
    --status-live: #ef4444;               /* Rojo vibrante - En vivo */
    --status-finished: #64748b;           /* Gris - Finalizado */
    --status-upcoming: #94a3b8;           /* Gris claro - Por jugar */
    
    /* Barras de progreso */
    --bar-bg: rgba(51, 65, 85, 0.6);
    --bar-elo: var(--accent);
    --bar-market: var(--accent-secondary);
    
    /* Skeleton loading */
    --skeleton-base: rgba(51, 65, 85, 0.4);
    --skeleton-shine: rgba(184, 212, 50, 0.08);
}

/* ============================================
🔹 BASE DE LA PÁGINA
============================================ */
.page-pronosticos {
    background: var(--bg-primary);
}

.main-pronosticos {
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: calc(100vh - 140px);
}

@media (min-width: 1024px) {
    .main-pronosticos {
        padding: 2rem 2.5rem;
        margin-left: 260px;
    }
}

/* ============================================
🔹 HEADER ESPECÍFICO
============================================ */
.header-pronosticos {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* ============================================
🔹 SELECTOR DE FECHA PREMIUM
============================================ */
.date-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.date-pill {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.date-pill:hover {
    box-shadow: 0 4px 16px rgba(184, 212, 50, 0.15);
    border-color: var(--accent);
}

.date-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.date-nav:hover {
    background: var(--accent-dim);
    color: var(--accent);
    transform: scale(1.05);
}

.date-nav:active {
    transform: scale(0.95);
}

.date-display {
    min-width: 140px;
    height: 44px;
    border-radius: 9999px;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0 1rem;
}

.date-display:hover {
    background: var(--accent-dim);
    color: var(--text-primary);
}

.date-display:active {
    transform: scale(0.98);
}

.date-icon {
    color: var(--accent);
    font-size: 1rem;
}

.date-value {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.date-arrow {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.date-display:hover .date-arrow {
    transform: translateY(-1px);
    opacity: 1;
}

.date-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.date-hint i {
    color: var(--accent);
}

/* ============================================
🔹 CALENDARIO MODAL
============================================ */
.calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.calendar-modal.hidden {
    display: none;
}

.calendar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calendar-card {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(184, 212, 50, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.cal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cal-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0.25rem;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    position: relative;
}

.cal-day:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.cal-day.active {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    border-color: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
}

.cal-day.today {
    border: 1px solid var(--accent);
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.cal-day.has-match {
    color: var(--accent);
    font-weight: 600;
}

.cal-day.has-match::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.cal-day.empty {
    pointer-events: none;
    opacity: 0.3;
}

.calendar-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cal-today-btn,
.cal-close-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.cal-today-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.cal-close-btn {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--data-negative);
    color: var(--data-negative);
}

.cal-close-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* ============================================
🔹 ESTADOS: LOADING & EMPTY
============================================ */
.state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.state-container.hidden {
    display: none;
}

/* Loading */
.state-loading .loading-spinner {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.state-loading .loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Skeleton loading */
.loading-skeleton {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-tournament,
.skeleton-match {
    background: var(--skeleton-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.skeleton-tournament {
    height: 56px;
    margin-bottom: 0.5rem;
}

.skeleton-match {
    height: 72px;
}

.skeleton-tournament::after,
.skeleton-match::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

/* Empty state */
.state-empty .empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.state-empty .empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.state-empty .empty-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
🔹 AGRUPACIÓN POR TORNEO
============================================ */
.tournaments-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

.tournament-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.tournament-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.tournament-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at right, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

.tournament-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 1px solid var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.tournament-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-primary);
    padding: 2px;
}

.tournament-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.tournament-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Badges de superficie */
.tournament-surface {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tournament-surface::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tournament-surface[data-surface="Arcilla"] {
    background: rgba(196, 107, 75, 0.15);
    color: var(--surface-clay);
    border: 1px solid rgba(196, 107, 75, 0.3);
}
.tournament-surface[data-surface="Arcilla"]::before {
    background: var(--surface-clay);
}

.tournament-surface[data-surface="Dura"],
.tournament-surface[data-surface="Hard"] {
    background: rgba(59, 130, 246, 0.15);
    color: var(--surface-hard);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.tournament-surface[data-surface="Dura"]::before,
.tournament-surface[data-surface="Hard"]::before {
    background: var(--surface-hard);
}

.tournament-surface[data-surface="Césped"],
.tournament-surface[data-surface="Grass"] {
    background: rgba(34, 197, 94, 0.15);
    color: var(--surface-grass);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.tournament-surface[data-surface="Césped"]::before,
.tournament-surface[data-surface="Grass"]::before {
    background: var(--surface-grass);
}

.tournament-surface[data-surface="Moqueta"],
.tournament-surface[data-surface="Carpet"] {
    background: rgba(139, 92, 246, 0.15);
    color: var(--surface-carpet);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.tournament-surface[data-surface="Moqueta"]::before,
.tournament-surface[data-surface="Carpet"]::before {
    background: var(--surface-carpet);
}

.tournament-count {
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tournament-matches {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 0.5rem;
}

/* ============================================
🔹 TARJETA DE PARTIDO PREMIUM
============================================ */
.match-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 24px rgba(184, 212, 50, 0.1);
    border-color: var(--accent);
}

.match-card:hover::before {
    background: var(--accent);
}

.match-card:active {
    transform: scale(0.99);
}

/* Estado: Acierto */
.match-card.correct {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--data-positive);
}

.match-card.correct::before {
    background: var(--data-positive);
}

.match-card.correct::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--data-positive);
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Estado: Fallo */
.match-card.incorrect {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--data-negative);
    opacity: 0.95;
}

.match-card.incorrect::before {
    background: var(--data-negative);
}

.match-card.incorrect::after {
    content: '✕';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--data-negative);
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Hora y estado */
.match-time {
    text-align: center;
    line-height: 1.3;
}

.match-time-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.match-time .status {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.match-time .status.ft {
    background: var(--bg-card);
    color: var(--status-finished);
    border: 1px solid var(--border);
}

.match-time .status.upc {
    background: var(--bg-card);
    color: var(--status-upcoming);
    border: 1px solid var(--border);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

/* Jugadores */
.match-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.flag-sm {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.match-card:hover .flag-sm {
    transform: scale(1.05);
}

.player-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    transition: color 0.2s ease;
}

.player-row.winner .player-name {
    color: var(--text-primary);
    font-weight: 700;
}

/* Sets */
.match-sets {
    display: flex;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.set-score {
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    white-space: nowrap;
    border: 1px solid transparent;
    min-width: 36px;
    text-align: center;
    transition: all 0.2s ease;
}

.set-score.winner-set {
    color: var(--text-primary);
    font-weight: 700;
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
🔹 MODAL DETALLE PREMIUM
============================================ */
.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.detail-modal.hidden {
    display: none;
}

.detail-modal:not(.hidden) {
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-modal:not(.hidden) .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-top: 3px solid var(--accent);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 700px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.detail-modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--data-negative);
    color: white;
    border-color: var(--data-negative);
    transform: scale(1.05);
}

/* Header del modal */
.detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-text {
    white-space: nowrap;
}

.badge-tournament {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.badge-surface {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-surface[data-surface="Arcilla"] {
    color: var(--surface-clay);
    border-color: var(--surface-clay);
    background: rgba(196, 107, 75, 0.1);
}

.badge-surface[data-surface="Dura"],
.badge-surface[data-surface="Hard"] {
    color: var(--surface-hard);
    border-color: var(--surface-hard);
    background: rgba(59, 130, 246, 0.1);
}

.badge-surface[data-surface="Césped"],
.badge-surface[data-surface="Grass"] {
    color: var(--surface-grass);
    border-color: var(--surface-grass);
    background: rgba(34, 197, 94, 0.1);
}

.badge-status {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-status[data-status="live"] {
    color: var(--status-live);
    border-color: var(--status-live);
    background: rgba(239, 68, 68, 0.1);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

/* Jugadores showcase */
.players-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0.5rem;
    position: relative;
}

.players-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.player-col {
    text-align: center;
    flex: 1;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

.flag-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--border);
    object-fit: cover;
    margin: 0 auto 0.5rem;
    background: var(--bg-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover .flag-lg {
    transform: scale(1.05);
    box-shadow: 0 0 16px var(--accent-glow);
}

.name-lg {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-elo {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid var(--accent);
}

/* 🔹 VS BADGE - CENTRADO Y SIN INFO INFERIOR */
.vs-badge {
    width: 72px;
    height: 72px;
    border-radius: 14px; /* Forma cuadrada suave */
    background: linear-gradient(135deg, #b8d432 0%, #d4e858 100%);
    box-shadow: 
        0 0 24px rgba(184, 212, 50, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.3);
    color: #0a0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vs-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px rgba(184, 212, 50, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vs-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    margin: 0; /* Elimina márgenes que descentran */
}

/* Oculta completamente la fecha/info inferior */
.vs-date { display: none !important; }

/* Línea decorativa debajo del VS */
.vs-badge::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: rgba(10, 14, 20, 0.3);
    border-radius: 9999px;
}

/* Línea horizontal que conecta jugadores */
.players-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(184, 212, 50, 0.2) 20%, 
        rgba(184, 212, 50, 0.4) 50%, 
        rgba(184, 212, 50, 0.2) 80%, 
        transparent 100%);
    z-index: 0;
}

/* ============================================
🔹 TARJETAS COMPARATIVAS ELO vs MERCADO
============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 🟢 MODELO ELO - Estilo Tennis Ball */
.comparison-elo {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(184, 212, 50, 0.15), inset 0 1px 0 rgba(184, 212, 50, 0.1);
}

.comparison-elo:hover {
    box-shadow: 0 4px 20px rgba(184, 212, 50, 0.25), 0 0 30px rgba(184, 212, 50, 0.1);
}

.comparison-elo .comparison-header {
    border-bottom: 1px solid rgba(184, 212, 50, 0.3);
}

.comparison-elo .comparison-header i {
    color: var(--accent);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(184, 212, 50, 0.4));
}

/* 🔵 MERCADO 1XBET - Estilo Market Blue */
.comparison-market {
    border: 2px solid #3b82f6; /* Azul profesional para mercado */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.comparison-market:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25), 0 0 30px rgba(59, 130, 246, 0.1);
}

.comparison-market .comparison-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.comparison-market .comparison-header i {
    color: #3b82f6;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

/* Header de las tarjetas */
.comparison-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
}

.comparison-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.comparison-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.comparison-key {
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Barra de progreso base */
.comparison-bar {
    height: 6px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 9999px;
    margin-top: 1.25rem;
    overflow: hidden;
    position: relative;
}

/* Barra ELO - Amarillo Tenis */
.comparison-elo .comparison-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(184, 212, 50, 0.5);
}

/* Barra Mercado - Azul 1xBet */
.comparison-market .comparison-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Indicador final de la barra */
.comparison-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ============================================
🔹 DIFERENCIAL DE VALOR
============================================ */
.value-differential {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.diff-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.diff-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.diff-value.positive {
    color: var(--data-positive);
}

.diff-value.negative {
    color: var(--data-negative);
}

.diff-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
🔹 SCENARIO PILL PREMIUM
============================================ */
.scenario-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    border: 1px solid;
    transition: all 0.2s ease;
}

.scenario-icon {
    font-size: 1.1rem;
}

.scenario-pill.inversion {
    background: rgba(56, 189, 248, 0.1);
    color: var(--scenario-inversion);
    border-color: var(--scenario-inversion);
}

.scenario-pill.discrepancia {
    background: rgba(245, 158, 11, 0.1);
    color: var(--scenario-discrepancia);
    border-color: var(--scenario-discrepancia);
}

.scenario-pill.validacion {
    background: rgba(16, 185, 129, 0.1);
    color: var(--scenario-validacion);
    border-color: var(--scenario-validacion);
}

.scenario-pill.neutro {
    background: rgba(100, 116, 139, 0.1);
    color: var(--scenario-neutro);
    border-color: var(--scenario-neutro);
}

/* ============================================
🔹 RECOMENDACIÓN & ANÁLISIS
============================================ */
.recommendation-block {
    background: linear-gradient(135deg, var(--accent-dim), rgba(184, 212, 50, 0.05));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.recommendation-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.3;
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.recommendation-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.recommendation-content {
    position: relative;
    z-index: 1;
}

.recommendation-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.recommendation-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.analysis-header i {
    color: var(--accent);
}

.analysis-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.analysis-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: justify;
}

.analysis-text::first-letter {
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
🔹 DISCLAIMER
============================================ */
.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.disclaimer i {
    color: var(--data-negative);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.disclaimer span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
🔹 FOOTER ESPECÍFICO
============================================ */
.footer-pronosticos {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.version-badge {
    background: var(--accent-dim);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.4rem;
    border: 1px solid var(--accent);
}

/* ============================================
🔹 RESPONSIVE
============================================ */
@media (min-width: 769px) {
    .detail-modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: 24px;
        border: 1px solid var(--border);
        border-top-width: 3px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-pronosticos {
        padding: 1rem 0.75rem 1.5rem;
    }
    
    .date-pill {
        transform: scale(0.95);
    }
    
    .tournament-header {
        padding: 0.75rem;
    }
    
    .tournament-name {
        font-size: 0.95rem;
    }
    
    .match-card {
        grid-template-columns: 48px 1fr auto;
        padding: 0.75rem 0.85rem;
    }
    
    .player-name {
        font-size: 0.85rem;
        max-width: 140px;
    }
    
    .flag-sm {
        width: 24px;
        height: 24px;
    }
    
    .set-score {
        padding: 3px 6px;
        font-size: 0.7rem;
        min-width: 32px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .players-showcase {
        padding: 0.5rem 0;
    }
    
    .flag-lg {
        width: 56px;
        height: 56px;
    }
    
    .name-lg {
        font-size: 0.9rem;
    }
    
    .vs-badge {
        width: 56px;
        height: 56px;
        font-size: 0.8rem;
    }
    
    .recommendation-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .date-display {
        min-width: 120px;
        padding: 0 0.75rem;
        font-size: 0.85rem;
    }
    
    .date-nav {
        width: 40px;
        height: 40px;
    }
    
    .calendar-card {
        padding: 1rem;
        max-width: 320px;
    }
    
    .tournament-meta {
        flex-wrap: wrap;
    }
    
    .match-card {
        grid-template-columns: 44px 1fr auto;
        padding: 0.7rem 0.8rem;
    }
    
    .player-name {
        font-size: 0.8rem;
        max-width: 120px;
    }
    
    .match-sets {
        gap: 3px;
    }
    
    .set-score {
        padding: 2px 5px;
        font-size: 0.65rem;
        min-width: 28px;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .players-showcase {
        flex-direction: column;
        gap: 1rem;
    }
    
    .players-showcase::before {
        display: none;
    }
    
    .vs-badge {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .analysis-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* ============================================
🔹 ACCESIBILIDAD & PREFERENCIAS
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .match-card.correct,
    .match-card.incorrect {
        opacity: 1;
    }
    
    .scenario-pill {
        border-width: 2px;
    }
}

/* Focus visible para navegación por teclado */
.date-nav:focus-visible,
.date-display:focus-visible,
.cal-nav-btn:focus-visible,
.cal-today-btn:focus-visible,
.cal-close-btn:focus-visible,
.modal-close-btn:focus-visible,
.btn-ghost:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
🔹 UTILIDADES MONO PARA NÚMEROS
============================================ */
.mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: -0.02em;
}

/* ============================================
🔹 ANIMACIONES GLOBALES
============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Skeleton shimmer ya definido arriba */
/* 🔹 Días sin partidos - visualmente deshabilitados */
.cal-day:not(.has-match):not(.empty) {
    opacity: 0.4;
    cursor: not-allowed;
}

.cal-day.has-match {
    cursor: pointer;
    font-weight: 600;
}

.cal-day.has-match:hover {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
🔧 FIX: CENTRADO PERFECTO Y ORDEN CORRECTO
📦 Aplica al final de css/pronosticos.css
============================================ */

@media (max-width: 768px) {
    /* 1. Contenedor principal: Flex vertical centrado */
    .players-showcase {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centrado horizontal estricto */
        justify-content: center !important;
        gap: 0.25rem !important;
        padding: 0.5rem 0 !important;
    }

    /* 2. Orden explícito para asegurar A -> VS -> B */
    .player-col.player-a { order: 1; }
    .vs-badge { order: 2; margin: 0.25rem 0 !important; }
    .player-col.player-b { order: 3; }

    /* 3. Columnas de jugadores: Flex vertical centrado */
    .player-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Clave para centrar bandera + nombre */
        justify-content: center !important;
        padding: 0.25rem 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 4. Banderas: Centradas y tamaño controlado */
    .flag-lg {
        width: 48px !important;
        height: 48px !important;
        margin: 0 auto 0.35rem auto !important; /* Centrado automático */
        display: block !important;
    }

    /* 5. Nombres: Centrados y compactos */
    .name-lg {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 95% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* 6. Badge VS: Centrado y tamaño reducido */
    .vs-badge {
        width: 52px !important;
        height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0.25rem 0 !important;
    }
}

/* Ajuste extra para pantallas muy pequeñas */
@media (max-width: 375px) {
    .players-showcase { gap: 0.15rem !important; }
    
    .flag-lg {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0.25rem !important;
    }
    
    .name-lg {
        font-size: 0.85rem !important;
    }
    
    .vs-badge {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.8rem !important;
    }
}/* ============================================
🔧 FIX: RESPONSIVIDAD MODAL DE PARTIDO
📦 Orden correcto y tamaños reducidos en móvil
============================================ */

@media (max-width: 768px) {
    /* 1. Forzar orden correcto: Jugador A -> VS -> Jugador B */
    .players-showcase {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem; /* Espacio reducido entre elementos */
        padding: 0.5rem 0;
    }
    
    /* Definir orden explícito para evitar desorden */
    .player-a { order: 1; }
    .vs-badge { order: 2; margin: 0.25rem 0; }
    .player-b { order: 3; }

    /* 2. Reducir banderas */
    .flag-lg {
        width: 44px !important; /* Más pequeñas */
        height: 44px !important;
        margin-bottom: 0.25rem;
    }

    /* 3. Reducir nombres de jugadores */
    .name-lg {
        font-size: 0.85rem !important; /* Letra más pequeña */
        font-weight: 600;
        line-height: 1.2;
        max-width: 90%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 4. Ajustar el badge VS */
    .vs-badge {
        width: 48px;
        height: 48px;
        font-size: 0.8rem;
        border-radius: 10px; /* Un poco menos redondo para que sea más "bloque" */
    }

    /* 5. Reducir espacio en las columnas de jugadores */
    .player-col {
        padding: 0.5rem;
        text-align: center;
        width: 100%;
    }
}

/* Ajuste extra para móviles muy pequeños (ej. iPhone SE) */
@media (max-width: 375px) {
    .name-lg {
        font-size: 0.8rem !important;
    }
    
    .flag-lg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .vs-badge {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}
/* ============================================
🔹 ESTILOS POR TIPO DE PRONÓSTICO
📦 Colores temáticos (NO verde/rojo para evitar conflicto con aciertos/fallos)
============================================ */

/* 🔹 VALIDACIÓN DE MERCADO - Morado profesional (destacado) */
.match-card.prediction-validacion {
    border: 2px solid #8b5cf6 !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-primary) 100%) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(139, 92, 246, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.match-card.prediction-validacion::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #8b5cf6, #a78bfa);
    animation: pulse-validacion 3s ease-in-out infinite;
}

@keyframes pulse-validacion {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.match-card.prediction-validacion:hover {
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.25), 0 0 32px rgba(139, 92, 246, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* 🔹 INVERSIÓN DE MERCADO - Azul cielo (medio) */
.match-card.prediction-inversion {
    border: 2px solid #38bdf8 !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-primary) 100%) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.12) !important;
}

.match-card.prediction-inversion::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #38bdf8, #7dd3fc);
}

.match-card.prediction-inversion:hover {
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2) !important;
}

/* 🔹 DISCREPANCIA - Ámbar (alerta sutil) */
.match-card.prediction-discrepancia {
    border: 2px solid #f59e0b !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-primary) 100%) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.12) !important;
}

.match-card.prediction-discrepancia::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.match-card.prediction-discrepancia:hover {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2) !important;
}

/* 🔹 NEUTRO - Sin estilo especial (solo borde sutil del tema) */
.match-card.prediction-neutro {
    border-left: 3px solid var(--scenario-neutro) !important;
}

/* Badge visual en esquina para identificar tipo de pronóstico */
.match-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.match-card.prediction-validacion::after {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
    opacity: 1;
}

.match-card.prediction-inversion::after {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    opacity: 1;
}

.match-card.prediction-discrepancia::after {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    opacity: 1;
}

/* ============================================
🔧 FIX CALENDARIO: CENTRADO Y RESPONSIVE
============================================ */

/* Calendario base - Asegurar grid perfecto */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px; /* Espacio uniforme entre días */
    padding: 0.5rem;
}

.cal-day {
    aspect-ratio: 1; /* Siempre cuadrado */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    position: relative;
    user-select: none;
}

/* Día activo (seleccionado) */
.cal-day.active {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    border-color: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.05);
    z-index: 2;
}

/* Día de hoy */
.cal-day.today {
    border: 2px solid var(--accent);
    font-weight: 600;
    color: var(--text-primary);
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Día con partidos disponibles */
.cal-day.has-match {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

.cal-day.has-match::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Día sin partidos (deshabilitado visualmente) */
.cal-day:not(.has-match):not(.empty):not(.active):not(.today) {
    opacity: 0.5;
    cursor: not-allowed;
}

.cal-day:not(.has-match):not(.empty):not(.active):not(.today):hover {
    background: transparent !important;
    transform: none !important;
}

/* Días vacíos (fuera del mes) */
.cal-day.empty {
    pointer-events: none;
    opacity: 0.2;
}

/* Hover en días con partidos */
.cal-day.has-match:hover {
    background: var(--accent-dim);
    color: var(--text-primary);
    border-color: var(--accent);
    transform: scale(1.08);
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .calendar-card {
        max-width: 340px;
        padding: 1rem;
    }
    
    .calendar-grid {
        gap: 4px;
        padding: 0.25rem;
    }
    
    .cal-day {
        font-size: 0.85rem;
    }
    
    .cal-day.today::after,
    .cal-day.has-match::before {
        width: 5px;
        height: 5px;
        bottom: 5px;
        top: 5px;
    }
}

/* Responsive: Móvil pequeño */
@media (max-width: 480px) {
    .calendar-card {
        max-width: 300px;
        padding: 0.75rem;
    }
    
    .calendar-header {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cal-title {
        font-size: 0.9rem;
    }
    
    .cal-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .calendar-weekdays span {
        font-size: 0.65rem;
        padding: 0.4rem 0;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .cal-day {
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .calendar-actions {
        gap: 0.4rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .cal-today-btn,
    .cal-close-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Ajuste extra para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 375px) {
    .calendar-card {
        max-width: 280px;
        padding: 0.5rem;
    }
    
    .cal-day {
        font-size: 0.75rem;
    }
    
    .calendar-weekdays span {
        font-size: 0.6rem;
    }
}

/* Accesibilidad: Focus visible para navegación por teclado */
.cal-day:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .cal-day,
    .match-card {
        transition: none !important;
        transform: none !important;
    }
    
    @keyframes pulse-validacion {
        0%, 100% { opacity: 1; }
        50% { opacity: 1; }
    }
}
/* ============================================
🔧 REMOVER PUNTOS DEL CALENDARIO
📦 Solo mantener el color en días con partidos
============================================ */

/* Eliminar punto de "hoy" */
.cal-day.today::after {
    display: none !important;
}

/* Eliminar punto de "días con partidos" */
.cal-day.has-match::before {
    display: none !important;
}

/* Mantener estilo visual para días con partidos (solo color) */
.cal-day.has-match {
    color: var(--accent) !important;
    font-weight: 700 !important;
    background: rgba(184, 212, 50, 0.1) !important;
    border: 1px solid var(--accent) !important;
}

/* Hover en días con partidos */
.cal-day.has-match:hover {
    background: var(--accent-dim) !important;
    color: var(--text-primary) !important;
    transform: scale(1.05);
}

/* Día activo (seleccionado) - sin puntos */
.cal-day.active {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    font-weight: 800 !important;
    border-color: var(--accent-hover) !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
}

/* Día de hoy - sin punto, solo borde */
.cal-day.today {
    border: 2px solid var(--accent) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}