/* لایه تاریک */
#mfix-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 999999;
    display: none; /* ← مهم */
}

#mfix-otp-overlay.show {
    display: block; /* ← مهم */
    opacity: 1;
    pointer-events: auto;
}

/* پاپ‌آپ */
#mfix-otp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 360px;
    transform: translate(-50%, -50%) scale(.85);
    opacity: 0;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(148,163,184,0.45);
    box-shadow: 0 25px 60px rgba(15,23,42,0.35);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1000000;
    direction: rtl;
    display: none; /* ← مهم */
}

#mfix-otp-popup.show {
    display: block; /* ← مهم */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* fade-out */
#mfix-otp-popup.mfix-hide {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(.92) !important;
}

#mfix-otp-overlay.mfix-overlay-hide {
    opacity: 0 !important;
}

/* دکمه بستن */
#mfix-otp-popup .mfix-otp-close {
    border: none;
    background: transparent;
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 30px;
    cursor: pointer;
}


/* عنوان */
#mfix-otp-popup .mfix-title {
    font-family: 'Vazir';
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: center;
}

/* لیبل */
#mfix-otp-popup .mfix-label {
    font-family: 'Vazir';
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

/* ورودی */
#mfix-otp-popup .mfix-input {
    font-family: 'Vazir';
    width: 94%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: rgba(255,255,255,0.85);
    margin-bottom: 14px;
    font-size: 14px;
}

/* کپچا */
#mfix-otp-popup .mfix-captcha-box {
    font-family: 'Vazir';
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

#mfix-otp-popup .mfix-captcha {
    height: 100%;
    font-family: 'Vazir';
    padding: 10px 14px;
    background: #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

/* دکمه اصلی */
#mfix-otp-popup .mfix-btn-primary {
    font-family: 'Vazir';
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-top: 4px;
}

/* دکمه لینک */
#mfix-otp-popup .mfix-btn-link {
    font-family: 'Vazir';
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
}

/* پیام */
#mfix-otp-popup .mfix-msg {
    font-family: 'Vazir';
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #dc2626;
}

/* مرحله‌ها */
#mfix-otp-popup .mfix-step {
    display: none;
}

#mfix-otp-popup .mfix-step.active {
    display: block;
}

/* ردیف تایمر */
#mfix-otp-popup .mfix-resend-row {
    font-family: 'Vazir';
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mfix-otp-popup .mfix-timer {
    font-family: 'Vazir';
    font-size: 13px;
    color: #475569;
}
