/*
 * ═══════════════════════════════════════════════════════
 *   Bunakdaran OTP Login — Premium Modal UI v4.0
 *   طراحی: پرمیوم مینیمال با هویت برند قرمز
 * ═══════════════════════════════════════════════════════
 */

/* ── فونت ─────────────────────────────────────────────── */
#bnk-modal-overlay *,
#bnk-otp-wrapper * {
    font-family: 'IRANSansX', 'IRANSans', Vazirmatn, Tahoma, sans-serif !important;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════
   OVERLAY — پس‌زمینه مودال
══════════════════════════════════════════════════════ */
#bnk-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999990;
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

#bnk-modal-overlay.bnk-modal-visible {
    display: flex;
    animation: bnk-overlay-in 0.3s ease;
}

@keyframes bnk-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   MODAL CONTENT BOX
══════════════════════════════════════════════════════ */
#bnk-modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 24px 60px rgba(0,0,0,0.22),
        0 8px 20px rgba(0,0,0,0.12);
    animation: bnk-modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bnk-modal-in {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* نوار رنگی بالای مودال */
#bnk-modal-content::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 50%, #ff6b6b 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

/* دکمه بستن */
.bnk-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    color: #888;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border: none;
}
.bnk-modal-close:hover {
    background: #ffe5e5;
    color: #c0392b;
    transform: rotate(90deg);
}

/* ══════════════════════════════════════════════════════
   WRAPPER — ظرف اصلی فرم
══════════════════════════════════════════════════════ */
#bnk-otp-wrapper {
    direction: rtl;
    padding: 40px 36px 36px;
    background: #ffffff;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
}

/* وقتی فرم به صورت standalone (نه در مودال) استفاده شود */
body:not(:has(#bnk-modal-overlay)) #bnk-otp-wrapper {
    max-width: 440px;
    margin: 40px auto;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    border: 1px solid #eef0f2;
}

/* ── لوگو ──────────────────────────────────────────── */
.bnk-logo {
    text-align: center;
    margin-bottom: 20px;
}
.bnk-logo img {
    max-height: 52px;
    width: auto;
}

/* ── عنوان فرم ─────────────────────────────────────── */
.bnk-form-title {
    font-size: 1.25em !important;
    font-weight: 800 !important;
    color: #111827 !important;
    text-align: center !important;
    margin-bottom: 6px !important;
    line-height: 1.5 !important;
}

/* ── زیرعنوان ─────────────────────────────────────── */
#bnk-otp-wrapper p:not(.bnk-form-title) {
    font-size: 0.92em;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   INPUT — فیلد شماره موبایل
══════════════════════════════════════════════════════ */
#bnk-otp-wrapper input[type="tel"],
#bnk-otp-wrapper input[type="text"],
#bnk-otp-wrapper input[type="email"] {
    width: 100%;
    padding: 15px 18px;
    font-size: 1em;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 14px;
    text-align: left;
    direction: ltr;
    letter-spacing: 0.3px;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    -webkit-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

#bnk-otp-wrapper input[type="tel"]:focus,
#bnk-otp-wrapper input[type="text"]:focus,
#bnk-otp-wrapper input[type="email"]:focus {
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08);
}

#bnk-otp-wrapper input[type="tel"]::placeholder,
#bnk-otp-wrapper input[type="text"]::placeholder,
#bnk-otp-wrapper input[type="email"]::placeholder {
    color: #b0b8c4;
    direction: rtl;
    text-align: right;
}

/* ── فیلد خطا ─────────────────────────────────────── */
input[type="text"].bnk-input-error,
input[type="email"].bnk-input-error {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08) !important;
    animation: bnk-shake 0.4s ease;
}

/* ══════════════════════════════════════════════════════
   BUTTON — دکمه اصلی
══════════════════════════════════════════════════════ */
#bnk-otp-wrapper button {
    width: 100%;
    padding: 16px;
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.28);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

/* افکت موج روی دکمه */
#bnk-otp-wrapper button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.2s;
}
#bnk-otp-wrapper button:hover::after { opacity: 1; }

