* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #12172e;
    --bg-card: #1a1f3a;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #10b981 0%, #00d4ff 100%);
    --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 212, 255, 0.2);
}

body {
    font-family: 'Sora', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}
/* --- NOUVEAU HEADER ÉPURÉ ET PROFESSIONNEL --- */
.navbar {
    background: rgba(18, 23, 46, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* Le titre MON CRYPTO Bleu, Gras et Centré */
.nav-brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800; /* Ultra gras */
    font-size: 1.2rem; /* Taille moyenne élégante */
    color: #00d4ff; /* Ton bleu signature */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-icon:hover {
    border-color: var(--accent-primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.notifications-dropdown.active {
    display: block;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 50px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.verification-badge {
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    color: white !important;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.file-upload {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 600;
}

.file-upload-label:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.file-preview {
    margin-top: 1rem;
}

.file-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Sora', sans-serif;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    width: auto;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-switch a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}


/* ============================================================
   BANDEAU DÉROULANT ANIMÉ (RÉSULTAT IMAGE)
   ============================================================ */
.ticker-content {
    display: flex !important;
    width: max-content !important;
    white-space: nowrap !important;
    animation: tickerMove 40s linear infinite !important; /* Déclenche l'animation */
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Boucle parfaite */
}

.ticker-item {
    flex-shrink: 0 !important;
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Version Ordinateur (4 colonnes) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    /* AJOUTE CES DEUX LIGNES */
    max-width: 1100px; 
    margin: 0 auto 30px auto; 
}
#clientDashboard .stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

#adminDashboard .stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}




.stat-header {
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px !important;
}
.stat-value {
    font-family: 'JetBrains Mono', monospace; /* Look crypto-financier */
    font-size: 1.8rem !important;
    font-weight: 700;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.period-btn:hover {
    border-color: var(--accent-primary);
}

.period-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.pack-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pack-return {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
}



.positions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.positions-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
}

.positions-table td {
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.positions-table td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 12px 0 0 12px;
}

.positions-table td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 12px 12px 0;
}

.positions-table tbody tr:hover td {
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.closed {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Sora', sans-serif;
    white-space: nowrap;
}

.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.payment-methods {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method:hover {
    border-color: var(--accent-primary);
}

.payment-method.selected {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.payment-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.payment-info h4 {
    font-weight: 700;
    font-size: 1.1rem;
}

.payment-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-box {
    padding: 1.25rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    margin: 1rem 0;
}

.info-box h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.info-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-box code {
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.proof-display {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.proof-display img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}

.demo-banner {
    background: linear-gradient(90deg, #00c9ff, #7f5af0);
    color: white;
    padding: 8px 15px; /* Réduit de moitié pour gagner de l'espace */
    text-align: center;
    font-size: 0.75rem; /* Texte légèrement plus petit pour mobile */
    font-weight: 700;
    letter-spacing: 0.5px;
    position: sticky; /* Reste en haut mais laisse la modale passer devant */
    top: 0;
    z-index: 99; /* Moins élevé que la modale (qui est à 1000+) */
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}


.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--text-muted);
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-bold {
    font-weight: 700;
}


/* ============================================================
   DESIGN DES PACKS D'INVESTISSEMENT (VERSION CENTRÉE)
   ============================================================ */

.pack-amount {
    width: 100% !important;
    margin-top: auto !important;       /* POUSSE L'INPUT VERS LE BAS SI BESOIN */
    margin-bottom: 20px !important;    /* ESPACE AVANT LE BOUTON */
}

.pack-amount label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}
/* ============================================================
   CORRECTION FINALE : BANDEAU HORIZONTAL DÉROULANT
   ============================================================ */
.market-ticker {
    width: 100% !important;
    background: rgba(18, 23, 46, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px 0 !important;
    margin-bottom: 30px !important;
    overflow: hidden !important; /* SUPPRIME LA BARRE GRISE DE DÉFILEMENT */
    position: relative !important;
}


.ticker-item {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 30px !important; /* ESPACE ENTRE LES CRYPTOS */
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* BOUCLE INFINIE FLUIDE */
}

.payment-option {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* CENTRE L'ICÔNE ET LE TEXTE */
    justify-content: center !important;
    padding: 30px !important;
    transition: all 0.3s ease;
}
.payment-icon-large {
    font-size: 3rem;
    margin-bottom: 10px;
}

.payment-option:hover {
    border-color: var(--accent-primary) !important;
    background: rgba(0, 212, 255, 0.05) !important;
}

.payment-option.selected {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
/* FORCE LE CENTRAGE DES DEUX MOYENS DE PAIEMENT */
#depositTab .flex.gap-2 {
    display: flex !important;
    justify-content: center !important; /* Centre les enfants horizontalement */
    align-items: center !important;     /* Aligne les enfants verticalement */
    width: 100% !important;             /* Oblige le conteneur à occuper toute la largeur */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* On s'assure que les cartes de paiement elles-mêmes sont bien dimensionnées */
.payment-option {
    flex: 0 1 200px !important; /* Empêche les boutons de prendre trop de place */
    min-width: 150px !important;
}
/* CENTRAGE DES MOYENS DE RETRAIT */
#withdrawTab .flex.gap-2 {
    display: flex !important;
    justify-content: center !important; /* Centre les deux boutons horizontalement */
    align-items: center !important;     /* Aligne les icônes sur le même axe */
    width: 100% !important;
    margin: 20px 0 !important;          /* Ajoute un peu d'espace avec le titre */
}

/* On s'assure que les cartes de retrait ont la même taille que celles du dépôt */
#withdrawTab .payment-option {
    flex: 0 1 200px !important; 
    min-width: 150px !important;
    cursor: pointer;
}


.ai-line { margin-bottom: 5px; opacity: 0; animation: fadeInAI 0.5s forwards; }
@keyframes fadeInAI { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
#withdrawFeed {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centre horizontalement */
    justify-content: center !important; /* Centre verticalement */
    min-height: 120px !important;
}
.chart-container {
    width: 100%;
    height: 200px !important; /* Le !important force la priorité sur tout le reste */
    max-height: 150px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0a0a0a; /* Fond noir pour éviter un flash blanc au chargement */
}
/* --- OPTIMISATION MOBILE (Écrans de moins de 480px) --- */
@media (max-width: 480px) {
    .logo { font-size: 1.1rem !important; }
    .nav-content { padding: 0 10px !important; }
    .user-badge { padding: 5px 8px !important; gap: 5px !important; max-width: 140px; }
    #clientName { font-size: 0.8rem !important; }
    .btn-sm { padding: 6px 10px !important; font-size: 0.7rem !important; }

    /* --- FORCE LE FORMAT 2x2 DES STATS --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 5px !important;
    }

    .stat-card {
        padding: 12px !important;
    }

    .stat-value {
        font-size: 1.2rem !important;
    }

    /* --- CORRECTION PROFIL MOBILE --- */
    .profile-content-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .profile-container-fixed {
        padding: 20px !important;
        margin: 10px !important;
    }
}

.nav-center-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centre parfaitement au milieu */
}

.logout-icon-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
/* --- DESIGN DASHBOARD ÉLITE (CENTRAGE ET TYPO) --- */

.dashboard-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--text-primary);
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

/* --- DESIGN DASHBOARD ÉLITE (CENTRAGE GLOBAL) --- */
.dashboard-header {
    /* MODIFIE LE BLOCK EN FLEX */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 20px;
}

/* Centrage spécifique pour Performance Marché et IA Monitor */
.card .card-title {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
}
/* --- MENU COMPTE FLOTTANT --- */
.account-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1a1f3a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 8px;
}

.dropdown-item {
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
}

.dropdown-item:hover { background: rgba(255,255,255,0.05); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 5px 0; }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes sur PC */
    gap: 40px;
    margin-top: 20px;
}

/* --- SECTION IA MARKET MOOD (VERSION FINALE CENTRÉE) --- */
.sentiment-gauge-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px auto;
    position: relative;
    text-align: center; /* Centre le titre et la valeur */
}

.sentiment-gauge {
    position: relative;
    width: 200px;
    height: 100px; /* Demi-cercle */
    margin: 0 auto;
    overflow: hidden;
}

.gauge-arc-segment {
    position: absolute;
    top: 0; left: 0; 
    width: 200px; height: 200px; 
    border-radius: 50%;
    border: 15px solid transparent;
    box-sizing: border-box;
}

/* Application des couleurs par segment */
.gauge-arc-segment.red { border-color: transparent transparent #ff4141 #ff4141; transform: rotate(135deg); }
.gauge-arc-segment.orange { border-color: transparent transparent #ffa500 #ffa500; transform: rotate(171deg); }
.gauge-arc-segment.yellow { border-color: transparent transparent #ffff00 #ffff00; transform: rotate(207deg); }
.gauge-arc-segment.green { border-color: transparent transparent #00ff41 #00ff41; transform: rotate(243deg); }
.gauge-arc-segment.blue { border-color: transparent transparent #00e5ff #00e5ff; transform: rotate(279deg); }

.gauge-pointer {
    position: absolute;
    bottom: 0; left: 50%;
    width: 4px; height: 80px;
    background: #fff;
    border-radius: 2px;
    transform-origin: bottom center !important; /* Fixe le pivot en bas */
    transform: translateX(-50%) rotate(0deg);
    transition: transform 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.gauge-display-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    width: 240px;
    margin: 10px auto 0 auto;
    font-size: 0.7rem;
    color: #888;
}

/* --- ALIGNEMENT ET DESIGN RADAR --- */
.radar-section {
    text-align: center !important; /* Centre le titre 🚀 */
    margin-top: 25px;
}

#altcoinRadar {
    max-width: 400px;
    margin: 0 auto; /* Centre le bloc de barres */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.mood-header {
    display: flex;
    justify-content: center; /* Centre horizontalement le titre */
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}
/* --- BOÎTIER DE LA CONSOLE IA --- */
/* --- FIX CONSOLE IA MONITOR --- */
.ai-console {
    background: #000000 !important;
    border: 1px solid rgba(0, 255, 65, 0.2) !important;
    padding: 15px !important;
    border-radius: 12px !important;
    height: 160px !important; /* Force la hauteur pour éviter le rectangle plat */
    min-height: 160px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin-top: 15px !important;
}
.packs-grid {
  margin-top: 20px;
}

.pack-card {
  background: #111;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.pack-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.pack-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.pack-card.starter .pack-badge { background: #7f5af0; }
.pack-card.pro .pack-badge { background: #00c9a7; }
.pack-card.elite .pack-badge { background: #ff6b6b; }

.pack-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.pack-percentage {
  font-size: 2rem;
  font-weight: bold;
  margin: 5px 0;
  color: #00c9a7;
}

.pack-card.starter .pack-percentage { color: #7f5af0; }
.pack-card.pro .pack-percentage { color: #00c9a7; }
.pack-card.elite .pack-percentage { color: #ff6b6b; }

.pack-duration {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 15px;
}

.pack-features {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.pack-features li {
  margin: 5px 0;
  position: relative;
  padding-left: 20px;
}

.pack-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #00c9a7;
}

.pack-card.starter .pack-features li::before { color: #7f5af0; }
.pack-card.pro .pack-features li::before { color: #00c9a7; }
.pack-card.elite .pack-features li::before { color: #ff6b6b; }

.pack-input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: none;
  background: #222;
  color: #fff;
  text-align: center;
}

.pack-btn {
  background: linear-gradient(90deg, #00c9ff, #7f5af0);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.pack-card.starter .pack-btn { background: linear-gradient(90deg, #7f5af0, #5a3ff0); }
.pack-card.pro .pack-btn { background: linear-gradient(90deg, #00c9a7, #00ffb3); }
.pack-card.elite .pack-btn { background: linear-gradient(90deg, #ff6b6b, #ff3f3f); }

.pack-btn:hover {
  transform: scale(1.05);
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex !important;
}

.modal-overlay.hidden {
    display: none !important;
}

.admin-card {
    background: #111827 !important;
    border: 1px solid #374151 !important;
    padding: 25px !important;
    border-radius: 20px !important;
}
/* Correction de l'écran noir : priorité absolue au masquage  */
.hidden { display: none !important; }

/* Force l'affichage quand on retire .hidden */
#adminDashboard:not(.hidden) {
    display: block !important;
    z-index: 9999 !important;
    background: #050a14 !important;
}
/* Style pour le Panel Admin */
#adminDashboard {
    color: white;
}


#adminDashboard .card {
    background: #12172e;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#adminDashboard table th {
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
}
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.form-input[readonly] {
    background: rgba(255, 255, 255, 0.01);
    color: #888;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}
.section-title {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-card-container {
    background: rgba(10, 15, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 1000px; /* On limite la largeur pour éviter que ce soit trop grand */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.profile-card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.profile-inner-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.column-title {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.profile-section {
    display: flex;
    flex-direction: column;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    /* AJOUTE CES LIGNES POUR LE CENTRAGE */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}
.quick-actions {
    display: flex;
    justify-content: center; 
    gap: 15px;
    margin-top: 15px;
}

.quick-actions .btn {
    width: auto !important;
    min-width: 140px;
}
.profile-container-fixed {
    max-width: 1000px;
    margin: 40px auto; /* Centre le bloc horizontalement */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-top: 30px;
    align-items: start;
}

/* Adaptation mobile : on repasse sur une seule colonne */
@media (max-width: 768px) {
    /* Assure la transition propre pour tablettes */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .profile-content-grid {
        grid-template-columns: 1fr !important;
    }
    
    .profile-grid-layout {
        grid-template-columns: 1fr !important;
    }
}
.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-family: 'Sora', sans-serif;
}

.profile-input[readonly] {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-muted);
    cursor: not-allowed;
}
.btn-action {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-action.primary { background: var(--gradient-1); color: white; }
.btn-action.secondary { background: var(--bg-secondary); border: 1px solid var(--border); color: white; }