/* ==========================================================================
   Design System & Premium CSS (Light Theme) - Neobank Pretisys
   ========================================================================== */

/* 1. Variables & Root Configuration */
:root {
    --bg-main: #f8fafc; /* Gris ardoise très clair */
    --bg-card: #ffffff; /* Blanc pur pour les cartes */
    --bg-card-hover: #f1f5f9; /* Gris clair au survol */
    --sidebar-bg: #ffffff; /* Menu blanc épuré */
    --border-color: #e2e8f0; /* Bordures douces */
    --border-glow: rgba(2, 132, 199, 0.15); /* Halo bleu ciel */
    
    /* Palette Principale */
    --primary: #0284c7; /* Bleu bancaire premium */
    --primary-hover: #0369a1;
    --primary-glow: rgba(2, 132, 199, 0.25);
    --secondary: #7c3aed; /* Violet noble */
    --secondary-glow: rgba(124, 58, 237, 0.2);
    
    /* Statuts */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #d97706;
    --warning-glow: rgba(217, 119, 6, 0.15);
    --danger: #dc2626;
    --danger-glow: rgba(220, 38, 38, 0.15);
    --info: #2563eb;
    
    /* Typographie, Ombres & Transitions */
    --text-main: #475569; /* Slate 600 pour le texte général */
    --text-muted: #64748b; /* Slate 500 pour les légendes */
    --text-dark: #0f172a; /* Slate 900 pour les titres */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

/* 2. Resets Globaux & Défilement */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 5% 5%, rgba(2, 132, 199, 0.03) 0%, transparent 35%),
        radial-gradient(circle at 95% 95%, rgba(124, 58, 237, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

/* 3. Structure de Navigation (Header & Landing) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Héro Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    gap: 50px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 54px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    filter: blur(80px);
    position: absolute;
    z-index: -1;
}

/* CARTE PREMIUM : Doit expressément rester sombre et luxueuse */
.hero-card-mockup {
    background: #0b0f19; /* Arrière-plan sombre de luxe */
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 380px;
    height: 240px;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotate3d(1, 1, 1, 10deg);
    animation: float 6s ease-in-out infinite;
}

.hero-card-mockup * {
    color: #ffffff !important; /* Force la couleur blanche des textes de la carte */
}

/* 4. Boutons & Formulaires */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-family);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0274ae 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: #cbd5e1;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--danger-glow);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #ffffff;
}

/* 5. Cartes, Grilles & Sections */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 5%;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Témoignages & Sections d'avis */
.testimonial-stars {
    color: #fbbf24; /* Couleur or pour les étoiles */
    font-size: 16px;
    margin-bottom: 12px;
}

/* 6. Pages d'Authentification (Login/Register Card) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
}

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

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-muted);
}

/* Alertes d'état */
.alert {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* 7. Interface Dashboard Client (Structure double colonne) */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.02);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
}
.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.15);
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary);
    background: rgba(2, 132, 199, 0.06);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
}

.main-content {
    padding: 40px 5%;
    overflow-y: auto;
}

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

/* 8. Suivi dynamique (Timeline) */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
    background: #ffffff;
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.timeline-progress-bar {
    position: absolute;
    top: 50%;
    left: 45px;
    right: 45px;
    height: 3px;
    background: #e2e8f0;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
}

.step-number-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    margin-bottom: 10px;
    font-size: 15px;
}

.timeline-step.completed .step-number-bubble {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
    box-shadow: 0 0 15px var(--success-glow);
}

.timeline-step.active .step-number-bubble {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.timeline-step.active .step-label {
    color: var(--primary);
}
.timeline-step.completed .step-label {
    color: var(--success);
}

/* 9. Composants Dashboard widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.stat-info h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info p {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 10. Messagerie / Chat UI */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-rows: 60px 400px 80px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chat-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-body {
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fafafa;
}

.chat-bubble {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    line-height: 1.5;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.chat-bubble-received {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.chat-bubble-sent {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(3, 105, 161, 0.08) 100%);
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--text-dark);
    border-bottom-right-radius: 2px;
}

.chat-timestamp {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.chat-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
    background: #ffffff;
}

.chat-form {
    display: flex;
    gap: 15px;
}

/* 11. Tableaux */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: #f8fafc;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
    color: var(--text-main);
}

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

.custom-table tr:hover td {
    background: #f8fafc;
}

/* Badges statuts */
.badge {
    display: inline-flex;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}
.badge-pending {
    background: #fef3c7;
    color: #92400e;
}
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* 12. Alertes / Notifications */
.notification-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.notification-item:hover {
    border-color: rgba(2, 132, 199, 0.3);
}

/* 13. Responsive & Grids Configuration */

/* Grilles réactives */
.grid-responsive-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.grid-responsive-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-responsive-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 35px;
}
.grid-responsive-1-1-5 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 35px;
}

