/* ==========================================================================
   نایسی - استایل پیش‌فرض فرم ورود/عضویت و مودال پاپ‌آپ
   این استایل، تم پیش‌فرض شیک را می‌سازد. تمام مقادیر از طریق کنترل‌های
   المنتور (روی هر ویجت) به‌طور کامل قابل تغییر و شخصی‌سازی است.
   ========================================================================== */

.nicek-login-wrapper {
    --nicek-accent: #6d5bf0;
    --nicek-accent-2: #a78bfa;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 32px;
    background: #ffffff;
    border: 1px solid #ece9fb;
    border-radius: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 18px 45px -20px rgba(76, 55, 189, 0.25);
    font-family: 'Ravi', 'Vazirmatn', Tahoma, sans-serif;
    overflow: hidden;
}
.nicek-login-wrapper::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, var(--nicek-accent-2) 0%, transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}
.nicek-login-wrapper.nicek-in-popup {
    border: none;
    box-shadow: none;
}
.nicek-logo-wrap img {
    max-width: 110px;
    height: auto;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.nicek-title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 800;
    color: #1e1b2e;
    position: relative;
    z-index: 1;
}
.nicek-subtext {
    font-size: 13.5px;
    color: #6c6a80;
    margin-bottom: 22px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.nicek-input-group {
    position: relative;
    margin-bottom: 18px;
}
.nicek-input {
    width: 100%;
    padding: 15px 16px;
    border: 1.5px solid #e6e4f5;
    border-radius: 14px;
    font-size: 17px;
    text-align: center;
    direction: ltr;
    box-sizing: border-box;
    transition: all 0.25s;
    background: #fbfbfe;
    font-family: inherit;
}
.nicek-input:focus {
    border-color: var(--nicek-accent);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 91, 240, 0.12);
}
.nicek-otp-box-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    margin-bottom: 22px;
}
.nicek-otp-digit {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid #e6e4f5;
    border-radius: 12px;
    margin: 0;
    padding: 0;
    background: #fbfbfe;
    transition: all 0.2s;
    font-family: inherit;
}
.nicek-otp-digit:focus {
    border-color: var(--nicek-accent);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(109, 91, 240, 0.12);
    transform: translateY(-1px);
}
.nicek-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--nicek-accent) 0%, #5947d8 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 10px 25px -10px rgba(109, 91, 240, 0.65);
    font-family: inherit;
    position: relative;
    z-index: 1;
}
.nicek-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(109, 91, 240, 0.75);
}
.nicek-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.nicek-msg-box {
    margin-top: 16px;
    font-size: 13.5px;
    padding: 11px 14px;
    border-radius: 10px;
    display: none;
    font-weight: 600;
}
.nicek-error { color: #c22a44; background: #fdecef; }
.nicek-success { color: #147a54; background: #e7faf3; }
.nicek-timer-box { font-size: 12.5px; color: #8a8798; margin: 16px 0; }
.nicek-actions { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-top: 16px; }
.nicek-action-link { text-decoration: none; color: var(--nicek-accent); font-weight: 600; transition: 0.2s; }
.nicek-action-link:hover { opacity: 0.75; }

.nicek-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, #6d5bf0 0%, #5947d8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.25s;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Ravi', 'Vazirmatn', Tahoma, sans-serif;
}
.nicek-header-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.nicek-header-btn i { font-size: 16px; }

/* Back to Home Button in Form */
.nicek-back-home {
    display: block;
    margin-top: 18px;
    font-size: 12.5px;
    color: #9491a3;
    text-decoration: none;
    transition: 0.2s;
}
.nicek-back-home:hover { color: #4a4760; }

/* Modal Styles */
.nicek-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 15, 45, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.nicek-modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    animation: nicekFadeIn 0.35s ease;
}
.nicek-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 14px rgba(20,15,45,0.25);
    z-index: 10;
    transition: 0.2s;
}
.nicek-modal-close:hover { transform: rotate(90deg); }
@keyframes nicekFadeIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .nicek-login-wrapper:not(.nicek-in-popup) { padding: 26px 20px; box-shadow: none; border: none; }
    .nicek-header-btn span { display: none; }
    .nicek-header-btn i { margin: 0 !important; font-size: 20px; }
}

/* ==========================================================================
   احراز هویت شماره موبایل در صفحه پرداخت (Checkout)
   ========================================================================== */
.nicek-checkout-verify-wrap { margin-top: 10px; font-family: 'Ravi', 'Vazirmatn', Tahoma, sans-serif; }
.nicek-checkout-btn {
    background-color: #333 !important;
    color: #fff !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: 0.2s;
}
.nicek-checkout-btn:hover { filter: brightness(1.1); }
#nicek-checkout-otp-group { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#nicek-checkout-otp {
    border: 1.5px solid #ddd;
    padding: 9px 12px;
    border-radius: 8px;
    width: 130px;
    direction: ltr;
    text-align: center;
    letter-spacing: 2px;
}
#nicek-checkout-verify-btn {
    border-radius: 8px !important;
}
#nicek-checkout-msg { font-size: 12px; }

/* بج «شماره تایید شد» که پس از احراز هویت، به‌جای دکمه احراز هویت نمایش داده می‌شود */
.nicek-verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #147a54;
    background: #e7faf3;
    border: 1px solid #b9ecdb;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 10px;
    direction: rtl;
    width: fit-content;
}
.nicek-verified-badge .dashicons { color: #17a673; font-size: 17px; width: 17px; height: 17px; }
.nicek-verified-badge .nicek-verified-phone { direction: ltr; unicode-bidi: embed; font-weight: 800; }
