/* AURUM MINING Design System - Vert Émeraude, Or & Noir Profond */

/* Variables de styles fixes pour le Thème Aurum Mining */
:root {
    --bg-primary: #060e0a;          /* Noir minéral profond aux reflets émeraude sombres */
    --bg-secondary: #0a1811;        /* Panneaux sombres riches émeraude */
    --bg-card: #0d2017;             /* Fond de carte émeraude nuit */
    --border-color: rgba(16, 185, 129, 0.18); /* Bordures émeraude subtiles */
    --border-color-glow: rgba(16, 185, 129, 0.35);
    
    --text-primary: #f0fdf4;         /* Blanc nacré très doux teinté menthe émeraude */
    --text-secondary: #94a3b8;       /* Gris argenté moderne / ardoise */
    --text-muted: #64748b;
    
    --accent-color: #10b981;         /* Vert Émeraude Radiant */
    --accent-color-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.28);
    --btn-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    
    --yellow-color: #fbbf24;         /* Or Pur Impérial */
    --yellow-static: #f59e0b;        /* Or chaud */
    --yellow-glow: rgba(245, 158, 11, 0.32);
    --btn-yellow-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

    --green-color: #10b981;          /* Vert émeraude */
    --green-glow: rgba(16, 185, 129, 0.28);
    --rose-color: #f43f5e;           /* Rouge rubis */
    --rose-glow: rgba(244, 63, 94, 0.2);
    --red-color: #ef4444;
    
    --bg-nav: #07130d;
    --shadow-color: rgba(0, 0, 0, 0.6);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #030705;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 17.5px;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

.font-outfit {
    font-family: 'Poppins', sans-serif;
}

/* Structure Mobile-First Max-width 480px Centré */
.auth-layout, .app-layout {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-primary);
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.08);
    display: flex;
    flex-direction: column;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2.5px solid rgba(16, 185, 129, 0.15);
    border-top: 2.5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #fbbf24, #10b981, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Classes Communes */
.hidden { display: none !important; }