#bnk-otp-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.35);
}

#bnk-otp-wrapper button:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.2);
}

#bnk-otp-wrapper button:disabled {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
#bnk-otp-wrapper button:disabled::after { display: none; }

/* ══════════════════════════════════════════════════════
   MESSAGE — پیام‌های خطا/موفقیت
══════════════════════════════════════════════════════ */
#bnk-otp-message {
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 10px;
    text-align: center;
    display: none;
    border: 1.5px solid transparent;
    animation: bnk-msg-in 0.3s ease;
}

@keyframes bnk-msg-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#bnk-otp-message.bnk-error {
    background: #fff1f0;
    color: #c0392b;
    border-color: #ffd4d0;
    display: block;
}

#bnk-otp-message.bnk-success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
    display: block;
}

/* ══════════════════════════════════════════════════════
   TRUST BADGES — نشان‌های اعتماد زیر فرم (جدید)
══════════════════════════════════════════════════════ */
.bnk-trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.bnk-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78em;
    color: #9ca3af;
    font-weight: 500;
}

.bnk-trust-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   STEP 2 — شماره موبایل نمایشی
══════════════════════════════════════════════════════ */
#bnk_mobile_display {
    font-weight: 700;
    color: #c0392b;
    direction: ltr;
    display: inline-block;
    background: #fff1f0;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

#bnk_edit_mobile_btn {
    font-size: 0.83em;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    margin-right: 6px;
    border-bottom: 1px dashed #d1d5db;
    transition: color 0.2s, border-color 0.2s;
}
#bnk_edit_mobile_btn:hover {
    color: #c0392b;
    border-color: #c0392b;
}

/* ══════════════════════════════════════════════════════
   OTP DIGIT BOXES — جعبه‌های کد
══════════════════════════════════════════════════════ */
#bnk-otp-digits-wrapper {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 20px;
}

.bnk-otp-digit-input {
    width: 52px;
    height: 60px;
    font-size: 1.7em !important;
    text-align: center !important;
    font-weight: 700;
    font-family: 'Courier New', monospace !important;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    color: #111827;
    direction: ltr !important;
    padding: 0 !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    -moz-appearance: textfield;
    outline: none;
}

.bnk-otp-digit-input::-webkit-outer-spin-button,
.bnk-otp-digit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bnk-otp-digit-input:focus {
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.09);
    transform: translateY(-2px);
}

.bnk-otp-digit-input.bnk-verifying {
    border-color: #e74c3c !important;
    background: #fff8f7 !important;
    animation: bnk-pulse-border 1.2s infinite;
}

.bnk-otp-digit-input.bnk-success {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
    color: #15803d;
    animation: none;
    transform: none;
}

.bnk-otp-digit-input.bnk-error {
    border-color: #e74c3c !important;
    background: #fff1f0 !important;
    color: #c0392b;
    animation: bnk-shake 0.4s ease;
}

@keyframes bnk-pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(231,76,60,0); }
}

/* ══════════════════════════════════════════════════════
   TIMER — تایمر ارسال مجدد
══════════════════════════════════════════════════════ */
#bnk-timer-wrapper {
    display: none;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    font-size: 0.88em;
    color: #6b7280;
}

#bnk-otp-timer {
    font-weight: 800;
    font-family: 'Courier New', monospace !important;
    font-size: 1.15em;
    color: #c0392b;
    margin-left: 4px;
    letter-spacing: 1px;
}

#bnk_resend_otp_btn {
    display: none;
    text-align: center;
    margin: 0 auto 16px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.88em;
    transition: color 0.2s;
    cursor: pointer;
}
#bnk_resend_otp_btn:hover { color: #c0392b; }
#bnk_resend_otp_btn.bnk-disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   EXTRA FIELDS — فیلدهای اضافی ثبت‌نام
══════════════════════════════════════════════════════ */
#bnk-extra-fields {
    width: 100%;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
    animation: bnk-fade-in 0.4s ease;
}

