/* ==========================================================
 * Sahhelha — New Auth Styling
 * تحديث صفحة التسجيل/تسجيل الدخول بالشكل الجديد
 * ========================================================== */

/* ============================================
   STEPPER UPGRADE — Premium look with SVG icons
   ============================================ */
.vendor-stepper {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 0 24px !important;
    padding: 16px 8px !important;
    position: relative;
}

.stepper-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

.stepper-num {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, .05) !important;
    border: 2px solid rgba(255, 255, 255, .15) !important;
    color: var(--mu) !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    position: relative;
    transition: all .4s cubic-bezier(.4, 0, .2, 1) !important;
    margin: 0 !important;
}

.stepper-step.active .stepper-num {
    background: linear-gradient(135deg, #1ABCB0, #0F6E56) !important;
    border-color: #1ABCB0 !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(26, 188, 176, .4) !important;
    transform: scale(1.1);
}

.stepper-step.active .stepper-num::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(26, 188, 176, .4);
    animation: stepperPulse 2s ease-out infinite;
}

@keyframes stepperPulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.stepper-step.done .stepper-num {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    border-color: #10B981 !important;
    color: #fff !important;
}

/* Show check icon when done */
.stepper-step.done .stepper-num span {
    display: none;
}
.stepper-step.done .stepper-num::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.stepper-label {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--mu) !important;
    text-align: center;
    white-space: nowrap;
    transition: color .3s ease;
}

.stepper-step.active .stepper-label {
    color: var(--tx) !important;
}

.stepper-step.done .stepper-label {
    color: var(--primary-light) !important;
}

.stepper-line {
    flex: 1 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, .08) !important;
    margin: 23px 8px 0 !important;
    border-radius: 50px !important;
    position: relative;
    overflow: hidden;
    min-width: 30px;
    max-width: 100px;
    transition: all .5s ease;
}

.stepper-line.done {
    background: linear-gradient(90deg, #10B981, #059669) !important;
}

/* Step type badge (free/paid) over step 3 */
.stepper-step .step-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 3;
}

.stepper-step.has-free-badge .step-type-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
}

.stepper-step.has-paid-badge .step-type-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* ============================================
   FREE MODE BANNER (in registration steps)
   ============================================ */
.sahhelha-free-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(5, 150, 105, .05));
    border: 1.5px solid rgba(16, 185, 129, .3);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.sahhelha-free-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(16, 185, 129, .4);
}
.sahhelha-free-banner-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.sahhelha-free-banner-content {
    flex: 1;
    min-width: 0;
}

.sahhelha-free-banner-title {
    font-size: 14px;
    font-weight: 900;
    color: #10B981;
    margin-bottom: 2px;
}

.sahhelha-free-banner-text {
    font-size: 12px;
    color: var(--sub);
    line-height: 1.5;
}

/* ============================================
   AUTH LOGO at top of card
   ============================================ */
.sahhelha-auth-logo {
    text-align: center;
    margin-bottom: 22px;
}

.sahhelha-logo-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(26, 188, 176, .4);
    position: relative;
}

.sahhelha-logo-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 2px solid rgba(26, 188, 176, .3);
    animation: logoPulse 2.5s ease-out infinite;
}

@keyframes logoPulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.2); opacity: 0; }
}

.sahhelha-logo-icon-wrap svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.sahhelha-logo-text {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   PRICE DISPLAY — Free vs Paid
   ============================================ */
.sahhelha-free-mode-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, .1);
    color: #10B981 !important;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 13px;
}
.sahhelha-free-mode-price svg {
    width: 14px;
    height: 14px;
}

/* Total summary card */
.sahhelha-total-summary {
    background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(5, 150, 105, .04));
    border: 1.5px solid rgba(16, 185, 129, .25);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sahhelha-total-summary-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--sub);
}

.sahhelha-total-summary-value {
    font-size: 18px;
    font-weight: 900;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sahhelha-total-summary-value svg {
    width: 18px;
    height: 18px;
}

/* Paid mode total */
.sahhelha-total-summary.paid {
    background: linear-gradient(135deg, rgba(250, 199, 117, .08), rgba(217, 119, 6, .04));
    border-color: rgba(250, 199, 117, .3);
}
.sahhelha-total-summary.paid .sahhelha-total-summary-value {
    color: var(--accent);
}

/* ============================================
   SUCCESS PAGE (after registration)
   ============================================ */
.sahhelha-success-screen {
    text-align: center;
    padding: 30px 10px;
    animation: fadeInUp .6s ease;
}

.sahhelha-success-icon-big {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 40px rgba(16, 185, 129, .4);
    animation: successBounce .6s cubic-bezier(.5, 1.5, .5, 1);
    position: relative;
}

.sahhelha-success-icon-big::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, .4);
    animation: successPulse 2s ease-out infinite;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes successPulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.sahhelha-success-icon-big svg {
    width: 48px;
    height: 48px;
    color: #fff;
}

.sahhelha-success-screen h2 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
}

.sahhelha-success-screen .subtitle {
    font-size: 14.5px;
    color: var(--sub);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto 24px;
}

.sahhelha-success-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 480px;
}

@media (max-width: 540px) {
    .sahhelha-success-stats { grid-template-columns: 1fr 1fr; }
}

.sahhelha-success-stat {
    background: var(--inp);
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 14px 10px;
}

.sahhelha-success-stat-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.sahhelha-success-stat-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-light);
}

.sahhelha-success-stat-label {
    font-size: 11px;
    color: var(--mu);
    margin-top: 2px;
}

/* Confetti */
.sahhelha-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sahhelha-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

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

/* ============================================
   Mobile responsive
   ============================================ */
@media (max-width: 640px) {
    .vendor-stepper {
        padding: 14px 4px !important;
    }
    .stepper-line {
        margin: 23px 4px 0 !important;
        min-width: 18px;
    }
    .stepper-num {
        width: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
    }
    .stepper-label {
        font-size: 11px !important;
    }
}
