/* ════════════════════════════════
   MUTUAFUND — Design original conservé
   ════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --purple-color: #8b5cf6;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

/* ─── NAVBAR ─── */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 { font-size: 1.5rem; color: var(--primary-color); }
.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-menu a { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s; cursor: pointer; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }

/* ─── PAGES ─── */
.page { display: none; min-height: calc(100vh - 200px); }
.page.active { display: block; }
.hidden { display: none !important; }
.page-subtitle { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.95rem; }
.page-subtitle strong { color: var(--primary-color); }

/* ─── HERO ─── */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.hero h2 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
}
.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
.stat-card h3 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.stat-card p { font-size: 1rem; opacity: 0.9; }

/* Variantes colorées stat-card (admin) */
.admin-kpi-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card-green { background: rgba(16,185,129,0.2) !important; }
.stat-card-orange { background: rgba(245,158,11,0.2) !important; }
.stat-card-purple { background: rgba(139,92,246,0.2) !important; }
.stat-card-blue { background: rgba(37,99,235,0.2) !important; }
.stat-card-red { background: rgba(239,68,68,0.2) !important; }

/* ─── FEATURES ─── */
.features { max-width: 1200px; margin: 4rem auto; padding: 2rem; }
.features h3 { text-align: center; font-size: 2rem; margin-bottom: 3rem; color: var(--dark); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--dark); }
.feature-card p { color: var(--text-light); }

/* ─── BUTTONS ─── */
.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.btn-secondary { background: var(--light); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: white; }
.btn-block { width: 100%; }
.btn-sm-inline {
    margin-left: 1rem;
    padding: 0.35rem 0.9rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
}
.btn-sm-inline:hover { background: #1d4ed8; }
.btn-action {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid;
    background: transparent;
    transition: 0.2s;
}
.btn-action-pay { color: var(--success-color); border-color: var(--success-color); }
.btn-action-pay:hover { background: var(--success-color); color: white; }
.btn-action-delete { color: var(--danger-color); border-color: var(--danger-color); }
.btn-action-delete:hover { background: var(--danger-color); color: white; }
.btn-action-approve { color: var(--success-color); border-color: var(--success-color); }
.btn-action-approve:hover { background: var(--success-color); color: white; }
.btn-action-reject { color: var(--danger-color); border-color: var(--danger-color); }
.btn-action-reject:hover { background: var(--danger-color); color: white; }

.approval-section { padding: 1rem; background: #f9fafb; border-radius: 8px; }

/* ─── AUTH ─── */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 200px); padding: 2rem; }
.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}
.auth-box h2 { margin-bottom: 2rem; color: var(--dark); text-align: center; }
.auth-switch { text-align: center; margin-top: 1.5rem; color: var(--text-light); }
.auth-switch a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark); }
.form-group label small { font-weight: 400; color: var(--text-light); font-size: 0.8rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group small { display: block; margin-top: 0.25rem; color: var(--text-light); font-size: 0.875rem; }

/* Hints montant minimum */
.amount-hints { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.hint-min { font-size: 0.8rem; color: var(--danger-color); font-weight: 600; }
.hint-rec { font-size: 0.8rem; color: var(--text-light); }

/* ─── DASHBOARD ─── */
.dashboard-container, .loans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.dashboard-container h2, .loans-container h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--dark); }
.user-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-info h3 { color: var(--dark); font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.loans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

/* ─── CARDS ─── */
.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.card-full { grid-column: 1 / -1; }
.card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.card-see-all {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}
.card-see-all:hover { text-decoration: underline; }

/* ─── BALANCE avec liens ─── */
.balance-info { display: flex; flex-direction: column; gap: 0.75rem; }
.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 5px;
}
.balance-item strong { color: var(--primary-color); font-size: 1.1rem; }
.balance-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: flex !important;
    gap: 0.5rem;
}
.balance-link:hover {
    border-color: var(--primary-color);
    background: #eff6ff !important;
    transform: translateX(3px);
}
.link-arrow { margin-left: auto; font-size: 0.8rem; color: var(--primary-color); font-weight: 600; opacity: 0; transition: 0.2s; }
.balance-link:hover .link-arrow { opacity: 1; }