/* ردیف نام دو ستونه */
.bnk-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}
.bnk-field-row input[type="text"] {
    width: 100%;
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════
   RADIO BUTTONS — انتخاب نوع / جنسیت
══════════════════════════════════════════════════════ */
.bnk-all-radios-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 14px;
    clear: both;
}

.bnk-all-radios-wrapper .bnk-radio-group-stylish {
    flex: 1;
    gap: 6px;
    margin-top: 0;
}

.bnk-radio-group-stylish {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    clear: both;
    gap: 8px;
}

.bnk-radio-group-stylish .bnk-radio-label {
    flex: 1;
    padding: 11px 8px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 0.88em;
    color: #374151;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.bnk-radio-group-stylish .bnk-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.bnk-radio-group-stylish .bnk-radio-label:hover {
    background: #fff;
    border-color: #e74c3c;
    color: #c0392b;
}

.bnk-radio-group-stylish .bnk-radio-label.selected {
    background: #fff1f0 !important;
    border-color: #e74c3c !important;
    color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.08) !important;
    animation: none !important;
}

.bnk-radio-icon {
    margin-left: 4px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* خطا در radio */
.bnk-radio-group-stylish.bnk-input-error .bnk-radio-label {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
}
.bnk-radio-group-stylish.bnk-input-error {
    animation: bnk-shake 0.4s ease;
}

/* انتخاب شده حتی در حالت خطا سبز بماند */
.bnk-radio-group-stylish.bnk-input-error .bnk-radio-label.selected {
    background: #fff1f0 !important;
    border-color: #e74c3c !important;
    color: #c0392b !important;
}

/* ══════════════════════════════════════════════════════
   ACCEPTANCE TEXT — متن پذیرش قوانین
══════════════════════════════════════════════════════ */
#bnk-otp-acceptance-wrapper {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
}

#bnk-otp-acceptance-wrapper p {
    font-size: 0.82em !important;
    color: #6b7280 !important;
    line-height: 1.6;
    text-align: center;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

#bnk-otp-acceptance-wrapper a {
    color: #c0392b;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(192, 57, 43, 0.3);
    transition: border-color 0.2s;
}
#bnk-otp-acceptance-wrapper a:hover {
    border-color: #c0392b;
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS — انیمیشن‌های کمکی
══════════════════════════════════════════════════════ */
@keyframes bnk-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bnk-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60%  { transform: translateX(-5px); }
    40%, 80%  { transform: translateX(5px); }
}

/* ══════════════════════════════════════════════════════
   LOADING STATE — حالت در حال بارگذاری
══════════════════════════════════════════════════════ */
#bnk-modal-overlay.bnk-modal-loading #bnk-modal-content {
    pointer-events: none;
}

#bnk-modal-overlay.bnk-modal-loading #bnk-modal-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    border-radius: 24px;
    z-index: 100;
    animation: bnk-fade-in 0.2s ease;
}

#bnk-modal-overlay.bnk-modal-loading #bnk-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(231,76,60,0.15) 50%,
            transparent 100%
        );
    background-size: 200% 100%;
    animation: bnk-shimmer 1.2s infinite;
    z-index: 101;
    border-radius: 24px;
}

@keyframes bnk-shimmer {
    from { background-position: -200% 0; }
    to   { background-position: 200% 0; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — موبایل
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    #bnk-modal-overlay {
        padding: 0;
        align-items: center; /* قرارگیری در وسط به جای پایین */
    }
    
    #bnk-modal-content {
        margin-top: -15vh; /* کمی تمایل به سمت بالا برای دیده شدن بهتر کیبورد */
        border-radius: 12px !important; /* گرد شدن گوشه‌ها در موبایل */
        max-height: 85vh;
        width: 90% !important; /* فاصله از کناره‌ها */
        margin-left: auto;
        margin-right: auto;
    }
    
    @keyframes bnk-modal-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    
    #bnk-otp-wrapper {
        padding: 32px 24px 28px;
    }
    
    .bnk-otp-digit-input {
        width: 44px;
        height: 54px;
        font-size: 1.5em !important;
        border-radius: 10px;
    }
    
    #bnk-otp-digits-wrapper {
        gap: 7px;
    }
    
    .bnk-all-radios-wrapper {
        flex-direction: row;
        gap: 8px;
    }
    
    .bnk-trust-row {
        gap: 12px;
    }
}

