/* assets/css/modern-theme.css - Design System SaaS & Fintech Investian
   Strictement conforme aux directives de AGENT.md et DESIGN_SYSTEM.md
   Clarté, lisibilité, densité d'information, zéro gadgets IA, ergonomie mobile-first
*/

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Palette de couleurs professionnelles */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --border-color-subtle: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --primary: #0f172a;
    --primary-hover: #1e293b;
    
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    
    --info: #2563eb;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Typographie de base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================================
   1. STRUCTURE DU LAYOUT (SHELL PRINCIPAL)
   ========================================================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-page);
}

/* 1.1 SIDEBAR DESKTOP */
.app-sidebar {
    width: 250px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    overflow-y: auto;
}

.sidebar-top {
    padding: 20px 16px;
}

.sidebar-brand-box {
    padding: 0 8px 24px 8px;
    border-bottom: 1px solid var(--border-color-subtle);
    margin-bottom: 20px;
}

.sidebar-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.sidebar-section-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    padding: 12px 10px 6px 10px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.sidebar-link.active {
    background: #f1f5f9;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-icon {
    flex-shrink: 0;
    color: currentColor;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--border-color);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.sidebar-bottom {
    padding: 16px;
    border-top: 1px solid var(--border-color-subtle);
}

.sidebar-link-logout {
    color: var(--danger) !important;
}

.sidebar-link-logout:hover {
    background: var(--danger-bg) !important;
}