/* Padding utilities */
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 20px !important; }
.p-6 { padding: 24px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-5 { padding-left: 20px !important; padding-right: 20px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 20px !important; padding-bottom: 20px !important; }

.glass-panel {
    background: linear-gradient(155deg, rgba(10, 26, 18, 0.92) 0%, rgba(5, 14, 9, 0.97) 100%);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-card {
    background: linear-gradient(155deg, rgba(12, 30, 21, 0.88) 0%, rgba(6, 16, 11, 0.96) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Typographie & Couleurs */
.text-xs { font-size: 14.5px; }
.text-xxs { font-size: 12.5px; }
.text-sm { font-size: 16px; }
.text-md { font-size: 18px; }
.text-base { font-size: 20px; }
.text-lg { font-size: 22px; }
.text-xl { font-size: 26px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }
.text-accent { color: var(--accent-color); }
.text-yellow { color: var(--yellow-static); }
.text-green { color: var(--green-color); }
.text-rose { color: var(--rose-color); }
.text-red { color: var(--red-color); }
.opacity-85 { opacity: 0.85; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.opacity-60 { opacity: 0.6; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.ml-1 { margin-left: 4px; }
.w-full { width: 100%; }

/* Buttons & Inputs */
.btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--accent-glow);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.95;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:active {
    background-color: rgba(16, 185, 129, 0.1);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.select-field,
.input-wrapper input,
.input-readonly {
    width: 100%;
    height: 50px;
    background-color: #08160f;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-wrapper input {
    padding: 0 16px 0 44px;
}

.input-wrapper input#reg-phone {
    padding-left: 76px;
}

.select-field {
    padding: 0 40px 0 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

.input-readonly {
    padding: 0 16px;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.select-field:hover,
.input-wrapper input:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background-color: #0d2218;
}

.select-field:focus,
.input-wrapper input:focus {
    border-color: var(--accent-color);
    background-color: #0e271b;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-color);
}

.country-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    pointer-events: none;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: calc(100% - 32px);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: toast-in 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success { background: linear-gradient(135deg, var(--green-color), #047857); border: 1px solid rgba(16, 185, 129, 0.2); }
.toast-error { background: linear-gradient(135deg, var(--rose-color), #be123c); border: 1px solid rgba(244, 63, 94, 0.2); }
.toast-info { background: linear-gradient(135deg, var(--accent-color), #0044bb); border: 1px solid rgba(0, 119, 255, 0.2); }

/* ========================================================
   AUTHENTICATION VIEW (Mobile-Native Seamless Experience - Sans Conteneur)
   ======================================================== */
.auth-layout {
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 18px 40px;
    background-color: #040d07;
    background-image: 
        radial-gradient(circle at 50% -15%, rgba(16, 185, 129, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 95% 45%, rgba(251, 191, 36, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 5% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 45%);
    position: relative;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Auth Content Flow - Plein écran sans conteneur rigide sur mobile */
.auth-content-flow {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Rétrocompatibilité sélecteur */
.auth-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Barre Supérieure */
.auth-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
}

.auth-top-bar .secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-lang-toggle {
    position: static;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-lang:hover, .btn-lang:active {
    background-color: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}

/* En-tête Branded */
.auth-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-img {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(251, 191, 36, 0.35));
}

.auth-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(251, 191, 36, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(8px);
}

.auth-brand-name {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fbbf24;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-block;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 13.5px;
    color: rgba(226, 232, 240, 0.72);
    margin: 0;
    line-height: 1.45;
    max-width: 320px;
}

/* Onglets Segmentés Inscription / Connexion */
.auth-nav-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(10, 26, 17, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 22px;
}

.auth-nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-nav-tab .tab-icon {
    width: 16px;
    height: 16px;
}

.auth-nav-tab.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.22) 100%);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.auth-nav-tab:hover:not(.active) {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.03);
}

/* Formulaire Auth */
.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form .form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.auth-form .input-wrapper input,
.auth-form .select-field {
    height: 52px;
    background-color: #08170f;
    border: 1.5px solid rgba(16, 185, 129, 0.22);
    border-radius: 14px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.2s ease;
}

.auth-form .input-wrapper input:focus,
.auth-form .select-field:focus {
    border-color: #10b981;
    background-color: #0b2015;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* Password Toggle Icon */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.btn-toggle-pwd:hover,
.btn-toggle-pwd:focus {
    color: #10b981;
}

/* Bouton d'action principal CTA */
.btn-auth-submit {
    height: 54px;
    margin-top: 10px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    border: none;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-submit:hover {
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
    filter: brightness(1.06);
}

.btn-auth-submit:active {
    transform: scale(0.98);
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 14.5px;
    color: #94a3b8;
}

.link-accent {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-accent:hover {
    color: #fde047;
    text-decoration: underline;
}

/* Pied de page de confiance */
.auth-trust-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.3px;
}

.trust-item .trust-icon {
    width: 13px;
    height: 13px;
    color: #10b981;
}

.trust-sep {
    color: #334155;
    font-size: 10px;
}

/* APP CONNECTED LAYOUT */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.logo-mini {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color), var(--yellow-static));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* Conteneur principal */
.app-main-content {
    flex: 1;
    padding: 16px 16px 90px 16px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.app-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fade-in-blur 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.view-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.view-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVIGATION TABS MOBILE - FIXED BOTTOM */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 66px;
    border-top: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 22px 22px 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    z-index: 200;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
    background-color: rgba(6, 18, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.2s ease;
    flex: 1;
    height: 100%;
    position: relative;
    padding-top: 3px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background-color: var(--accent-color);
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: transform 0.25s ease;
}

.nav-item i, .nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item.active {
    color: var(--accent-color);
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item.active i, .nav-item.active svg {
    transform: translateY(-2px) scale(1.1);
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.nav-item.active span {
    font-weight: 800;
}

/* DASHBOARD VIEW ELEMENTS (ARM LOOK) */
.user-profile-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 20px;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(251, 191, 36, 0.15));
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vip-badge {
    align-self: flex-start;
    background: var(--btn-yellow-gradient);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px var(--yellow-glow);
}

.btn-checkin-arm {
    background: var(--btn-yellow-gradient);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    height: 26px;
}

.btn-checkin-arm i,
.btn-checkin-arm svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0;
}

.btn-checkin-arm:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-checkin-arm:active:not(:disabled) {
    transform: scale(0.96);
}

.btn-checkin-arm:disabled,
.btn-checkin-arm.disabled {
    cursor: default;
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.28) !important;
    box-shadow: none !important;
    opacity: 0.9 !important;
}

/* Grand Panneau de Solde (Aurum Mining Vault) */
.balance-panel-card {
    background: linear-gradient(145deg, #092618 0%, #0d3423 50%, #061a10 100%);
    color: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(251, 191, 36, 0.25);
    position: relative;
    overflow: hidden;
}

.balance-panel-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.balance-panel-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

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

.balance-title-label {
    font-size: 13.5px;
    font-weight: 700;
    opacity: 0.9;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.balance-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0;
}

.balance-value-row #header-balance-amount {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.balance-currency {
    font-size: 16px;
    color: #fbbf24;
    font-weight: 800;
}

.balance-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.btn-balance-action {
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.btn-balance-action:hover {
    filter: brightness(1.08);
}

.btn-balance-action:active {
    transform: scale(0.97);
}

.btn-balance-action.bg-blue {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

.btn-balance-action.bg-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-card:active {
    transform: scale(0.99);
}

.stat-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.stat-value {
    font-size: 22px;
    font-weight: 900;
    margin-top: 6px;
    color: var(--text-primary);
    font-family: 'Outfit', 'Poppins', sans-serif;
}

.stat-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    opacity: 0.04;
}

.stat-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.stat-card-accent.blue { background: var(--accent-color); }
.stat-card-accent.yellow { background: var(--yellow-static); }
.stat-card-accent.green { background: var(--green-color); }
.stat-card-accent.rose { background: var(--rose-color); }

/* Grille de liens rapides */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    border-radius: 14px;
}

.link-card:active {
    transform: scale(0.95);
}

.link-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.2s;
}

.link-card:active .link-icon-circle {
    transform: scale(0.92);
}

.link-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.bg-blue { background-color: var(--accent-color); }
.bg-yellow { background-color: var(--yellow-static); }
.bg-purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.bg-red { background-color: var(--red-color); }
.bg-green { background-color: var(--green-color); }
.bg-rose { background-color: var(--rose-color); }

.presentation-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(10, 28, 19, 0.95) 0%, rgba(5, 14, 9, 0.98) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.presentation-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(251, 191, 36, 0.15);
}

.pres-badge-icon {
    width: 28px;
    height: 28px;
    color: var(--yellow-static);
    flex-shrink: 0;
}

.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    flex-shrink: 0;
}

.tx-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.tx-date {
    font-size: 11.5px;
    color: var(--text-secondary);
}

.tx-right {
    text-align: right;
}

.tx-amount {
    font-size: 15px;
    font-weight: 800;
}

.badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.badge-pending { background-color: rgba(245, 158, 11, 0.15); color: var(--yellow-static); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-completed { background-color: var(--green-glow); color: var(--green-color); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background-color: var(--rose-glow); color: var(--rose-color); border: 1px solid rgba(244, 63, 94, 0.3); }

/* PRODUCTS CATALOGUE */
.category-tabs {
    display: flex;
    padding: 6px;
    gap: 6px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.category-tab {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.category-tab.active {
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px var(--accent-glow);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 24px;
    background: linear-gradient(160deg, #091e14 0%, #05120c 100%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.2);
}

/* Image du Produit CDN */
.prod-image-container {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.prod-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 14, 10, 0) 30%, rgba(9, 30, 20, 0.98) 100%);
}

.prod-header-text {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    background: rgba(4, 14, 9, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.prod-header-text .prod-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.25;
}

.prod-cat-tag {
    font-size: 11.5px;
    text-transform: uppercase;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.6px;
    margin-top: 3px;
    display: inline-block;
}

.prod-vip-lock-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: rgba(6, 18, 12, 0.92);
    border: 1px solid var(--yellow-static);
    color: var(--yellow-static);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.prod-card-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prod-price-badge {
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.prod-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px dashed rgba(16, 185, 129, 0.2);
    border-bottom: 1px dashed rgba(16, 185, 129, 0.2);
}

.prod-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.prod-info-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.prod-info-val {
    font-size: 15px;
    font-weight: 800;
    color: #f0fdf4;
}

.prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-stock {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

/* Verrouillage Visuel VIP - Voile très léger et translucide */
.prod-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 18, 12, 0.38) 0%, rgba(3, 10, 6, 0.52) 100%);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    border-radius: 20px;
    pointer-events: none;
}

.prod-locked-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(5, 16, 11, 0.85);
    border: 1.5px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(251, 191, 36, 0.25);
    padding: 14px 18px;
    border-radius: 16px;
    max-width: 90%;
    pointer-events: auto;
}

.prod-locked-icon {
    width: 28px;
    height: 28px;
    color: var(--yellow-color);
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
}

/* REVENUS JOURNALIERS (MACHINES) */
.investment-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-info-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.inv-info-dates {
    font-size: 10px;
    color: var(--text-secondary);
}

.inv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 10px;
}

.inv-body-item {
    display: flex;
    flex-direction: column;
}

.inv-body-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.inv-body-val {
    font-size: 13px;
    font-weight: 700;
}

.machine-processing {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animation d'ondes holographiques */
.machine-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 102, 255, 0.04), transparent);
    animation: wave-slide 2.5s infinite linear;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--btn-gradient);
    width: 0%;
    border-radius: 3px;
    transition: width 1s linear;
}

.cooldown-badge {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.claimable-banner {
    background-color: var(--green-glow);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* WALLET SUBVIEWS & DETAILS */
.wallet-subview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slide-in-right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* USDT Info Cards */
.usdt-instructions-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 16px;
    border-radius: 12px;
}

.usdt-address-box {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.usdt-address-box input {
    flex: 1;
    background-color: var(--bg-primary);
    border: 1px dashed var(--yellow-static);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    outline: none;
}

/* Methods configs */
.methods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.method-details-text {
    display: flex;
    flex-direction: column;
}

/* Notch Pay Simulator Dialog */
.notchpay-operator-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.operator-mtn { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000 !important; }
.operator-orange { background: linear-gradient(135deg, #ff4500, #ff8c00); }
.operator-wave { background: linear-gradient(135deg, #00bfff, #0055ff); }
.operator-free { background: linear-gradient(135deg, #ef4444, #990000); }
.operator-tmoney { background: linear-gradient(135deg, #10b981, #005500); }
.operator-moov { background: linear-gradient(135deg, #3b82f6, #002266); }

.otp-digit-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.otp-digit-input {
    width: 40px;
    height: 44px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.otp-digit-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* TEAM VIEW */
.referral-box {
    padding: 20px !important;
    margin-bottom: 16px;
    border-radius: 20px;
}

.team-list {
    padding: 16px !important;
    margin-top: 16px;
    border-radius: 20px;
}

.no-data {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
}

.referral-link-input {
    display: flex;
    gap: 10px;
}

.referral-link-input input {
    flex: 1;
    background-color: rgba(6, 20, 14, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #f0fdf4 !important;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    font-family: monospace, var(--font-body);
    font-weight: 600;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.referral-link-input input:focus {
    border-color: #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-copy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.btn-copy:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

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

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.team-stat-card {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-stat-label {
    font-size: 11.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.team-stat-val {
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.team-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.team-tab.active {
    background: var(--btn-gradient);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    width: 100%;
}

.team-item, .team-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
    gap: 8px;
}

.team-item-left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.team-phone {
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-date {
    font-size: 9px;
    color: var(--text-secondary);
}

.team-item-right {
    text-align: right;
    flex-shrink: 0;
}

/* ======================================================== */
/* CARTE MASTERCARD PROFIL LUXURY EDITION (AURUM MINING)    */
/* ======================================================== */
.mastercard-profile-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #04120b 0%, #0a2618 45%, #05140d 80%, #123824 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 24px;
    padding: 22px 20px 18px 20px;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Effet holographique et filigrane de fond */
.mc-watermark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 85% 15%, rgba(251, 191, 36, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 15% 90%, rgba(16, 185, 129, 0.18) 0%, transparent 55%),
                linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 55%, transparent 60%);
    pointer-events: none;
}

.mc-glow-sphere {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Ligne supérieure (Puce EMV, Contactless & Branding) */
.mc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mc-chip-contactless {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Puce EMV Dorée ultra-réaliste */
.mc-emv-chip {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffe599 0%, #d4af37 45%, #b38b19 85%, #fce084 100%);
    position: relative;
    border: 1px solid rgba(80, 55, 10, 0.4);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.mc-chip-line {
    position: absolute;
    background: rgba(110, 75, 10, 0.55);
}

.mc-chip-line.l1 {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.mc-chip-line.l2 {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.mc-chip-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 14px;
    border: 1px solid rgba(110, 75, 10, 0.55);
    border-radius: 3px;
    transform: translate(-50%, -50%);
}

.mc-contactless-icon {
    width: 22px;
    height: 22px;
    color: #fbbf24;
    opacity: 0.85;
    flex-shrink: 0;
}

.mc-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-brand-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #fbbf24;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.mc-vip-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #05140d;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Section Profil & Solde */
.mc-body-section {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2px;
}

.mc-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(251, 191, 36, 0.2));
    border: 1.5px solid rgba(251, 191, 36, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.mc-user-avatar i, .mc-user-avatar svg {
    width: 24px;
    height: 24px;
}

.mc-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mc-user-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.mc-user-meta {
    font-size: 12.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.mc-dot {
    color: #fbbf24;
    font-size: 12px;
}

/* Soldes : Solde Total & Revenu Total */
.mc-balance-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 14px;
    background: rgba(4, 16, 10, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.mc-bal-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mc-bal-item.text-right {
    text-align: right;
    align-items: flex-end;
}

.mc-bal-label {
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.mc-bal-amount {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.4px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.mc-rev-amount {
    font-size: 20px;
    font-weight: 900;
    color: #10b981;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

/* Grille des 4 sous-comptes */
.mc-sub-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(3, 12, 8, 0.7);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 10px 6px;
    backdrop-filter: blur(6px);
}

.mc-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    padding: 2px;
}

.mc-sub-item + .mc-sub-item {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-sub-label {
    font-size: 8.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mc-sub-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

/* Ligne Inférieure (Type de carte + Logo Mastercard) */
.mc-footer-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.mc-card-type-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: rgba(251, 191, 36, 0.85);
    text-transform: uppercase;
    font-family: monospace;
}

/* Logo officiel Mastercard : deux cercles entrelacés */
.mc-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mc-logo-circles {
    display: flex;
    align-items: center;
}

.mc-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mc-circle-left {
    background: #fbbf24; /* Gold */
    opacity: 0.95;
    z-index: 1;
}

.mc-circle-right {
    background: #10b981; /* Emerald */
    opacity: 0.9;
    margin-left: -10px;
    z-index: 2;
    mix-blend-mode: screen;
}

.mc-logo-text {
    font-size: 8px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-top: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Old alias for backward compat */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 14, 9, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    border: 1.5px solid var(--border-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-actions-list {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    transition: background-color 0.2s, transform 0.2s;
    text-align: left;
    position: relative;
}

.profile-menu-item + .profile-menu-item {
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    margin: 0;
}

.profile-menu-item:first-child { border-radius: 14px 14px 0 0; }
.profile-menu-item:last-child { border-radius: 0 0 14px 14px; }

.profile-menu-item:active {
    background-color: rgba(16, 185, 129, 0.1);
}

.menu-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
}

.menu-chevron {
    margin-left: auto;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Help Center FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.faq-question:active {
    background-color: var(--bg-primary);
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 11.5px;
    color: var(--text-secondary);
    padding: 0 14px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 14px 12px;
}

/* Security Modal specific */
.security-section {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.security-section-header {
    background-color: var(--bg-primary);
    padding: 10px 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-section-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ADMIN PANEL */
.admin-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    white-space: nowrap;
}

.admin-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 10px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.admin-tab.active {
    background-color: var(--red-color);
    color: #ffffff;
}

.badge-red {
    background-color: var(--red-color);
    color: #fff;
    padding: 1px 4px;
    font-size: 8px;
    border-radius: 50%;
}

.admin-subview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.admin-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 6px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}

.admin-table th {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 10px 8px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* MODALES OVERLAYS - Centrage Plein Écran Universel */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(2, 6, 4, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    margin: 0 !important;
    transform: none !important;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    width: 100%;
    max-width: 400px;
    max-height: 88vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    position: relative;
    z-index: 100000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
}

.modal-lg {
    max-width: 95%;
}

.presentation-body {
    max-height: 70vh;
}

/* Certificate */
.certificate-container {
    border: 3px double #c5a059;
    background-color: #faf8f5;
    color: #374151;
    padding: 24px 16px;
    border-radius: 4px;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(197, 160, 89, 0.05);
}

.cert-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 1px;
}

.cert-header h3 {
    font-size: 9px;
    font-weight: 600;
    color: #4b5563;
    margin-top: 2px;
    border-bottom: 1px solid #c5a059;
    padding-bottom: 8px;
}

.cert-content p {
    font-size: 9px;
    font-style: italic;
    color: #6b7280;
}

.cert-content h4 {
    font-size: 16px;
    font-weight: 900;
    color: #111827;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.cert-info-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 9px;
    margin-top: 8px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #c5a059;
    padding-top: 10px;
}

.cert-footer p {
    font-size: 8px;
    font-weight: 700;
    color: #374151;
}

.seal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #c5a059;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #fff;
}

/* LUCKY DRAW WHEEL */
.wheel-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spins-counter {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-primary);
}

.wheel-outer-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: 16px;
}

.wheel-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid var(--yellow-static);
    z-index: 10;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid rgba(15, 76, 129, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.wheel-slice {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    transform: rotate(calc(45deg * var(--i))) skewY(45deg);
    background-color: var(--color);
    border: 1px solid rgba(255,255,255,0.4);
}

.wheel-slice span {
    transform: skewY(-45deg) rotate(22.5deg);
    position: absolute;
    left: 42px;
    top: 42px;
    font-size: 9px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.wheel-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--btn-yellow-gradient);
    color: #ffffff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wave-slide {
    0% { left: -100%; }
    100% { left: 150%; }
}

@keyframes toast-in {
    0% { transform: translate3d(0, -20px, 0); opacity: 0; }
    100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes fade-in-blur {
    0% { transform: scale(0.99); filter: blur(4px); opacity: 0; }
    100% { transform: scale(1); filter: blur(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(12px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-up-modal {
    0% { transform: translateY(30px) scale(0.97); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-fade-up {
    animation: fade-up 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0ms; }
.animate-fade-up:nth-child(2) { animation-delay: 60ms; }
.animate-fade-up:nth-child(3) { animation-delay: 120ms; }
.animate-fade-up:nth-child(4) { animation-delay: 180ms; }
.animate-fade-up:nth-child(5) { animation-delay: 240ms; }
.animate-fade-up:nth-child(6) { animation-delay: 300ms; }

.animate-fade-down {
    animation: fade-down 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fade-up {
    0% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-down {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.modal-card {
    animation: slide-up-modal 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ========================================== */
/* STYLES SYSTEME COFFRES AUX TRESORS (ARM)  */
/* ========================================== */

.chests-body {
    padding: 16px 12px;
}

.chests-active-counter {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 14px;
    display: inline-block;
    margin: 0 auto 16px auto;
    font-size: 13.5px;
    font-weight: 700;
}

.chests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.chest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px;
    border-radius: 18px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.chest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Animations de pulsation dorée si le coffre est déverrouillé */
@keyframes chest-glow-gold {
    0% { box-shadow: 0 0 5px rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.2); }
    50% { box-shadow: 0 0 18px rgba(234, 179, 8, 0.45); border-color: rgba(234, 179, 8, 0.5); }
    100% { box-shadow: 0 0 5px rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.2); }
}

.chest-card.unlocked {
    animation: chest-glow-gold 2s infinite ease-in-out;
}

.chest-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

/* Sprite de coffre dessiné en SVG de haute fidélité */
.chest-sprite {
    width: 56px;
    height: 56px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chest-sprite.bronze {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cd7f32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='14' rx='2' ry='2' fill='%23cd7f32' fill-opacity='0.1'/><path d='M2 12h20'/><path d='M12 7v5'/><path d='M12 12a1.5 1.5 0 0 0 0 3'/></svg>");
}

.chest-sprite.silver {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='14' rx='2' ry='2' fill='%2394a3b8' fill-opacity='0.1'/><path d='M2 12h20'/><path d='M12 7v5'/><path d='M12 12a1.5 1.5 0 0 0 0 3'/></svg>");
}

.chest-sprite.gold {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='7' width='20' height='14' rx='2' ry='2' fill='%23ffd700' fill-opacity='0.15'/><path d='M2 12h20'/><path d='M12 7v5'/><path d='M12 12a1.5 1.5 0 0 0 0 3'/></svg>");
}

/* Coffre ouvert */
.chest-sprite.opened {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='12' width='20' height='9' rx='2' ry='2' fill='%23ffd700' fill-opacity='0.2'/><path d='M2 12l10-7 10 7M12 12a1.5 1.5 0 0 0 0 3'/></svg>");
    transform: scale(1.1) rotate(2deg);
}

.chest-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.chest-reward {
    font-size: 12px;
    font-weight: 800;
    color: var(--green-color);
}

.chest-progress {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ========================================== */
/* ROUE DE LA FORTUNE REALISTE DE LUXE       */
/* ========================================== */

.wheel-outer-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 6px;
    background: radial-gradient(circle, #ffffff 60%, #e2e8f0 100%);
    border: 2px solid var(--border-color);
}

.wheel-arrow {
    border-top-color: var(--yellow-static) !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.wheel {
    border: 6px solid #1e293b; /* Cercle extérieur sombre */
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
}

.wheel-slice {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    transform: rotate(calc(60deg * var(--i))) skewY(30deg);
    background-color: var(--color);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.wheel-slice span {
    transform: skewY(-30deg) rotate(30deg);
    position: absolute;
    left: 28px;
    top: 36px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 10px;
    color: var(--text);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.wheel-btn {
    width: 56px;
    height: 56px;
    border: 3px solid #ffffff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.35);
    background: radial-gradient(circle, var(--accent-color) 0%, #0033bb 100%);
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s;
}

.wheel-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
}

/* Grille de Retraits fixes et Paliers */
.withdraw-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.tier-btn {
    background-color: #0c1c14;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tier-btn:hover {
    border-color: var(--accent-color);
    background-color: #12281d;
}

.tier-btn.selected {
    background: var(--btn-yellow-gradient);
    border-color: var(--yellow-static);
    color: #06110a;
    font-weight: 800;
    box-shadow: 0 2px 10px var(--yellow-glow);
}

.tier-btn.locked {
    opacity: 0.4;
    background-color: #07130d;
    border-color: rgba(255, 255, 255, 0.05);
    color: #64748b;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Solde disponible retrait */
.withdrawal-balance-box {
    background-color: var(--yellow-glow);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 14px;
}

.delivery-truck-loader {
    position: relative;
    height: 60px;
    width: 100%;
    background: linear-gradient(90deg, #07150e 0%, #0d261a 50%, #07150e 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.truck-icon {
    font-size: 28px;
    color: #fbbf24;
    position: absolute;
    left: 10%;
    animation: truck-drive 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.road-line {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #10b981 0px, #10b981 10px, transparent 10px, transparent 20px);
}

@keyframes truck-drive {
    0% { left: 5%; transform: scaleX(1); }
    45% { left: 80%; transform: scaleX(1); }
    50% { transform: scaleX(-1); }
    95% { left: 5%; transform: scaleX(-1); }
    100% { transform: scaleX(1); }
}

.delivery-info-card {
    background-color: #0c1d15;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    text-align: left;
    margin-bottom: 14px;
}

.delivery-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(16, 185, 129, 0.15);
}

.delivery-info-row:last-child {
    border-bottom: none;
}

.delivery-info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.delivery-info-value {
    color: var(--text-primary);
    font-weight: 700;
}

.delivery-status-pill {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
}

.delivery-status-pill.transit {
    background-color: #fef3c7;
    color: #d97706;
}

.delivery-status-pill.success {
    background-color: #d1fae5;
    color: #059669;
}

/* ========================================== */
/* STYLES SYSTEME CANAUX DE PAIEMENT (ARM)   */
/* ========================================== */

.payment-channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-secondary);
}

.payment-channel-card:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.payment-channel-card.active {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.payment-channel-card.active .channel-radio {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.channel-radio-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.25s ease;
}

.payment-channel-card.active .channel-radio-inner {
    background: #ffffff;
}

.channel-icon-capsule {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.channel-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.channel-subtitle {
    font-size: 9px;
    opacity: 0.6;
    display: block;
}
@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-content {
    animation: ticker-scroll 25s linear infinite;
}

/* MLM / Referral Benefits styling */
.mlm-benefits-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.mlm-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 10px !important;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(155deg, rgba(10, 26, 18, 0.92) 0%, rgba(5, 14, 9, 0.97) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}

.mlm-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.15);
}

.mlm-benefit-card.level-1 {
    border-top: 3px solid var(--accent-color);
}
.mlm-benefit-card.level-2 {
    border-top: 3px solid var(--yellow-color);
}
.mlm-benefit-card.level-3 {
    border-top: 3px solid var(--green-color);
}

.mlm-card-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}

.level-1-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.level-2-badge {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--yellow-static);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.level-3-badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--green-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.mlm-rate-display {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
}

.mlm-benefit-card.level-1 .mlm-rate-display {
    color: var(--accent-color);
}
.mlm-benefit-card.level-2 .mlm-rate-display {
    color: var(--yellow-static);
}
.mlm-benefit-card.level-3 .mlm-rate-display {
    color: var(--green-color);
}

.mlm-level-desc {
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
    opacity: 0.95;
}

/* Grille d'actions rapide - Aurum Mining Luxury Obsidian & Emerald */
.quick-links-panel {
    background: linear-gradient(145deg, rgba(8, 22, 16, 0.95) 0%, rgba(4, 12, 8, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 22px;
    padding: 20px 14px;
    margin-top: 14px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quick-links-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    row-gap: 16px;
}

.link-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    padding: 12px 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.link-action-btn:hover {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(16, 185, 129, 0.2);
}

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

.link-action-btn i, .link-action-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.2px !important;
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.3));
}

.link-action-btn .link-title {
    font-size: 12px;
    font-weight: 700;
    color: #f0fdf4 !important;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

/* Épaisseur et dimension des icônes du menu profil (sans fond coloré) */
.profile-menu-item i:not(.menu-chevron), .profile-menu-item svg:not(.menu-chevron) {
    width: 20px;
    height: 20px;
    stroke-width: 2.8px !important;
    flex-shrink: 0;
}

/* ========================================== */
/* POPUPS CARTES (CONFIRMATIONS & RÉSULTATS) */
/* ========================================== */

@keyframes popup-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popup-card-in {
    from { opacity: 0; transform: translateY(24px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-card-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: popup-overlay-in 0.3s ease;
}

.popup-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: popup-card-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.popup-card-top-bar {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
}

.popup-card-top-bar.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.popup-card-top-bar.danger {
    background: linear-gradient(90deg, #e11d48, #f43f5e);
}

.popup-card-top-bar.success {
    background: linear-gradient(90deg, #059669, #34d399);
}

.popup-card-top-bar.error {
    background: linear-gradient(90deg, #e11d48, #fb7185);
}

.popup-card-top-bar.info {
    background: linear-gradient(90deg, var(--accent-color), #38bdf8);
}

.popup-card-body {
    padding: 28px 24px 24px;
    text-align: center;
}

.popup-card-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.18), rgba(0, 119, 255, 0.04));
    border: 2px solid rgba(0, 119, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.12);
}

.popup-card-icon-wrap i,
.popup-card-icon-wrap svg {
    width: 34px;
    height: 34px;
    color: var(--accent-color);
}

.popup-card-icon-wrap.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}
.popup-card-icon-wrap.warning i, .popup-card-icon-wrap.warning svg { color: #f59e0b; }

.popup-card-icon-wrap.danger {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(244, 63, 94, 0.05));
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.15);
}
.popup-card-icon-wrap.danger i, .popup-card-icon-wrap.danger svg { color: var(--rose-color); }

.popup-card-icon-wrap.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}
.popup-card-icon-wrap.success i, .popup-card-icon-wrap.success svg { color: var(--green-color); }

.popup-card-icon-wrap.error {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(244, 63, 94, 0.05));
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.15);
}
.popup-card-icon-wrap.error i, .popup-card-icon-wrap.error svg { color: var(--rose-color); }

.popup-card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.popup-card-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.popup-card-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.confirm-detail-row + .confirm-detail-row {
    border-top: 1px dashed var(--border-color);
    margin-top: 4px;
    padding-top: 10px;
}

.confirm-detail-row.highlight .confirm-detail-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-color);
}

.confirm-detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.confirm-detail-value {
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
}

.popup-card-actions {
    display: flex;
    gap: 10px;
}

.popup-card-btn {
    flex: 1;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.popup-card-btn:active {
    transform: scale(0.97);
}

.popup-card-btn.btn-danger {
    background: linear-gradient(135deg, #e11d48, #f43f5e) !important;
    border: none;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
}

.popup-card-btn.btn-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border: none;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* Carte de récompense */
.reward-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 25px 60px rgba(234, 179, 8, 0.15);
    animation: slide-up-modal 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.reward-card-burst {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.reward-card-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4);
    position: relative;
    z-index: 1;
}

.reward-card-icon {
    width: 36px;
    height: 36px;
    color: #fff;
}

.reward-card-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.reward-card-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.reward-card-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--green-color);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* Toasts redesignés en cartes */
.toast-container {
    top: 20px;
    max-width: 420px;
    gap: 10px;
}

.toast {
    padding: 0;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 64px;
}

.toast-accent-bar {
    width: 4px;
    flex-shrink: 0;
}

.toast-success .toast-accent-bar { background: var(--green-color); }
.toast-error .toast-accent-bar { background: var(--rose-color); }
.toast-info .toast-accent-bar { background: var(--accent-color); }

.toast-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon-wrap { background: rgba(16, 185, 129, 0.15); color: var(--green-color); }
.toast-error .toast-icon-wrap { background: rgba(244, 63, 94, 0.15); color: var(--rose-color); }
.toast-info .toast-icon-wrap { background: rgba(0, 119, 255, 0.15); color: var(--accent-color); }

.toast-content { flex: 1; min-width: 0; }

.toast-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
    opacity: 0.7;
}

.toast-message {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 10px;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
    align-self: center;
}
.toast-close:hover { opacity: 1; }

/* ========================================== */
/* PAGE COFFRES AUX TRÉSORS                  */
/* ========================================== */

.chests-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background 0.2s, color 0.2s;
}

.chests-back-btn:hover {
    background: var(--accent-glow);
    color: var(--accent-color);
}

.chests-page-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1040 0%, #0d2847 50%, #1a3a2a 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 28px 20px;
    text-align: center;
}

.chests-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.chests-hero-content { position: relative; z-index: 1; }

.chests-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--yellow-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.chests-hero-title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(234, 179, 8, 0.3);
}

.chests-hero-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 20px;
}

.chests-hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.chests-counter-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 119, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.chests-counter-text { text-align: left; }

.chests-counter-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chests-counter-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--yellow-color);
}

.chests-page-body { padding: 0 2px; }

.chests-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .chests-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.chest-card-page {
    padding: 24px 16px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chest-card-page.featured {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.chest-card-page:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.chest-tier-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chest-tier-badge.bronze { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.3); }
.chest-tier-badge.silver { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.chest-tier-badge.gold { background: rgba(234, 179, 8, 0.2); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }

.chest-icon-page {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
}

.chest-img-page {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

.chest-img-page.bronze { filter: sepia(0.7) saturate(1.8) hue-rotate(-15deg) drop-shadow(0 4px 12px rgba(205, 127, 50, 0.4)); }
.chest-img-page.silver { filter: grayscale(0.5) brightness(1.15) drop-shadow(0 4px 12px rgba(148, 163, 184, 0.4)); }
.chest-img-page.gold { filter: sepia(0.2) saturate(2.2) hue-rotate(5deg) brightness(1.1) drop-shadow(0 4px 16px rgba(234, 179, 8, 0.5)); }

.chest-img-page.opened {
    transform: scale(1.15) rotate(3deg);
    filter: sepia(0.1) saturate(2.5) hue-rotate(10deg) brightness(1.2) drop-shadow(0 6px 20px rgba(234, 179, 8, 0.6));
}

.chest-glow-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.chest-card.unlocked .chest-glow-ring { opacity: 1; }
.chest-glow-ring.bronze { box-shadow: 0 0 20px rgba(205, 127, 50, 0.5); }
.chest-glow-ring.silver { box-shadow: 0 0 20px rgba(148, 163, 184, 0.5); }
.chest-glow-ring.gold { box-shadow: 0 0 24px rgba(234, 179, 8, 0.6); }

.chest-card.unlocked .chest-img-page {
    animation: chest-bounce 1.5s ease-in-out infinite;
}

@keyframes chest-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}

.chest-progress-bar-wrap { width: 100%; margin-top: 8px; }

.chest-progress-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chest-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.chest-progress-fill.bronze { background: linear-gradient(90deg, #cd7f32, #e8a862); }
.chest-progress-fill.silver { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.chest-progress-fill.gold { background: linear-gradient(90deg, #eab308, #fbbf24); }

.chest-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chests-how-it-works {
    padding: 16px;
    border-radius: 12px;
}

.chests-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chests-rules-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.chests-rules-list li i, .chests-rules-list li svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Admin : onglets source image */
.image-source-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.image-source-tab {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.image-source-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

#adm-prod-image-file-wrap input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* INSTRUCTIONS DE DEPOT (STYLE SCREENSHOT) */
.dep-inst-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dep-inst-timer-box {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.dep-inst-item-row {
    display: flex;
    align-items: center;
    background: rgba(8, 22, 16, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dep-inst-logo-wrap {
    width: 76px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f97316; /* default orange */
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
    padding: 2px 4px;
}

.dep-inst-logo-wrap.code-logo {
    background: #1e3a8a; /* deep blue */
}

.dep-inst-logo-wrap.fcfa-logo {
    background: #0d9488; /* teal */
}

.dep-inst-value {
    flex: 1;
    font-size: 18px;
    color: #f0fdf4;
    font-weight: 800;
    word-break: break-all;
    font-family: monospace, var(--font-body);
}

.dep-inst-copy-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
}

.dep-inst-copy-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.dep-inst-ussd-panel button {
    border-radius: 12px;
    font-weight: 800;
    font-size: 14.5px;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    background: var(--btn-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: all 0.2s;
}
.dep-inst-ussd-panel button:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   CARTE MASTERCARD PROFIL - ÉDITION LUXE AURUM PREMIER
   ========================================================================== */
.mastercard-profile-card {
    position: relative;
    width: 100%;
    border-radius: 22px;
    background: linear-gradient(140deg, #091a12 0%, #0d271c 40%, #06140e 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(251, 191, 36, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    padding: 22px 20px 18px 20px;
    overflow: hidden;
    color: #f0fdf4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mastercard-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.85), 0 0 32px rgba(251, 191, 36, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Filigranes & Reflets */
.mc-watermark-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 2px, transparent 2px, transparent 8px);
    z-index: 1;
}

.mc-glow-sphere {
    position: absolute;
    width: 140px;
    height: 140px;
    top: -40px;
    right: -40px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
}

/* Header de la carte */
.mc-header-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mc-chip-contactless {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Puce EMV réaliste */
.mc-emv-chip {
    width: 42px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #fce07a 0%, #d4a017 50%, #b8860b 100%);
    border: 1px solid #7a5805;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.mc-chip-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.35);
}

.mc-chip-line.l1 {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.mc-chip-line.l2 {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}

.mc-chip-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ebd068 0%, #c49413 100%);
    transform: translate(-50%, -50%);
}

/* Icône Sans Contact */
.mc-contactless-icon {
    width: 22px;
    height: 22px;
    stroke: #fbbf24;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
}

.mc-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-brand-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fbbf24;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.mc-vip-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* Corps de la carte */
.mc-body-section {
    position: relative;
    z-index: 2;
    margin-bottom: 14px;
}

.mc-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.mc-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(251, 191, 36, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.mc-user-avatar svg, .mc-user-avatar i {
    width: 24px;
    height: 24px;
}

.mc-user-info {
    display: flex;
    flex-direction: column;
}

.mc-user-name {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.25;
}

.mc-user-meta {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.mc-dot {
    color: #64748b;
    font-size: 14px;
}

/* Affichage principal des soldes */
.mc-balance-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mc-bal-item {
    display: flex;
    flex-direction: column;
}

.mc-bal-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.mc-bal-amount {
    font-size: 24px;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    line-height: 1.15;
}

.mc-rev-amount {
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
    line-height: 1.15;
}

/* Grille des 4 sous-comptes */
.mc-sub-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 6px;
    margin-bottom: 14px;
}

.mc-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2px 4px;
}

.mc-sub-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 3px;
    white-space: nowrap;
}

.mc-sub-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #f0fdf4;
    white-space: nowrap;
}

.text-green {
    color: #10b981 !important;
}

/* Footer de la carte avec Logo Mastercard Officiel */
.mc-footer-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.mc-card-type-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(251, 191, 36, 0.85);
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.mc-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mc-logo-circles {
    position: relative;
    width: 44px;
    height: 26px;
    display: flex;
    align-items: center;
}

.mc-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    top: 0;
}

.mc-circle-left {
    left: 0;
    background: #eb001b; /* Rouge Mastercard iconique */
    box-shadow: 0 2px 6px rgba(235, 0, 27, 0.4);
}

.mc-circle-right {
    right: 0;
    background: #f79e1b; /* Orange/Jaune Mastercard iconique */
    opacity: 0.95;
    mix-blend-mode: screen;
    box-shadow: 0 2px 6px rgba(247, 158, 27, 0.4);
}

.mc-logo-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-transform: lowercase;
    opacity: 0.9;
}

