/* =========================================
   Secure Transfert — Design System v2 (Revolut-inspired)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-base:      #f7f9ff;
    --bg-surface:   #ffffff;
    --bg-elevated:  #f4f7ff;
    --bg-overlay:   rgba(239,246,255,0.9);

    --border:       rgba(37,99,235,0.18);
    --border-hover: rgba(37,99,235,0.28);

    --blue:         #2563eb;
    --blue-light:   #0ea5e9;
    --blue-glow:    rgba(37,99,235,0.18);

    --accent:       #38bdf8;
    --accent-dim:   rgba(56,189,248,0.12);

    --green:        #16a34a;
    --green-dim:    rgba(16,163,127,0.12);
    --amber:        #f59e0b;
    --amber-dim:   rgba(245,158,11,0.12);
    --red:          #ef4444;
    --red-dim:      rgba(239,68,68,0.12);

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-tertiary:  #64748b;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-custom { color: var(--text-secondary) !important; }
.text-blue { color: var(--blue-light) !important; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; }

/* ---- Buttons ---- */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: var(--transition);
}
.btn-primary-custom:hover {
    background: var(--blue-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--blue-glow);
}
.btn-primary-custom:hover::before { opacity: 1; }
.btn-primary-custom:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.4rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Legacy aliases for compatibility */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #fff !important;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-gold:hover {
    background: var(--blue-light);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--blue-glow);
}
.btn-gold:active { transform: translateY(0); box-shadow: none; }

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    color: var(--text-secondary) !important;
    background: transparent;
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.4rem;
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--bg-elevated);
    color: var(--text-primary) !important;
    border-color: var(--border-hover);
}

/* ---- Pill badge ---- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.3rem 0.875rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}
.pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue-light);
    flex-shrink: 0;
}

/* ---- Navbar ---- */
#mainNav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(37,99,235,0.12);
    padding: 0.875rem 0;
    transition: var(--transition);
}
#mainNav .navbar-brand {
    color: var(--text-primary) !important;
}
#mainNav .nav-link {
    color: var(--text-secondary) !important;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--bg-surface);
}
#mainNav .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary) !important;
}
#mainNav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.875rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: -0.01em;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--bg-elevated);
}
#mainNav .navbar-toggler {
    border: none;
    background: rgba(37,99,235,0.12);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
#mainNav .navbar-toggler-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
#mainNav .navbar-collapse {
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.brand-dot { color: var(--blue-light); }

/* ---- Surface / Cards ---- */
.surface {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.surface-elevated {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.card-glass {
    background: rgba(17,19,24,0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
}

/* ---- Hero ---- */
.hero-section {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-copy { max-width: 560px; }
.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}
.hero-lead {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 38rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}
.hero-amount-card {
    display: inline-flex;
    align-items: flex-end;
    gap: 1rem;
    background: rgba(37,99,235,0.12);
    border: 1px solid rgba(37,99,235,0.22);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 30px 60px rgba(15,23,42,0.12);
}
.hero-amount-card .hero-amount {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-amount-card .hero-amount-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.trust-item i { color: var(--blue-light); font-size: 0.95rem; }
.step-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.step-row + .step-row { border-top: 1px solid var(--border); }
.step-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid rgba(37,99,235,0.25);
    color: var(--blue-light);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Grid texture overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ---- Feature icon ---- */
.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    height: 100%;
}
.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
    transform: translateY(-3px);
}

/* ---- Sections ---- */
.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-light);
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Form section ---- */
.form-section {
    min-height: 100vh;
    background: var(--bg-base);
    padding: 100px 0 60px;
    position: relative;
}
.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.form-card-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
}
.form-card-body { padding: 1.75rem; }
.form-card-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 1rem 1.75rem;
}

/* ---- Steps indicator ---- */
.steps-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}
.step-item.active:not(:last-child)::after,
.step-item.completed:not(:last-child)::after {
    background: var(--blue);
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.step-item.active .step-circle {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
}
.step-item.completed .step-circle {
    background: var(--bg-elevated);
    border-color: var(--blue);
    color: var(--blue-light);
}
.step-label {
    font-size: 0.7rem;
    margin-top: 0.4rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
}
.step-item.active .step-label { color: var(--blue-light); font-weight: 600; }
.step-item.completed .step-label { color: var(--text-secondary); }

/* ---- Form inputs ---- */
.form-control-custom,
.form-select-custom {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition) !important;
    font-size: 0.9rem !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}
