/* Style identique au précédent dashboard */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 80px;
}

.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--gradient-card);
    border-right: 1px solid var(--border-primary);
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.sidebar-nav {
    padding: 1.5rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-base);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-primary);
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
}

.dashboard-main {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
    max-width: 1600px;
}

.stats-grid {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-base);
    flex: 1;
    min-width: 150px;
}

.stat-card:hover {
    border-color: var(--border-accent);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: var(--gradient-primary);
}

.stat-icon.success {
    background: var(--gradient-secondary);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.fire {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.section-header-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-dashboard {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title-dashboard i {
    color: var(--primary);
    font-size: 1.2rem;
}

.filters-dashboard {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    outline: none;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary);
}

.matches-grid-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.match-card-dashboard {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: var(--transition-base);
    animation: fadeInScale 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.match-card-dashboard:hover {
    border-color: var(--border-glow);
    background: var(--bg-hover);
}

.match-header-dashboard {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
    flex-shrink: 0;
}

.league-badge-dashboard {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.league-badge-dashboard i {
    color: var(--primary);
    font-size: 0.7rem;
}

.status-badge-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge-dashboard.live {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.status-badge-dashboard.finished {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.status-badge-dashboard.upcoming {
    background: var(--gradient-secondary);
    color: white;
}

.match-datetime-dashboard {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.match-datetime-dashboard i {
    color: var(--primary);
    font-size: 0.7rem;
}

.match-teams-dashboard {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.team-dashboard {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.team-dashboard.away {
    flex-direction: row-reverse;
}

.team-logo-dashboard {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.team-logo-dashboard img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-placeholder-dashboard {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.team-name-dashboard {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.team-score-dashboard {
    font-size: 1.1rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: auto;
}

.team-dashboard.away .team-score-dashboard {
    margin-left: 0;
    margin-right: auto;
}

.vs-dashboard {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    background: var(--bg-elevated);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
}

.match-prediction-dashboard {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.prediction-header-dashboard {
    display: none;
}

.prediction-header-dashboard h4 {
    display: none;
}

.prediction-header-dashboard i {
    color: var(--primary);
}

.confidence-badge-dashboard {
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.65rem;
    white-space: nowrap;
}

.prediction-content-dashboard {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prediction-item-dashboard {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.prediction-item-dashboard strong {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.prediction-item-dashboard span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.match-actions-dashboard {
    display: flex;
    flex-shrink: 0;
}

.btn-details-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-details-dashboard:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

.locked-prediction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locked-prediction i {
    font-size: 0.9rem;
    color: var(--primary);
    opacity: 0.5;
}

.locked-prediction h4 {
    display: none;
}

.locked-prediction p {
    display: none;
}

.btn-premium-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    transition: var(--transition-base);
}

.btn-premium-dashboard:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), var(--shadow-glow-secondary);
}

.empty-state-dashboard {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
}

.empty-state-dashboard i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-dashboard h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-dashboard p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
    z-index: 1000;
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .match-card-dashboard {
        flex-direction: column;
        align-items: stretch;
    }

    .match-header-dashboard {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 2rem 1.5rem;
    }

    .stats-grid {
        flex-direction: column;
    }

    .section-header-dashboard {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   WELCOME BANNER
   ======================================== */
.welcome-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInScale 0.6s ease;
}

.welcome-banner .welcome-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

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

.welcome-banner .welcome-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.welcome-banner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.welcome-banner > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.welcome-steps {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.welcome-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.welcome-step strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.welcome-step p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   TRIAL COUNTDOWN BAR
   ======================================== */
.trial-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.trial-countdown.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.trial-countdown.urgent {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    animation: fadeIn 0.5s ease, pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(239, 68, 68, 0.15); }
}

.trial-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.trial-left i {
    color: var(--primary);
    font-size: 1rem;
}

.trial-countdown.warning .trial-left i { color: #f59e0b; }
.trial-countdown.urgent .trial-left i { color: #ef4444; }

.trial-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-base);
    white-space: nowrap;
}

.trial-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-primary);
}

/* ========================================
   LAST AI RESULTS SECTION
   ======================================== */
.last-results-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.last-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.last-results-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.last-results-header h3 i {
    color: var(--primary);
}

.see-all-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-base);
}

.see-all-link:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

.last-results-grid {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.last-result-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    flex: 1;
    min-width: 200px;
    transition: var(--transition-base);
}

.last-result-card.correct {
    border-color: rgba(34, 197, 94, 0.3);
}

.last-result-card.wrong {
    border-color: rgba(239, 68, 68, 0.2);
}

.last-result-card .result-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.last-result-card.correct .result-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.last-result-card.wrong .result-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-teams {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.result-score {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
}

.result-league {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .welcome-banner {
        padding: 1.5rem;
    }
    
    .welcome-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trial-countdown {
        flex-direction: column;
        text-align: center;
    }
    
    .last-results-section {
        margin-bottom: 1.5rem;
    }
    
    .last-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .last-results-header h3 {
        font-size: 1rem;
    }
    
    .last-results-grid {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .last-result-card {
        min-width: auto;
        width: 100%;
        padding: 1rem;
    }
    
    .result-teams {
        font-size: 0.9rem;
    }
    
    .result-meta {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .result-score {
        font-size: 0.8rem;
    }
    
    .result-league {
        font-size: 0.75rem;
        max-width: 100%;
    }
}
