@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #05070f;
    --bg-secondary: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(16, 185, 129, 0.3);
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    --accent-gold: #fbbf24;
    --accent-gold-hover: #f59e0b;
    --accent-cyan: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --glass-blur: blur(16px);
    --shadow-neon: 0 10px 30px rgba(16, 185, 129, 0.1);
    --shadow-gold: 0 10px 30px rgba(251, 191, 36, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-primary);
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1200 800'%3E%3Cpath d='M 0,100 L 1200,100 M 0,200 L 1200,200 M 0,300 L 1200,300 M 0,400 L 1200,400 M 0,500 L 1200,500 M 0,600 L 1200,600 M 0,700 L 1200,700' stroke='rgba(255,255,255,0.015)' stroke-width='1'/%3E%3Cpath d='M 150,0 L 150,800 M 300,0 L 300,800 M 450,0 L 450,800 M 600,0 L 600,800 M 750,0 L 750,800 M 900,0 L 900,800 M 1050,0 L 1050,800' stroke='rgba(255,255,255,0.015)' stroke-width='1'/%3E%3Cline x1='100' y1='580' x2='100' y2='640' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='92' y='590' width='16' height='40' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='180' y1='530' x2='180' y2='610' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='172' y='545' width='16' height='50' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='260' y1='550' x2='260' y2='600' stroke='rgba(239, 68, 68, 0.12)' stroke-width='2'/%3E%3Crect x='252' y='560' width='16' height='30' fill='rgba(239, 68, 68, 0.08)' stroke='rgba(239, 68, 68, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='340' y1='450' x2='340' y2='540' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='332' y='465' width='16' height='60' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='420' y1='480' x2='420' y2='530' stroke='rgba(239, 68, 68, 0.12)' stroke-width='2'/%3E%3Crect x='412' y='490' width='16' height='30' fill='rgba(239, 68, 68, 0.08)' stroke='rgba(239, 68, 68, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='500' y1='360' x2='500' y2='470' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='492' y='380' width='16' height='70' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='580' y1='300' x2='580' y2='390' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='572' y='320' width='16' height='60' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='660' y1='320' x2='660' y2='380' stroke='rgba(239, 68, 68, 0.12)' stroke-width='2'/%3E%3Crect x='652' y='330' width='16' height='40' fill='rgba(239, 68, 68, 0.08)' stroke='rgba(239, 68, 68, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='740' y1='220' x2='740' y2='310' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='732' y='235' width='16' height='65' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='820' y1='150' x2='820' y2='250' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='812' y='170' width='16' height='70' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='900' y1='180' x2='900' y2='240' stroke='rgba(239, 68, 68, 0.12)' stroke-width='2'/%3E%3Crect x='892' y='190' width='16' height='40' fill='rgba(239, 68, 68, 0.08)' stroke='rgba(239, 68, 68, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cline x1='980' y1='100' x2='980' y2='190' stroke='rgba(16, 185, 129, 0.12)' stroke-width='2'/%3E%3Crect x='972' y='115' width='16' height='65' fill='rgba(16, 185, 129, 0.08)' stroke='rgba(16, 185, 129, 0.2)' stroke-width='1.5' rx='2'/%3E%3Cpath d='M 100,610 L 180,570 L 260,575 L 340,495 L 420,505 L 500,415 L 580,350 L 660,350 L 740,265 L 820,205 L 900,210 L 980,145 L 1060,95 L 1140,55' fill='none' stroke='rgba(16, 185, 129, 0.12)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='340' cy='495' r='4' fill='rgba(16, 185, 129, 0.25)'/%3E%3Ccircle cx='580' cy='350' r='4' fill='rgba(16, 185, 129, 0.25)'/%3E%3Ccircle cx='820' cy='205' r='4' fill='rgba(16, 185, 129, 0.25)'/%3E%3Ccircle cx='980' cy='145' r='4' fill='rgba(16, 185, 129, 0.25)'/%3E%3Ccircle cx='1140' cy='55' r='5' fill='rgba(16, 185, 129, 0.35)'/%3E%3C/svg%3E"),
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* Glassmorphism Containers */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    padding: 24px;
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-neon);
}

.glass-card-gold:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: var(--shadow-gold);
}

/* Dynamic Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-coin {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, #fbbf24 0%, #f59e0b 80%, #d97706 100%);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6), inset 0 0 5px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin-coin 3s infinite linear;
    transform-style: preserve-3d;
}

.logo-coin i {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    animation: pulse-glow 1.5s infinite alternate;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-text-fast {
    color: #ffffff;
}

.logo-text-cash {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    animation: text-pulse 2s infinite alternate;
    margin-left: 2px;
}

@keyframes spin-coin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes pulse-glow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.4)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255,255,255,0.9)); }
}

@keyframes text-pulse {
    0% { opacity: 0.9; }
    100% { opacity: 1; filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.5)); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff; /* Fallback for older/unsupported browsers */
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    color: var(--accent-emerald); /* Fallback for older/unsupported browsers */
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    color: var(--accent-gold); /* Fallback for older/unsupported browsers */
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
    color: #cbd5e1; /* Fallback for older/unsupported browsers */
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-emerald-solid {
    color: var(--accent-emerald) !important;
}

