﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    background: #f2f2f7;
  /*  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;*/
    /*padding: 32px 16px;*/
}

/* ── Main wrapper ─────────────────────────────── */
.page-center {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* ── Apple Wallet Pass Card ───────────────────── */
.wallet-pass {
    width: 100%;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 56px rgba(0,0,0,0.28), 0 4px 14px rgba(0,0,0,0.16);
    overflow: hidden;
    transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease;
    cursor: default;
}

    .wallet-pass:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 0 30px 70px rgba(0,0,0,0.32), 0 8px 20px rgba(0,0,0,0.18);
    }








/* ── White panel (steps container) ───────────── */
.panel {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}

.panel-head {
    padding: 18px 22px 0;
}

    .panel-head h5 {
        font-size: 16px;
        font-weight: 800;
        color: #1c1c1e;
        margin-bottom: 3px;
    }

    .panel-head p {
        font-size: 13px;
        color: #8e8e93;
        font-weight: 500;
    }

.panel-body {
    padding: 18px 22px 22px;
}

/* ── Steps ────────────────────────────────────── */
.step {
    display: none;
}

    .step.active {
        display: block;
        animation: fadeUp .3s ease;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form Controls ────────────────────────────── */
.field-label {
    font-size: 13px;
    font-weight: 700;
    color: #1c1c1e;
    display: block;
    margin-bottom: 8px;
}

    .field-label .req {
        color: #ff3b30;
        margin-right: 3px;
    }

.kt-input {
    width: 100%;
    background: #f2f2f7;
    border: 1.5px solid #e5e5ea;
    border-radius: 12px;
    padding: 13px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1e;
    outline: none;
    transition: all .2s;
}

    .kt-input::placeholder {
        color: #aeaeb2;
        font-weight: 400;
    }

    .kt-input:focus {
        background: #fff;
        border-color: #007aff;
        box-shadow: 0 0 0 3px rgba(0,122,255,.12);
    }

    .kt-input.err {
        border-color: #ff3b30 !important;
        box-shadow: 0 0 0 3px rgba(255,59,48,.1);
    }

/* Phone with flag prefix */
.phone-wrap {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f2f2f7;
    border: 1.5px solid #e5e5ea;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #1c1c1e;
    flex-shrink: 0;
    white-space: nowrap;
}

.phone-wrap .kt-input {
    flex: 1;
}

.err-txt {
    font-size: 12px;
    color: #ff3b30;
    font-weight: 600;
    margin-top: 5px;
    display: none;
}

    .err-txt.show {
        display: block;
    }

/* ── Primary Button ───────────────────────────── */
.btn-primary-kt {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: none;
    background: #000;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all .22s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    margin-top: 18px;
}

    .btn-primary-kt:hover {
        background: #111;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.26);
    }

    .btn-primary-kt:active {
        transform: translateY(0);
    }

    .btn-primary-kt:disabled {
        opacity: .65;
        cursor: not-allowed;
        transform: none;
    }

.spinner-sm {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}

.loading .spinner-sm {
    display: block;
}

.loading .btn-lbl {
    opacity: .75;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── OTP Boxes ────────────────────────────────── */
.otp-row {
    display: flex;
    gap: 9px;
    justify-content: center;
    direction: ltr;
    margin-top: 18px;
}

.otp-box {
    width: 50px;
    height: 56px;
    background: #f2f2f7;
    border: 1.5px solid #e5e5ea;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1c1c1e;
    text-align: center;
    outline: none;
    transition: all .2s;
}

    .otp-box:focus {
        background: #fff;
        border-color: #007aff;
        box-shadow: 0 0 0 3px rgba(0,122,255,.12);
    }

    .otp-box.filled {
        border-color: #34c759;
        background: #fff;
    }

    .otp-box.err {
        border-color: #ff3b30;
        background: #fff9f9;
    }

/* Resend row */
.resend-row {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

.resend-btn {
    background: none;
    border: none;
    padding: 0;
    margin-right: 4px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: #007aff;
    font-weight: 700;
    cursor: pointer;
}

    .resend-btn:disabled {
        color: #aeaeb2;
        cursor: default;
    }

/* ── Add to Wallet Button ─────────────────────── */
.add-wallet-btn {
    width: 100%;
    padding: 17px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: #000;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.28);
    transition: all .25s;
}

    .add-wallet-btn:hover {
        background: #111;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.32);
    }

    .add-wallet-btn:active {
        transform: translateY(0);
    }

    .add-wallet-btn .apple-ico {
        font-size: 22px;
    }

/* ── Success panel ────────────────────────────── */
.success-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34c759, #28a745);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 22px rgba(52,199,89,.35);
    animation: bounceIn .5s cubic-bezier(.36,.07,.19,.97);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    55% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-ring i {
    color: #fff;
    font-size: 38px;
}

/* ── Info note ────────────────────────────────── */
.info-note {
    width: 100%;
    text-align: center;
    font-size: 12.5px;
    color: #8e8e93;
    font-weight: 500;
    line-height: 1.6;
}

    .info-note a {
        color: #007aff;
        text-decoration: none;
        font-weight: 600;
    }

/* ── Toast ────────────────────────────────────── */
.toast-wrap {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1c1c1e;
    color: #fff;
    padding: 13px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 26px rgba(0,0,0,0.28);
    transition: transform .4s cubic-bezier(.25,.8,.25,1);
    z-index: 999;
    white-space: nowrap;
}

    .toast-wrap.show {
        transform: translateX(-50%) translateY(0);
    }

    .toast-wrap i {
        font-size: 20px;
        color: #34c759;
    }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 480px) {
   

    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }

    .otp-row {
        gap: 7px;
    }
}

@media (max-width: 360px) {
    .otp-box {
        width: 36px;
        height: 46px;
        font-size: 18px;
    }

    .otp-row {
        gap: 5px;
    }
}


.btn-brown {
    background-color: var(--wg-brown);
    border-color: var(--wg-brown-dark);
    color: #fff;
    transition: .3s;
}

    .btn-brown:hover {
        background-color: #4b2e1f; /* بني أغمق */
        border-color: #4b2e1f;
        color: #fff;
    }