/* ══════════════════════════════════════════════════════
   OVERRIDES — بازنویسی وقتی فرم داخل مودال است
══════════════════════════════════════════════════════ */
#bnk-modal-content #bnk-otp-wrapper {
    margin: 0;
    max-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* فرم مستقل (standalone) */
.bnk-standalone #bnk-otp-wrapper,
#bnk-otp-wrapper:not(#bnk-modal-content *) {
    max-width: 440px;
    margin: 40px auto;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}







@media (max-width: 768px) {
    #bnk-modal-overlay.bnk-modal-visible {
        align-items: center !important; /* قرارگیری در وسط به جای پایین */
    }
    #bnk-modal-content {
        margin-top: -15vh; /* کمی تمایل به سمت بالا برای دیده شدن بهتر کیبورد موبایل */
        border-radius: 12px !important; /* حذف حالت چسبیدگی به لبه پایین */
        max-height: 85vh;
    }
}





/* قرار دادن مودال در بالاترین لایه ممکن در مرورگر و تضمین قابلیت کلیک */
#bnk-modal-overlay {
    z-index: 2147483647 !important; 
}

#bnk-modal-container {
    pointer-events: auto !important;
    z-index: 2147483647 !important;
}

#bnk-login-step-1, 
#bnk-login-step-2,
.bnk-input-group input {
    pointer-events: auto !important;
    position: relative;
    z-index: 2147483647 !important;
}