.text-gold-solid {
    color: var(--accent-gold) !important;
}

.text-muted-custom {
    color: var(--text-secondary);
}

/* Navbar */
.navbar-custom {
    background: rgba(5, 7, 15, 0.85) !important;
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-custom .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 12px;
    transition: var(--transition-smooth);
    border-radius: 8px;
    padding: 8px 16px !important;
}

.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Custom Buttons */
.btn-emerald {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #0b0f19;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    color: #0b0f19;
}

.btn-silver {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    color: #0b0f19;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(203, 213, 225, 0.2);
}

.btn-silver:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(203, 213, 225, 0.4);
    color: #0b0f19;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 12px;
    padding: 12px 24px;
    transition: var(--transition-smooth);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: var(--text-secondary);
}

/* Input Fields */
.form-control-custom {
    background-color: #0b0f19 !important;
    background: #0b0f19 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    padding: 12px 16px !important;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background-color: #05070f !important;
    background: #05070f !important;
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
    color: var(--text-primary) !important;
    outline: none !important;
}

.form-control-custom::placeholder {
    color: var(--text-muted) !important;
}

/* Empecher le fond blanc de l'autofill du navigateur */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover, 
select:-webkit-autofill:focus, 
select:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover, 
textarea:-webkit-autofill:focus, 
textarea:-webkit-autofill:active,
input:autofill,
input:autofill:hover, 
input:autofill:focus, 
input:autofill:active,
select:autofill,
select:autofill:hover, 
select:autofill:focus, 
select:autofill:active,
textarea:autofill,
textarea:autofill:hover, 
textarea:autofill:focus, 
textarea:autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0b0f19 inset !important;
    box-shadow: 0 0 0 1000px #0b0f19 inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    color: #f8fafc !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Custom Payment Details Card container */
.payment-details-box {
    background-color: #0b0f19 !important;
    background: #0b0f19 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Style options in custom select dropdowns */
select.form-control-custom option {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
}

/* Custom Progress Gauge */
.progress-gauge-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.progress-gauge-bar {
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 12px var(--accent-emerald);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-glow-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Copy Link Card */
.copy-link-container {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    align-items: center;
}

.copy-link-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    flex-grow: 1;
    padding-left: 10px;
    font-size: 0.9rem;
    outline: none;
}

/* Tables styling */
.table-custom {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.01) !important;
}

.table-custom th {
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    background-color: transparent !important;
}

.table-custom td {
    border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle;
    color: var(--text-primary) !important;
    background-color: transparent !important;
}

/* Badges */
.badge-custom-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-custom-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-custom-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Recharge selection card */
.recharge-option-card {
    cursor: pointer;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.recharge-option-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-emerald);
    box-shadow: var(--shadow-neon);
}

.recharge-option-card.selected {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: var(--shadow-neon);
}

/* Payment Type Card */
.payment-type-card {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.payment-type-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Admin layout tweaks */
.admin-sidebar {
    border-right: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.85);
    min-height: calc(100vh - 73px);
}

.chart-container {
    position: relative;
    margin: auto;
    height: 250px;
    width: 100%;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(11, 15, 25, 0.98);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: var(--shadow-neon);
    }
    .navbar-nav {
        align-items: stretch !important;
    }
    .navbar-custom .nav-link {
        margin-left: 0 !important;
        margin-bottom: 8px;
        padding: 10px 16px !important;
        width: 100%;
        text-align: left;
    }
    .navbar-nav .btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.9rem;
    }
    .glass-card {
        padding: 16px;
    }
    h1 {
        font-size: 1.8rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .logo-coin {
        width: 28px;
        height: 28px;
    }
}

/* Optimisation mobile : Clics instantanés et suppression du délai de 300ms */
a, button, .btn, [role="button"], select, input, label, .recharge-option-card, .payment-type-card {
    touch-action: manipulation;
}

/* Testimonials and Interactive Filters */
.btn-glass.active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.testimonial-hover:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15) !important;
}

/* Boost Indicator Animations */
.boost-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    vertical-align: middle;
}

/* Bronze Boost Pulsing */
.boost-indicator.boost-bronze {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.8);
    animation: boost-pulse-bronze 2s infinite alternate;
}

