/* =============================================================================
   EuroMillions Dream — Authentification, masquage Fortuna & espace personnel
   ============================================================================= */

/* --- Boules masquées (Fortuna) --- */
.fortuna-boule-masquee {
    background: radial-gradient(circle at 35% 35%, #f0c040, #d4af37);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #1a1206;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 -4px 10px rgba(0, 0, 0, 0.25);
    font-weight: 800;
    text-shadow: none;
}

.fortuna-grille-masquee {
    opacity: 0.96;
}

.fortuna-voir-completes-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(124, 58, 237, 0.18);
}

.fortuna-voir-completes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #f0c040);
    color: #1a1206;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.fortuna-voir-completes:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
    color: #1a1206;
}

.fortuna-raisonnement-locked {
    text-align: center;
    color: #c9b8ff;
    background: rgba(124, 58, 237, 0.1);
    border: 1px dashed rgba(124, 58, 237, 0.4);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.95rem;
}

/* --- Icône dorée « ? » pour les numéros masqués dans le texte --- */
.masque-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2em;
    height: 1.2em;
    padding: 0 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4af37, #f0c040);
    color: #1a1206;
    font-weight: 800;
    font-size: 0.85em;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.5);
    margin: 0 1px;
}

/* --- Modale de connexion --- */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.open {
    display: flex;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 18, 0.78);
    backdrop-filter: blur(4px);
}

.login-modal-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #16163a, #101024);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    color: #e8e8f0;
}

.login-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #9a9ab5;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.login-close:hover { color: #fff; }

.login-modal-card h2 {
    font-size: 1.35rem;
    margin: 0 0 6px;
    color: #fff;
}

.login-subtitle {
    color: #9a9ab5;
    font-size: 0.85rem;
    margin: 0 0 14px;
}

/* Badge offre de bienvenue dans la modale */
.login-welcome-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.18);
}

.login-welcome-offer .offer-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.login-welcome-offer .offer-text strong {
    color: #f0c040;
    font-weight: 800;
}

.login-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #2a2a55;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    color: #e8e8f0;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}

.login-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: #4a4a5a; }

.prov-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.prov-icon svg { width: 20px; height: 20px; }