/* ══════════════════════════════════════════════════════
   DARK MODE COMPREHENSIVE FIX (MOBILE & DESKTOP)
══════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark), (forced-colors: active) {
    html, body {
        color-scheme: dark;
    }

    #bnk-modal-content,
    #bnk-otp-wrapper,
    div#bnk-modal-content {
        background-color: #18191c !important;
        background: #18191c !important;
        border: 1px solid #2d3035 !important;
        color: #f3f4f6 !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.7) !important;
    }

    .bnk-modal-close {
        background-color: #26282d !important;
        background: #26282d !important;
        color: #9ca3af !important;
    }

    .bnk-modal-close:hover {
        background-color: #3f1e1e !important;
        background: #3f1e1e !important;
        color: #ff6b6b !important;
    }

    .bnk-form-title,
    #bnk-otp-wrapper .bnk-form-title {
        color: #ffffff !important;
    }

    #bnk-otp-wrapper p:not(.bnk-form-title),
    #bnk-otp-wrapper span:not(#bnk_mobile_display):not(#bnk-otp-timer) {
        color: #9ca3af !important;
    }

    #bnk_edit_mobile_btn {
        color: #9ca3af !important;
        border-bottom-color: #4b5563 !important;
    }

    #bnk_edit_mobile_btn:hover {
        color: #ff6b6b !important;
        border-bottom-color: #ff6b6b !important;
    }

    #bnk_mobile_display {
        background-color: #2a1b1b !important;
        background: #2a1b1b !important;
        color: #ff6b6b !important;
    }

    #bnk-otp-wrapper input[type="tel"],
    #bnk-otp-wrapper input[type="text"],
    #bnk-otp-wrapper input[type="email"] {
        background-color: #212328 !important;
        background: #212328 !important;
        border-color: #374151 !important;
        color: #ffffff !important;
    }

    #bnk-otp-wrapper input[type="tel"]:focus,
    #bnk-otp-wrapper input[type="text"]:focus,
    #bnk-otp-wrapper input[type="email"]:focus {
        border-color: #e74c3c !important;
        background-color: #26292f !important;
        background: #26292f !important;
        box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
    }

    #bnk-otp-wrapper input::placeholder {
        color: #6b7280 !important;
    }

    .bnk-otp-digit-input {
        background-color: #212328 !important;
        background: #212328 !important;
        border-color: #374151 !important;
        color: #ffffff !important;
    }

    .bnk-otp-digit-input:focus {
        border-color: #e74c3c !important;
        background-color: #26292f !important;
        background: #26292f !important;
        box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.25) !important;
    }

    .bnk-otp-digit-input.bnk-verifying {
        border-color: #e74c3c !important;
        background-color: #2f1d1d !important;
    }

    .bnk-otp-digit-input.bnk-success {
        border-color: #22c55e !important;
        background-color: #142a1d !important;
        color: #4ade80 !important;
    }

    .bnk-otp-digit-input.bnk-error {
        border-color: #ef4444 !important;
        background-color: #381a1a !important;
        color: #f87171 !important;
    }

    #bnk-timer-wrapper {
        background-color: #212328 !important;
        background: #212328 !important;
        border-color: #2d3035 !important;
        color: #9ca3af !important;
    }

    #bnk-otp-timer {
        color: #ff6b6b !important;
    }

    #bnk_resend_otp_btn {
        color: #cbd5e1 !important;
    }

    #bnk_resend_otp_btn:hover {
        color: #ff6b6b !important;
    }

    .bnk-radio-group-stylish .bnk-radio-label {
        background-color: #212328 !important;
        background: #212328 !important;
        border-color: #374151 !important;
        color: #d1d5db !important;
    }

    .bnk-radio-group-stylish .bnk-radio-label:hover {
        background-color: #282a30 !important;
        border-color: #e74c3c !important;
        color: #ff8585 !important;
    }

    .bnk-radio-group-stylish .bnk-radio-label.selected {
        background-color: #331d1d !important;
        border-color: #e74c3c !important;
        color: #ff7878 !important;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
    }

    #bnk-otp-acceptance-wrapper {
        background-color: #212328 !important;
        background: #212328 !important;
        border-color: #2d3035 !important;
    }

    #bnk-otp-acceptance-wrapper p {
        color: #9ca3af !important;
    }

    #bnk-otp-acceptance-wrapper a {
        color: #ff6b6b !important;
        border-bottom-color: rgba(255, 107, 107, 0.4) !important;
    }

    #bnk-otp-message.bnk-error {
        background-color: #2d1515 !important;
        color: #fca5a5 !important;
        border-color: #4c1d1d !important;
    }

    #bnk-otp-message.bnk-success {
        background-color: #142a1d !important;
        color: #86efac !important;
        border-color: #164e2e !important;
    }

    #bnk-modal-overlay.bnk-modal-loading #bnk-modal-content::after {
        background-color: rgba(24, 25, 28, 0.8) !important;
    }

    #bnk-extra-fields {
        border-top-color: #2d3035 !important;
    }

	/* ══════════════════════════════════════════════════════
   ۱. استایل لوگو (حذف پس‌زمینه کادر + گوشه‌های گرد تصویر)
	══════════════════════════════════════════════════════ */
	/* ── لوگو در هر دو حالت وایت‌مود و دارک‌مود ─────────────────────── */
.bnk-logo,
#bnk-otp-wrapper .bnk-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto 20px auto !important;
    width: 100% !important;
}