@keyframes boost-pulse-bronze {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(205, 127, 50, 0.4)); }
    100% { transform: scale(1.2); filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.9)); }
}

/* Argent Boost Floating & Shimmer */
.boost-indicator.boost-argent {
    color: #cbd5e1;
    text-shadow: 0 0 8px rgba(203, 213, 225, 0.8);
    animation: boost-float-argent 1.5s infinite ease-in-out;
}

@keyframes boost-float-argent {
    0%, 100% { transform: translateY(0) scale(1.05); filter: drop-shadow(0 0 2px rgba(203, 213, 225, 0.3)); }
    50% { transform: translateY(-3px) scale(1.2); filter: drop-shadow(0 0 10px rgba(203, 213, 225, 0.8)); }
}

/* Golden Boost Rocket Shaking / Flame effect */
.boost-indicator.boost-or {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
    animation: boost-rocket-or 0.6s infinite ease-in-out;
}

@keyframes boost-rocket-or {
    0%, 100% { transform: translate(0, 0) scale(1.1); filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5)); }
    25% { transform: translate(-1px, -1px) scale(1.2); filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.9)); }
    75% { transform: translate(1px, -1px) scale(1.15); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7)); }
}

/* Boost Badge Styles (Rocket + Text + Animation) */
.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    vertical-align: middle;
    margin-left: 6px;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.boost-badge.boost-bronze {
    animation: boost-pulse-bronze 2s infinite alternate;
}

.boost-badge.boost-argent {
    animation: boost-float-argent 1.5s infinite ease-in-out;
}

.boost-badge.boost-or {
    animation: boost-rocket-or 0.6s infinite ease-in-out;
}

/* Footer Custom Styles & Hover Effects */
.hover-white {
    transition: color 0.2s ease;
}
.hover-white:hover {
    color: #ffffff !important;
}

.location-box {
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.location-box:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* ==========================================================================
   OPTIMISATIONS ET RENDU MOBILES DE LUXE
   ========================================================================== */

/* Bouton hamburger (Navbar Toggler) premium et lumineux */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 8px 10px;
    outline: none !important;
    box-shadow: none !important;
    transition: var(--transition-smooth);
}
.navbar-toggler:focus, .navbar-toggler:active {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Rénovation des entrées de formulaire sous iOS & Android (suppression des styles natifs) */
input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Feedback tactile instantané lors des taps (effet enfoncé) */
@media (hover: none) {
    .btn:active, 
    .recharge-option-card:active, 
    .payment-type-card:active,
    .dock-item:active,
    .location-box:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
    }
}

/* Barre de navigation mobile flottante (Bottom Dock) */
.mobile-bottom-dock {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.08);
    z-index: 1050; /* Doit être au-dessus du footer standard */
    padding: 10px 4px;
    transition: var(--transition-smooth);
}

.dock-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 4px 6px;
    border-radius: 12px;
    min-width: 52px;
}

.dock-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    transition: var(--transition-smooth);
}

.dock-item:hover {
    color: #ffffff;
}

.dock-item.active {
    color: var(--accent-emerald);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.dock-item.active i {
    transform: translateY(-2px);
    color: var(--accent-emerald);
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

/* Espacement automatique du contenu de page sur mobile pour éviter la superposition du dock */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 95px !important;
    }
    
    /* Espacement homogène des cartes empilées sur mobile */
    .row > [class^="col-"]:not(:last-child) {
        margin-bottom: 16px !important;
    }
    
    /* Fixer le débordement de tableaux */
    .table-responsive {
        border-radius: 12px;
        border: 1px solid var(--border-color);
        background: rgba(15, 23, 42, 0.2);
    }
    
    /* Ajustement des montants et boutons de recharge empilés */
    .recharge-option-card {
        margin-bottom: 12px;
    }
}

/* Masquer les labels textuels sur les écrans très étroits pour éviter les retours à la ligne */
@media (max-width: 399.98px) {
    .dock-item span {
        display: none;
    }
    .dock-item i {
        font-size: 1.45rem;
        margin-bottom: 0;
    }
    .mobile-bottom-dock {
        padding: 12px 2px;
    }
}

/* Custom Pagination styling matching the glass theme */
.pagination-custom .page-link {
    background: rgba(15, 23, 42, 0.45);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    margin: 0 2px;
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none;
}

.pagination-custom .page-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-emerald);
}

.pagination-custom .page-item.active .page-link {
    background: var(--accent-emerald) !important;
    border-color: var(--accent-emerald) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.25);
    color: var(--text-muted);
    border-color: var(--border-color);
    pointer-events: none;
}

.text-gradient-purple {
    color: #a855f7; /* Fallback */
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Toast Notifications custom styling matching the premium dark theme */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.toast-danger {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}

.toast-content {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}