/* ==========================================================================
   BOULANGERIE DE BABI — LUXURY CHECKOUT & PAYMENT DESIGN SYSTEM
   ========================================================================== */

:root {
    --babi-amber: #ea580c;
    --babi-amber-light: #fb923c;
    --babi-amber-dark: #9a3412;
    --babi-gold: #f59e0b;
    --babi-gold-bg: #fffbeb;
    --babi-espresso: #2b160c;
    --babi-espresso-dark: #1a0f08;
    --babi-wave: #1EA5FC;
    --babi-wave-dark: #0284c7;
    --babi-wave-light: #e0f2fe;
    --babi-success: #16a34a;
    --babi-success-bg: #f0fdf4;
    --babi-card-shadow: 0 10px 25px -5px rgba(43, 22, 12, 0.06), 0 8px 10px -6px rgba(43, 22, 12, 0.04);
    --babi-card-hover: 0 20px 30px -10px rgba(234, 88, 12, 0.15);
}

body {
    background-color: #faf7f2 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
   STEPPER PROGRESS BAR
   ------------------------------------------------------------- */
.babi-stepper-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.babi-step {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.babi-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
}

.babi-step.active .babi-step-circle {
    background: linear-gradient(135deg, var(--babi-amber), var(--babi-gold));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    transform: scale(1.05);
}

.babi-step.active .babi-step-label {
    color: var(--babi-espresso);
    font-weight: 800;
}

.babi-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.babi-step-divider {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 12px;
    position: relative;
    overflow: hidden;
}

.babi-step-divider.filled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--babi-amber), var(--babi-gold));
}

/* -------------------------------------------------------------
   CHECKOUT CARD STYLES
   ------------------------------------------------------------- */
.babi-checkout-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--babi-card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.babi-checkout-card:hover {
    border-color: rgba(251, 146, 60, 0.4);
}

.babi-card-badge-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--babi-amber), var(--babi-gold));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.babi-card-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--babi-espresso);
    margin: 0;
}

/* -------------------------------------------------------------
   PAYMENT METHOD CARDS
   ------------------------------------------------------------- */
.babi-pay-option {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    overflow: hidden;
}

.babi-pay-option:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 165, 252, 0.08);
}

.babi-pay-option.selected {
    border-color: var(--babi-wave) !important;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%) !important;
    box-shadow: 0 10px 25px rgba(30, 165, 252, 0.15) !important;
}

.babi-pay-option.cash-selected {
    border-color: var(--babi-amber) !important;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%) !important;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.12) !important;
}

.babi-pay-radio {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--babi-wave);
}

.babi-pay-badge-wave {
    background: linear-gradient(135deg, #1EA5FC, #0284c7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.babi-wave-logo-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 165, 252, 0.15);
    border: 1px solid #e0f2fe;
}

/* -------------------------------------------------------------
   ORDER SUMMARY SIDEBAR
   ------------------------------------------------------------- */
.babi-summary-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--babi-card-shadow);
}

.babi-btn-checkout {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    padding: 16px 24px !important;
    border-radius: 9999px !important;
    font-size: 1.05rem !important;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35) !important;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

.babi-btn-checkout:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.45) !important;
    background: linear-gradient(135deg, #c2410c 0%, #d97706 100%) !important;
}

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

/* -------------------------------------------------------------
   WAVE MODAL EXPERIENCE & RADAR ANIMATION
   ------------------------------------------------------------- */
.babi-wave-modal-header {
    background: linear-gradient(135deg, #1EA5FC 0%, #0369a1 100%);
    padding: 20px 24px;
    color: white;
    border: none;
}

.babi-qr-frame {
    position: relative;
    padding: 12px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: inline-block;
    border: 2px solid #e0f2fe;
}

.babi-qr-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: #1EA5FC;
    border-style: solid;
}
.babi-qr-tl { top: 6px; left: 6px; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.babi-qr-tr { top: 6px; right: 6px; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.babi-qr-bl { bottom: 6px; left: 6px; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.babi-qr-br { bottom: 6px; right: 6px; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

.babi-pulse-ring {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1EA5FC;
    box-shadow: 0 0 0 0 rgba(30, 165, 252, 0.7);
    animation: babiPulse 1.8s infinite;
}

@keyframes babiPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(30, 165, 252, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(30, 165, 252, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(30, 165, 252, 0);
    }
}

/* -------------------------------------------------------------
   SUCCESS WITHDRAWAL PIN CARD
   ------------------------------------------------------------- */
.babi-pin-pass {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #f59e0b;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.babi-pin-digits {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #b45309;
    letter-spacing: 12px;
    text-shadow: 0 2px 4px rgba(180, 83, 9, 0.15);
    margin: 8px 0;
}