.bnk-logo img,
#bnk-otp-wrapper .bnk-logo img,
#bnk-modal-content .bnk-logo img {
    max-height: 54px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    /* جلوگیری از رندر شدن لبه‌های تیز تصویر در مرورگرها */
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

	/* ══════════════════════════════════════════════════════
	   ۲. سبز شدن قطعی باکس‌های OTP و هایلایت در هر دو حالت
	══════════════════════════════════════════════════════ */
	html body #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
	html body .bnk-otp-digit-input.bnk-success {
	    border-color: #10b981 !important;
	    background: #ecfdf5 !important;
	    background-color: #ecfdf5 !important;
	    color: #047857 !important;
	    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3), 0 0 16px rgba(16, 185, 129, 0.25) !important;
	    animation: none !important;
	    transform: translateY(-1px) !important;
	}

	/* اعمال قطعی هایلایت و رنگ سبز در تم شب و دارک‌مود سیستم/پوسته */
	@media (prefers-color-scheme: dark) {
	    html body #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
	    html body .bnk-otp-digit-input.bnk-success {
	        border-color: #10b981 !important;
	        background: #062b1b !important;
	        background-color: #062b1b !important;
	        color: #6ee7b7 !important;
	        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 0 18px rgba(16, 185, 129, 0.35) !important;
	        animation: none !important;
	        transform: translateY(-1px) !important;
	    }
	}

	html body.woodmart-dark #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
	html body.dark-mode #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
	html[data-theme="dark"] #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success {
	    border-color: #10b981 !important;
	    background: #062b1b !important;
	    background-color: #062b1b !important;
	    color: #6ee7b7 !important;
	    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 0 18px rgba(16, 185, 129, 0.35) !important;
	    animation: none !important;
	}

	/* تغییر رنگ نوار گرادینت بالای مودال به سبز در زمان تایید موفق */
	#bnk-modal-content.bnk-modal-success::before {
	    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
	    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5) !important;
	    transition: all 0.3s ease !important;
	}
}

/* برای پوسته‌های دارای سوییچ دارک مود (وودمارت و کلاس‌های متداول) */
body.woodmart-dark #bnk-modal-content,
body.dark #bnk-modal-content,
body.dark-mode #bnk-modal-content,
html[data-theme="dark"] #bnk-modal-content,
[data-color-scheme="dark"] #bnk-modal-content {
    background-color: #18191c !important;
    background: #18191c !important;
    border: 1px solid #2d3035 !important;
    color: #f3f4f6 !important;
}

body.woodmart-dark #bnk-otp-wrapper input,
body.dark #bnk-otp-wrapper input,
body.dark-mode #bnk-otp-wrapper input,
html[data-theme="dark"] #bnk-otp-wrapper input {
    background-color: #212328 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
}



/* هایلایت سبز جذاب و ملایم هنگام ورود صحیح شماره موبایل */
#bnk-otp-wrapper input#bnk_mobile.bnk-input-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
    transition: all 0.25s ease !important;
}

/* استایل سبز در حالت دارک‌مود */
@media (prefers-color-scheme: dark) {
    #bnk-otp-wrapper input#bnk_mobile.bnk-input-valid {
        border-color: #10b981 !important;
        background-color: #062b1b !important;
        color: #ecfdf5 !important;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
    }
}

body.woodmart-dark #bnk-otp-wrapper input#bnk_mobile.bnk-input-valid,
body.dark-mode #bnk-otp-wrapper input#bnk_mobile.bnk-input-valid,
[data-theme="dark"] #bnk-otp-wrapper input#bnk_mobile.bnk-input-valid {
    border-color: #10b981 !important;
    background-color: #062b1b !important;
    color: #ecfdf5 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}






/* ══════════════════════════════════════════════════════
   SUCCESS STATE — سبز شدن باکس‌ها و نوار بالای مودال
══════════════════════════════════════════════════════ */

/* ۱. سبز شدن قطعی تمام باکس‌های OTP در حالت لایت و دارک */
#bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
.bnk-otp-digit-input.bnk-success {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
    animation: none !important;
    transform: none !important;
}

/* ۲. سبز شدن باکس‌ها در حالت دارک‌مود */
@media (prefers-color-scheme: dark) {
    #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
    .bnk-otp-digit-input.bnk-success {
        border-color: #10b981 !important;
        background-color: #062b1b !important;
        background: #062b1b !important;
        color: #34d399 !important;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3) !important;
    }
}

body.woodmart-dark #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
body.dark-mode #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success,
[data-theme="dark"] #bnk-otp-wrapper .bnk-otp-digit-input.bnk-success {
    border-color: #10b981 !important;
    background-color: #062b1b !important;
    background: #062b1b !important;
    color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3) !important;
}

/* ۳. سبز شدن نوار بالای مودال هنگام ورود موفق */
#bnk-modal-content.bnk-modal-success::before {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}