/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
    --bg-primary: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.85);
    --border-card: rgba(255, 255, 255, 0.08);
    --accent: #4361ee;
    --gold: #f39c12;
    --text-main: #ffffff;
    --text-secondary: #a0aec0;
}

/* --- RESET & BACKGROUND LUXUEUX AVEC EFFET FLOU --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Effets d'arrière-plan lumineux, subtils et flous (Style Fintech / VIP) */
body::before, body::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Orbe lumineux bleu en haut à gauche */
body::before {
    top: -100px;
    left: -100px;
    background: var(--accent);
}

/* Orbe lumineux doré/luxe en bas à droite (rappel des diamants/VIP) */
body::after {
    bottom: -100px;
    right: -100px;
    background: var(--gold);
}

/* --- STRUCTURE DES CONTENEURS & CARTES --- */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Effet de lueur subtil au survol des cartes */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

/* --- HEADER --- */
.header {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-card);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-brand {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand h1 {
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.header-brand p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- FORMULAIRES & INPUTS --- */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 6px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-deposit {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.45);
}

.btn-withdraw {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- SYSTÈME DE NOTIFICATIONS TOAST --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 350px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOutToast 0.3s ease 2.7s forwards;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-success {
    background: rgba(46, 204, 113, 0.85);
    border-color: rgba(46, 204, 113, 0.4);
}

.toast-error {
    background: rgba(231, 76, 60, 0.85);
    border-color: rgba(231, 76, 60, 0.4);
}

.toast-info {
    background: rgba(52, 152, 219, 0.85);
    border-color: rgba(52, 152, 219, 0.4);
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutToast {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20%);
        visibility: hidden;
    }
}