/* 1.2 VIEWPORT PRINCIPAL */
.main-viewport {
    margin-left: 250px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Loading Progress Bar (React/SPA Transition) */
.app-top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    z-index: 99999;
    transition: width 0.25s ease, opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* 1.3 TOPBAR STANDARD & MOBILE APP BAR */
.app-header {
    height: 64px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-mobile-brand {
    display: none;
}

.header-avatar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.avatar-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.header-greeting-box {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.greeting-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.greeting-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Capsule Solde Header */
.header-wallet-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.header-wallet-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wallet-indicator-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.wallet-text-label {
    font-size: 11.5px;
    color: var(--text-muted);
}

.wallet-amount-val {
    font-weight: 800;
    color: var(--text-main);
}

.header-deposit-btn {
    height: 34px !important;
    font-size: 12.5px !important;
    padding: 0 12px !important;
    font-weight: 700 !important;
}

.header-notif-btn {
    position: relative;
}

.notif-pulse-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 1px solid #ffffff;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.header-icon-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.header-logout-icon:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* 1.4 CONTENEUR DE CONTENU */
.content-container {
    padding: 28px 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================================================================
   2. COMPOSANTS DE BASE (BOUTONS, BADGES, ALERTES, FORMULAIRES)
   ========================================================================= */

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

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

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

.btn-success:hover {
    background: #047857;
}

.btn-sm {
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
}

.btn-block {
    width: 100%;
}

/* Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

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

.badge-gold {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.badge-standard {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Alertes */
.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: #92400e;
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: #991b1b;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: #065f46;
}

.alert-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: #1e40af;
}

/* Formulaires standards */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-main);
    background: #ffffff;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
    height: auto;
    padding: 10px 12px;
    min-height: 90px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

/* =========================================================================
   3. SECTIONS DU DASHBOARD (TABLEAUX, GRILLES, PANNEAUX)
   ========================================================================= */

/* 3.1 EN-TÊTE BIENVENUE */
.dashboard-welcome-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-greeting {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.dashboard-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.dashboard-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================================
   3. TABLEAU DE BORD FINTECH HAUT DE GAMME (STYLE REVOLUT / KUDA / COWRYWISE)
   ========================================================================= */

/* -------------------------------------------------------------------------
   3.1 CARTE PORTEFEUILLE BLEU ROYAL FINTECH (EN HAUT SOUS LE HEADER)
   ------------------------------------------------------------------------- */
.fintech-balance-card {
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
    border-radius: 22px;
    padding: 24px 22px;
    color: #ffffff;
    box-shadow: 0 12px 28px -6px rgba(2, 132, 199, 0.38);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.fintech-balance-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.fintech-balance-card::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.fbc-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.fbc-label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fbc-label {
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.fbc-eye-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.fbc-eye-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.fbc-eye-btn.is-hidden {
    opacity: 0.6;
}

.fbc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fbc-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

.fbc-amount-value {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
}

.fbc-metrics-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.14);
    padding: 14px 18px;
    border-radius: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fbc-metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fbc-m-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.fbc-m-val {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.text-emerald-light {
    color: #34d399 !important;
}

.fbc-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
}

.fbc-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 2;
}

.fbc-btn {
    height: 42px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.fbc-btn:active {
    transform: scale(0.96);
}

.fbc-btn-primary {
    background: #ffffff;
    color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.fbc-btn-glass {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------------
   3.2 LES 4 ACTIONS PRINCIPALES (CIRCULAIRES, EN BAS DE LA CARTE DE SOLDE)
   ------------------------------------------------------------------------- */
.native-quick-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 10px 0;
    gap: 12px;
}

.nqa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    transition: transform 0.12s ease;
}

.nqa-item:active .nqa-circle {
    transform: scale(0.90);
}

.nqa-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nqa-deposit {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.24);
}

.nqa-withdraw {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

.nqa-referral {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.24);
}

.nqa-video {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #7c3aed;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24);
}

.nqa-label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

/* -------------------------------------------------------------------------
   3.3 BANNIÈRE PARRAINAGE RAPIDE
   ------------------------------------------------------------------------- */
.referral-quick-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rqc-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rqc-tag {
    font-size: 10px;
    font-weight: 800;
    color: #d97706;
    background: #fef3c7;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    letter-spacing: 0.4px;
}

.rqc-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.rqc-sub {
    font-size: 12px;
    color: #64748b;
}

.rqc-btn {
    height: 38px;
    padding: 0 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.12s ease, background 0.15s ease;
}

.rqc-btn:hover {
    background: #1e293b;
}

.rqc-btn:active {
    transform: scale(0.95);
}

/* -------------------------------------------------------------------------
   3.4 PACKS D'INVESTISSEMENT AGRANDIS & VALORISÉS
   ------------------------------------------------------------------------- */
.large-packs-section {
    width: 100%;
}

.section-clean-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

.sch-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.sch-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.sch-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.sch-link:hover {
    text-decoration: underline;
}

/* Grille des Grands Packs */
.large-packs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.large-pack-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.large-pack-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.large-pack-bonus {
    border-color: #fbcfe8 !important;
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 35%) !important;
}

.large-pack-bonus .lpc-price {
    color: #db2777 !important;
}

.lpc-visual-header {
    height: 160px;
    position: relative;
    background: #0f172a;
    overflow: hidden;
}

.lpc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lpc-rate-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(5, 150, 105, 0.95);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lpc-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: space-between;
}

.lpc-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lpc-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.lpc-price {
    font-size: 22px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: -0.5px;
}

.lpc-metrics-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.lpc-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lpc-m-label {
    color: #64748b;
    font-weight: 500;
}

.lpc-m-val {
    color: #0f172a;
}

.lpc-cta-btn {
    height: 44px !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12) !important;
}

/* -------------------------------------------------------------------------
   3.5 DERNIÈRES TRANSACTIONS : FEED NATIF
   ------------------------------------------------------------------------- */
.native-transactions-section {
    width: 100%;
}