/* Bouton hamburger navigation publique */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}
.nav-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Bouton menu latéral du Dashboard */
.sidebar-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}
.sidebar-toggle:hover {
    background: var(--bg-card-hover);
}

/* Correction boutons navigation publique */
.nav-links a.btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: var(--radius-md) !important;
}
.nav-links a.btn-primary {
    color: #ffffff !important;
}
.nav-links a.btn-primary:hover {
    color: #ffffff !important;
}
.nav-links a.btn-secondary {
    color: var(--text-dark) !important;
}
.nav-links a.btn-secondary:hover {
    color: var(--text-dark) !important;
}

/* Défilement horizontal des tableaux */
.custom-table {
    min-width: 650px;
}

@media (max-width: 991px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.05);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: inline-flex;
    }
    
    .hero-section {
        flex-direction: column;
        padding-top: 50px;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content div {
        justify-content: center;
    }
    
    .hero-card-mockup {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        transform: none !important;
        animation: float 6s ease-in-out infinite;
    }
    
    /* Menu mobile public */
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 40px 30px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05);
        z-index: 105;
        align-items: stretch;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        font-size: 16px;
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-links a.btn {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Animation burger */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    /* Grilles réactives sur mobile */
    .grid-responsive-2,
    .grid-responsive-3,
    .grid-responsive-1-2,
    .grid-responsive-1-1-5 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
    }
    
    .dashboard-header div {
        width: 100%;
    }
    
    /* Timeline défilement mobile */
    .timeline-wrapper {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 25px;
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    .timeline-progress-bar {
        display: none;
    }
    .timeline-step {
        flex-shrink: 0;
    }
}

/* Animations */
@keyframes float {
    0% { transform: rotate3d(1, 1, 1, 10deg) translateY(0px); }
    50% { transform: rotate3d(1, 1, 1, 8deg) translateY(-15px); }
    100% { transform: rotate3d(1, 1, 1, 10deg) translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Password Toggle CSS */
.password-field-container {
    position: relative;
    display: block;
    width: 100%;
}

.password-field-container .form-control {
    padding-right: 45px !important;
    box-sizing: border-box;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: none !important;
    outline: none !important;
    height: auto;
    width: auto;
}

.password-toggle-btn:focus,
.password-toggle-btn:active,
.password-toggle-btn:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    color: var(--primary);
}

.password-toggle-btn svg {
    display: block;
    pointer-events: none;
}

/* Cookie Consent Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100% - 48px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.cookie-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.cookie-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0 0 20px 0;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    flex: 1 1 auto;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    outline: none;
}

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

.cookie-btn-accept:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 12px var(--primary-glow);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cookie-btn-configure {
    background: transparent;
    color: #94a3b8;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-btn-configure:hover {
    color: #cbd5e1;
}

/* Preferences panel inside banner */
.cookie-preferences {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-preferences.open {
    max-height: 400px;
    margin-top: 15px;
    padding-top: 15px;
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cookie-pref-item:last-child {
    border-bottom: none;
    margin-bottom: 15px;
}

.cookie-pref-info {
    padding-right: 15px;
}

.cookie-pref-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.cookie-pref-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Modern Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 20px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s;
    border-radius: 50%;
}

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

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--primary);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(16px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 15px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 20px;
    }
}

/* Custom styles for Balance, Deposit/Withdraw, and Countdown Timer */
.balance-card-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 45px;
}

.premium-card-balance {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.75) 0%, rgba(15, 10, 30, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-card-balance::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.balance-value-display {
    font-size: 38px;
    font-weight: 700;
    color: #34d399;
    letter-spacing: -0.5px;
    margin-top: 10px;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.1);
}

.action-buttons-container {
    display: flex;
    gap: 15px;
}

.btn-deposit-glow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}
.btn-deposit-glow:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-withdraw-glow {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2) !important;
}
.btn-withdraw-glow:hover {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4) !important;
}

.countdown-timer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 45px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.countdown-timer-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.digital-clock-display {
    font-size: 42px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    letter-spacing: 2px;
    margin: 25px auto;
    background: rgba(2, 132, 199, 0.04);
    padding: 15px 35px;
    border-radius: var(--radius-md);
    display: inline-block;
    border: 1px solid var(--primary-glow);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
}

@media (max-width: 576px) {
    .digital-clock-display {
        font-size: 28px !important;
        padding: 10px 20px !important;
        letter-spacing: 1px !important;
    }
}


@media (max-width: 768px) {
    .balance-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    .premium-card-balance {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    .action-buttons-container {
        width: 100%;
    }
    .action-buttons-container .btn {
        flex: 1;
        text-align: center;
    }
    .digital-clock-display {
        font-size: 32px;
        padding: 10px 20px;
    }
}