.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
    background: var(--bg-overlay) !important;
    outline: none !important;
}
.form-control-custom::placeholder { color: var(--text-tertiary) !important; }
.form-control-custom option,
.form-select-custom option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-label-custom {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.field-wrapper { position: relative; }
.field-wrapper .error-msg {
    color: var(--red);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    display: none;
}
.fixed-value-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.fixed-value-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.fixed-value-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}
.field-wrapper.field-error .error-msg { display: block; }
.field-error .form-control-custom {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.form-step { display: none; }
.form-step.active { display: block; animation: slideUp 0.3s ease both; }

.invalid-feedback-custom {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 0.3rem;
    display: none;
}
.is-invalid-custom .invalid-feedback-custom { display: block; }
.is-invalid-custom .form-control-custom,
.is-invalid-custom .form-select-custom {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

/* ---- Summary card ---- */
.summary-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.summary-item:last-child { border-bottom: none; }
.summary-key {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: right;
    max-width: 55%;
}
.summary-amount {
    color: var(--blue-light);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---- Confirmation ---- */
.confirmation-section {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}
.confirmation-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.75rem;
}
.status-icon.pending {
    background: var(--amber-dim);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--amber);
}
.status-icon.success {
    background: var(--green-dim);
    border: 1px solid rgba(16,185,129,0.3);
    color: var(--green);
}

.reference-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-light);
    letter-spacing: 0.12em;
    margin: 1.25rem 0;
    display: inline-block;
}

/* ---- Status badges ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.status-pending  { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); }
.status-approved { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(16,185,129,0.25); }
.status-rejected { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.25); }

/* ---- Timeline ---- */
.timeline-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}
.timeline-step + .timeline-step { border-top: 1px solid var(--border); }
.timeline-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.timeline-dot.done    { background: var(--green-dim); border: 1px solid rgba(16,185,129,0.3); color: var(--green); }
.timeline-dot.current { background: var(--amber-dim); border: 1px solid rgba(245,158,11,0.3); color: var(--amber); }
.timeline-dot.pending { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-tertiary); }

/* ---- Suivi ---- */
.suivi-section {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
}
.suivi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Loading Animation ---- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.loading-spinner .spinner-border {
    border-width: 0.3em;
}

/* Animation pour révéler le contenu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Admin ---- */
.admin-body {
    background: var(--bg-base);
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.admin-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.admin-sidebar-nav { padding: 1rem 0.75rem; flex: 1; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    margin-bottom: 0.125rem;
    text-decoration: none;
}
.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.admin-nav-link.active { color: var(--blue-light); }

.admin-main {
    margin-left: 240px;
    padding: 2rem;
    color: var(--text-primary);
    min-height: 100vh;
}
.admin-topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 240px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}
.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-top: 0.5rem;
}
.stat-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Tables */
.table-dark-custom {
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table-dark-custom thead th {
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table-dark-custom tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.table-dark-custom tbody tr:last-child { border-bottom: none; }
.table-dark-custom tbody tr:hover { background: var(--bg-elevated); }
.table-dark-custom tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border: none;
    font-size: 0.875rem;
}

/* Admin action buttons */
.btn-approve {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--green-dim); color: var(--green);
    border: 1px solid rgba(16,185,129,0.25);
    font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem; transition: var(--transition); cursor: pointer;
}
.btn-approve:hover { background: rgba(16,185,129,0.2); }
.btn-reject {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--red-dim); color: var(--red);
    border: 1px solid rgba(239,68,68,0.25);
    font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem; transition: var(--transition); cursor: pointer;
}
.btn-reject:hover { background: rgba(239,68,68,0.2); }

/* Login */
.login-page {
    min-height: 100vh;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 65%);
    pointer-events: none;
}
.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* ---- Info/Alert boxes ---- */
.info-box {
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: #93c5fd;
    font-size: 0.85rem;
}
.error-box {
    background: var(--red-dim);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: #fca5a5;
    font-size: 0.85rem;
}
.success-box {
    background: var(--green-dim);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: #6ee7b7;
    font-size: 0.85rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes shimmer {
    from { background-position: -200% center; }
    to   { background-position: 200% center; }
}

.fade-in   { animation: fadeIn  0.5s ease both; }
.slide-up  { animation: slideUp 0.5s ease both; }
.spin-slow { animation: spinSlow 3s linear infinite; }

.fade-in-1 { animation-delay: 0.08s; }
.fade-in-2 { animation-delay: 0.16s; }
.fade-in-3 { animation-delay: 0.24s; }
.fade-in-4 { animation-delay: 0.32s; }

/* ---- Number card (hero) ---- */
.number-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: center;
    flex: 1;
}
.number-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}
.number-card-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ---- Divider ---- */
.divider { border-color: var(--border) !important; }

/* Legacy */
.hero-badge { display: none; }
.gold-divider { display: none; }
.text-gold { color: var(--blue-light) !important; }

/* ---- Confetti bar ---- */
.confetti-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--accent), var(--blue));
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .admin-sidebar {
        display: flex;
        position: static;
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
    }
    .admin-sidebar-brand {
        padding: 1rem 1rem;
    }
    .admin-sidebar-nav {
        padding: 0.5rem 1rem 1rem;
    }
    .admin-main, .admin-topbar { margin-left: 0; }
    .admin-main { padding: 1.5rem 1rem; }
    .admin-topbar { padding: 0.75rem 1rem; }
    .table-dark-custom tbody td .d-flex { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) {
    .hero-section { padding-top: 96px; }
    .form-card-header { padding: 1.25rem 1.5rem; }
    .confirmation-card { padding: 2rem 1.5rem; }
    .login-card { margin: 1rem; }
    .number-card-value { font-size: 1.3rem; }
}

/* Misc compat */
.alert-custom.info  { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2); color: #93c5fd; border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.alert-custom.error { background: var(--red-dim); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.suivi-result-card  { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