.native-feed-list {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* -------------------------------------------------------------------------
   3.6 DERNIÈRES TRANSACTIONS : FEED NATIF (STYLE REF 1 & 3)
   ------------------------------------------------------------------------- */
.native-transactions-section {
    width: 100%;
}

.native-feed-list {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.native-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s ease;
}

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

.nfi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nfi-icon-depot {
    background: #ecfdf5;
    color: #059669;
}

.nfi-icon-retrait {
    background: #eff6ff;
    color: #2563eb;
}

.nfi-icon-invest {
    background: #f5f3ff;
    color: #7c3aed;
}

.nfi-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nfi-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.nfi-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nfi-dot {
    color: #cbd5e1;
}

.nfi-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.nfi-amount {
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
}

.nfi-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.nsp-success {
    background: #ecfdf5;
    color: #059669;
}

.nsp-warning {
    background: #fffbeb;
    color: #d97706;
}

.nsp-danger {
    background: #fef2f2;
    color: #dc2626;
}

/* Toast Flottant Notification */
.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.app-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 3.3 PANNEAU DE SECTION STANDARD */
.section-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 24px;
}

.section-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.section-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.section-action-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.section-action-link:hover {
    text-decoration: underline;
}

/* 3.4 TABLES DE DONNÉES PROFESSIONNELLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.data-table,
.clean-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.data-table th,
.clean-table th {
    padding: 10px 14px;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td,
.clean-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tr:last-child td,
.clean-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td,
.clean-table tbody tr:hover td {
    background: #f8fafc;
}

/* 3.5 GRILLE DES PACKS DE SOUSCRIPTION */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pack-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pack-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}

.pack-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pack-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
}

.pack-roi-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    padding: 2px 7px;
    border-radius: 4px;
}

.pack-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.pack-details-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pack-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    font-weight: 600;
    color: var(--text-main);
}

/* État vide standard */
.empty-state-box {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-state-text {
    font-size: 13.5px;
}

/* Utilitaires */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* =========================================================================
   BARRE DE NAVIGATION DE SOUS-PAGE UNIFIÉE (ÉLÉGANTE & MINIMALISTE)
   ========================================================================= */
.subpage-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.subpage-back-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.subpage-back-arrow:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(-2px);
}

.stb-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.subpage-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.subpage-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-top: 1px;
}

.subpage-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.sbp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.sbp-label {
    font-size: 11.5px;
    color: #64748b;
}

.sbp-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

/* Grille des Investissements Actifs */
.active-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.active-plan-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.apc-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.apc-rate {
    font-size: 11.5px;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 4px;
}

.apc-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.apc-amount {
    font-size: 22px;
    font-weight: 800;
    color: #0284c7;
    margin-top: 4px;
}

.apc-metrics-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.apc-metric-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Carte Détails Plan Agrandie (plan_details.php) */
.plan-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.pdc-visual-header {
    height: 180px;
    position: relative;
    background: #0f172a;
    overflow: hidden;
}

.pdc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdc-rate-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(5, 150, 105, 0.95);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

.pdc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdc-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pdc-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-top: 6px;
}

.pdc-price-box {
    text-align: right;
}

.pdc-price {
    font-size: 26px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: -0.5px;
}

.pdc-price-sub {
    font-size: 11.5px;
    color: #64748b;
}

.pdc-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.pdc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pdc-metric-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pmc-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmc-val {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    word-break: keep-all;
}

.pmc-sub {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

/* Optimisation Mobile Responsive 2x2 pour éviter tout cassage de ligne (ex: +8 000 FCFA) */
@media (max-width: 768px) {
    .pdc-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .pdc-metric-card {
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }

    .pmc-val {
        font-size: 15.5px !important;
    }
}

@media (max-width: 380px) {
    .pdc-metrics-grid {
        gap: 8px !important;
    }

    .pdc-metric-card {
        padding: 10px 10px !important;
    }

    .pmc-val {
        font-size: 14px !important;
    }
    
    .pmc-label {
        font-size: 10.5px !important;
    }
    
    .pmc-sub {
        font-size: 9.5px !important;
    }
}

.pdc-action-container {
    padding-top: 10px;
    width: 100%;
}

.pdc-submit-btn {
    min-height: 48px !important;
    height: auto !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    white-space: normal !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
}

.pdc-insufficient-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
}