.login-btn-google .prov-icon { background: #fff; }
.login-btn-facebook .prov-icon { background: #1877f2; }
.login-btn-messenger .prov-icon { background: linear-gradient(135deg, #00C6FF, #0078FF); }
.login-btn-microsoft .prov-icon { background: #fff; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #6b6b8c;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(124, 58, 237, 0.25);
}

.login-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9a9ab5;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.login-tab.active {
    background: rgba(124, 58, 237, 0.3);
    color: #fff;
}

.login-email-form { display: flex; flex-direction: column; gap: 10px; }

.login-field label {
    display: block;
    font-size: 0.75rem;
    color: #9a9ab5;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a55;
    background: #0d0d22;
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.login-field input:focus { border-color: #8b5cf6; }

.login-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
}

.login-submit {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.15s;
}

.login-submit:hover { filter: brightness(1.08); }

.login-step { display: flex; flex-direction: column; gap: 10px; }

.login-code-hint {
    margin: 0;
    color: #4ade80;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-all;
}

.login-code-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.login-link {
    background: transparent;
    border: none;
    color: #c4b5fd;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.login-link:hover { color: #fff; }

/* --- Espace personnel (page /compte) --- */
.compte-main {
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.compte-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.compte-hero h1 { font-size: 1.8rem; margin: 0; }
.compte-hero .compte-sub { color: #9a9ab5; font-size: 0.95rem; margin: 4px 0 0; }

.compte-logout {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fca5a5;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.compte-logout:hover { background: rgba(248, 113, 113, 0.1); }

.wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 28px;
}

.wallet-card h2 { font-size: 1.05rem; margin: 0 0 6px; }
.wallet-card .wallet-hint { color: #9a9ab5; font-size: 0.85rem; margin: 0; }

.credits-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #d4af37;
}

.compte-recharge {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #d4af37, #f0c040);
    color: #1a1206;
    font-weight: 700;
    cursor: pointer;
}

.compte-callout {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 4px solid #fbbf24;
    color: #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* --- Bannière de bienvenue nouveau compte --- */
.compte-welcome-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(212, 175, 55, 0.22));
    border: 2px solid rgba(212, 175, 55, 0.65);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.25), 0 0 24px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.compte-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.welcome-banner-icon {
    font-size: 2.6rem;
    flex-shrink: 0;
}

.welcome-banner-content {
    flex: 1;
}

.welcome-banner-badge {
    display: inline-block;
    background: #d4af37;
    color: #1a1206;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.welcome-banner-content h2 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 4px;
}

.welcome-banner-content p {
    color: #e2e2ee;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.45;
}

.welcome-banner-credits {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    color: #f0c040;
    font-weight: 700;
}

/* --- Forfaits (3 formules) --- */
.forfaits-section { margin-bottom: 34px; }

.section-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.section-subtitle {
    color: #9a9ab5;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* Sous-titre de la section forfaits : phrase + liste des avantages */
.forfaits-subtitle {
    margin-bottom: 20px;
}

.forfaits-subtitle .section-subtitle {
    color: #ffffff;
    margin-bottom: 8px;
}

.forfaits-subtitle .forfait-features {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: none;
    width: fit-content;
    text-align: left;
}

.forfaits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

/* En affichage PC, les 3 forfaits tiennent sur la même ligne */
@media (min-width: 992px) {
    .forfaits-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 860px;
        margin-left: 0;
        margin-right: auto;
    }

    .forfait-card {
        padding: 22px 18px 20px;
    }
}

.forfait-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #16163a;
    border: 1px solid #2a2a55;
    border-radius: 14px;
    padding: 24px 22px 22px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

.forfait-card:hover {
    transform: translateY(-3px);
}

.forfait-card.popular {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.forfait-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4af37;
    color: #1a1206;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.forfait-head h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #9a9ab5;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.forfait-nb {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.forfait-nb small {
    font-size: 0.95rem;
    color: #9a9ab5;
    font-weight: 500;
}

.forfait-prix {
    color: #d4af37;
    font-weight: 800;
    margin: 12px 0 2px;
    font-size: 1.6rem;
}

.forfait-prix-unitaire {
    color: #8b8b9a;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.forfait-prix-unitaire strong {
    color: #c4b5fd;
    font-weight: 600;
}

.forfait-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.forfait-features li {
    position: relative;
    padding: 5px 0 5px 24px;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.45;
}

.forfait-features li::before {
    content: '✓';
    position: absolute;
    left: 2px;
    top: 5px;
    color: #4ade80;
    font-weight: 700;
}

.forfait-btn {
    width: 100%;
    padding: 11px;
    margin-top: auto;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s;
}

.forfait-btn:hover { filter: brightness(1.08); }
.forfait-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Prédictions utilisateur --- */
.compte-predictions { margin-bottom: 34px; }

.prediction-card {
    background: linear-gradient(135deg, rgba(20, 10, 50, 0.8), rgba(15, 15, 45, 0.8));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

/* ===== En-tête de prédiction (vue réduite par défaut) ===== */
.prediction-entete {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.30), rgba(88, 52, 170, 0.35));
    border: 1px solid rgba(167, 139, 250, 0.55);
    border-radius: 10px;
    padding: 14px 16px;
}

.prediction-entete-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.prediction-date {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.prediction-statut {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 999px;
}

.prediction-statut.statut-pending {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.prediction-statut.statut-revealed {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.prediction-entete .prediction-demande {
    margin-bottom: 0;
    white-space: pre-line;
}

/* Contenu complet de la prédiction (grilles + raisonnement) */
.prediction-full {
    margin-top: 14px;
}

.prediction-full.collapsed {
    display: none;
}

/* Bouton déplier / replier une carte */
.prediction-card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease, filter 0.2s ease;
}

.prediction-card-toggle:hover {
    background: rgba(139, 92, 246, 0.18);
    filter: brightness(1.1);
}

.prediction-card-toggle-icone {
    font-size: 0.7rem;
}

/* Bouton global "Tout déplier / Tout replier" */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pred-toggle-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, filter 0.2s ease;
}

.pred-toggle-all:hover {
    background: rgba(139, 92, 246, 0.22);
    filter: brightness(1.1);
}

/* Séparateur entre les filtres */
.liste-filtres-sep {
    width: 1px;
    height: 24px;
    background: #2a2a55;
}

/* Champs de saisie de date */
.liste-date {
    background: #16163a;
    color: #fff;
    border: 1px solid #2a2a55;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color-scheme: dark;
}

.liste-date::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

.prediction-demande {
    color: #ffffff;
    font-style: italic;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.prediction-boules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.prediction-grille-ligne {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.prediction-grille-justification {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    border-left: 2px solid rgba(124, 58, 237, 0.35);
    padding-left: 10px;
    margin: 2px 0 4px;
}

.prediction-boule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 700;
    background: radial-gradient(circle at 35% 35%, #7dd3fc, #1e3a8a);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prediction-boule.star {
    background: radial-gradient(circle at 35% 35%, #a78bfa, #5b21b6);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.85rem;
}

.prediction-boule-masquee {
    background: radial-gradient(circle at 35% 35%, #f0c040, #d4af37);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #1a1206;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 -4px 10px rgba(0, 0, 0, 0.25);
    font-weight: 800;
    text-shadow: none;
}

.prediction-raisonnement {
    color: #ffffff;
    font-size: 0.85rem;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    padding-top: 12px;
    margin-top: 10px;
}

/* Replié par défaut : 6 lignes visibles */
.prediction-raisonnement.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

@supports not ((-webkit-line-clamp: 6)) {
    .prediction-raisonnement.collapsed {
        display: block;
        max-height: 10.5em;
        overflow: hidden;
    }
}

/* Bouton déplier / replier */
.prediction-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, filter 0.15s;
}

.prediction-toggle:hover {
    background: rgba(139, 92, 246, 0.18);
    filter: brightness(1.1);
}

.prediction-toggle-icone {
    font-size: 0.7rem;
}

/* Mise en forme du raisonnement (identique à la page Fortuna) */
.prediction-raisonnement .fortuna-section-title {
    font-size: 0.98rem;
    margin: 18px 0 8px 0;
    color: #ffffff;
}

.prediction-raisonnement .fortuna-section-title:first-child {
    margin-top: 4px;
}

.prediction-raisonnement .fortuna-paragraph {
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 8px 0;
    color: #ffffff;
}

.prediction-raisonnement p:last-child {
    margin-bottom: 0;
}

.prediction-masquee {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(124, 58, 237, 0.18);
}

.compte-empty {
    text-align: center;
    color: #9a9ab5;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #2a2a55;
    border-radius: 14px;
    padding: 40px 20px;
}

.compte-empty a {
    color: #d4af37;
    font-weight: 600;
    text-decoration: none;
}

/* --- Mise en page : menu latéral + volet de droite --- */
.compte-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.compte-sidebar {
    flex: 0 0 230px;
    position: sticky;
    top: 24px;
}

.compte-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a55;
    border-radius: 14px;
    padding: 10px;
}

.compte-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #b7b7cc;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.compte-menu-item:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #fff;
}

.compte-menu-item.active {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.compte-panel {
    flex: 1 1 auto;
    min-width: 0;
}

/* --- Mon compte : infos de connexion --- */
.compte-infos-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a55;
    border-radius: 14px;
    padding: 6px 20px;
    margin-bottom: 24px;
}

.compte-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compte-info-row:last-child { border-bottom: none; }

.compte-info-label {
    color: #9a9ab5;
    font-size: 0.9rem;
}

.compte-info-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
    text-align: right;
}

/* --- Mon compte : changement de mot de passe --- */
.compte-password-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a55;
    border-radius: 14px;
    padding: 20px 22px;
    max-width: 460px;
}

.compte-password-card h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.compte-password-btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s;
}

.compte-password-btn:hover { filter: brightness(1.08); }
.compte-password-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pwd-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.pwd-msg.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.pwd-msg.error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

/* --- Mes crédits : historique des transactions --- */
.compte-transactions { margin-bottom: 34px; }

.tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}

.tx-table th,
.tx-table td {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.tx-table th {
    color: #9a9ab5;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #2a2a55;
}

.tx-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-table .tx-date { color: #8b8b9a; font-size: 0.82rem; white-space: nowrap; }
.tx-table .tx-label { color: #e2e2ee; }

.tx-amount {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.tx-amount.positive { color: #4ade80; }
.tx-amount.negative { color: #f87171; }

/* --- Filtres des listes --- */
.liste-filtres {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 14px;
    flex-wrap: wrap;
}

.liste-filtres label {
    color: #9a9ab5;
    font-size: 0.9rem;
}

.liste-filter {
    background: #16163a;
    color: #fff;
    border: 1px solid #2a2a55;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- Pagination --- */
.liste-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.liste-page-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #2a2a55;
    background: #16163a;
    color: #ddd6fe;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s;
}

.liste-page-btn:hover:not(:disabled) { filter: brightness(1.15); }
.liste-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.liste-page-info {
    color: #9a9ab5;
    font-size: 0.9rem;
    font-weight: 600;
}

.liste-empty {
    color: #9a9ab5;
    font-size: 0.92rem;
    padding: 16px 0;
}

@media (max-width: 640px) {
    .forfaits-grid { grid-template-columns: 1fr; }
    .compte-hero { flex-direction: column; align-items: flex-start; }
    .compte-layout { flex-direction: column; }
    .compte-sidebar { flex: 1 1 auto; width: 100%; position: static; }
    .compte-menu { flex-direction: row; overflow-x: auto; }
    .compte-menu-item { white-space: nowrap; text-align: center; }
    .compte-info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .compte-info-value { text-align: left; }
}

/* --- Lien Connexion / Déconnexion dans la barre de navigation --- */
.nav-login-link {
    color: var(--gold-light) !important;
    font-weight: 700 !important;
}

.nav-logout-link {
    color: #fca5a5 !important;
    font-weight: 600 !important;
}

/* =============================================================================
   Fortuna Status Bar & Discreet Packs Modal CSS
   ============================================================================= */

.fortuna-user-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.status-credits-tag {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f0c040;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-welcome-tag {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
}

.btn-open-packs {
    background: linear-gradient(135deg, #d4af37, #f0c040);
    color: #1a1206;
    border: none;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-open-packs:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Lien discret bas de page Fortuna */
.fortuna-discreet-packs {
    text-align: center;
    margin: 40px auto 20px;
}

.fortuna-discreet-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 175, 55, 0.4);
    color: #f0c040;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fortuna-discreet-link:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

/* Modale Sélection de Packs */
.packs-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.packs-modal.open {
    display: flex;
}

.packs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 18, 0.82);
    backdrop-filter: blur(6px);
}

.packs-modal-card {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #16163a, #0d0d22);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
    color: #e8e8f0;
}

.packs-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #9a9ab5;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

.packs-close:hover { color: #fff; }

.packs-header {
    text-align: center;
    margin-bottom: 28px;
}

.packs-badge-gift {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.packs-header h2 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 8px;
}

.packs-subtitle {
    color: #9a9ab5;
    font-size: 0.92rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.pack-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pack-card.popular {
    border-color: #8b5cf6;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(22, 22, 58, 0.5));
}

.pack-card.best-value {
    border-color: #d4af37;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.12), rgba(22, 22, 58, 0.5));
}

.pack-tag-popular, .pack-tag-best {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pack-tag-popular {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.pack-tag-best {
    background: linear-gradient(135deg, #d4af37, #f0c040);
    color: #1a1206;
}

.pack-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9a9ab5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.pack-credits {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.pack-credits span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9a9ab5;
}

.pack-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 2px;
}

.pack-unit {
    font-size: 0.8rem;
    color: #8b8b9a;
    margin-bottom: 16px;
}

.pack-features {
    list-style: none;
    padding: 12px 0 0;
    margin: 0 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.85rem;
    color: #d1d1e0;
}

.pack-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-buy-btn {
    width: 100%;
    padding: 12px;
    margin-top: auto;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.pack-buy-btn:hover { background: rgba(255, 255, 255, 0.15); }

.pack-buy-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.pack-buy-btn.primary:hover {
    filter: brightness(1.1);
}

.pack-buy-btn.gold {
    background: linear-gradient(135deg, #d4af37, #f0c040);
    color: #1a1206;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.pack-buy-btn.gold:hover {
    filter: brightness(1.08);
}

.packs-footer-notes {
    text-align: center;
    font-size: 0.82rem;
    color: #8b8b9a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.packs-footer-notes a {
    color: #4fc3f7;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.packs-footer-notes a:hover {
    color: #81d4fa;
}

@media (max-width: 600px) {
    .packs-modal-card { padding: 24px 18px; }
    .packs-grid { grid-template-columns: 1fr; }
}