/* ─── FUND STATS avec liens ─── */
.fund-stats { display: flex; flex-direction: column; gap: 0.5rem; }
.fund-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.75rem;
    background: var(--light);
    border-radius: 5px;
    font-size: 0.9rem;
}
.fund-item strong { color: var(--primary-color); }
.fund-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: flex !important;
}
.fund-link:hover { border-color: var(--primary-color); background: #eff6ff !important; }
.fund-highlight { background: #d1fae5 !important; }
.fund-highlight strong { color: var(--success-color) !important; }
.fund-highlight:hover { border-color: var(--success-color) !important; background: #a7f3d0 !important; }

/* ─── STATS ROW ─── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stats-row-3 { grid-template-columns: repeat(3, 1fr); }
.stats-row-4 { grid-template-columns: repeat(4, 1fr); }
.stat-inline {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid var(--border);
}
.stat-inline span { font-size: 0.82rem; color: var(--text-light); }
.stat-inline strong { font-size: 1.2rem; color: var(--dark); }
.stat-green { border-left-color: var(--success-color) !important; }
.stat-green strong { color: var(--success-color) !important; }
.stat-orange { border-left-color: var(--warning-color) !important; }
.stat-orange strong { color: var(--warning-color) !important; }
.stat-blue { border-left-color: var(--primary-color) !important; }
.stat-blue strong { color: var(--primary-color) !important; }
.stat-red { border-left-color: var(--danger-color) !important; }
.stat-red strong { color: var(--danger-color) !important; }
.stat-purple { border-left-color: var(--purple-color) !important; }
.stat-purple strong { color: var(--purple-color) !important; }
.stat-highlight { border-left-color: var(--success-color) !important; background: #d1fae5 !important; }
.stat-highlight strong { color: var(--success-color) !important; font-size: 1.4rem; }

/* ─── LOAN SUMMARY ─── */
.loan-summary {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.loan-summary h4 { margin-bottom: 1rem; color: var(--dark); }
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-item strong { color: var(--primary-color); }

.contribution-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}
.contribution-info p { color: var(--text); font-size: 0.875rem; }

/* ─── TABLES ─── */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--light); }
th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: var(--dark); border-bottom: 2px solid var(--border); white-space: nowrap; }
td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:hover td { background: #f0f7ff; }
.empty-state { text-align: center; color: var(--text-light); padding: 2.5rem !important; font-style: italic; }

/* ─── PROGRESS BAR ─── */
.progress-bar { width: 100%; height: 8px; background: var(--light); border-radius: 10px; overflow: hidden; min-width: 80px; }
.progress-fill { height: 100%; background: var(--success-color); transition: width 0.5s ease; border-radius: 10px; }

/* ─── BADGES ─── */
.status-badge { padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.status-active { background: #d1fae5; color: #065f46; }
.status-completed { background: #dbeafe; color: #1e40af; }
.status-pending { background: #fef3c7; color: #92400e; }
.role-badge { padding: 0.2rem 0.75rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: #eff6ff; color: var(--primary-color); border: 1px solid #bfdbfe; }
.admin-badge { background: #fef3c7 !important; color: #92400e !important; border-color: #fcd34d !important; }

/* ─── FUND BARS ─── */
.fund-bars { display: flex; flex-direction: column; gap: 1.2rem; }
.fbar-row { display: flex; flex-direction: column; gap: 6px; }
.fbar-head { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text); font-weight: 500; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem; color: var(--text-light); }
.filter-bar select { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 5px; font-size: 0.875rem; }

/* ─── ACTIVITY LOG ─── */
.activity-log { display: flex; flex-direction: column; gap: 0.75rem; max-height: 280px; overflow-y: auto; }
.act-item { display: flex; gap: 10px; padding: 0.75rem; background: var(--light); border-radius: 5px; align-items: flex-start; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.act-text { font-size: 0.875rem; color: var(--text); }
.act-time { font-size: 0.78rem; color: var(--text-light); display: block; margin-top: 2px; }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.25rem; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-light); }
.modal-close:hover { color: var(--danger-color); }

/* ─── NOTIFICATIONS ─── */
#notification-container { position: fixed; top: 80px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.notification {
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    animation: slideIn 0.3s ease;
    max-width: 320px;
}
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notification.success { background: var(--success-color); }
.notification.error { background: var(--danger-color); }
.notification.info { background: var(--primary-color); }

/* ─── FOOTER ─── */
footer { background: var(--dark); color: white; padding: 2rem; margin-top: 4rem; }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-container p { margin: 0.5rem 0; opacity: 0.8; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .stats-row-3, .stats-row-4 { grid-template-columns: repeat(2, 1fr); }
    .admin-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu { gap: 1rem; font-size: 0.9rem; }
    .hero h2 { font-size: 2rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .dashboard-grid, .loans-grid { grid-template-columns: 1fr; }
    .user-info { flex-direction: column; gap: 1rem; text-align: center; }
    .stats-row, .stats-row-3, .stats-row-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .nav-container { padding: 1rem; }
    .logo h1 { font-size: 1.1rem; }
    .nav-menu { gap: 0.5rem; font-size: 0.78rem; }
    .hero { padding: 2rem 1rem; }
    .auth-box { padding: 2rem 1.5rem; }
    .stats-row, .stats-row-3, .stats-row-4 { grid-template-columns: 1fr; }
    .admin-kpi-row { grid-template-columns: 1fr; }
}

/* ═══ NOUVELLES FONCTIONNALITÉS ═══ */

/* Photos de profil */
.user-profile-section { display: flex; align-items: center; gap: 1rem; }
.user-avatar-large { width: 64px; height: 64px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; flex-shrink: 0; }
.user-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-sm-profile { padding: 0.4rem 0.8rem !important; font-size: 0.8rem !important; }
.avatar-large { width: 48px; height: 48px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }

/* Statut KYC */
.kyc-status-badge { margin-top: 0.3rem; }
.kyc-badge { padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.kyc-pending { background: #fef3c7; color: #92400e; }
.kyc-approved { background: #d1fae5; color: #065f46; }
.kyc-rejected { background: #fee2e2; color: #991b1b; }

/* Modale photo de profil */
.profile-photo-selector { text-align: center; }
.current-avatar { margin-bottom: 1.5rem; }
.avatar-preview { width: 80px; height: 80px; background: var(--primary-color); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 0.5rem; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.avatar-option { width: 50px; height: 50px; background: var(--light); border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; transition: 0.2s; }
.avatar-option:hover { border-color: var(--primary-color); transform: scale(1.1); }
.avatar-option.selected { border-color: var(--primary-color); background: #eff6ff; }

/* Chat Admin */
.chat-admin-container { display: grid; grid-template-columns: 250px 1fr; gap: 1rem; min-height: 500px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.chat-users-list { background: var(--light); border-right: 1px solid var(--border); padding: 1rem; }
.chat-users-list h4 { font-size: 0.9rem; color: var(--dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.chat-user-item { padding: 0.75rem; background: white; border-radius: 6px; margin-bottom: 0.5rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.chat-user-item:hover { background: #eff6ff; }
.chat-user-item.active { background: var(--primary-color); color: white; }
.chat-user-avatar { width: 32px; height: 32px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.chat-user-item.active .chat-user-avatar { background: white; color: var(--primary-color); }
.chat-user-info { flex: 1; overflow: hidden; }
.chat-user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread-badge { background: var(--danger-color); color: white; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; font-weight: 700; }

.chat-messages-area { display: flex; flex-direction: column; }
.chat-header { padding: 1rem; border-bottom: 1px solid var(--border); background: white; font-weight: 600; }
.chat-header-user { padding: 1rem; border-bottom: 1px solid var(--border); background: white; display: flex; align-items: center; gap: 1rem; }
.online-status { color: var(--success-color); font-size: 0.8rem; display: block; }
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; max-height: 400px; background: #f9fafb; }
.chat-messages-user { flex: 1; padding: 1rem; overflow-y: auto; max-height: 500px; background: #f9fafb; }
.chat-message { margin-bottom: 1rem; display: flex; flex-direction: column; }
.chat-message.sent { align-items: flex-end; }
.chat-message.received { align-items: flex-start; }
.chat-bubble { max-width: 70%; padding: 0.75rem; border-radius: 10px; word-wrap: break-word; }
.chat-message.sent .chat-bubble { background: var(--primary-color); color: white; border-bottom-right-radius: 2px; }
.chat-message.received .chat-bubble { background: white; border: 1px solid var(--border); border-bottom-left-radius: 2px; }
.chat-time { font-size: 0.7rem; color: var(--text-light); margin-top: 0.25rem; }

.chat-input-form { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--border); background: white; }
.chat-input-form input { flex: 1; padding: 0.75rem; border: 1px solid var(--border); border-radius: 5px; }
.chat-input-form button { padding: 0.75rem 1.5rem; }

/* Chat utilisateur */
.user-chat-container { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

/* Explanation pour intérêt */
.interest-explanation { display: block; margin-top: 0.5rem; padding: 0.75rem; background: #eff6ff; border-radius: 5px; line-height: 1.6; border-left: 3px solid var(--primary-color); }

/* Avatar dans les tableaux */
.table-avatar { width: 36px; height: 36px; background: var(--primary-color); color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; vertical-align: middle; }

/* Responsive chat */
@media (max-width: 768px) {
    .chat-admin-container { grid-template-columns: 1fr; }
    .chat-users-list { border-right: none; border-bottom: 1px solid var(--border); }
    .avatar-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ UPLOAD KYC ═══ */

/* Alerte KYC */
.kyc-alert-card { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
    border: 2px solid #f59e0b; 
    border-radius: 10px; 
    padding: 1.5rem; 
    margin-bottom: 2rem;
}
.kyc-alert-content { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.kyc-alert-icon { font-size: 3rem; flex-shrink: 0; }
.kyc-alert-text { flex: 1; min-width: 250px; }
.kyc-alert-text h4 { margin-bottom: 0.5rem; color: var(--dark); font-size: 1.1rem; }
.kyc-alert-text p { color: #78350f; margin: 0; }

/* Modale large */
.modal-box-large { width: 700px; max-width: 95vw; max-height: 90vh; overflow-y: auto; }

/* Instructions KYC */
.kyc-upload-instructions { 
    background: #eff6ff; 
    padding: 1rem; 
    border-radius: 8px; 
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}
.kyc-upload-instructions ul { margin: 0.75rem 0; padding-left: 1.5rem; }
.kyc-upload-instructions li { margin: 0.5rem 0; color: var(--text); }

/* Upload area */
.file-upload-area { position: relative; }
.upload-placeholder { 
    border: 2px dashed var(--border); 
    border-radius: 8px; 
    padding: 2rem; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.3s;
    background: var(--light);
}
.upload-placeholder:hover { 
    border-color: var(--primary-color); 
    background: #eff6ff;
}
.upload-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.upload-placeholder p { margin: 0.5rem 0; font-weight: 600; color: var(--dark); }
.upload-placeholder small { color: var(--text-light); font-size: 0.85rem; }

/* Preview */
.upload-preview { position: relative; }
.preview-img { 
    width: 100%; 
    height: auto; 
    max-height: 300px; 
    object-fit: contain; 
    border-radius: 8px; 
    border: 1px solid var(--border);
    background: #f9fafb;
}
.btn-remove { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: var(--danger-color); 
    color: white; 
    border: none; 
    padding: 0.4rem 0.8rem; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.btn-remove:hover { background: #dc2626; }

/* Consent */
.kyc-consent { 
    background: #f9fafb; 
    padding: 1rem; 
    border-radius: 8px; 
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}
.checkbox-label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { 
    margin-top: 0.2rem; 
    width: 18px; 
    height: 18px; 
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-label span { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

/* Visualisation documents (Admin) */
.kyc-documents-viewer { display: flex; flex-direction: column; gap: 1.5rem; }
.kyc-doc-section h4 { 
    margin-bottom: 0.75rem; 
    color: var(--dark); 
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}
.kyc-doc-container { 
    background: #f9fafb; 
    padding: 1rem; 
    border-radius: 8px; 
    border: 1px solid var(--border);
    text-align: center;
}
.kyc-doc-img { 
    width: 100%; 
    max-height: 400px; 
    object-fit: contain; 
    border-radius: 5px;
    cursor: zoom-in;
}
.kyc-doc-img:hover { opacity: 0.9; }
.kyc-doc-actions { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}
.kyc-doc-actions button { min-width: 150px; }

/* Badge documents soumis */
.docs-badge { 
    display: inline-block; 
    padding: 0.3rem 0.7rem; 
    border-radius: 5px; 
    font-size: 0.8rem; 
    font-weight: 600;
    white-space: nowrap;
}
.docs-submitted { background: #dbeafe; color: #1e40af; }
.docs-missing { background: #fee2e2; color: #991b1b; }

/* Bouton voir documents */
.btn-view-docs { 
    padding: 0.3rem 0.7rem; 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    cursor: pointer;
    font-weight: 600;
}
.btn-view-docs:hover { background: #1d4ed8; }

@media (max-width: 768px) {
    .kyc-alert-content { flex-direction: column; text-align: center; }
    .kyc-doc-actions { flex-direction: column; }
    .kyc-doc-actions button { width: 100%; }
}

/* ═══ WALLET ═══ */

/* Carte solde wallet */
.wallet-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.wallet-balance-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.wallet-balance-header h3 { margin: 0 0 0.5rem 0; font-size: 1rem; opacity: 0.9; font-weight: 500; }
.wallet-amount { font-size: 2.5rem; font-weight: 700; }
.wallet-icon { font-size: 4rem; opacity: 0.3; }
.wallet-actions-quick { display: flex; gap: 1rem; }
.btn-wallet-action {
    flex: 1;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: 0.3s;
}
.btn-wallet-action:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.wallet-action-icon { font-size: 1.2rem; }

/* Filtres wallet */
.wallet-filter { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: 0.2s;
}
.filter-btn:hover { background: #eff6ff; border-color: var(--primary-color); }
.filter-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Avatar avec vraie photo */
.avatar-preview-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
}
.avatar-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-preview-large span {
    position: absolute;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-section { margin-bottom: 1.5rem; }
.upload-section h4 { color: var(--dark); font-size: 1rem; }

/* Avatar display avec vraie photo */
.user-avatar-large img,
.table-avatar img,
.chat-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.user-avatar-large { position: relative; overflow: hidden; }
.table-avatar { position: relative; overflow: hidden; }
.chat-user-avatar { position: relative; overflow: hidden; }

@media (max-width: 768px) {
    .wallet-actions-quick { flex-direction: column; }
    .wallet-amount { font-size: 2rem; }
}

/* ═══ BARRES DE DÉFILEMENT POUR MODALES ═══ */

/* Modales avec scroll */
.modal-scrollable {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content-scroll {
    overflow-y: auto;
    max-height: calc(90vh - 80px); /* Hauteur modale - header */
    padding: 1.5rem;
}

/* Personnalisation de la scrollbar */
.modal-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-content-scroll::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.modal-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Firefox */
.modal-content-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--light);
}

/* Tables avec scroll */
.table-container {
    max-height: 500px;
    overflow-y: auto;
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--light);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ═══ CONFIRMATION P2P ═══ */

.p2p-confirm-details {
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.confirm-amount {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions button {
    flex: 1;
}

/* PIN Input */
#p2p-pin-input {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: monospace;
}

/* ═══ RESPONSIVE MODALES ═══ */

@media (max-width: 768px) {
    .modal-box-large {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-content-scroll {
        max-height: calc(95vh - 60px);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .table-container {
        max-height: 300px;
    }
}

/* Smooth scroll */
.modal-content-scroll,
.table-container {
    scroll-behavior: smooth;
}

/* ═══ PAGE PARAMÈTRES ═══ */

.settings-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--dark);
}

.settings-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 1rem 0;
}

/* Sélecteur de thème */
.theme-selector {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.theme-btn {
    flex: 1;
    padding: 1rem;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.theme-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.theme-icon {
    font-size: 2rem;
}

/* Toggle switch */
.setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-toggle:last-child {
    border-bottom: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Informations du compte */
.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.account-info-item:last-child {
    border-bottom: none;
}

.account-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Bouton danger */
.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ═══ SYSTÈME DE NOTIFICATIONS ═══ */

.nav-notifications {
    position: relative;
    margin-left: 1rem;
}

.notification-bell {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: 0.2s;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-badge.hidden {
    display: none;
}

/* Panneau de notifications */
.notification-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

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

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.btn-clear-notif {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

.btn-clear-notif:hover {
    text-decoration: underline;
}

.notification-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 0.5rem;
}

.notification-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.notification-item:hover {
    background: var(--light);
}

.notification-item.unread {
    background: #eff6ff;
    border-left-color: var(--primary-color);
}

.notification-item.success {
    border-left-color: var(--success-color);
}

.notification-item.warning {
    border-left-color: #f59e0b;
}

.notification-item.error {
    border-left-color: var(--danger-color);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ═══ MODE SOMBRE ═══ */

body.dark-theme {
    --background: #1a1a1a;
    --text: #e5e5e5;
    --text-light: #a0a0a0;
    --dark: #ffffff;
    --light: #2a2a2a;
    --border: #404040;
    --card-bg: #242424;
}

body.dark-theme .card,
body.dark-theme .modal-box,
body.dark-theme .navbar {
    background: var(--card-bg);
}

body.dark-theme .notification-panel {
    background: var(--card-bg);
}

body.dark-theme .theme-btn {
    background: var(--light);
}

body.dark-theme .theme-btn:hover {
    background: #333;
}

/* ═══ RESPONSIVE PARAMÈTRES ═══ */

@media (max-width: 768px) {
    .theme-selector {
        flex-direction: column;
    }
    
    .notification-panel {
        width: calc(100vw - 20px);
        right: 10px;
        top: 60px;
    }
    
    .setting-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ═══ TAILLES DE TEXTE ═══ */

body.font-small {
    font-size: 14px;
}

body.font-medium {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

body.font-small .card h3 {
    font-size: 1.1rem;
}

body.font-large .card h3 {
    font-size: 1.4rem;
}

/* Animation d'entrée pour les notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-panel {
    animation: slideInRight 0.3s ease-out;
}
/* ═══════════════════════════════════════════════════════════════
   NAVBAR RÉORGANISÉE - MODERNE ET RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Container principal */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Actions navbar (notifications + hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 3;
}

.nav-notifications {
    position: relative;
}

/* Menu hamburger (caché sur desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu principal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    order: 2;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--light);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Divider dans le menu */
.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 0.5rem;
}

/* Lien de connexion spécial */
.nav-auth {
    background: var(--primary-color);
    color: white;
}

.nav-auth:hover {
    background: #1d4ed8;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    /* Afficher le hamburger */
    .hamburger-menu {
        display: flex;
    }
    
    /* Menu en overlay sur mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    body.dark-theme .nav-menu {
        background: var(--card-bg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }
    
    /* Overlay derrière le menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100vw;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS ET TRANSITIONS
   ═══════════════════════════════════════════════════════════════ */

/* Animation d'entrée du menu */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-menu.active {
    animation: slideInFromRight 0.3s ease-out;
}

/* Amélioration des transitions */
.nav-link,
.hamburger-menu span,
.nav-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   ÉTATS SPÉCIAUX
   ═══════════════════════════════════════════════════════════════ */

/* Désactiver le scroll du body quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

@media (min-width: 1025px) {
    body.menu-open {
        overflow: auto;
    }
}

/* Badge notification plus petit sur mobile */
@media (max-width: 768px) {
    .notification-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
        min-width: 16px;
    }
}

/* ═══ STATISTIQUES SYSTÈME (ADMIN) ═══ */

.system-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--light);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stat-item strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .system-stats {
        grid-template-columns: 1fr;
    }
}

/* ═══ CORRECTION CONTRASTE MENU ACTIF ═══ */

/* S'assurer que le texte des liens actifs est toujours blanc */
.nav-link.active,
.nav-link.active:hover {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
}

/* Couleur des emojis dans les liens actifs */
.nav-link.active::before {
    filter: brightness(0) invert(1);
}

/* Mode sombre - liens actifs */
body.dark-theme .nav-link.active,
body.dark-theme .nav-link.active:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* ═══ OPTIONS DE PAIEMENT COTISATIONS ═══ */

.admin-payment-options-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-payment-options-section h4 {
    margin-bottom: 0.5rem;
}

.payment-options-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.75rem 0 1rem;
}

.payment-option-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(220px, 2fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.payment-option-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .payment-option-row {
        grid-template-columns: 1fr;
    }
}

/* ═══ PROFILS CV ═══ */
.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 500px;
    overflow-y: auto;
}

.profile-list-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    background: var(--card-bg);
    cursor: pointer;
}

.profile-list-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.profile-list-item h5 {
    margin: 0;
    font-size: 0.95rem;
}

.profile-list-item p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.profile-detail-block {
    margin-bottom: 0.8rem;
}

.profile-detail-block h5 {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.profile-detail-block p,
.profile-detail-block div {
    margin: 0;
    white-space: pre-wrap;
}