.pdc-insufficient-notice .pin-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pdc-insufficient-notice .pin-icon {
    font-size: 18px;
    line-height: 1.2;
    flex-shrink: 0;
}

.pdc-recharge-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3) !important;
}

.pdc-recharge-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .pdc-insufficient-notice {
        padding: 14px 12px;
        border-radius: 14px;
        gap: 12px;
    }
    .pdc-submit-btn {
        font-size: 13.5px !important;
        padding: 11px 12px !important;
        min-height: 46px !important;
    }
}

.pdc-faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-q {
    font-size: 13.5px;
    color: #0f172a;
    display: block;
    margin-bottom: 3px;
}

.faq-a {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* =========================================================================
   3.6 COMPOSANTS SPÉCIFIQUES AUX FORMULAIRES DE TRANSACTIONS & PROFILS
   ========================================================================= */

/* Sélecteur d'opérateur Mobile Money (Orange Money / MTN MoMo) */
.operator-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.operator-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.operator-card:has(input:checked) {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.operator-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.orange-badge {
    background: #ff7900;
    color: #ffffff;
}

.mtn-badge {
    background: #facc15;
    color: #000000;
}

/* Montants rapides en jetons */
.quick-amounts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.quick-amount-chip {
    height: 34px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-amount-chip:hover {
    background: #ffffff;
    border-color: var(--primary);
}

/* Panneaux de tableau de bord et conteneurs de tables */
.dashboard-panel-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 24px;
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.data-table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    overflow-x: auto;
}

/* Aliases pour boutons et pilules d'action */
.btn-pill-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.btn-pill-dark:hover {
    background: var(--primary-hover);
}

.btn-pill-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.btn-pill-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
}

.status-pill.status-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.status-pill.status-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Résumé de profil utilisateur */
.profile-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-balance-action {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================================================================
   4. NAVIGATION MOBILE FIXE (NAV-BOTTOM NATIVE)
   ========================================================================= */
.mobile-nav-bottom {
    display: none;
}

/* =========================================================================
   5. RESPONSIVE DESIGN MOBILE FIRST (< 860px)
   ========================================================================= */
@media (max-width: 860px) {
    /* Masquer la Sidebar PC */
    .app-sidebar,
    #appSidebar {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Ajuster le Viewport principal */
    .main-viewport {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 74px !important; /* Dégagement pour la barre du bas */
    }

    /* Topbar Mobile Style Application Native */
    .app-header {
        height: 64px !important;
        padding: 0 16px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 40 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    }

    .header-left {
        gap: 10px !important;
    }

    .header-mobile-brand {
        display: inline-flex !important;
        align-items: center !important;
        margin-right: 4px !important;
    }

    .header-mobile-logo-img {
        max-height: 36px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-avatar-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 13.5px !important;
        border: 2px solid #e2e8f0 !important;
    }

    .avatar-online-dot {
        width: 9px !important;
        height: 9px !important;
    }

    .header-greeting-box {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.25 !important;
    }

    .greeting-subtitle {
        font-size: 11px !important;
        color: #64748b !important;
        font-weight: 500 !important;
    }

    .greeting-name {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        letter-spacing: -0.3px !important;
    }

    .header-notif-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
    }

    .header-desktop-title,
    .header-deposit-btn,
    .header-logout-icon,
    .header-desktop-only,
    .wallet-text-label {
        display: none !important;
    }

    /* Conteneur de contenu sur mobile */
    .content-container {
        padding: 12px 14px !important;
        gap: 14px !important;
    }

    /* Carte Portefeuille Bleu Royal Mobile */
    .fintech-balance-card {
        padding: 20px 18px !important;
        gap: 16px !important;
        border-radius: 20px !important;
    }

    .fbc-amount-value {
        font-size: 30px !important;
    }

    .fbc-metrics-row {
        padding: 12px 14px !important;
    }

    .fbc-m-label {
        font-size: 10px !important;
    }

    .fbc-m-val {
        font-size: 13px !important;
    }

    .fbc-actions-row {
        gap: 10px !important;
    }

    .fbc-btn {
        height: 40px !important;
        font-size: 13px !important;
    }

    /* Actions Rapides Circulaires Mobile (Sous la carte de solde) */
    .native-quick-actions {
        padding: 6px 0 10px 0 !important;
        gap: 8px !important;
    }

    .nqa-circle {
        width: 52px !important;
        height: 52px !important;
    }

    .nqa-circle svg {
        width: 22px !important;
        height: 22px !important;
    }

    .nqa-label {
        font-size: 12px !important;
    }

    /* Accélérateur Parrainage Mobile */
    .referral-quick-card {
        padding: 14px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        border-radius: 16px !important;
    }

    .rqc-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Grands Packs d'Investissement Mobile */
    .large-packs-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .lpc-visual-header {
        height: 145px !important;
    }

    .lpc-name {
        font-size: 15.5px !important;
    }

    .lpc-price {
        font-size: 20px !important;
    }

    .lpc-body {
        padding: 18px 16px !important;
        gap: 14px !important;
    }

    .lpc-cta-btn {
        height: 42px !important;
        font-size: 13.5px !important;
    }

    /* Feed Transactions Mobile */
    .native-feed-item {
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .nfi-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .nfi-title {
        font-size: 12.5px !important;
    }

    .nfi-amount {
        font-size: 13px !important;
    }

    /* Toast Notification Mobile */
    .app-toast {
        bottom: 74px !important;
        width: 90% !important;
        max-width: 320px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Bouton Support Flottant Dégagé */
    .floating-support-container {
        bottom: 74px !important;
        right: 14px !important;
        z-index: 90 !important;
    }

    /* Bannière d'introduction sous-page */
    .page-intro-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px !important;
        gap: 10px !important;
    }

    .intro-banner-title {
        font-size: 17px !important;
    }

    .intro-balance-badge {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
    }

    /* BARRE DE NAVIGATION INFÉRIEURE FIXE (MOBILE) */
    .mobile-nav-bottom {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: #ffffff !important;
        border-top: 1px solid var(--border-color) !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
        z-index: 99 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 4px !important;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: var(--text-muted);
        text-decoration: none;
        gap: 2px;
        transition: color 0.15s ease;
    }

    .mobile-nav-item.active {
        color: var(--primary) !important;
    }

    .mobile-nav-icon {
        color: currentColor;
    }

    .mobile-nav-label {
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: -0.2px;
    }

    .mobile-nav-highlight .mobile-nav-highlight-btn {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: var(--primary);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -8px;
        box-shadow: var(--shadow-sm);
    }
}

/* =========================================================================
   AUTHENTIFICATION MODERNE FINTECH & MOBILE-FIRST (INVESTIAN)
   ========================================================================= */
.auth-page-container {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(circle at 50% 10%, #f1f5f9 0%, #f8fafc 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 12px auto;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.4;
}

.auth-tabs-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}

.auth-tab-link {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    border-radius: 9px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.auth-tab-link.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.15s ease;
}

.auth-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.auth-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #0f172a;
}

.auth-phone-row {
    display: flex;
    gap: 8px;
}

.auth-phone-select {
    width: 110px;
    height: 46px;
    padding: 0 8px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    cursor: pointer;
}

.auth-submit-btn {
    height: 48px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.auth-submit-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-help-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.auth-help-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-help-link:hover {
    text-decoration: underline;
}

.auth-security-badge {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
}

.auth-security-badge svg {
    color: #10b981;
    flex-shrink: 0;
}

.auth-otp-input {
    letter-spacing: 6px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    font-family: monospace;
}

@media (max-width: 480px) {
    .auth-page-container {
        padding: 16px 12px;
        min-height: calc(100vh - 60px);
    }
    
    .auth-card {
        padding: 24px 18px;
        border-radius: 18px;
    }
    
    .auth-title {
        font-size: 20px;
    }
}
