/* =========================================================
   ورود و عضویت با موبایل - استایل پایه + ۱۰ قالب ظاهری
   ========================================================= */

.mpol-wrap {
	direction: rtl;
	max-width: 420px;
	margin: 0 auto;
	box-sizing: border-box;
}
.mpol-wrap *,
.mpol-wrap *::before,
.mpol-wrap *::after {
	box-sizing: border-box;
}

.mpol-form {
	position: relative;
	padding: 32px 28px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(20, 20, 43, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: box-shadow .25s ease, transform .25s ease;
}

.mpol-title {
	margin: 0 0 22px;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	color: #1c1c28;
}

.mpol-label {
	display: block;
	margin-bottom: 16px;
	font-size: 13px;
	color: #57596b;
	font-weight: 600;
}
.mpol-label span {
	display: block;
	margin-bottom: 6px;
}

.mpol-input {
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	border-radius: 10px;
	border: 1.5px solid #e3e4ec;
	background: #f9f9fc;
	color: #1c1c28;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
	outline: none;
	text-align: center;
	letter-spacing: 1px;
	direction: ltr;
}
.mpol-input:focus {
	border-color: #6c5ce7;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.mpol-btn {
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background: #eceafd;
	color: #4b3fd1;
	margin-top: 6px;
	transition: transform .15s ease, opacity .2s ease, background .2s ease;
}
.mpol-btn:hover { transform: translateY(-1px); }
.mpol-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.mpol-btn-primary {
	background: linear-gradient(135deg, #6c5ce7, #8e6cf5);
	color: #fff;
	margin-top: 12px;
}

.mpol-resend-btn { background: transparent; color: #8a8ca6; font-weight: 600; box-shadow: none; }

.mpol-message {
	margin-top: 14px;
	font-size: 13px;
	text-align: center;
	min-height: 18px;
}
.mpol-message.is-error { color: #e5484d; }
.mpol-message.is-success { color: #1a9e5c; }

.mpol-already-logged {
	padding: 18px;
	border-radius: 12px;
	background: #f2fbf6;
	color: #1a9e5c;
	text-align: center;
	font-weight: 600;
}

/* ---------- پاپ‌آپ ---------- */
.mpol-popup-open-btn {
	padding: 12px 26px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, #6c5ce7, #8e6cf5);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}
.mpol-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 15, 26, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(3px);
}
.mpol-popup-overlay.is-open { display: flex; }
.mpol-popup-box {
	position: relative;
	width: 92%;
	max-width: 420px;
	animation: mpolPopIn .25s ease;
}
.mpol-popup-box .mpol-form { box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.mpol-popup-close {
	position: absolute;
	top: -14px;
	left: -14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	z-index: 2;
}
@keyframes mpolPopIn {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   قالب ۱: مدرن کارتی (پیش‌فرض بالا)
   ========================================================= */
.mpol-theme-template-1 .mpol-form { border-radius: 20px; }

/* =========================================================
   قالب ۲: مینیمال روشن
   ========================================================= */
.mpol-theme-template-2 .mpol-form {
	background: #ffffff;
	box-shadow: none;
	border: 1px solid #e7e7ee;
	border-radius: 6px;
	padding: 26px 24px;
}
.mpol-theme-template-2 .mpol-input {
	background: #fff;
	border-radius: 4px;
	border-color: #d9d9e3;
}
.mpol-theme-template-2 .mpol-btn { border-radius: 4px; }
.mpol-theme-template-2 .mpol-btn-primary {
	background: #1c1c28;
	color: #fff;
}
.mpol-theme-template-2 .mpol-title { text-align: right; font-weight: 600; }

/* =========================================================
   قالب ۳: گرادیانت بنفش-آبی
   ========================================================= */
.mpol-theme-template-3 .mpol-form {
	background: linear-gradient(160deg, #6c5ce7 0%, #4b8bf5 100%);
	border: none;
	box-shadow: 0 20px 45px rgba(76, 88, 231, 0.35);
}
.mpol-theme-template-3 .mpol-title,
.mpol-theme-template-3 .mpol-label { color: #fff; }
.mpol-theme-template-3 .mpol-input {
	background: rgba(255,255,255,0.14);
	border-color: rgba(255,255,255,0.35);
	color: #fff;
}
.mpol-theme-template-3 .mpol-input::placeholder { color: rgba(255,255,255,0.75); }
.mpol-theme-template-3 .mpol-input:focus {
	background: rgba(255,255,255,0.22);
	box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.mpol-theme-template-3 .mpol-btn { background: rgba(255,255,255,0.18); color: #fff; }
.mpol-theme-template-3 .mpol-btn-primary { background: #fff; color: #4b3fd1; }
.mpol-theme-template-3 .mpol-resend-btn { color: rgba(255,255,255,0.75); }

/* =========================================================
   قالب ۴: تیره (Dark Glass)
   ========================================================= */
.mpol-theme-template-4 .mpol-form {
	background: rgba(24, 24, 36, 0.92);
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.mpol-theme-template-4 .mpol-title { color: #f2f2f7; }
.mpol-theme-template-4 .mpol-label { color: #9a9bb0; }
.mpol-theme-template-4 .mpol-input {
	background: rgba(255,255,255,0.06);
	border-color: rgba(255,255,255,0.12);
	color: #f2f2f7;
}
.mpol-theme-template-4 .mpol-input:focus { background: rgba(255,255,255,0.1); }
.mpol-theme-template-4 .mpol-btn { background: rgba(255,255,255,0.08); color: #d8d5ff; }
.mpol-theme-template-4 .mpol-btn-primary { background: linear-gradient(135deg,#8e6cf5,#6c5ce7); color:#fff; }
.mpol-theme-template-4 .mpol-resend-btn { color: #7d7e94; }

/* =========================================================
   قالب ۵: برچسب شناور (Floating Label)
   ========================================================= */
.mpol-theme-template-5 .mpol-label { position: relative; margin-bottom: 22px; }
.mpol-theme-template-5 .mpol-label span {
	position: absolute;
	top: 12px;
	right: 14px;
	background: #fff;
	padding: 0 4px;
	font-size: 12px;
	color: #9799ad;
	transition: all .15s ease;
	pointer-events: none;
}
.mpol-theme-template-5 .mpol-input { padding-top: 15px; }
.mpol-theme-template-5 .mpol-form { border-radius: 14px; }

/* =========================================================
   قالب ۶: مرحله‌ای عمودی (Stepper)
   ========================================================= */
.mpol-theme-template-6 .mpol-form { border-top: 5px solid #6c5ce7; border-radius: 8px; }
.mpol-theme-template-6 .mpol-step { position: relative; padding-right: 26px; margin-bottom: 6px; }
.mpol-theme-template-6 .mpol-step::before {
	content: "";
	position: absolute;
	right: 0; top: 4px;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: #6c5ce7;
}
.mpol-theme-template-6 .mpol-step-code::before { background: #4b8bf5; }

/* =========================================================
   قالب ۷: نئومورفیسم
   ========================================================= */
.mpol-theme-template-7 .mpol-form {
	background: #eef0f6;
	box-shadow: 10px 10px 22px #d3d5de, -10px -10px 22px #ffffff;
	border: none;
	border-radius: 24px;
}
.mpol-theme-template-7 .mpol-input {
	background: #eef0f6;
	border: none;
	box-shadow: inset 4px 4px 8px #d3d5de, inset -4px -4px 8px #ffffff;
}
.mpol-theme-template-7 .mpol-input:focus { box-shadow: inset 4px 4px 8px #d3d5de, inset -4px -4px 8px #ffffff, 0 0 0 3px rgba(108,92,231,0.15); }
.mpol-theme-template-7 .mpol-btn {
	background: #eef0f6;
	box-shadow: 5px 5px 10px #d3d5de, -5px -5px 10px #ffffff;
	color: #6c5ce7;
}
.mpol-theme-template-7 .mpol-btn-primary { background: linear-gradient(135deg,#6c5ce7,#8e6cf5); color:#fff; box-shadow: 5px 5px 14px rgba(108,92,231,0.4); }

/* =========================================================
   قالب ۸: بوردر رنگی گرد
   ========================================================= */
.mpol-theme-template-8 .mpol-form {
	border-radius: 28px;
	border: 2px solid #6c5ce7;
	box-shadow: 0 12px 0 -6px rgba(108,92,231,0.15);
}
.mpol-theme-template-8 .mpol-input { border-radius: 24px; text-align: center; }
.mpol-theme-template-8 .mpol-btn { border-radius: 24px; }
.mpol-theme-template-8 .mpol-title { color: #6c5ce7; }

/* =========================================================
   قالب ۹: ساده بدون تزئین
   ========================================================= */
.mpol-theme-template-9 .mpol-form {
	background: transparent;
	box-shadow: none;
	border: none;
	padding: 10px 0;
}
.mpol-theme-template-9 .mpol-input { border-radius: 4px; }
.mpol-theme-template-9 .mpol-btn { border-radius: 4px; }
.mpol-theme-template-9 .mpol-title { text-align: right; }

/* =========================================================
   قالب ۱۰: پاپ‌آپ (از استایل مشترک پاپ‌آپ در بالا استفاده می‌کند)
   ========================================================= */
.mpol-theme-template-10 .mpol-form { border-radius: 22px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 480px) {
	.mpol-form { padding: 24px 18px; }
	.mpol-wrap { max-width: 100%; }
}

/* ---------- پیش‌نمایش پنل مدیریت ---------- */
.mpol-admin-preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	max-width: 900px;
}
.mpol-admin-preview-item { border-radius: 12px; overflow: hidden; }
.mpol-mini-form { padding: 14px; border-radius: 10px; }
.mpol-mini-title { font-size: 11px; font-weight: 700; margin-bottom: 8px; color: #57596b; }
.mpol-mini-input { height: 20px; border-radius: 6px; background: #f0f0f5; margin-bottom: 8px; border:1px solid #e3e4ec; }
.mpol-mini-btn { height: 20px; border-radius: 6px; background: #6c5ce7; opacity:.85; }
.mpol-admin-preview-item.mpol-theme-template-3 .mpol-mini-form,
.mpol-admin-preview-item.mpol-theme-template-4 .mpol-mini-form { background: linear-gradient(160deg,#6c5ce7,#4b8bf5); }
.mpol-admin-preview-item.mpol-theme-template-4 .mpol-mini-form { background: #181824; }
.mpol-admin-preview-item.mpol-theme-template-3 .mpol-mini-title,
.mpol-admin-preview-item.mpol-theme-template-4 .mpol-mini-title { color:#fff; }
.mpol-admin-preview-item { background:#fafafd; border:1px solid #eee; padding: 4px; }

/* =========================================================
   OTPS 1.1 — رابط کاربری جدید فرم‌ها
   ========================================================= */
.mpol-wrap {
	--otps-primary: #5b5cf0;
	--otps-primary-dark: #4546d2;
	--otps-text: #161a2a;
	--otps-muted: #7a8194;
	max-width: 440px;
}
.mpol-form {
	padding: 34px 30px 30px;
	border: 1px solid #e9ecf3;
	border-radius: 26px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
	box-shadow: 0 24px 60px rgba(34, 42, 80, .12);
	overflow: hidden;
}
.mpol-form::before {
	content: "";
	position: absolute;
	top: -80px;
	right: -70px;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(91,92,240,.12), rgba(91,92,240,0) 70%);
	pointer-events: none;
}
.mpol-brand {
	position: relative;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 15px;
	border-radius: 18px;
	background: linear-gradient(145deg, #7374ff, #4d4edb);
	color: #fff;
	font-size: 27px;
	font-weight: 900;
	box-shadow: 0 12px 28px rgba(91,92,240,.28);
}
.mpol-title { margin-bottom: 7px; font-size: 21px; color: var(--otps-text); }
.mpol-subtitle { margin: 0 0 24px; color: var(--otps-muted); font-size: 12px; line-height: 1.8; text-align: center; }
.mpol-label { margin-bottom: 15px; color: #4f5669; font-size: 12px; }
.mpol-label > span { margin-bottom: 7px; }
.mpol-input-shell { position: relative; display: flex; align-items: center; }
.mpol-input {
	height: 48px;
	padding: 11px 14px;
	border: 1px solid #dfe3ec;
	border-radius: 13px;
	background: #f8f9fc;
	font-size: 15px;
	font-weight: 600;
	box-shadow: none;
}
.mpol-input::placeholder { color: #a8adba; font-weight: 400; }
.mpol-input:focus { border-color: var(--otps-primary); background: #fff; box-shadow: 0 0 0 4px rgba(91,92,240,.1); }
.mpol-input-prefix {
	position: absolute;
	left: 13px;
	z-index: 2;
	padding-right: 10px;
	border-right: 1px solid #dfe3ec;
	color: #8b91a0;
	font-size: 12px;
	direction: ltr;
}
.mpol-phone { padding-left: 62px; }
.mpol-code { font-size: 20px; letter-spacing: 7px; }
.mpol-btn {
	min-height: 48px;
	border-radius: 13px;
	font-size: 14px;
	box-shadow: none;
}
.mpol-send-code-btn, .mpol-btn-primary {
	background: linear-gradient(135deg, var(--otps-primary), #7374ff);
	color: #fff;
	box-shadow: 0 12px 24px rgba(91,92,240,.22);
}
.mpol-send-code-btn:hover, .mpol-btn-primary:hover { background: linear-gradient(135deg, var(--otps-primary-dark), #6263ee); }
.mpol-resend-btn { min-height: 40px; margin-top: 0; }
.mpol-change-phone { display: block; margin: -4px auto 7px; padding: 5px 10px; border: 0; background: transparent; color: var(--otps-primary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.mpol-message { margin-top: 16px; padding: 0; border-radius: 10px; font-size: 12px; line-height: 1.8; }
.mpol-message:not(:empty) { padding: 10px 12px; }
.mpol-message.is-error { background: #fff1f3; color: #c43852; border: 1px solid #ffd8df; }
.mpol-message.is-success { background: #edf9f4; color: #11875d; border: 1px solid #caeedf; }

/* هویت OTPS روی تم‌ها حفظ می‌شود، اما رنگ و حس هر قالب باقی می‌ماند. */
.mpol-theme-template-3 .mpol-subtitle,
.mpol-theme-template-4 .mpol-subtitle { color: rgba(255,255,255,.68); }
.mpol-theme-template-3 .mpol-brand,
.mpol-theme-template-4 .mpol-brand { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.18); box-shadow: none; }
.mpol-theme-template-5 .mpol-label > span { position: static; background: transparent; padding: 0; }
.mpol-theme-template-7 .mpol-form { background: #eef0f6; }
.mpol-theme-template-9 .mpol-brand { margin-right: 0; }
.mpol-theme-template-9 .mpol-title,
.mpol-theme-template-9 .mpol-subtitle { text-align: right; }
.mpol-theme-template-9 .mpol-form::before { display: none; }

@media (max-width: 480px) {
	.mpol-form { padding: 28px 18px 22px; border-radius: 22px; }
	.mpol-brand { width: 52px; height: 52px; border-radius: 16px; }
}

/* =========================================================
   OTPS 1.2 — فونت قالب + حساب یکپارچه + آیکن هدر
   ========================================================= */

/* همه خروجی‌های شورت‌کد دقیقاً از فونت فعال قالب سایت پیروی می‌کنند. */
.mpol-wrap,
.mpol-wrap *,
.mpol-account-auth,
.mpol-account-auth *,
.mpol-profile-card,
.mpol-profile-card *,
.mpol-header-auth,
.mpol-header-auth * {
	font-family: inherit !important;
}
.mpol-wrap button,
.mpol-wrap input,
.mpol-wrap textarea,
.mpol-wrap select,
.mpol-account-auth button,
.mpol-account-auth input,
.mpol-header-auth button {
	font: inherit;
}

/* رابط واحد ورود / عضویت */
.mpol-account-auth {
	direction: rtl;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}
.mpol-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
	margin: 0 auto 10px;
	padding: 5px;
	border: 1px solid #e7eaf1;
	border-radius: 16px;
	background: #f5f7fb;
}
.mpol-auth-tab {
	min-height: 42px;
	padding: 8px 16px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #777e91;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.mpol-auth-tab.is-active {
	background: #fff;
	color: #3f42c8;
	box-shadow: 0 7px 20px rgba(35, 42, 78, .08);
}
.mpol-auth-panel { display: none; }
.mpol-auth-panel.is-active { display: block; }
.mpol-auth-panel > .mpol-wrap { max-width: 100%; }

/* پروفایل حساب */
.mpol-profile-card {
	direction: rtl;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 26px;
	border: 1px solid #e7eaf1;
	border-radius: 24px;
	background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
	box-shadow: 0 22px 55px rgba(34, 42, 80, .1);
	color: #171b2b;
	box-sizing: border-box;
}
.mpol-profile-card *,
.mpol-profile-card *::before,
.mpol-profile-card *::after { box-sizing: border-box; }
.mpol-profile-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid #edf0f5;
}
.mpol-profile-head img {
	width: 82px;
	height: 82px;
	margin: 0;
	border-radius: 22px;
	object-fit: cover;
	box-shadow: 0 10px 26px rgba(34, 42, 80, .13);
}
.mpol-profile-heading { min-width: 0; }
.mpol-profile-kicker {
	display: block;
	margin-bottom: 4px;
	color: #5b5cf0;
	font-size: 11px;
	font-weight: 800;
}
.mpol-profile-heading h3 {
	margin: 0 0 4px;
	font-size: 21px;
	line-height: 1.5;
	color: inherit;
}
.mpol-profile-heading small { color: #81889a; font-size: 12px; }
.mpol-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 18px 0;
}
.mpol-profile-grid > div {
	padding: 14px;
	border-radius: 15px;
	background: #f6f8fc;
}
.mpol-profile-grid .mpol-profile-wide { grid-column: 1 / -1; }
.mpol-profile-grid span {
	display: block;
	margin-bottom: 5px;
	color: #8a91a1;
	font-size: 11px;
}
.mpol-profile-grid strong {
	display: block;
	overflow: hidden;
	color: #252a3c;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: auto;
}
.mpol-profile-actions {
	display: flex;
	gap: 9px;
	align-items: center;
}
.mpol-profile-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 16px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none !important;
	transition: transform .15s ease, opacity .15s ease;
}
.mpol-profile-actions a:hover { transform: translateY(-1px); }
.mpol-profile-primary {
	flex: 1;
	background: linear-gradient(135deg, #5b5cf0, #7273ff);
	color: #fff !important;
}
.mpol-profile-logout {
	background: #fff1f3;
	color: #c23c56 !important;
}

/* آیکن حساب مناسب هدر قالب و المنتور */
.mpol-header-auth {
	position: relative;
	display: inline-flex;
	align-items: center;
	direction: rtl;
	line-height: 1;
}
.mpol-header-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 40px;
	min-height: 40px;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: inherit;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.mpol-header-icon-btn:hover {
	background: rgba(128, 128, 128, .1);
	color: inherit;
}
.mpol-user-icon {
	display: block;
	flex: 0 0 auto;
	stroke: currentColor;
}
.mpol-header-icon-btn > span { font-size: 13px; font-weight: 700; line-height: 1.4; }
.mpol-header-menu {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 99998;
	width: 245px;
	padding: 10px;
	border: 1px solid #e6e9f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 55px rgba(25, 32, 62, .18);
	line-height: 1.6;
}
.mpol-header-menu.is-open { display: block; animation: mpolHeaderMenuIn .16s ease; }
.mpol-header-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px 11px;
	margin-bottom: 5px;
	border-bottom: 1px solid #eef0f4;
}
.mpol-header-user img { width: 44px; height: 44px; margin: 0; border-radius: 13px; object-fit: cover; }
.mpol-header-user div { min-width: 0; }
.mpol-header-user strong,
.mpol-header-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpol-header-user strong { color: #202536; font-size: 13px; }
.mpol-header-user small { margin-top: 2px; color: #8a91a1; font-size: 10px; direction: ltr; text-align: right; }
.mpol-header-menu > a {
	display: block;
	padding: 9px 10px;
	border-radius: 9px;
	color: #33394b !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
}
.mpol-header-menu > a:hover { background: #f5f7fb; }
.mpol-header-menu > .mpol-header-logout { color: #c43d56 !important; }
.mpol-header-popup { z-index: 999999; }
.mpol-header-popup-box { width: min(92vw, 440px); max-width: 440px; }
.mpol-header-popup-box .mpol-account-auth { max-height: min(86vh, 760px); overflow-y: auto; overscroll-behavior: contain; }

@keyframes mpolHeaderMenuIn {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
	.mpol-profile-card { padding: 20px 16px; border-radius: 20px; }
	.mpol-profile-head { align-items: flex-start; }
	.mpol-profile-head img { width: 66px; height: 66px; border-radius: 18px; }
	.mpol-profile-grid { grid-template-columns: 1fr; }
	.mpol-profile-grid .mpol-profile-wide { grid-column: auto; }
	.mpol-profile-actions { flex-direction: column; align-items: stretch; }
	.mpol-header-menu { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* =========================================================
   OTPS 1.3 — ورود و عضویت هوشمند + استایل کاملاً قابل ویرایش
   ========================================================= */
.mpol-wrap,
.mpol-account-auth,
.mpol-profile-card,
.mpol-header-auth {
	--otps-primary: #4f46e5;
	--otps-primary-hover: #3730a3;
	--otps-background: #ffffff;
	--otps-surface: #f8fafc;
	--otps-text: #111827;
	--otps-muted: #6b7280;
	--otps-border: #e5e7eb;
	--otps-input-bg: #ffffff;
	--otps-input-text: #111827;
	--otps-button-text: #ffffff;
	--otps-error: #dc2626;
	--otps-success: #059669;
	--otps-font-family: inherit;
	--otps-base-size: 14px;
	--otps-title-size: 24px;
	--otps-input-size: 15px;
	--otps-button-size: 14px;
	--otps-form-radius: 24px;
	--otps-input-radius: 14px;
	--otps-button-radius: 14px;
	--otps-form-width: 460px;
	--otps-form-padding: 30px;
	font-family: var(--otps-font-family, inherit) !important;
	font-size: var(--otps-base-size);
}
.mpol-wrap *,
.mpol-account-auth *,
.mpol-profile-card *,
.mpol-header-auth * {
	font-family: var(--otps-font-family, inherit) !important;
}
.mpol-wrap {
	width:100%;
	max-width:var(--otps-form-width);
}
.mpol-account-auth {
	width:100%;
	max-width:var(--otps-form-width);
}
.mpol-account-auth > .mpol-wrap { max-width:100%; }

.mpol-wrap .mpol-form,
.mpol-popup-box .mpol-form {
	position:relative;
	padding:var(--otps-form-padding);
	border:1px solid var(--otps-border);
	border-radius:var(--otps-form-radius);
	background:var(--otps-background);
	box-shadow:0 24px 70px rgba(15,23,42,.12);
	color:var(--otps-text);
	overflow:hidden;
	isolation:isolate;
}
.mpol-wrap .mpol-form::before,
.mpol-popup-box .mpol-form::before {
	content:"";
	position:absolute;
	top:-90px;
	right:-80px;
	width:220px;
	height:220px;
	border-radius:50%;
	background:radial-gradient(circle, color-mix(in srgb, var(--otps-primary) 16%, transparent), transparent 70%);
	pointer-events:none;
	z-index:-1;
}
@supports not (background: color-mix(in srgb, red, transparent)) {
	.mpol-wrap .mpol-form::before,
	.mpol-popup-box .mpol-form::before { background:radial-gradient(circle, rgba(79,70,229,.12), rgba(79,70,229,0) 70%); }
}
.mpol-wrap .mpol-brand,
.mpol-popup-box .mpol-brand {
	dis:grid;
	place-items:center;
	width:62px;
	height:62px;
	margin:0 auto 16px;
	border-radius:19px;
	background:linear-gradient(145deg,var(--otps-primary),var(--otps-primary-hover));
	color:var(--otps-button-text);
	box-shadow:0 14px 30px color-mix(in srgb, var(--otps-primary) 28%, transparent);
}
.mpol-wrap .mpol-brand svg,
.mpol-popup-box .mpol-brand svg { display:block; }
.mpol-wrap .mpol-title,
.mpol-popup-box .mpol-title {
	margin:0 0 7px;
	color:var(--otps-text);
	font-size:var(--otps-title-size);
	font-weight:900;
	line-height:1.5;
	text-align:center;
}
.mpol-wrap .mpol-subtitle,
.mpol-popup-box .mpol-subtitle {
	max-width:370px;
	margin:0 auto 22px;
	color:var(--otps-muted);
	font-size:calc(var(--otps-base-size) * .86);
	line-height:1.95;
	text-align:center;
}
.mpol-progress {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:6px;
	margin:0 0 22px;
}
.mpol-progress span {
	height:4px;
	border-radius:99px;
	background:var(--otps-border);
	transition:background .2s ease, transform .2s ease;
}
.mpol-progress span.is-active {
	background:var(--otps-primary);
	transform:scaleY(1.18);
}
.mpol-wrap .mpol-label,
.mpol-popup-box .mpol-label {
	dis:block;
	margin-bottom:14px;
	color:var(--otps-text);
	font-size:calc(var(--otps-base-size) * .88);
	font-weight:800;
}
.mpol-wrap .mpol-label > span,
.mpol-popup-box .mpol-label > span {
	position:static;
	dis:block;
	margin:0 0 8px;
	padding:0;
	background:transparent;
	color:inherit;
	font-size:inherit;
}
.mpol-wrap .mpol-input-shell,
.mpol-popup-box .mpol-input-shell {
	position:relative;
	dis:flex;
	align-items:center;
}
.mpol-wrap .mpol-input,
.mpol-popup-box .mpol-input {
	width:100%;
	height:52px;
	padding:11px 15px;
	border:1px solid var(--otps-border);
	border-radius:var(--otps-input-radius);
	background:var(--otps-input-bg);
	color:var(--otps-input-text);
	font-size:var(--otps-input-size);
	font-weight:700;
	line-height:1;
	outline:none;
	box-shadow:0 1px 2px rgba(15,23,42,.03);
	transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.mpol-wrap .mpol-input::placeholder,
.mpol-popup-box .mpol-input::placeholder {
	color:var(--otps-muted);
	opacity:.62;
	font-weight:500;
}
.mpol-wrap .mpol-input:focus,
.mpol-popup-box .mpol-input:focus {
	border-color:var(--otps-primary);
	background:var(--otps-input-bg);
	box-shadow:0 0 0 4px color-mix(in srgb, var(--otps-primary) 12%, transparent);
	transform:translateY(-1px);
}
.mpol-input-prefix {
	position:absolute;
	left:14px;
	z-index:2;
	padding-right:10px;
	border-right:1px solid var(--otps-border);
	color:var(--otps-muted);
	font-size:calc(var(--otps-base-size) * .85);
	direction:ltr;
}
.mpol-phone { padding-left:66px !important; text-align:center; direction:ltr; }
.mpol-code {
	font-size:calc(var(--otps-input-size) * 1.25) !important;
	letter-spacing:8px;
	text-align:center;
	direction:ltr;
}
.mpol-wrap .mpol-btn,
.mpol-popup-box .mpol-btn,
.mpol-popup-open-btn {
	dis:flex;
	align-items:center;
	justify-content:center;
	gap:9px;
	width:100%;
	min-height:52px;
	padding:12px 16px;
	border:0;
	border-radius:var(--otps-button-radius);
	font-size:var(--otps-button-size);
	font-weight:900;
	line-height:1.4;
	cursor:pointer;
	transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease;
}
.mpol-wrap .mpol-send-code-btn,
.mpol-wrap .mpol-btn-primary,
.mpol-popup-box .mpol-send-code-btn,
.mpol-popup-box .mpol-btn-primary,
.mpol-popup-open-btn {
	background:linear-gradient(135deg,var(--otps-primary),var(--otps-primary-hover));
	color:var(--otps-button-text);
	box-shadow:0 13px 28px color-mix(in srgb, var(--otps-primary) 24%, transparent);
}
.mpol-wrap .mpol-btn:hover:not(:disabled),
.mpol-popup-box .mpol-btn:hover:not(:disabled),
.mpol-popup-open-btn:hover {
	transform:translateY(-2px);
	filter:saturate(1.05);
}
.mpol-wrap .mpol-btn:active:not(:disabled),
.mpol-popup-box .mpol-btn:active:not(:disabled) { transform:translateY(0); }
.mpol-wrap .mpol-btn:disabled,
.mpol-popup-box .mpol-btn:disabled { opacity:.56; cursor:not-allowed; transform:none; }
.mpol-btn svg { flex:0 0 auto; }
.mpol-privacy-note {
	margin:12px 0 0;
	color:var(--otps-muted);
	font-size:calc(var(--otps-base-size) * .76);
	line-height:1.8;
	text-align:center;
}
.mpol-code-heading {
	dis:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	margin-bottom:14px;
}
.mpol-code-heading strong { color:var(--otps-text); font-size:calc(var(--otps-base-size) * 1.02); }
.mpol-code-heading small { color:var(--otps-muted); font-size:calc(var(--otps-base-size) * .78); direction:ltr; }
.mpol-change-phone {
	dis:block;
	margin:-3px auto 11px;
	padding:5px 9px;
	border:0;
	background:transparent;
	color:var(--otps-primary);
	font-size:calc(var(--otps-base-size) * .82);
	font-weight:900;
	cursor:pointer;
}
.mpol-wrap .mpol-resend-btn,
.mpol-popup-box .mpol-resend-btn {
	min-height:42px;
	margin-top:6px;
	background:transparent;
	color:var(--otps-muted);
	box-shadow:none;
	font-size:calc(var(--otps-button-size) * .9);
}
.mpol-wrap .mpol-message,
.mpol-popup-box .mpol-message {
	min-height:0;
	margin-top:14px;
	border-radius:calc(var(--otps-input-radius) * .78);
	font-size:calc(var(--otps-base-size) * .84);
	line-height:1.8;
	text-align:center;
}
.mpol-wrap .mpol-message:not(:empty),
.mpol-popup-box .mpol-message:not(:empty) { padding:10px 12px; }
.mpol-wrap .mpol-message.is-error,
.mpol-popup-box .mpol-message.is-error {
	border:1px solid color-mix(in srgb, var(--otps-error) 25%, transparent);
	background:color-mix(in srgb, var(--otps-error) 7%, var(--otps-background));
	color:var(--otps-error);
}
.mpol-wrap .mpol-message.is-success,
.mpol-popup-box .mpol-message.is-success {
	border:1px solid color-mix(in srgb, var(--otps-success) 25%, transparent);
	background:color-mix(in srgb, var(--otps-success) 7%, var(--otps-background));
	color:var(--otps-success);
}
.mpol-spinner {
	width:18px;
	height:18px;
	border:2px solid currentColor;
	border-left-color:transparent;
	border-radius:50%;
	animation:mpolSpinner .7s linear infinite;
}
@keyframes mpolSpinner { to { transform:rotate(360deg); } }

/* پروفایل با همان تنظیمات ظاهری */
.mpol-profile-card {
	max-width:calc(var(--otps-form-width) + 160px);
	padding:var(--otps-form-padding);
	border-color:var(--otps-border);
	border-radius:var(--otps-form-radius);
	background:var(--otps-background);
	color:var(--otps-text);
	font-size:var(--otps-base-size);
}
.mpol-profile-card .mpol-profile-kicker { color:var(--otps-primary); }
.mpol-profile-card .mpol-profile-heading h3,
.mpol-profile-card .mpol-profile-grid strong { color:var(--otps-text); }
.mpol-profile-card .mpol-profile-heading small,
.mpol-profile-card .mpol-profile-grid span { color:var(--otps-muted); }
.mpol-profile-card .mpol-profile-grid > div { background:var(--otps-surface); }
.mpol-profile-card .mpol-profile-primary {
	border-radius:var(--otps-button-radius);
	background:linear-gradient(135deg,var(--otps-primary),var(--otps-primary-hover));
	color:var(--otps-button-text) !important;
	font-size:var(--otps-button-size);
}
.mpol-profile-card .mpol-profile-logout { border-radius:var(--otps-button-radius); }

/* آیکن و منوی هدر نیز از رنگ و فونت تنظیم‌شده استفاده می‌کنند. */
.mpol-header-icon-btn { color:inherit; font-size:var(--otps-base-size); }
.mpol-header-menu {
	border-color:var(--otps-border);
	border-radius:var(--otps-form-radius);
	background:var(--otps-background);
	color:var(--otps-text);
}
.mpol-header-user { border-bottom-color:var(--otps-border); }
.mpol-header-user strong,
.mpol-header-menu > a { color:var(--otps-text) !important; }
.mpol-header-user small { color:var(--otps-muted); }
.mpol-header-menu > a:hover { background:var(--otps-surface); }

/* پاپ‌آپ */
.mpol-popup-overlay { background:color-mix(in srgb,var(--otps-header-popup-overlay) 72%,transparent); backdrop-filter:blur(8px); }
.mpol-popup-box { max-width:var(--otps-form-width); }
.mpol-popup-close {
	top:-12px;
	left:-12px;
	width:38px;
	height:38px;
	border:1px solid var(--otps-border);
	background:var(--otps-background);
	color:var(--otps-text);
}

/* تم‌های قدیمی دیگر رنگ‌های قابل‌ویرایش را بازنویسی نمی‌کنند؛ فقط ساختار کلی حفظ می‌شود. */
.mpol-theme-template-2 .mpol-form,
.mpol-theme-template-3 .mpol-form,
.mpol-theme-template-4 .mpol-form,
.mpol-theme-template-5 .mpol-form,
.mpol-theme-template-6 .mpol-form,
.mpol-theme-template-7 .mpol-form,
.mpol-theme-template-8 .mpol-form,
.mpol-theme-template-9 .mpol-form,
.mpol-theme-template-10 .mpol-form {
	background:var(--otps-background);
	border-color:var(--otps-border);
	border-radius:var(--otps-form-radius);
	color:var(--otps-text);
}
.mpol-theme-template-3 .mpol-title,
.mpol-theme-template-4 .mpol-title,
.mpol-theme-template-3 .mpol-label,
.mpol-theme-template-4 .mpol-label,
.mpol-theme-template-3 .mpol-subtitle,
.mpol-theme-template-4 .mpol-subtitle { color:inherit; }

@media (max-width:600px) {
	.mpol-wrap .mpol-form,
	.mpol-popup-box .mpol-form { padding:max(18px, calc(var(--otps-form-padding) * .72)); }
	.mpol-wrap .mpol-brand,
	.mpol-popup-box .mpol-brand { width:56px; height:56px; border-radius:17px; }
	.mpol-code-heading { align-items:flex-start; flex-direction:column; gap:4px; }
}

/* =========================================================
   OTPS 2.0 — کنترل کامل ظاهر و پروفایل قابل ویرایش
   ========================================================= */
.mpol-wrap,
.mpol-account-auth,
.mpol-profile-card,
.mpol-header-auth {
	font-family:var(--otps-font-family, inherit) !important;
	font-size:var(--otps-base-size, 14px);
	font-weight:var(--otps-base-weight, 400);
}
.mpol-wrap *, .mpol-account-auth *, .mpol-profile-card *, .mpol-header-auth * { box-sizing:border-box; }

.mpol-wrap .mpol-form,
.mpol-popup-box .mpol-form {
	display:block;
	background:var(--otps-background);
	border-color:var(--otps-border);
	box-shadow:0 24px 70px color-mix(in srgb, var(--otps-shadow) 12%, transparent);
}
.mpol-wrap .mpol-brand,
.mpol-popup-box .mpol-brand {
	display:grid;
	background:linear-gradient(145deg,var(--otps-primary),var(--otps-primary-hover));
	color:var(--otps-brand-color);
}
.mpol-wrap .mpol-title,
.mpol-popup-box .mpol-title {
	font-family:var(--otps-title-font, inherit) !important;
	font-size:var(--otps-title-size);
	font-weight:var(--otps-title-weight);
	color:var(--otps-title-color);
}
.mpol-wrap .mpol-subtitle,
.mpol-popup-box .mpol-subtitle {
	font-family:var(--otps-subtitle-font, inherit) !important;
	font-size:var(--otps-subtitle-size);
	font-weight:var(--otps-subtitle-weight);
	color:var(--otps-subtitle-color);
}
.mpol-progress { display:grid; }
.mpol-progress span { background:var(--otps-progress-inactive); }
.mpol-progress span.is-active { background:var(--otps-progress); }
.mpol-wrap .mpol-label,
.mpol-popup-box .mpol-label,
.mpol-profile-card .mpol-label {
	display:block;
	font-family:var(--otps-label-font, inherit) !important;
	font-size:var(--otps-label-size);
	font-weight:var(--otps-label-weight);
	color:var(--otps-label-color);
}
.mpol-wrap .mpol-label > span,
.mpol-popup-box .mpol-label > span,
.mpol-profile-card .mpol-label > span { display:block; }
.mpol-wrap .mpol-input-shell,
.mpol-popup-box .mpol-input-shell { display:flex; }
.mpol-wrap .mpol-input,
.mpol-popup-box .mpol-input,
.mpol-profile-card .mpol-input {
	font-family:var(--otps-input-font, inherit) !important;
	font-size:var(--otps-input-size);
	font-weight:var(--otps-input-weight);
	color:var(--otps-input-text);
	background:var(--otps-input-bg);
	border:1px solid var(--otps-input-border);
	border-radius:var(--otps-input-radius);
}
.mpol-wrap .mpol-input::placeholder,
.mpol-popup-box .mpol-input::placeholder,
.mpol-profile-card .mpol-input::placeholder { color:var(--otps-input-placeholder); opacity:1; }
.mpol-wrap .mpol-input:hover,
.mpol-popup-box .mpol-input:hover,
.mpol-profile-card .mpol-input:hover { border-color:var(--otps-input-hover-border); }
.mpol-wrap .mpol-input:focus,
.mpol-popup-box .mpol-input:focus,
.mpol-profile-card .mpol-input:focus {
	border-color:var(--otps-input-focus-border);
	background:var(--otps-input-focus-bg);
	box-shadow:0 0 0 4px color-mix(in srgb, var(--otps-input-focus-border) 12%, transparent);
}
.mpol-wrap .mpol-btn,
.mpol-popup-box .mpol-btn,
.mpol-profile-card .mpol-btn,
.mpol-popup-open-btn {
	display:flex;
	font-family:var(--otps-button-font, inherit) !important;
	font-size:var(--otps-button-size);
	font-weight:var(--otps-button-weight);
	border-radius:var(--otps-button-radius);
}
.mpol-wrap .mpol-send-code-btn,
.mpol-wrap .mpol-btn-primary,
.mpol-popup-box .mpol-send-code-btn,
.mpol-popup-box .mpol-btn-primary,
.mpol-profile-card .mpol-btn-primary,
.mpol-popup-open-btn {
	background:var(--otps-button-bg);
	border:1px solid var(--otps-button-border);
	color:var(--otps-button-text);
	box-shadow:0 13px 28px color-mix(in srgb, var(--otps-button-bg) 24%, transparent);
}
.mpol-wrap .mpol-send-code-btn:hover:not(:disabled),
.mpol-wrap .mpol-btn-primary:hover:not(:disabled),
.mpol-popup-box .mpol-send-code-btn:hover:not(:disabled),
.mpol-popup-box .mpol-btn-primary:hover:not(:disabled),
.mpol-profile-card .mpol-btn-primary:hover:not(:disabled),
.mpol-popup-open-btn:hover {
	background:var(--otps-button-hover-bg);
	border-color:var(--otps-button-hover-border);
	color:var(--otps-button-hover-text);
}
.mpol-wrap .mpol-resend-btn,
.mpol-popup-box .mpol-resend-btn,
.mpol-profile-secondary {
	background:var(--otps-secondary-bg) !important;
	border:1px solid var(--otps-secondary-border) !important;
	color:var(--otps-secondary-text) !important;
}
.mpol-wrap .mpol-resend-btn:hover:not(:disabled),
.mpol-popup-box .mpol-resend-btn:hover:not(:disabled),
.mpol-profile-secondary:hover {
	background:var(--otps-secondary-hover-bg) !important;
	color:var(--otps-secondary-hover-text) !important;
}
.mpol-change-phone,
.mpol-profile-card a {
	font-size:var(--otps-link-size);
	font-weight:var(--otps-link-weight);
}
.mpol-change-phone { color:var(--otps-link); }
.mpol-change-phone:hover { color:var(--otps-link-hover); }
.mpol-wrap .mpol-message.is-error,
.mpol-popup-box .mpol-message.is-error,
.mpol-profile-card .mpol-message.is-error {
	background:var(--otps-error-bg);
	color:var(--otps-error);
	border-color:color-mix(in srgb, var(--otps-error) 25%, transparent);
}
.mpol-wrap .mpol-message.is-success,
.mpol-popup-box .mpol-message.is-success,
.mpol-profile-card .mpol-message.is-success {
	background:var(--otps-success-bg);
	color:var(--otps-success);
	border-color:color-mix(in srgb, var(--otps-success) 25%, transparent);
}

.mpol-profile-card.mpol-profile-editor {
	width:100%;
	max-width:calc(var(--otps-form-width) + 220px);
	padding:var(--otps-form-padding);
	background:var(--otps-profile-bg);
	border:1px solid var(--otps-border);
	border-radius:var(--otps-form-radius);
	box-shadow:0 24px 70px color-mix(in srgb, var(--otps-shadow) 12%, transparent);
}
.mpol-profile-editor .mpol-profile-head { display:flex; }
.mpol-profile-editor .mpol-profile-heading h3 {
	font-size:var(--otps-profile-title-size);
	font-weight:var(--otps-profile-title-weight);
	color:var(--otps-profile-value);
}
.mpol-profile-summary {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:12px;
	margin:22px 0;
}
.mpol-profile-summary > div {
	padding:14px 16px;
	background:var(--otps-profile-surface);
	border:1px solid var(--otps-border);
	border-radius:var(--otps-input-radius);
}
.mpol-profile-summary span { display:block; margin-bottom:5px; color:var(--otps-profile-label); font-size:12px; }
.mpol-profile-summary strong { color:var(--otps-profile-value); }
.mpol-profile-form {
	padding:20px;
	background:var(--otps-profile-surface);
	border:1px solid var(--otps-border);
	border-radius:calc(var(--otps-form-radius) * .75);
}
.mpol-profile-form-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.mpol-profile-form-head h4 { margin:0 0 5px; color:var(--otps-profile-value); font-size:18px; font-weight:800; }
.mpol-profile-form-head p { margin:0; color:var(--otps-profile-label); font-size:12px; line-height:1.8; }
.mpol-profile-completion { flex:0 0 auto; padding:7px 10px; color:var(--otps-secondary-text); background:var(--otps-secondary-bg); border:1px solid var(--otps-secondary-border); border-radius:999px; font-size:11px; font-weight:800; }
.mpol-profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mpol-profile-fields .mpol-label { margin:0; }
.mpol-profile-fields .mpol-input { width:100%; height:50px; padding:10px 13px; outline:none; }
.mpol-profile-fields select.mpol-input { line-height:normal; }
.mpol-profile-fields .mpol-profile-wide { grid-column:1 / -1; }
.mpol-profile-fields .mpol-textarea { height:auto; min-height:120px; resize:vertical; line-height:1.9; }
.mpol-profile-save { width:100%; margin-top:16px; }
.mpol-profile-message { margin-top:12px; text-align:center; }
.mpol-profile-message:not(:empty) { padding:10px 12px; border:1px solid; border-radius:var(--otps-input-radius); }
.mpol-profile-actions { display:flex; gap:10px; margin-top:16px; }
.mpol-profile-actions a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:9px 14px; border-radius:var(--otps-button-radius); text-decoration:none; }
.mpol-profile-secondary { flex:1; }

.mpol-header-icon-btn {
	font-size:var(--otps-header-size);
	font-weight:var(--otps-header-weight);
	color:var(--otps-header-color);
	background:var(--otps-header-bg);
	border-color:var(--otps-header-border);
}
.mpol-header-icon-btn:hover {
	color:var(--otps-header-hover-color);
	background:var(--otps-header-hover-bg);
	border-color:var(--otps-header-hover-border);
}

@media (max-width:700px) {
	.mpol-profile-summary,
	.mpol-profile-fields { grid-template-columns:1fr; }
	.mpol-profile-fields .mpol-profile-wide { grid-column:auto; }
	.mpol-profile-form { padding:14px; }
	.mpol-profile-form-head { flex-direction:column; }
}


/* =========================================================
   OTPS 2.3.0 — طراحی مستقل [otps_header_icon]
   ========================================================= */
.mpol-header-auth {
	font-family:var(--otps-header-font, inherit);
}
.mpol-header-icon-btn {
	gap:8px;
	min-width:0;
	min-height:0;
	padding:var(--otps-header-padding-y) var(--otps-header-padding-x);
	border:1px solid var(--otps-header-border);
	border-radius:var(--otps-header-radius);
	font-family:var(--otps-header-font, inherit);
	font-size:var(--otps-header-size);
	font-weight:var(--otps-header-weight);
	line-height:1.35;
	white-space:nowrap;
	transition:color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mpol-header-icon-btn:hover {
	transform:translateY(-1px);
	box-shadow:0 10px 28px color-mix(in srgb, var(--otps-header-hover-bg) 20%, transparent);
}
.mpol-header-icon-btn:focus-visible {
	outline:3px solid color-mix(in srgb, var(--otps-header-hover-bg) 28%, transparent);
	outline-offset:3px;
}
.mpol-header-auth.mpol-header-border-off .mpol-header-icon-btn,
.mpol-header-auth.mpol-header-border-off .mpol-header-icon-btn:hover {
	border-width:0 !important;
	border-color:transparent !important;
}
.mpol-header-auth.mpol-header-border-off .mpol-header-icon-btn {
	padding:calc(var(--otps-header-padding-y) + 1px) calc(var(--otps-header-padding-x) + 1px);
}
.mpol-header-icon-btn .mpol-user-icon {
	width:var(--otps-header-icon-size);
	height:var(--otps-header-icon-size);
	flex:0 0 var(--otps-header-icon-size);
}

.mpol-header-auth.mpol-header-order-icon-right .mpol-header-icon-btn { flex-direction:row; }
.mpol-header-auth.mpol-header-order-text-right .mpol-header-icon-btn { flex-direction:row-reverse; }

.mpol-header-label {
	display:block;
	max-width:180px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}

/* پاپ‌آپ هدر همیشه نسبت به viewport و دقیقاً وسط صفحه باز می‌شود. */
body.mpol-popup-lock { overflow:hidden; }
.mpol-header-popup {
	position:fixed !important;
	inset:0 !important;
	width:100vw !important;
	height:100vh !important;
	height:100dvh !important;
	padding:clamp(12px, 3vw, 28px) !important;
	align-items:center !important;
	justify-content:center !important;
	overflow:auto !important;
	overscroll-behavior:contain;
	background:color-mix(in srgb, var(--otps-header-popup-overlay) 72%, transparent) !important;
	backdrop-filter:blur(10px) saturate(115%);
	-webkit-backdrop-filter:blur(10px) saturate(115%);
}
.mpol-header-popup.is-open { display:flex !important; }
.mpol-header-popup-box {
	position:relative;
	width:min(100%, var(--otps-header-popup-width)) !important;
	max-width:var(--otps-header-popup-width) !important;
	max-height:calc(100dvh - 24px);
	margin:auto !important;
	border-radius:var(--otps-header-popup-radius);
	animation:otpsHeaderPopupIn .24s cubic-bezier(.2,.8,.2,1);
}
.mpol-header-popup-box .mpol-account-auth {
	max-height:calc(100dvh - 36px) !important;
	overflow:auto;
	border-radius:var(--otps-header-popup-radius);
	scrollbar-width:thin;
}
.mpol-header-popup-box .mpol-form {
	width:100%;
	max-width:none;
	border-radius:var(--otps-header-popup-radius) !important;
	box-shadow:0 28px 90px color-mix(in srgb,var(--otps-shadow) 22%,transparent) !important;
}
.mpol-header-popup .mpol-popup-close {
	top:12px !important;
	left:12px !important;
	z-index:20;
}
@keyframes otpsHeaderPopupIn {
	from { opacity:0; transform:translateY(18px) scale(.965); }
	to { opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:600px) {
	.mpol-header-icon-btn { padding:var(--otps-header-padding-y) max(9px, calc(var(--otps-header-padding-x) * .8)); }
	.mpol-header-label { max-width:120px; }
	.mpol-header-popup { padding:10px !important; align-items:center !important; }
	.mpol-header-popup-box { width:100% !important; max-height:calc(100dvh - 20px); }
	.mpol-header-popup-box .mpol-account-auth { max-height:calc(100dvh - 20px) !important; }
	.mpol-header-popup-box .mpol-form { padding:max(18px, calc(var(--otps-form-padding) * .72)); }
	.mpol-header-popup .mpol-popup-close { top:9px !important; left:9px !important; }
}

/* =========================================================
   OTPS 2.6.0 — UI حرفه‌ای و مستقل برای [otps_header_icon]
   پالت پیش‌فرض: آبی + سفید، مقاوم در برابر CSS قالب
   ========================================================= */
.mpol-header-auth.mpol-header-ui-pro {
	position:relative;
	display:inline-flex;
	align-items:center;
	isolation:isolate;
	font-family:var(--otps-header-font, inherit);
}
.mpol-header-auth.mpol-header-ui-pro > .mpol-header-icon-btn {
	-webkit-appearance:none !important;
	appearance:none !important;
	box-sizing:border-box !important;
	display:inline-flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:9px !important;
	min-height:42px !important;
	margin:0 !important;
	padding:9px 14px !important;
	border:1px solid var(--otps-header-border) !important;
	border-radius:12px !important;
	background:var(--otps-header-bg) !important;
	color:var(--otps-header-color) !important;
	box-shadow:0 4px 14px rgba(37,99,235,.08) !important;
	text-decoration:none !important;
	text-transform:none !important;
	letter-spacing:0 !important;
	font-family:var(--otps-header-font, inherit) !important;
	font-size:var(--otps-header-size) !important;
	font-weight:var(--otps-header-weight) !important;
	line-height:1.4 !important;
	cursor:pointer !important;
	transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease !important;
}
.mpol-header-auth.mpol-header-ui-pro > .mpol-header-icon-btn:hover {
	background:var(--otps-header-hover-bg) !important;
	color:var(--otps-header-hover-color) !important;
	border-color:var(--otps-header-hover-border) !important;
	box-shadow:0 12px 28px rgba(37,99,235,.24) !important;
	transform:translateY(-1px) !important;
}
.mpol-header-auth.mpol-header-ui-pro > .mpol-header-icon-btn:active {
	transform:translateY(0) scale(.985) !important;
}
.mpol-header-auth.mpol-header-ui-pro > .mpol-header-icon-btn:focus-visible {
	outline:3px solid rgba(37,99,235,.22) !important;
	outline-offset:3px !important;
}
.mpol-header-auth.mpol-header-ui-pro .mpol-user-icon {
	display:block !important;
	width:var(--otps-header-icon-size) !important;
	height:var(--otps-header-icon-size) !important;
	flex:0 0 var(--otps-header-icon-size) !important;
	stroke:currentColor !important;
}
.mpol-header-auth.mpol-header-ui-pro .mpol-header-label {
	dis:block !important;
	margin:0 !important;
	padding:0 !important;
	color:inherit !important;
	font:inherit !important;
	line-height:1.4 !important;
}
.mpol-header-auth.mpol-header-ui-pro.mpol-header-border-off > .mpol-header-icon-btn,
.mpol-header-auth.mpol-header-ui-pro.mpol-header-border-off > .mpol-header-icon-btn:hover {
	border-color:transparent !important;
}

/* لایه پاپ‌آپ کاملاً مستقل از هدر و قالب */
body.mpol-popup-lock {
	overflow:hidden !important;
	touch-action:none;
}
.mpol-header-popup.mpol-header-popup-pro {
	position:fixed !important;
	inset:0 !important;
	z-index:2147483000 !important;
	dis:none !important;
	width:100vw !important;
	height:100vh !important;
	height:100dvh !important;
	margin:0 !important;
	padding:clamp(14px,3vw,32px) !important;
	align-items:center !important;
	justify-content:center !important;
	overflow:auto !important;
	background:var(--otps-popup-overlay) !important;
	backdrop-filter:blur(12px) saturate(115%) !important;
	-webkit-backdrop-filter:blur(12px) saturate(115%) !important;
	box-sizing:border-box !important;
}
.mpol-header-popup.mpol-header-popup-pro.is-open {
	dis:flex !important;
	animation:otpsOverlayIn .18s ease both;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-box {
	position:relative !important;
	width:min(100%, 480px) !important;
	max-width:480px !important;
	max-height:calc(100dvh - 28px) !important;
	margin:auto !important;
	padding:0 !important;
	border:0 !important;
	border-radius:24px !important;
	background:#fff !important;
	box-shadow:var(--otps-popup-shadow) !important;
	animation:otpsProfessionalPopupIn .28s cubic-bezier(.2,.8,.2,1) both !important;
	box-sizing:border-box !important;
	isolation:isolate;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-shell {
	position:relative;
	overflow:hidden;
	border:1px solid #e2e8f0;
	border-radius:24px;
	background:#fff;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-accent {
	position:absolute;
	z-index:1;
	top:0;
	right:0;
	left:0;
	height:5px;
	background:linear-gradient(90deg,#60a5fa 0%,#2563eb 50%,#1d4ed8 100%);
}

/* تمام متغیرهای فرم داخل پاپ‌آپ با پالت مستقل بازتعریف می‌شوند. */
.mpol-header-popup.mpol-header-popup-pro .mpol-account-auth,
.mpol-header-popup.mpol-header-popup-pro .mpol-wrap,
.mpol-header-popup.mpol-header-popup-pro .mpol-form {
	--otps-primary:var(--otps-popup-primary) !important;
	--otps-primary-hover:var(--otps-popup-primary-hover) !important;
	--otps-background:var(--otps-popup-background) !important;
	--otps-surface:var(--otps-popup-surface) !important;
	--otps-border:var(--otps-popup-border) !important;
	--otps-title-color:var(--otps-popup-title) !important;
	--otps-text:var(--otps-popup-title) !important;
	--otps-subtitle-color:var(--otps-popup-subtitle) !important;
	--otps-muted:var(--otps-popup-subtitle) !important;
	--otps-label-color:var(--otps-popup-label) !important;
	--otps-input-text:var(--otps-popup-input-text) !important;
	--otps-input-placeholder:var(--otps-popup-input-placeholder) !important;
	--otps-input-bg:var(--otps-popup-input-bg) !important;
	--otps-input-border:var(--otps-popup-input-border) !important;
	--otps-input-hover-border:var(--otps-popup-input-hover-border) !important;
	--otps-input-focus-border:var(--otps-popup-input-focus-border) !important;
	--otps-input-focus-bg:var(--otps-popup-input-focus-bg) !important;
	--otps-button-text:var(--otps-popup-button-text) !important;
	--otps-button-bg:var(--otps-popup-button-bg) !important;
	--otps-button-border:var(--otps-popup-button-border) !important;
	--otps-button-hover-text:var(--otps-popup-button-hover-text) !important;
	--otps-button-hover-bg:var(--otps-popup-button-hover-bg) !important;
	--otps-button-hover-border:var(--otps-popup-button-hover-border) !important;
	--otps-secondary-text:var(--otps-popup-secondary-text) !important;
	--otps-secondary-bg:var(--otps-popup-secondary-bg) !important;
	--otps-secondary-border:var(--otps-popup-secondary-border) !important;
	--otps-link:var(--otps-popup-link) !important;
	--otps-link-hover:var(--otps-popup-link-hover) !important;
	--otps-error:var(--otps-popup-error) !important;
	--otps-error-bg:var(--otps-popup-error-bg) !important;
	--otps-success:var(--otps-popup-success) !important;
	--otps-success-bg:var(--otps-popup-success-bg) !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-account-auth,
.mpol-header-popup.mpol-header-popup-pro .mpol-wrap {
	width:100% !important;
	max-width:none !important;
	margin:0 !important;
	padding:0 !important;
	background:transparent !important;
	border:0 !important;
	box-shadow:none !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-form {
	position:relative !important;
	z-index:2 !important;
	width:100% !important;
	max-width:none !important;
	margin:0 !important;
	padding:34px 34px 30px !important;
	border:0 !important;
	border-radius:24px !important;
	background:#fff !important;
	box-shadow:none !important;
	color:#0f172a !important;
	text-align:right !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-brand {
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	width:56px !important;
	height:56px !important;
	margin:0 auto 16px !important;
	border:1px solid #bfdbfe !important;
	border-radius:18px !important;
	background:linear-gradient(145deg,#eff6ff,#dbeafe) !important;
	color:#2563eb !important;
	box-shadow:0 10px 24px rgba(37,99,235,.12) !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-title {
	margin:0 !important;
	color:#0f172a !important;
	font-family:inherit !important;
	font-size:24px !important;
	font-weight:900 !important;
	line-height:1.5 !important;
	text-align:center !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-subtitle {
	max-width:390px !important;
	margin:8px auto 20px !important;
	color:#64748b !important;
	font-family:inherit !important;
	font-size:13px !important;
	font-weight:500 !important;
	line-height:1.9 !important;
	text-align:center !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-progress {
	dis:flex !important;
	gap:7px !important;
	width:100% !important;
	margin:0 0 24px !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-progress > span {
	flex:1 !important;
	height:4px !important;
	border-radius:999px !important;
	background:#dbeafe !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-progress > span.is-active {
	background:linear-gradient(90deg,#60a5fa,#2563eb) !important;
	box-shadow:0 2px 8px rgba(37,99,235,.20) !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-label {
	dis:block !important;
	margin:0 0 14px !important;
	color:#334155 !important;
	font-family:inherit !important;
	font-size:13px !important;
	font-weight:800 !important;
	line-height:1.7 !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-label > span {
	dis:block !important;
	margin-bottom:7px !important;
	color:inherit !important;
	font:inherit !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-input-shell {
	position:relative !important;
	dis:flex !important;
	align-items:center !important;
	min-height:54px !important;
	border:1px solid #cbd5e1 !important;
	border-radius:14px !important;
	background:#fff !important;
	box-shadow:0 1px 2px rgba(15,23,42,.03) !important;
	transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease !important;
	overflow:hidden !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-input-shell:hover {
	border-color:#93c5fd !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-input-shell:focus-within {
	border-color:#2563eb !important;
	box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-input-prefix {
	dis:flex !important;
	align-items:center !important;
	align-self:stretch !important;
	padding:0 15px !important;
	border-left:1px solid #e2e8f0 !important;
	background:#f8fafc !important;
	color:#475569 !important;
	font-family:inherit !important;
	font-size:13px !important;
	font-weight:800 !important;
	direction:ltr !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-input {
	-webkit-appearance:none !important;
	appearance:none !important;
	flex:1 !important;
	width:100% !important;
	min-width:0 !important;
	height:52px !important;
	margin:0 !important;
	padding:0 15px !important;
	border:0 !important;
	outline:0 !important;
	background:transparent !important;
	box-shadow:none !important;
	color:#0f172a !important;
	font-family:inherit !important;
	font-size:16px !important;
	font-weight:700 !important;
	line-height:52px !important;
	direction:ltr !important;
	text-align:left !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-input::placeholder {
	color:#94a3b8 !important;
	opacity:1 !important;
	font-weight:500 !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-btn {
	-webkit-appearance:none !important;
	appearance:none !important;
	box-sizing:border-box !important;
	dis:flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:9px !important;
	width:100% !important;
	min-height:52px !important;
	margin:0 !important;
	padding:12px 18px !important;
	border:1px solid #2563eb !important;
	border-radius:14px !important;
	background:linear-gradient(135deg,#3b82f6 0%,#2563eb 58%,#1d4ed8 100%) !important;
	color:#fff !important;
	box-shadow:0 12px 24px rgba(37,99,235,.20) !important;
	font-family:inherit !important;
	font-size:14px !important;
	font-weight:900 !important;
	line-height:1.4 !important;
	text-decoration:none !important;
	cursor:pointer !important;
	transition:transform .2s ease,box-shadow .2s ease,filter .2s ease !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-btn:hover:not(:disabled) {
	filter:saturate(1.06) brightness(.98) !important;
	box-shadow:0 16px 34px rgba(37,99,235,.30) !important;
	transform:translateY(-1px) !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-btn:active:not(:disabled) {
	transform:translateY(0) scale(.99) !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-btn:disabled {
	opacity:.6 !important;
	cursor:not-allowed !important;
	box-shadow:none !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-privacy-note {
	margin:12px 0 0 !important;
	color:#94a3b8 !important;
	font-family:inherit !important;
	font-size:11px !important;
	font-weight:500 !important;
	line-height:1.8 !important;
	text-align:center !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-code-heading {
	margin-bottom:14px !important;
	text-align:center !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-code-heading strong {
	dis:block !important;
	color:#0f172a !important;
	font-size:17px !important;
	font-weight:900 !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-code-heading small {
	dis:block !important;
	margin-top:5px !important;
	color:#64748b !important;
	font-size:12px !important;
	direction:ltr !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-change-phone,
.mpol-header-popup.mpol-header-popup-pro .mpol-resend-btn {
	-webkit-appearance:none !important;
	appearance:none !important;
	border:0 !important;
	background:transparent !important;
	box-shadow:none !important;
	color:#2563eb !important;
	font-family:inherit !important;
	font-size:12px !important;
	font-weight:800 !important;
	text-decoration:none !important;
	cursor:pointer !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-change-phone {
	dis:block !important;
	margin:-4px 0 14px !important;
	padding:3px 0 !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-resend-btn {
	min-height:40px !important;
	margin-top:10px !important;
	padding:7px 10px !important;
	border:0 !important;
	background:#eff6ff !important;
	color:#2563eb !important;
	box-shadow:none !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-message {
	min-height:0 !important;
	margin-top:14px !important;
	padding:0 !important;
	border:0 !important;
	border-radius:12px !important;
	font-family:inherit !important;
	font-size:12px !important;
	font-weight:700 !important;
	line-height:1.8 !important;
	text-align:center !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-message.is-error,
.mpol-header-popup.mpol-header-popup-pro .mpol-message.is-success {
	padding:10px 12px !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-message.is-error {
	background:#fef2f2 !important;
	color:#dc2626 !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-message.is-success {
	background:#ecfdf5 !important;
	color:#047857 !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-popup-close {
	-webkit-appearance:none !important;
	appearance:none !important;
	position:absolute !important;
	z-index:20 !important;
	top:12px !important;
	left:12px !important;
	dis:flex !important;
	align-items:center !important;
	justify-content:center !important;
	width:38px !important;
	height:38px !important;
	margin:0 !important;
	padding:0 !important;
	border:1px solid #e2e8f0 !important;
	border-radius:12px !important;
	background:rgba(255,255,255,.96) !important;
	color:#64748b !important;
	box-shadow:0 8px 20px rgba(15,23,42,.10) !important;
	font-family:Arial,sans-serif !important;
	font-size:25px !important;
	font-weight:400 !important;
	line-height:1 !important;
	cursor:pointer !important;
	transition:background-color .18s ease,color .18s ease,transform .18s ease !important;
}
.mpol-header-popup.mpol-header-popup-pro .mpol-popup-close:hover {
	background:#eff6ff !important;
	color:#2563eb !important;
	transform:rotate(4deg) !important;
}
@keyframes otpsOverlayIn {
	from { opacity:0; }
	to { opacity:1; }
}
@keyframes otpsProfessionalPopupIn {
	from { opacity:0; transform:translateY(18px) scale(.965); }
	to { opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:600px) {
	.mpol-header-auth.mpol-header-ui-pro > .mpol-header-icon-btn {
		min-height:40px !important;
		padding:8px 11px !important;
		border-radius:11px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro {
		padding:10px !important;
		align-items:center !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-box {
		width:100% !important;
		max-width:100% !important;
		max-height:calc(100dvh - 20px) !important;
		border-radius:20px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-shell,
	.mpol-header-popup.mpol-header-popup-pro .mpol-form {
		border-radius:20px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-form {
		padding:30px 20px 22px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-brand {
		width:52px !important;
		height:52px !important;
		border-radius:16px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-title {
		font-size:21px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-subtitle {
		font-size:12px !important;
		line-height:1.85 !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-input-shell,
	.mpol-header-popup.mpol-header-popup-pro .mpol-btn {
		min-height:50px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-input {
		height:48px !important;
		line-height:48px !important;
	}
	.mpol-header-popup.mpol-header-popup-pro .mpol-popup-close {
		top:9px !important;
		left:9px !important;
		width:35px !important;
		height:35px !important;
	}
}

/* =========================================================
   OTPS 2.7 — رابط کاربری یکپارچه سفید/آبی برای همه شورت‌کدها
   بدون شیشه‌ای، بدون blur و بدون پس‌زمینه نیمه‌شفاف
   ========================================================= */
:where(.mpol-wrap,.mpol-account-auth,.mpol-profile-card,.mpol-header-auth,.mpol-popup-overlay) {
	--otps-ui-blue:#2563eb;
	--otps-ui-blue-hover:#1d4ed8;
	--otps-ui-blue-soft:#eff6ff;
	--otps-ui-blue-border:#bfdbfe;
	--otps-ui-white:#ffffff;
	--otps-ui-surface:#f8fafc;
	--otps-ui-text:#0f172a;
	--otps-ui-muted:#64748b;
	--otps-ui-border:#e2e8f0;
	--otps-ui-danger:#dc2626;
	--otps-ui-success:#047857;
	color-scheme:light;
}

/* خنثی‌سازی کامل قالب‌های قدیمی و افکت‌های شیشه‌ای */
.mpol-wrap .mpol-form,
.mpol-account-auth .mpol-form,
.mpol-popup-box .mpol-form,
.mpol-profile-card,
.mpol-header-menu,
.mpol-header-popup-shell,
.mpol-header-popup-box {
	background:#fff !important;
	background-image:none !important;
	backdrop-filter:none !important;
	-webkit-backdrop-filter:none !important;
	filter:none;
}
.mpol-wrap .mpol-form::before,
.mpol-wrap .mpol-form::after,
.mpol-popup-box .mpol-form::before,
.mpol-popup-box .mpol-form::after {
	display:none !important;
	content:none !important;
	background:none !important;
}

/* فرم ورود و عضویت: [otps_login] [otps_register] و حالت مهمان [otps_account] */
.mpol-wrap,
.mpol-account-auth {
	box-sizing:border-box !important;
	width:100% !important;
	background:transparent !important;
	font-family:var(--otps-font-family,inherit) !important;
}
.mpol-account-auth > .mpol-wrap { max-width:100% !important; }
.mpol-wrap .mpol-form,
.mpol-account-auth .mpol-form,
.mpol-popup-box .mpol-form {
	position:relative !important;
	box-sizing:border-box !important;
	width:100% !important;
	padding:clamp(22px,5vw,var(--otps-form-padding,32px)) !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:var(--otps-form-radius,24px) !important;
	background:#fff !important;
	color:var(--otps-ui-text) !important;
	box-shadow:0 24px 70px rgba(15,23,42,.10) !important;
	overflow:hidden !important;
	isolation:isolate !important;
}
.mpol-wrap .mpol-brand,
.mpol-account-auth .mpol-brand,
.mpol-popup-box .mpol-brand {
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	width:60px !important;
	height:60px !important;
	margin:0 auto 16px !important;
	border:1px solid var(--otps-ui-blue-border) !important;
	border-radius:18px !important;
	background:var(--otps-ui-blue-soft) !important;
	color:var(--otps-ui-blue) !important;
	box-shadow:0 10px 26px rgba(37,99,235,.10) !important;
}
.mpol-wrap .mpol-title,
.mpol-account-auth .mpol-title,
.mpol-popup-box .mpol-title {
	margin:0 0 7px !important;
	color:var(--otps-ui-text) !important;
	font-family:var(--otps-title-font,inherit) !important;
	font-size:var(--otps-title-size,24px) !important;
	font-weight:var(--otps-title-weight,800) !important;
	line-height:1.5 !important;
	text-align:center !important;
}
.mpol-wrap .mpol-subtitle,
.mpol-account-auth .mpol-subtitle,
.mpol-popup-box .mpol-subtitle {
	max-width:390px !important;
	margin:0 auto 22px !important;
	color:var(--otps-ui-muted) !important;
	font-family:var(--otps-subtitle-font,inherit) !important;
	font-size:var(--otps-subtitle-size,13px) !important;
	font-weight:var(--otps-subtitle-weight,400) !important;
	line-height:1.9 !important;
	text-align:center !important;
}
.mpol-progress {
	display:flex !important;
	gap:7px !important;
	width:100% !important;
	margin:0 0 22px !important;
}
.mpol-progress > span {
	flex:1 !important;
	height:4px !important;
	border-radius:999px !important;
	background:#dbeafe !important;
	box-shadow:none !important;
}
.mpol-progress > span.is-active {
	background:var(--otps-ui-blue) !important;
	box-shadow:0 2px 8px rgba(37,99,235,.18) !important;
}
.mpol-wrap .mpol-label,
.mpol-account-auth .mpol-label,
.mpol-popup-box .mpol-label,
.mpol-profile-card .mpol-label {
	display:block !important;
	margin:0 0 14px !important;
	color:#334155 !important;
	font-family:var(--otps-label-font,inherit) !important;
	font-size:var(--otps-label-size,13px) !important;
	font-weight:var(--otps-label-weight,700) !important;
	line-height:1.7 !important;
}
.mpol-wrap .mpol-label > span,
.mpol-account-auth .mpol-label > span,
.mpol-popup-box .mpol-label > span,
.mpol-profile-card .mpol-label > span {
	position:static !important;
	display:block !important;
	margin:0 0 7px !important;
	padding:0 !important;
	background:none !important;
	color:inherit !important;
	font:inherit !important;
}
.mpol-input-shell {
	position:relative !important;
	display:flex !important;
	align-items:center !important;
	width:100% !important;
	min-height:54px !important;
	border:1px solid #cbd5e1 !important;
	border-radius:var(--otps-input-radius,14px) !important;
	background:#fff !important;
	box-shadow:0 1px 2px rgba(15,23,42,.03) !important;
	overflow:hidden !important;
	transition:border-color .2s ease,box-shadow .2s ease !important;
}
.mpol-input-shell:hover { border-color:#93c5fd !important; }
.mpol-input-shell:focus-within {
	border-color:var(--otps-ui-blue) !important;
	box-shadow:0 0 0 4px rgba(37,99,235,.11) !important;
}
.mpol-input-prefix {
	position:static !important;
	display:flex !important;
	align-items:center !important;
	align-self:stretch !important;
	padding:0 14px !important;
	border:0 !important;
	border-right:1px solid var(--otps-ui-border) !important;
	background:var(--otps-ui-surface) !important;
	color:#475569 !important;
	font-size:13px !important;
	font-weight:800 !important;
	direction:ltr !important;
}
.mpol-wrap .mpol-input,
.mpol-account-auth .mpol-input,
.mpol-popup-box .mpol-input,
.mpol-profile-card .mpol-input {
	-webkit-appearance:none !important;
	appearance:none !important;
	box-sizing:border-box !important;
	width:100% !important;
	min-width:0 !important;
	min-height:52px !important;
	margin:0 !important;
	padding:12px 14px !important;
	border:1px solid #cbd5e1 !important;
	border-radius:var(--otps-input-radius,14px) !important;
	background:#fff !important;
	background-image:none !important;
	color:var(--otps-ui-text) !important;
	box-shadow:0 1px 2px rgba(15,23,42,.03) !important;
	font-family:var(--otps-input-font,inherit) !important;
	font-size:var(--otps-input-size,15px) !important;
	font-weight:var(--otps-input-weight,500) !important;
	line-height:1.5 !important;
	outline:none !important;
	transition:border-color .2s ease,box-shadow .2s ease !important;
}
.mpol-input-shell .mpol-input {
	flex:1 !important;
	min-height:52px !important;
	border:0 !important;
	border-radius:0 !important;
	background:#fff !important;
	box-shadow:none !important;
}
.mpol-wrap .mpol-input:hover,
.mpol-account-auth .mpol-input:hover,
.mpol-popup-box .mpol-input:hover,
.mpol-profile-card .mpol-input:hover { border-color:#93c5fd !important; }
.mpol-wrap .mpol-input:focus,
.mpol-account-auth .mpol-input:focus,
.mpol-popup-box .mpol-input:focus,
.mpol-profile-card .mpol-input:focus {
	border-color:var(--otps-ui-blue) !important;
	background:#fff !important;
	box-shadow:0 0 0 4px rgba(37,99,235,.11) !important;
	transform:none !important;
}
.mpol-input-shell .mpol-input:focus { box-shadow:none !important; }
.mpol-wrap .mpol-input::placeholder,
.mpol-account-auth .mpol-input::placeholder,
.mpol-popup-box .mpol-input::placeholder,
.mpol-profile-card .mpol-input::placeholder {
	color:#94a3b8 !important;
	opacity:1 !important;
	font-weight:500 !important;
}
.mpol-phone { padding-inline:14px !important; text-align:left !important; direction:ltr !important; }
.mpol-code { letter-spacing:7px !important; text-align:center !important; direction:ltr !important; }

.mpol-wrap .mpol-btn,
.mpol-account-auth .mpol-btn,
.mpol-popup-box .mpol-btn,
.mpol-profile-card .mpol-btn,
.mpol-popup-open-btn {
	-webkit-appearance:none !important;
	appearance:none !important;
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:9px !important;
	box-sizing:border-box !important;
	width:100% !important;
	min-height:52px !important;
	margin:0 !important;
	padding:12px 18px !important;
	border:1px solid var(--otps-ui-blue) !important;
	border-radius:var(--otps-button-radius,14px) !important;
	background:var(--otps-ui-blue) !important;
	background-image:none !important;
	color:#fff !important;
	box-shadow:0 12px 24px rgba(37,99,235,.20) !important;
	font-family:var(--otps-button-font,inherit) !important;
	font-size:var(--otps-button-size,14px) !important;
	font-weight:var(--otps-button-weight,800) !important;
	line-height:1.4 !important;
	text-decoration:none !important;
	cursor:pointer !important;
	transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease !important;
}
.mpol-wrap .mpol-btn:hover:not(:disabled),
.mpol-account-auth .mpol-btn:hover:not(:disabled),
.mpol-popup-box .mpol-btn:hover:not(:disabled),
.mpol-profile-card .mpol-btn:hover:not(:disabled),
.mpol-popup-open-btn:hover {
	border-color:var(--otps-ui-blue-hover) !important;
	background:var(--otps-ui-blue-hover) !important;
	box-shadow:0 16px 32px rgba(37,99,235,.28) !important;
	filter:none !important;
	transform:translateY(-1px) !important;
}
.mpol-wrap .mpol-btn:active:not(:disabled),
.mpol-account-auth .mpol-btn:active:not(:disabled),
.mpol-popup-box .mpol-btn:active:not(:disabled),
.mpol-profile-card .mpol-btn:active:not(:disabled) { transform:translateY(0) !important; }
.mpol-wrap .mpol-btn:disabled,
.mpol-account-auth .mpol-btn:disabled,
.mpol-popup-box .mpol-btn:disabled,
.mpol-profile-card .mpol-btn:disabled { opacity:.55 !important; cursor:not-allowed !important; box-shadow:none !important; }

.mpol-change-phone,
.mpol-resend-btn {
	-webkit-appearance:none !important;
	appearance:none !important;
	border:0 !important;
	background:#eff6ff !important;
	color:var(--otps-ui-blue) !important;
	box-shadow:none !important;
	font-family:inherit !important;
	font-size:12px !important;
	font-weight:800 !important;
	text-decoration:none !important;
	cursor:pointer !important;
}
.mpol-change-phone {
	display:table !important;
	margin:0 auto 12px !important;
	padding:7px 11px !important;
	border-radius:10px !important;
}
.mpol-resend-btn {
	min-height:42px !important;
	margin-top:9px !important;
	padding:8px 12px !important;
	border:1px solid #dbeafe !important;
	border-radius:12px !important;
}
.mpol-change-phone:hover,
.mpol-resend-btn:hover:not(:disabled) { background:#dbeafe !important; color:var(--otps-ui-blue-hover) !important; }
.mpol-privacy-note { color:#94a3b8 !important; }
.mpol-code-heading strong { color:var(--otps-ui-text) !important; }
.mpol-code-heading small { color:var(--otps-ui-muted) !important; }
.mpol-message { background:transparent !important; border:0 !important; box-shadow:none !important; }
.mpol-message.is-error {
	padding:10px 12px !important;
	border:1px solid #fecaca !important;
	border-radius:12px !important;
	background:#fef2f2 !important;
	color:var(--otps-ui-danger) !important;
}
.mpol-message.is-success {
	padding:10px 12px !important;
	border:1px solid #a7f3d0 !important;
	border-radius:12px !important;
	background:#ecfdf5 !important;
	color:var(--otps-ui-success) !important;
}

/* پروفایل: حالت واردشده [otps_account] */
.mpol-profile-card {
	box-sizing:border-box !important;
	width:100% !important;
	max-width:760px !important;
	margin:0 auto !important;
	padding:clamp(20px,4vw,var(--otps-form-padding,30px)) !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:var(--otps-form-radius,24px) !important;
	background:#fff !important;
	color:var(--otps-ui-text) !important;
	box-shadow:0 24px 70px rgba(15,23,42,.10) !important;
}
.mpol-profile-head {
	display:flex !important;
	align-items:center !important;
	gap:16px !important;
	padding:0 0 20px !important;
	border-bottom:1px solid var(--otps-ui-border) !important;
}
.mpol-profile-head img {
	flex:0 0 auto !important;
	width:76px !important;
	height:76px !important;
	border:4px solid #fff !important;
	border-radius:20px !important;
	background:#eff6ff !important;
	box-shadow:0 0 0 1px #bfdbfe,0 10px 24px rgba(37,99,235,.10) !important;
}
.mpol-profile-kicker {
	display:inline-flex !important;
	margin-bottom:5px !important;
	padding:5px 9px !important;
	border-radius:999px !important;
	background:#eff6ff !important;
	color:var(--otps-ui-blue) !important;
	font-size:11px !important;
	font-weight:800 !important;
}
.mpol-profile-heading h3,
.mpol-profile-display-name {
	margin:0 !important;
	color:var(--otps-ui-text) !important;
	font-size:var(--otps-profile-title-size,24px) !important;
	font-weight:var(--otps-profile-title-weight,800) !important;
}
.mpol-profile-heading small { color:var(--otps-ui-muted) !important; }
.mpol-profile-summary {
	display:grid !important;
	grid-template-columns:repeat(2,minmax(0,1fr)) !important;
	gap:12px !important;
	margin:20px 0 !important;
}
.mpol-profile-summary > div,
.mpol-profile-grid > div {
	padding:15px !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:16px !important;
	background:var(--otps-ui-surface) !important;
	box-shadow:none !important;
}
.mpol-profile-summary span,
.mpol-profile-grid span { color:var(--otps-ui-muted) !important; }
.mpol-profile-summary strong,
.mpol-profile-grid strong { color:var(--otps-ui-text) !important; }
.mpol-profile-form {
	padding:20px !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:20px !important;
	background:#fff !important;
	box-shadow:none !important;
}
.mpol-profile-form-head {
	display:flex !important;
	align-items:flex-start !important;
	justify-content:space-between !important;
	gap:14px !important;
	margin-bottom:18px !important;
}
.mpol-profile-form-head h4 { margin:0 0 4px !important; color:var(--otps-ui-text) !important; }
.mpol-profile-form-head p { margin:0 !important; color:var(--otps-ui-muted) !important; }
.mpol-profile-completion {
	flex:0 0 auto !important;
	padding:7px 10px !important;
	border:1px solid var(--otps-ui-blue-border) !important;
	border-radius:999px !important;
	background:var(--otps-ui-blue-soft) !important;
	color:var(--otps-ui-blue) !important;
	font-size:11px !important;
	font-weight:800 !important;
}
.mpol-profile-fields {
	display:grid !important;
	grid-template-columns:repeat(2,minmax(0,1fr)) !important;
	gap:14px !important;
}
.mpol-profile-wide { grid-column:1 / -1 !important; }
.mpol-profile-card textarea.mpol-input { min-height:120px !important; resize:vertical !important; }
.mpol-profile-save { margin-top:6px !important; }
.mpol-profile-actions {
	display:flex !important;
	align-items:center !important;
	justify-content:space-between !important;
	gap:12px !important;
	margin-top:18px !important;
	padding-top:18px !important;
	border-top:1px solid var(--otps-ui-border) !important;
}
.mpol-profile-actions a {
	display:inline-flex !important;
	align-items:center !important;
	justify-content:center !important;
	min-height:40px !important;
	padding:9px 13px !important;
	border-radius:11px !important;
	font-size:12px !important;
	font-weight:800 !important;
	text-decoration:none !important;
}
.mpol-profile-secondary {
	border:1px solid var(--otps-ui-blue-border) !important;
	background:var(--otps-ui-blue-soft) !important;
	color:var(--otps-ui-blue) !important;
}
.mpol-profile-logout {
	border:1px solid #fecaca !important;
	background:#fef2f2 !important;
	color:#dc2626 !important;
}

/* آیکن هدر: [otps_header_icon] */
.mpol-header-auth { position:relative !important; background:transparent !important; }
.mpol-header-icon-btn {
	-webkit-appearance:none !important;
	appearance:none !important;
	display:inline-flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:8px !important;
	min-height:42px !important;
	padding:9px 13px !important;
	border:1px solid #bfdbfe !important;
	border-radius:var(--otps-header-radius,13px) !important;
	background:#fff !important;
	background-image:none !important;
	color:var(--otps-ui-blue) !important;
	box-shadow:0 5px 16px rgba(37,99,235,.08) !important;
	font-family:var(--otps-header-font,inherit) !important;
	font-size:var(--otps-header-size,13px) !important;
	font-weight:var(--otps-header-weight,700) !important;
	line-height:1 !important;
	cursor:pointer !important;
	transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease !important;
}
.mpol-header-border-off .mpol-header-icon-btn { border-color:transparent !important; }
.mpol-header-icon-btn:hover,
.mpol-header-icon-btn:focus-visible {
	border-color:var(--otps-ui-blue) !important;
	background:var(--otps-ui-blue) !important;
	color:#fff !important;
	box-shadow:0 12px 28px rgba(37,99,235,.24) !important;
	transform:translateY(-1px) !important;
	outline:none !important;
}
.mpol-header-icon-btn svg { display:block !important; flex:0 0 auto !important; }
.mpol-header-label { white-space:nowrap !important; color:inherit !important; }
.mpol-header-menu {
	position:absolute !important;
	z-index:999999 !important;
	top:calc(100% + 10px) !important;
	right:0 !important;
	min-width:250px !important;
	padding:10px !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:18px !important;
	background:#fff !important;
	box-shadow:0 24px 60px rgba(15,23,42,.16) !important;
}
.mpol-header-user {
	display:flex !important;
	align-items:center !important;
	gap:10px !important;
	padding:10px !important;
	margin-bottom:6px !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:13px !important;
	background:var(--otps-ui-surface) !important;
}
.mpol-header-user img { border-radius:12px !important; }
.mpol-header-user strong { color:var(--otps-ui-text) !important; }
.mpol-header-user small { color:var(--otps-ui-muted) !important; }
.mpol-header-menu > a {
	display:block !important;
	padding:10px 11px !important;
	border-radius:10px !important;
	background:#fff !important;
	color:#334155 !important;
	text-decoration:none !important;
	font-size:12px !important;
	font-weight:700 !important;
}
.mpol-header-menu > a:hover { background:#eff6ff !important; color:var(--otps-ui-blue) !important; }
.mpol-header-menu > .mpol-header-logout { color:#dc2626 !important; }
.mpol-header-menu > .mpol-header-logout:hover { background:#fef2f2 !important; color:#b91c1c !important; }

/* همه پاپ‌آپ‌ها: زمینه سفید واقعی، بدون glass */
.mpol-popup-overlay,
.mpol-header-popup,
.mpol-header-popup.mpol-header-popup-pro {
	position:fixed !important;
	inset:0 !important;
	z-index:9999999 !important;
	align-items:center !important;
	justify-content:center !important;
	padding:18px !important;
	background:rgba(15,23,42,.62) !important;
	background-image:none !important;
	backdrop-filter:none !important;
	-webkit-backdrop-filter:none !important;
}
.mpol-popup-overlay.is-open { display:flex !important; }
.mpol-popup-box,
.mpol-header-popup-box,
.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-box {
	position:relative !important;
	box-sizing:border-box !important;
	width:min(100%,480px) !important;
	max-width:480px !important;
	max-height:calc(100dvh - 36px) !important;
	margin:auto !important;
	padding:0 !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:26px !important;
	background:#fff !important;
	box-shadow:0 30px 100px rgba(15,23,42,.28) !important;
	overflow:auto !important;
}
.mpol-header-popup-shell {
	position:relative !important;
	width:100% !important;
	padding:0 !important;
	border:0 !important;
	border-radius:inherit !important;
	background:#fff !important;
	box-shadow:none !important;
	overflow:hidden !important;
}
.mpol-header-popup-accent {
	display:block !important;
	width:100% !important;
	height:5px !important;
	background:var(--otps-ui-blue) !important;
	background-image:none !important;
}
.mpol-header-popup .mpol-account-auth,
.mpol-header-popup .mpol-wrap { max-width:none !important; background:#fff !important; }
.mpol-header-popup .mpol-form {
	padding:32px !important;
	border:0 !important;
	border-radius:0 !important;
	background:#fff !important;
	box-shadow:none !important;
}
.mpol-popup-close {
	-webkit-appearance:none !important;
	appearance:none !important;
	position:absolute !important;
	z-index:30 !important;
	top:12px !important;
	left:12px !important;
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	width:38px !important;
	height:38px !important;
	margin:0 !important;
	padding:0 !important;
	border:1px solid var(--otps-ui-border) !important;
	border-radius:12px !important;
	background:#fff !important;
	color:#64748b !important;
	box-shadow:0 7px 20px rgba(15,23,42,.10) !important;
	font-family:Arial,sans-serif !important;
	font-size:25px !important;
	font-weight:400 !important;
	line-height:1 !important;
	cursor:pointer !important;
}
.mpol-popup-close:hover { background:#eff6ff !important; color:var(--otps-ui-blue) !important; }

@media (max-width:600px) {
	.mpol-wrap .mpol-form,
	.mpol-account-auth .mpol-form,
	.mpol-popup-box .mpol-form { padding:22px 18px !important; border-radius:20px !important; }
	.mpol-profile-card { padding:18px !important; border-radius:20px !important; }
	.mpol-profile-head { align-items:flex-start !important; }
	.mpol-profile-summary,
	.mpol-profile-fields { grid-template-columns:1fr !important; }
	.mpol-profile-wide { grid-column:auto !important; }
	.mpol-profile-form { padding:16px !important; }
	.mpol-profile-form-head { flex-direction:column !important; }
	.mpol-profile-actions { flex-direction:column !important; align-items:stretch !important; }
	.mpol-profile-actions a { width:100% !important; }
	.mpol-header-menu {
		position:fixed !important;
		top:auto !important;
		right:12px !important;
		bottom:12px !important;
		left:12px !important;
		width:auto !important;
		min-width:0 !important;
	}
	.mpol-popup-overlay,
	.mpol-header-popup,
	.mpol-header-popup.mpol-header-popup-pro { padding:10px !important; }
	.mpol-popup-box,
	.mpol-header-popup-box,
	.mpol-header-popup.mpol-header-popup-pro .mpol-header-popup-box {
		width:100% !important;
		max-width:100% !important;
		max-height:calc(100dvh - 20px) !important;
		border-radius:20px !important;
	}
	.mpol-header-popup .mpol-form { padding:28px 18px 22px !important; }
}
