/* --- فونت وزیر (محلی) --- */
@font-face {
  font-family: 'Vazir';
  src: url('../fonts/fa/Vazir/Vazir.woff2') format('woff2'),
       url('../fonts/fa/Vazir/Vazir.woff') format('woff'),
       url('../fonts/fa/Vazir/Vazir.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dana';
  src: url('../fonts/fa/Dana/Dana-Bold.woff2') format('woff2'),
       url('../fonts/fa/Dana/Dana-Bold.woff') format('woff'),
       url('../fonts/fa/Dana/Dana-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root,
.site-theme {
  --font-sans: 'Vazir', Tahoma, sans-serif;
  --font-heading: 'Dana', 'Vazir', Tahoma, sans-serif;
}

/* ========== تم دارک برای سایت (داشبورد، ادمین، صفحه اول) ========== */
/* انتقال نرم هنگام تغییر تم */
.site-theme,
.site-theme body,
.site-theme .bg-white,
.site-theme .bg-slate-50,
.site-theme .bg-slate-100,
.site-theme .text-slate-500,
.site-theme .text-slate-600,
.site-theme .text-slate-700,
.site-theme .text-site-muted,
.site-theme .text-slate-800,
.site-theme .text-slate-900,
.site-theme .border-slate-100,
.site-theme .border-slate-200,
.site-theme .border-l,
.site-theme input,
.site-theme textarea,
.site-theme select {
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
html[data-theme="dark"] .site-theme {
	--site-bg: #0f172a;
	--site-bg-card: #1e293b;
	--site-bg-hover: #334155;
	--site-text: #f1f5f9;
	--site-text-muted: #94a3b8;
	--site-border: #334155;
}
.site-theme {
	--site-bg: #f8fafc;
	--site-bg-card: #ffffff;
	--site-bg-hover: #f1f5f9;
	--site-text: #0f172a;
	--site-text-muted: #64748b;
	--site-border: #e2e8f0;
	--brand-primary: #720ba1;
	--brand-primary-deep: #520878;
	--brand-primary-dark: #620890;
	--brand-primary-soft: #f6edf9;
	--brand-primary-soft-2: #ecdbf3;
	--brand-primary-rgb: 114, 11, 161;
	--color-purple-50: #f6edf9;
	--color-purple-100: #ecdbf3;
	--color-purple-200: #dcc0e8;
	--color-purple-300: #c99ad6;
	--color-purple-400: #a85fc0;
	--color-purple-500: #8b2db0;
	--color-purple-600: #720ba1;
	--color-purple-700: #620890;
	--color-purple-800: #520878;
	--color-purple-900: #420660;
	--color-violet-100: #ecdbf3;
	--color-violet-200: #dcc0e8;
	--color-violet-300: #c99ad6;
	--color-violet-500: #8b2db0;
	--color-violet-600: #720ba1;
	--color-violet-700: #620890;
	--color-violet-900: #420660;
	--color-indigo-50: #f6edf9;
	--color-indigo-100: #ecdbf3;
	--color-indigo-400: #a85fc0;
	--color-indigo-600: #720ba1;
	--color-indigo-700: #620890;
	--color-indigo-800: #520878;
	--color-indigo-900: #420660;
}
html[data-theme="dark"] .site-theme {
	--brand-primary-soft: rgba(114, 11, 161, 0.14);
	--brand-primary-soft-2: rgba(114, 11, 161, 0.22);
	--color-purple-50: rgba(114, 11, 161, 0.1);
	--color-purple-100: rgba(114, 11, 161, 0.16);
	--color-purple-200: rgba(114, 11, 161, 0.24);
	--color-violet-100: rgba(114, 11, 161, 0.16);
	--color-violet-200: rgba(114, 11, 161, 0.24);
	--color-indigo-50: rgba(114, 11, 161, 0.1);
	--color-indigo-100: rgba(114, 11, 161, 0.16);
}
html[data-theme="dark"] .site-theme,
html[data-theme="dark"] .site-theme body {
	background-color: var(--site-bg) !important;
	color: var(--site-text);
}
html[data-theme="dark"] .site-theme .bg-white { background-color: var(--site-bg-card) !important; }
html[data-theme="dark"] .site-theme .bg-slate-50 { background-color: var(--site-bg) !important; }
html[data-theme="dark"] .site-theme .text-slate-800,
html[data-theme="dark"] .site-theme .text-slate-900 { color: var(--site-text) !important; }
html[data-theme="dark"] .site-theme .text-slate-500,
html[data-theme="dark"] .site-theme .text-slate-600,
html[data-theme="dark"] .site-theme .text-slate-700 { color: var(--site-text-muted) !important; }
.site-theme .text-site-muted { color: var(--site-text-muted); }
html[data-theme="dark"] .site-theme .border-slate-100,
html[data-theme="dark"] .site-theme .border-slate-200 { border-color: var(--site-border) !important; }
html[data-theme="dark"] .site-theme .border-l { border-color: var(--site-border) !important; }
html[data-theme="dark"] .site-theme .bg-slate-100 { background-color: var(--site-bg-hover) !important; }
html[data-theme="dark"] .site-theme .hover\:bg-slate-50:hover,
html[data-theme="dark"] .site-theme .hover\:bg-slate-100:hover { background-color: var(--site-bg-hover) !important; }
html[data-theme="dark"] .site-theme input,
html[data-theme="dark"] .site-theme textarea,
html[data-theme="dark"] .site-theme select {
	background-color: var(--site-bg-card) !important;
	border-color: var(--site-border) !important;
	color: var(--site-text) !important;
}
.site-theme .bg-white\/95,
.site-theme .bg-white\/90,
.site-theme .bg-white\/80 { transition: background-color 0.4s ease, box-shadow 0.4s ease; }
html[data-theme="dark"] .site-theme .bg-white\/95,
html[data-theme="dark"] .site-theme .bg-white\/90,
html[data-theme="dark"] .site-theme .bg-white\/80 { background-color: rgba(30,41,59,0.95) !important; }
.site-theme .shadow-lg,
.site-theme .shadow-xl { transition: box-shadow 0.4s ease; }
html[data-theme="dark"] .site-theme .shadow-lg,
html[data-theme="dark"] .site-theme .shadow-xl { box-shadow: 0 4px 20px rgba(0,0,0,.3) !important; }

/* اسکرول‌بار سمت راست مرورگر — محتوای فارسی همچنان RTL */
html[dir="rtl"] {
  direction: ltr;
}
html[dir="rtl"] body {
  direction: rtl;
}

/* Base: Vazir for all text */
html, body, input, textarea, select, button, .font-sans {
  font-family: 'Vazir', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — Dana */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
}

/* --- OTP page styles (centralized) --- */
.otp-page { background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%); }
.otp-card { background: #fff; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); }
.otp-input {
	width: 3.5rem; height: 3.5rem; text-align: center; font-size: 1.35rem; font-weight: 600;
	border-radius: 1rem; border: 2px solid #e2e8f0; background: #f8fafc;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.otp-input:focus { outline: none; border-color: #720ba1; box-shadow: 0 0 0 4px rgba(114, 11, 161, .15); background: #fff; }
.otp-input:disabled { opacity: .6; cursor: not-allowed; background: #f1f5f9; }
.otp-container { display: flex; gap: .75rem; justify-content: center; align-items: center; margin: 1.5rem 0; flex-direction: row-reverse; }
.btn-verify {
	width: 100%; max-width: 16rem; margin: 0 auto; display: block;
	background: linear-gradient(135deg, #8b2db0 0%, #720ba1 100%);
	color: #fff; font-weight: 600; padding: .75rem 1.5rem; border-radius: 1rem;
	box-shadow: 0 4px 14px rgba(114, 11, 161, .4); transition: transform .2s, box-shadow .2s;
}
.btn-verify:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(114, 11, 161, .45); }
.btn-resend { color: #64748b; font-weight: 500; padding: .5rem 1rem; border-radius: .75rem; transition: background .2s, color .2s; }
.btn-resend:hover { background: #f1f5f9; color: #475569; }
.btn-resend:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.auth-btn-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.auth-btn-loading.is-loading {
	opacity: 0.85;
	cursor: wait;
}
.btn-spinner {
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: btn-spin 0.65s linear infinite;
	flex-shrink: 0;
}
.btn-resend .btn-spinner {
	border-color: rgba(100, 116, 139, 0.35);
	border-top-color: #64748b;
}
.btn-spinner.hidden {
	display: none;
}
@keyframes btn-spin {
	to { transform: rotate(360deg); }
}
.otp-timer {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: #720ba1;
}
.otp-timer.is-expired {
	color: #e11d48;
}
html[data-theme="dark"] .otp-timer {
	color: #a5b4fc;
}
html[data-theme="dark"] .otp-timer.is-expired {
	color: #fb7185;
}

/* --- ثبت‌نام: انتخاب کشور + شماره همراه --- */
.mobile-field {
	min-height: 2.5rem;
	border-bottom: 1px solid #d1d5db;
	transition: border-color 0.2s ease;
}
.mobile-field:focus-within {
	border-bottom-color: #a855f7;
}
.mobile-field__country {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
	padding-inline: 0.15rem 0;
	background: transparent;
}
.mobile-field__flag {
	width: 1.375rem;
	height: 1rem;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}
.mobile-field__dial {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--site-text, #334155);
	padding: 0.15rem 1rem 0.15rem 0;
	cursor: pointer;
	line-height: 1.2;
	direction: ltr;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 0.85rem;
}
.mobile-field__dial:focus {
	outline: none;
}
html[data-theme="dark"] .mobile-field {
	border-bottom-color: #475569;
}
html[data-theme="dark"] .mobile-field:focus-within {
	border-bottom-color: #a855f7;
}
html[data-theme="dark"] .mobile-field__dial {
	color: #e2e8f0;
}

.auth-terms-note {
	margin-top: 0.75rem;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--site-text-muted, #64748b);
}
.auth-terms-note__link {
	color: #720ba1;
	font-weight: 600;
	text-decoration: none;
}
.auth-terms-note__link:hover {
	text-decoration: underline;
}
html[data-theme="dark"] .auth-terms-note {
	color: #94a3b8;
}
html[data-theme="dark"] .auth-terms-note__link {
	color: #ead8f0;
}

.auth-hero-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.auth-hero-home-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.55);
	transform: translateY(-1px);
}

.auth-blocked-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	margin: 0 auto 1rem;
	border-radius: 1.25rem;
	background: #fef2f2;
	color: #dc2626;
}
.auth-blocked-panel__timer {
	background: linear-gradient(180deg, #fff1f2, #fff);
	border: 1px solid #fecdd3;
}
.auth-blocked-panel__home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.35rem;
	border-radius: 0.85rem;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.2s ease;
}
.auth-blocked-panel__home:hover {
	background: #e5e7eb;
	color: #111827;
}
html[data-theme="dark"] .auth-blocked-panel__icon {
	background: rgba(220, 38, 38, 0.15);
}
html[data-theme="dark"] .auth-blocked-panel__timer {
	background: rgba(30, 41, 59, 0.8);
	border-color: rgba(248, 113, 113, 0.35);
}
html[data-theme="dark"] .auth-blocked-panel__home {
	background: rgba(30, 41, 59, 0.9);
	color: #e2e8f0;
}

.user-sessions-list {
	min-height: 2rem;
}
.user-session-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: #fff;
}
.user-session-card.is-current {
	border-color: #ead8f0;
	background: #fbf7fc;
}
.user-session-card__icons {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}
.user-session-card__icons img {
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
}
.user-session-card__body {
	flex: 1;
	min-width: 0;
}
.user-session-card__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e293b;
	margin: 0;
}
.user-session-card__meta {
	font-size: 0.75rem;
	color: #64748b;
	margin: 0.2rem 0 0;
}
.user-session-card__badge {
	display: inline-block;
	margin-top: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: #720ba1;
	background: #ead8f0;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
}
.user-session-card__revoke {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #e11d48;
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 0.6rem;
	padding: 0.35rem 0.65rem;
	cursor: pointer;
}
html[data-theme="dark"] .user-session-card {
	background: var(--site-bg-card, #1e293b);
	border-color: var(--site-border, #334155);
}
html[data-theme="dark"] .user-session-card.is-current {
	background: rgba(75, 0, 110, 0.18);
	border-color: #720ba1;
}
html[data-theme="dark"] .user-session-card__title {
	color: var(--site-text, #e2e8f0);
}

/* --- ثبت‌نام: انتخاب نوع حساب (کارت باکسی افقی) --- */
.auth-forms-wrap {
	min-height: 520px;
}
.auth-account-type {
	padding-top: 0.15rem;
}
.auth-account-type__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--site-text, #374151);
	margin-bottom: 0.5rem;
}
.auth-account-type__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.auth-account-type__card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex: 1 1 calc(50% - 0.25rem);
	min-width: 7.5rem;
	max-width: calc(50% - 0.25rem);
	padding: 0.55rem 0.65rem;
	border: 1.5px solid var(--site-border, #e2e8f0);
	border-radius: 0.75rem;
	background: var(--site-bg-hover, #f8fafc);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.auth-account-type__card:hover {
	border-color: rgba(75, 0, 110, 0.45);
	background: var(--site-bg-card, #fff);
	box-shadow: 0 2px 10px rgba(75, 0, 110, 0.08);
}
.auth-account-type__card:has(input:checked) {
	border-color: #720ba1;
	background: linear-gradient(135deg, rgba(75, 0, 110, 0.12) 0%, rgba(104, 41, 141, 0.06) 100%);
	box-shadow: 0 0 0 1px rgba(75, 0, 110, 0.2);
}
.auth-account-type__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.auth-account-type__main {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	flex: 1;
}
.auth-account-type__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 0.6rem;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}
.auth-account-type__icon svg {
	width: 1.15rem;
	height: 1.15rem;
}
.auth-account-type__icon--user {
	background: rgba(14, 165, 233, 0.12);
	color: #0284c7;
}
.auth-account-type__icon--store {
	background: rgba(75, 0, 110, 0.12);
	color: #720ba1;
}
.auth-account-type__card:has(input:checked) .auth-account-type__icon--user {
	background: rgba(14, 165, 233, 0.2);
	color: #0369a1;
}
.auth-account-type__card:has(input:checked) .auth-account-type__icon--store {
	background: rgba(75, 0, 110, 0.22);
	color: #620890;
}
.auth-account-type__title {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--site-text, #1e293b);
	line-height: 1.2;
	white-space: nowrap;
}
.auth-account-type__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 9999px;
	background: #720ba1;
	color: #fff;
	opacity: 0;
	transform: scale(0.7);
	flex-shrink: 0;
	transition: opacity 0.2s, transform 0.2s;
}
.auth-account-type__check svg {
	width: 0.65rem;
	height: 0.65rem;
}
.auth-account-type__card:has(input:checked) .auth-account-type__check {
	opacity: 1;
	transform: scale(1);
}
html[data-theme="dark"] .auth-account-type__card {
	background: rgba(30, 41, 59, 0.55);
	border-color: #334155;
}
html[data-theme="dark"] .auth-account-type__card:hover {
	background: rgba(51, 65, 85, 0.55);
}
html[data-theme="dark"] .auth-account-type__card:has(input:checked) {
	background: linear-gradient(135deg, rgba(75, 0, 110, 0.28) 0%, rgba(104, 41, 141, 0.14) 100%);
}
html[data-theme="dark"] .auth-account-type__label {
	color: #e2e8f0;
}
html[data-theme="dark"] .auth-account-type__title {
	color: #f1f5f9;
}

/* --- فراموشی رمز عبور --- */
.auth-forgot-card {
	background: var(--site-bg-card, #fff);
	color: var(--site-text, #0f172a);
}
html[data-theme="dark"] .site-theme .auth-forgot-card {
	background: var(--site-bg-card, #1e293b);
}
html[data-theme="dark"] .site-theme .auth-forgot-card .text-slate-800 {
	color: var(--site-text, #f1f5f9) !important;
}
html[data-theme="dark"] .site-theme .auth-forgot-card .text-slate-500 {
	color: var(--site-text-muted, #94a3b8) !important;
}

/* Auth panel transitions handled via Tailwind utility classes in HTML */

/* Product form: smooth open/close animation */
#productFormSection {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	overflow: hidden;
	transition: grid-template-rows .35s ease-out, opacity .3s ease-out;
}
#productFormSection.open {
	grid-template-rows: 1fr;
	opacity: 1;
}

/* ——— تنظیمات فروشگاه: آکاردئون ——— */
.settings-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.settings-accordion-item {
	border-radius: 1rem;
}
.settings-accordion-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	text-align: right;
	font-weight: 600;
	font-size: 0.9375rem;
	color: #334155;
	transition: background 0.2s ease, border-color 0.2s ease, border-radius 0.2s ease;
	cursor: pointer;
}
.settings-accordion-trigger:hover {
	background: #e8edf3;
}
.settings-accordion-item.is-open .settings-accordion-trigger {
	background: #fff;
	border-bottom-color: transparent;
	border-radius: 1rem 1rem 0 0;
}
.settings-accordion-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 0.625rem;
	background: rgba(75, 0, 110, 0.1);
	color: #720ba1;
	flex-shrink: 0;
}
.settings-accordion-icon svg {
	width: 1.125rem;
	height: 1.125rem;
}
.settings-accordion-title {
	flex: 1;
	min-width: 0;
}
.settings-accordion-chevron {
	width: 1.25rem;
	height: 1.25rem;
	color: #94a3b8;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}
.settings-accordion-item.is-open .settings-accordion-chevron {
	transform: rotate(180deg);
	color: #720ba1;
}
.settings-accordion-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s ease;
}
.settings-accordion-item.is-open .settings-accordion-panel {
	grid-template-rows: 1fr;
}
.settings-accordion-panel-inner {
	overflow: hidden;
}
.settings-accordion-body {
	padding: 1rem 1.25rem 1.25rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 1rem 1rem;
}
html[data-theme="dark"] .site-theme .settings-accordion-trigger {
	background: var(--site-bg-hover);
	border-color: var(--site-border);
	color: var(--site-text);
}
html[data-theme="dark"] .site-theme .settings-accordion-trigger:hover {
	background: rgba(51, 65, 85, 0.6);
}
html[data-theme="dark"] .site-theme .settings-accordion-item.is-open .settings-accordion-trigger,
html[data-theme="dark"] .site-theme .settings-accordion-body {
	background: var(--site-bg-card);
	border-color: var(--site-border);
}

.settings-media-zone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 2px dashed #e2e8f0;
	border-radius: 1rem;
	background: #f8fafc;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.settings-media-zone:hover {
	border-color: #c4b5fd;
	background: #faf5ff;
	box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.settings-media-zone:focus-visible {
	outline: none;
	border-color: #a78bfa;
	box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35);
}

.settings-media-zone--logo {
	width: 6rem;
	height: 6rem;
	max-width: 6rem;
	max-height: 6rem;
	flex-shrink: 0;
}

.settings-media-zone--cover {
	width: 100%;
	max-width: 12rem;
	height: 7rem;
}

.settings-media-zone__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.75rem;
	text-align: center;
	color: #94a3b8;
	pointer-events: none;
}

.settings-media-zone__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.settings-media-zone--cover .settings-media-zone__img {
	object-fit: cover;
}

.settings-media-zone__img.is-hidden {
	display: none;
}

.settings-media-zone__placeholder.is-hidden {
	display: none;
}

html[data-theme="dark"] .site-theme .settings-media-zone {
	background: rgba(30, 41, 59, 0.55);
	border-color: #334155;
}

html[data-theme="dark"] .site-theme .settings-media-zone:hover {
	background: rgba(76, 29, 149, 0.18);
	border-color: #7c3aed;
}

/* تنظیمات اسلایدر هیرو */
.settings-slider-toggle {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: #f8fafc;
	cursor: pointer;
}
.settings-slider-toggle__text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}
.settings-slider-toggle__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
}
.settings-slider-toggle__hint {
	font-size: 0.75rem;
	line-height: 1.45;
	color: #64748b;
}
.settings-slider-toggle__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.settings-slider-toggle__switch {
	position: relative;
	flex-shrink: 0;
	box-sizing: border-box;
	width: 2.75rem;
	height: 1.55rem;
	border-radius: 999px;
	background: #cbd5e1;
	transition: background 0.2s ease;
	margin-top: 0.1rem;
	overflow: hidden;
}
.settings-slider-toggle__switch::after {
	content: '';
	position: absolute;
	top: 0.175rem;
	inset-inline-start: 0.175rem;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
	transition: inset-inline-start 0.2s ease;
}
.settings-slider-toggle__input:checked + .settings-slider-toggle__switch {
	background: #7c3aed;
}
.settings-slider-toggle__input:checked + .settings-slider-toggle__switch::after {
	inset-inline-start: calc(100% - 1.2rem - 0.175rem);
}
.settings-slider-mode.is-hidden {
	display: none !important;
}
.settings-slider-info {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border-radius: 1rem;
	border: 1px solid #ede9fe;
	background: #faf5ff;
}
.settings-slider-dropzone {
	min-height: 8.5rem;
	padding: 0.85rem;
	border: 2px dashed #e2e8f0;
	border-radius: 1rem;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.settings-slider-dropzone:hover,
.settings-slider-dropzone.is-dragover {
	border-color: #c4b5fd;
	background: #faf5ff;
	box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}
.settings-slider-dropzone__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 6.5rem;
	text-align: center;
}
.settings-slider-dropzone__placeholder.is-hidden {
	display: none;
}
.settings-slider-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.settings-slider-thumbs.is-hidden {
	display: none;
}
.settings-slider-thumb {
	position: relative;
	width: 6.5rem;
	height: 4.25rem;
	border-radius: 0.85rem;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	background: #fff;
	flex-shrink: 0;
}
.settings-slider-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.settings-slider-thumb__remove {
	position: absolute;
	top: 0.3rem;
	inset-inline-start: 0.3rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	border: none;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.settings-slider-thumb__remove:hover {
	background: #dc2626;
}
.settings-slider-thumb.is-pending {
	opacity: 0.85;
	outline: 2px dashed #a78bfa;
}
html[data-theme="dark"] .site-theme .settings-slider-toggle,
html[data-theme="dark"] .site-theme .settings-slider-dropzone {
	background: rgba(30, 41, 59, 0.55);
	border-color: #334155;
}
html[data-theme="dark"] .site-theme .settings-slider-info {
	background: rgba(76, 29, 149, 0.18);
	border-color: #5b21b6;
}
html[data-theme="dark"] .site-theme .settings-slider-toggle__title {
	color: #e2e8f0;
}

/* فروشگاه: راه‌های ارتباطی */
.contact-item-row {
	padding: 0.75rem !important;
	border-radius: 1rem;
}

.contact-item-row .contact-type-select,
.contact-item-row .contact-value-input,
.contact-item-row .contact-other-label-wrap input {
	background: #fff;
	border-color: #cbd5e1;
	color: #0f172a;
}

html[data-theme="dark"] .site-theme .contact-item-row {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9)) !important;
	border-color: rgba(51, 65, 85, 0.9) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .site-theme .contact-item-row label,
html[data-theme="dark"] .site-theme .contact-item-row .text-slate-600 {
	color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-theme .contact-item-row .contact-type-select,
html[data-theme="dark"] .site-theme .contact-item-row .contact-value-input,
html[data-theme="dark"] .site-theme .contact-item-row .contact-other-label-wrap input {
	background: rgba(15, 23, 42, 0.78) !important;
	border-color: rgba(71, 85, 105, 0.95) !important;
	color: #f8fafc !important;
}

html[data-theme="dark"] .site-theme .contact-item-row .contact-type-select::placeholder,
html[data-theme="dark"] .site-theme .contact-item-row .contact-value-input::placeholder,
html[data-theme="dark"] .site-theme .contact-item-row .contact-other-label-wrap input::placeholder {
	color: #94a3b8;
}

html[data-theme="dark"] .site-theme .contact-item-row .contact-remove-btn {
	background: rgba(127, 29, 29, 0.18);
	border-color: rgba(248, 113, 113, 0.45);
	color: #fda4af;
}

html[data-theme="dark"] .site-theme .contact-item-row .contact-remove-btn:hover {
	background: rgba(127, 29, 29, 0.28);
}

/* فروشگاه: ترتیب آیکون‌ها مطابق لیست تنظیمات (بالا → چپ) */
.theme-default .default-contact-icons,
.theme-arya .arya-contact-icons,
.theme-caspian .caspian-contact-icons,
.theme-damavand .damavand-contact-icons,
.theme-atlas .atlas-contact-icons {
	direction: ltr;
	flex-direction: row;
}

.contact-items-sort-list .contact-item-row.sortable-ghost {
	opacity: 0.45;
	background: #f5edf8 !important;
}

.contact-items-sort-list .contact-item-row.sortable-chosen {
	background: #fbf7fc !important;
	box-shadow: inset 0 0 0 1px #ead8f0;
}

.contact-drag-handle {
	cursor: grab;
	touch-action: none;
}

.contact-drag-handle:active {
	cursor: grabbing;
}

html[data-theme="dark"] .site-theme .contact-items-sort-list .contact-item-row.sortable-ghost {
	background: rgba(75, 0, 110, 0.24) !important;
}

html[data-theme="dark"] .site-theme .contact-items-sort-list .contact-item-row.sortable-chosen {
	background: rgba(75, 0, 110, 0.18) !important;
	box-shadow: inset 0 0 0 1px rgba(234, 216, 240, 0.4);
}

html[data-theme="dark"] .site-theme .contact-drag-handle:hover {
	background: rgba(75, 0, 110, 0.24);
	color: #ead8f0;
}

/* Desktop sidebar — ثابت در اسکرول صفحه، اسکرول داخلی منو */
@media (min-width: 1024px) {
	.layout-desktop-sidebar {
		position: sticky;
		top: 1rem;
		align-self: flex-start;
		height: calc(100vh - 2rem);
		max-height: calc(100vh - 2rem);
		overflow: hidden;
	}

	.layout-desktop-sidebar__scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
	}

	.layout-desktop-sidebar__scroll::-webkit-scrollbar {
		width: 6px;
	}

	.layout-desktop-sidebar__scroll::-webkit-scrollbar-thumb {
		background: rgba(148, 163, 184, 0.45);
		border-radius: 999px;
	}

	.layout-desktop-sidebar__scroll::-webkit-scrollbar-track {
		background: transparent;
	}

	html[data-theme="dark"] .layout-desktop-sidebar__scroll {
		scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
	}

	html[data-theme="dark"] .layout-desktop-sidebar__scroll::-webkit-scrollbar-thumb {
		background: rgba(100, 116, 139, 0.5);
	}
}

/* سایدبار — خوانایی منو در تم دارک */
html[data-theme="dark"] .site-theme .layout-desktop-sidebar .text-slate-800 {
	color: var(--site-text) !important;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar .text-slate-500,
html[data-theme="dark"] .site-theme .layout-desktop-sidebar .text-slate-400 {
	color: var(--site-text-muted) !important;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav a,
html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav button.theme-toggle-btn {
	color: var(--site-text-muted) !important;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav a.bg-purple-50,
html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav a.bg-amber-50 {
	color: var(--site-text) !important;
	background-color: var(--site-bg-hover) !important;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav a.text-slate-600:hover,
html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav button.theme-toggle-btn:hover {
	color: var(--site-text) !important;
	background-color: var(--site-bg-hover) !important;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav span.cursor-not-allowed {
	color: var(--site-text-muted) !important;
	opacity: 0.55;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar__scroll nav a.hover\:text-red-600:hover {
	color: #f87171 !important;
	background-color: rgba(239, 68, 68, 0.12) !important;
}

html[data-theme="dark"] .site-theme .layout-desktop-sidebar .bg-purple-50.text-purple-700,
html[data-theme="dark"] .site-theme .layout-desktop-sidebar .bg-purple-100.text-purple-600 {
	background-color: var(--brand-primary-soft) !important;
	color: var(--site-text) !important;
}

html[data-theme="dark"] .site-theme #dashMobileSidebar .dash-mob-nav-item,
html[data-theme="dark"] .site-theme #dashMobileSidebar a.flex {
	color: var(--site-text-muted) !important;
}

html[data-theme="dark"] .site-theme #dashMobileSidebar .dash-mob-nav-item.bg-purple-50,
html[data-theme="dark"] .site-theme #dashMobileSidebar a.bg-purple-50 {
	color: var(--site-text) !important;
	background-color: var(--site-bg-hover) !important;
}

html[data-theme="dark"] .site-theme #dashMobileSidebar .dash-mob-nav-item:hover:not(.cursor-not-allowed),
html[data-theme="dark"] .site-theme #dashMobileSidebar a.flex:hover {
	color: var(--site-text) !important;
	background-color: var(--site-bg-hover) !important;
}

html[data-theme="dark"] .site-theme #dashMobileSidebar .dash-mob-nav-item.cursor-not-allowed,
html[data-theme="dark"] .site-theme #dashMobileSidebar .text-slate-400 {
	color: var(--site-text-muted) !important;
	opacity: 0.55;
}

html[data-theme="dark"] .site-theme #dashMobileSidebar .dash-mob-nav-item.bg-amber-50 {
	color: var(--site-text) !important;
	background-color: var(--site-bg-hover) !important;
}

/* ========== Mobile-first responsive / touch-friendly ========== */
@supports (padding: env(safe-area-inset-bottom)) {
	.dash-bottom-nav { padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)); }
	/* فضای محتوا برای اسکرول؛ منوی fixed جداست و نباید دوباره فاصله بگیرد */
	body.dash-body { padding-bottom: 0; }
}
.safe-area-pb { padding-bottom: env(safe-area-inset-bottom, 0); }
/* Touch targets: min 44x44px for buttons/links */
@media (pointer: coarse) {
	button:not([disabled]), a, .btn-touch, input[type="submit"], input[type="button"],
	.btn-edit-store, .btn-edit-product, .btn-toggle-product-status, .btn-delete-product {
		min-height: 44px;
		min-width: 44px;
	}
	/* Allow flex children to grow for full-width buttons */
	.flex button, .flex a { min-width: auto; }
	/* دایرکت / آیکون شبکه‌ها: اندازه دایره از استایل خودش می‌آید تا شکل خراب نشود */
	.cs-direct-close,
	.cs-direct-delete-btn,
	.cs-direct-icon-btn,
	.cs-direct-send-btn,
	.seller-direct-modal-close,
	.seller-direct-delete-btn,
	.seller-direct-icon-btn,
	.seller-direct-send-btn,
	.directs-chat-back,
	.arya-contact-icon-link,
	.default-contact-icon-link,
	.arya-swiper-prev,
	.arya-swiper-next,
	.caspian-contact-icon-link,
	.caspian-swiper-prev,
	.caspian-swiper-next,
	.caspian-cat-sheet-back,
	.damavand-contact-icon-link,
	.damavand-swiper-prev,
	.damavand-swiper-next,
	.damavand-cat-sheet-back,
	.damavand-cat-sheet-close,
	.arya-cat-sheet-back,
	.default-cat-sheet-back,
	.atlas-contact-icon-link,
	button.atlas-swiper-prev,
	button.atlas-swiper-next,
	.atlas-swiper-prev,
	.atlas-swiper-next,
	button.atlas-cat-sheet-back,
	button.atlas-cat-sheet-close,
	.atlas-cat-sheet-back,
	.atlas-cat-sheet-close,
	button#atlasBackToTop,
	#atlasBackToTop,
	button#damavandBackToTop,
	#damavandBackToTop,
	button#mitraBackToTop,
	#mitraBackToTop,
	.theme-mitra .product-like-btn.mitra-like-btn,
	.theme-mitra button.product-like-btn.mitra-like-btn,
	.theme-mitra .mitra-swiper-prev,
	.theme-mitra .mitra-swiper-next,
	.theme-mitra .mitra-card__cta-iconbtn,
	.theme-atlas .atlas-collection-card__fab,
	.theme-atlas .atlas-collection-card .store-direct-fab,
	.theme-atlas .atlas-collection-card .store-theme-btn--icon {
		min-width: 0 !important;
		min-height: 0 !important;
	}
	input:not([type="checkbox"]):not([type="radio"]), select {
		min-height: 44px;
		font-size: 16px; /* Prevents iOS zoom on focus */
	}
	textarea { font-size: 16px; }
}
/* Remove tap highlight for cleaner UX */
button, a, input, select, textarea {
	-webkit-tap-highlight-color: transparent;
}
/* SweetAlert responsive on mobile */
@media (max-width: 540px) {
	.swal2-popup { max-width: 95vw !important; margin: 1rem !important; }
	.swal2-html-container { max-height: 60vh; overflow-y: auto; }
}

/* منوی پایین موبایل — استایل فعال (مثل اپ) */
.dash-bottom-active .dash-bottom-icon {
	transform: translateY(-2px);
}
.dash-bottom-active {
	color: var(--brand-primary) !important;
}
.dash-bottom-item:active .dash-bottom-icon {
	transform: scale(0.96);
}
.dash-bottom-item:not(:active) .dash-bottom-icon {
	transition: transform 0.2s ease, background-color 0.2s ease;
}

/* منوی پایین موبایل مدرن — FAB مرکزی */
.mob-bottom-nav {
	position: fixed;
	z-index: 40;
	left: 1rem;
	right: 1rem;
	/* فقط یک‌بار safe-area: با padding پایین — نه bottom + padding با هم */
	bottom: 0;
	padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
	padding-left: env(safe-area-inset-left, 0px);
	padding-right: env(safe-area-inset-right, 0px);
	box-sizing: border-box;
}

.mob-bottom-nav__wrap {
	position: relative;
	height: 4.25rem;
}

.mob-bottom-nav__wrap--simple {
	height: 4rem;
}

.mob-bottom-nav__bar {
	display: grid;
	align-items: center;
	height: 4rem;
	padding: 0.5rem 0.35rem 0.45rem;
	border-radius: 1.75rem;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow:
		0 10px 40px rgba(15, 23, 42, 0.12),
		0 2px 8px rgba(15, 23, 42, 0.06);
	position: relative;
}

.mob-bottom-nav__bar--fab {
	grid-template-columns: 1fr 1fr 4.25rem 1fr 1fr;
}

.mob-bottom-nav__bar--simple {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-inline: 0.75rem;
}

.mob-bottom-nav__bar--simple-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-inline: 0.75rem;
}

.mob-bottom-nav__bar--fab::before {
	content: '';
	position: absolute;
	top: -1.15rem;
	left: 50%;
	transform: translateX(-50%);
	width: 4.75rem;
	height: 2.35rem;
	border-radius: 0 0 2.35rem 2.35rem;
	box-shadow: 0 1.15rem 0 0 rgba(255, 255, 255, 0.96);
	pointer-events: none;
}

.mob-bottom-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.12rem;
	min-height: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: #94a3b8;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease, transform 0.15s ease;
}

.mob-bottom-nav__item--btn {
	font: inherit;
}

.mob-bottom-nav__item--ghost {
	visibility: hidden;
	pointer-events: none;
}

.mob-bottom-nav__item:active {
	transform: scale(0.94);
}

.mob-bottom-nav__item.is-active {
	color: var(--brand-primary);
}

.mob-bottom-nav__item.is-active .mob-bottom-nav__icon {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
	width: 2.1rem;
	height: 2.1rem;
}

.mob-bottom-nav__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.72rem;
	color: #94a3b8;
	transition: background 0.2s ease, color 0.2s ease;
}

.mob-bottom-nav__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.mob-bottom-nav__badge {
	position: absolute;
	top: -0.2rem;
	inset-inline-end: -0.15rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--brand-primary);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 800;
	line-height: 1.1rem;
	text-align: center;
	box-shadow: 0 2px 6px rgba(75, 0, 110, 0.35);
}

.mob-bottom-nav__label {
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.mob-bottom-nav__fab-slot {
	pointer-events: none;
}

.mob-bottom-nav__fab {
	position: absolute;
	left: 50%;
	top: -1.35rem;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 999px;
	background: linear-gradient(145deg, #8b2db0 0%, #720ba1 48%, #520878 100%);
	color: #fff;
	text-decoration: none;
	box-shadow:
		0 8px 24px rgba(114, 11, 161, 0.45),
		0 2px 6px rgba(114, 11, 161, 0.25);
	border: 3px solid #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mob-bottom-nav__fab svg {
	width: 1.65rem;
	height: 1.65rem;
}

.mob-bottom-nav__fab:active {
	transform: translateX(-50%) scale(0.94);
}

.mob-bottom-nav__fab.is-active {
	box-shadow:
		0 8px 28px rgba(75, 0, 110, 0.55),
		0 0 0 3px rgba(104, 41, 141, 0.35);
}

html[data-theme="dark"] .mob-bottom-nav__bar {
	background: rgba(30, 41, 59, 0.96);
	border-color: rgba(71, 85, 105, 0.7);
	box-shadow:
		0 10px 40px rgba(0, 0, 0, 0.35),
		0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .mob-bottom-nav__bar--fab::before {
	box-shadow: 0 1.15rem 0 0 rgba(30, 41, 59, 0.96);
}

html[data-theme="dark"] .mob-bottom-nav__item {
	color: #64748b;
}

html[data-theme="dark"] .mob-bottom-nav__item.is-active {
	color: #f3e8ff;
}

html[data-theme="dark"] .mob-bottom-nav__item.is-active .mob-bottom-nav__icon {
	background: rgba(139, 45, 176, 0.55);
	color: #ffffff;
	width: 2.1rem;
	height: 2.1rem;
	box-shadow:
		0 0 0 1px rgba(216, 180, 254, 0.4),
		0 4px 14px rgba(114, 11, 161, 0.35);
}

html[data-theme="dark"] .mob-bottom-nav__icon {
	color: #64748b;
}

html[data-theme="dark"] .mob-bottom-nav__fab {
	border-color: #1e293b;
}

/* نوار پایین پنل ادمین — اکسنت teal */
.mob-bottom-nav--admin .mob-bottom-nav__item.is-active {
	color: #0d9488;
}
.mob-bottom-nav--admin .mob-bottom-nav__item.is-active .mob-bottom-nav__icon {
	background: rgba(13, 148, 136, 0.12);
	color: #0d9488;
}
html[data-theme="dark"] .mob-bottom-nav--admin .mob-bottom-nav__item.is-active {
	color: #2dd4bf;
}
html[data-theme="dark"] .mob-bottom-nav--admin .mob-bottom-nav__item.is-active .mob-bottom-nav__icon {
	background: rgba(45, 212, 191, 0.16);
	color: #2dd4bf;
}

.admin-mob-drawer-head {
	background: linear-gradient(135deg, #0d9488 0%, #0f766e 48%, #115e59 100%);
}

@media (min-width: 1024px) {
	.mob-bottom-nav {
		display: none;
	}
}

/* لایه مودال فروشگاه — همیشه بالای فوتر و همه اجزا */
#cs-store-portal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	pointer-events: none;
}
#cs-store-portal > * {
	pointer-events: none;
}
#cs-store-portal > .open {
	pointer-events: auto;
}

/* Toast — همیشه گوشه بالا راست */
body.swal2-toast-shown .swal2-container.swal2-top-end {
	top: 0.75em !important;
	right: 0.75em !important;
	left: auto !important;
	bottom: auto !important;
	width: auto !important;
	height: auto !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: flex-end !important;
	padding: 0 !important;
	z-index: 2147483647 !important;
}

body.swal2-toast-shown .swal2-container.swal2-top-end > .swal2-popup.swal2-toast {
	margin: 0 !important;
	min-width: 20rem !important;
	max-width: min(26rem, calc(100vw - 1.5em)) !important;
	/* padding + آیکون باید جا شود؛ وگرنه پایین تیک بریده می‌شود */
	min-height: 0 !important;
	height: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.625em !important;
	padding: 0.85em 1.15em 1em !important;
	box-sizing: border-box !important;
	position: relative !important;
	overflow: visible !important;
	overflow-y: visible !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-icon {
	margin: 0 !important;
	flex-shrink: 0 !important;
	/* اندازهٔ پیش‌فرض toast سوئیت‌الرت تا تیک داخل حلقه بماند */
	width: 2em !important;
	height: 2em !important;
	min-width: 2em !important;
	min-height: 2em !important;
	overflow: hidden !important;
	align-self: center !important;
}

/* جلوگیری از خط اضافهٔ انیمیشن تیک موفقیت زیر آیکون */
body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-fix,
body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-icon.swal2-success [class^="swal2-success-circular-line"] {
	display: none !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-title {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	text-align: center !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	flex: 1 1 auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 2em !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-timer-progress-bar-container {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
}

/* SweetAlert مودال — متن وسط‌چین (toast و فرم‌ها مستثنا) */
.swal2-container:not(:has(.swal2-toast)) .swal2-title {
	text-align: center !important;
}

.swal2-container:not(:has(.swal2-toast)) .swal2-html-container {
	text-align: center !important;
}

.swal2-container:not(:has(.swal2-toast)) .swal2-html-container:has(.dash-swal-form),
.swal2-container:not(:has(.swal2-toast)) .swal2-html-container:has(form) {
	text-align: right !important;
}

/* SweetAlert — مودال تمام‌صفحه وسط */
.swal2-container:not(:has(.swal2-toast)) {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	display: grid !important;
	place-items: center !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 1rem !important;
	box-sizing: border-box !important;
	z-index: 2147483647 !important;
}

/* ویجت فضای آپلود — داشبورد فروشنده */
.dash-storage--sidebar {
	padding: 0.55rem 0.65rem;
	border-radius: 0.75rem;
	border: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.dash-storage__limit-top {
	margin: 0 0 0.4rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #334155;
	text-align: start;
}
.dash-storage__bar-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.1rem;
}
.dash-storage__limit-side {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
	white-space: nowrap;
	flex-shrink: 0;
}
.dash-storage__bar-row .dash-storage__bar {
	flex: 1;
	min-width: 0;
	margin: 0;
}
.dash-storage__main strong {
	font-size: 1rem;
	font-weight: 800;
	color: #0f172a;
}
.dash-storage__sep {
	margin: 0 0.2rem;
	color: #94a3b8;
}
.dash-storage__pct {
	font-size: 0.72rem;
	font-weight: 800;
	/* color: var(--brand-primary); */
	flex-shrink: 0;
}
.dash-storage__meta--sidebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0.45rem 0 0;
	font-size: 0.68rem;
	color: #64748b;
}
.dash-storage__extra {
	margin: 0.2rem 0 0;
	font-size: 0.65rem;
	color: #64748b;
}
.dash-storage__bar {
	height: 0.45rem;
	border-radius: 9999px;
	background: #e2e8f0;
	overflow: hidden;
}
.dash-storage__fill {
	height: 100%;
	border-radius: inherit;
	transition: width 0.35s ease;
}
.dash-storage__fill--ok { background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark)); }
.dash-storage__fill--warn { background: linear-gradient(90deg, #f59e0b, #f97316); }
.dash-storage__fill--danger { background: linear-gradient(90deg, #ef4444, #dc2626); }
.dash-storage__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin: 0.55rem 0 0;
	font-size: 0.68rem;
	color: #64748b;
}
.dash-storage__warn {
	margin: 0.45rem 0 0;
	font-size: 0.68rem;
	color: #dc2626;
	font-weight: 600;
}
.dash-storage__buy-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.55rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.65rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-decoration: none;
	color: #0369a1;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
	transition: background 0.15s, color 0.15s;
}
.dash-storage__buy-btn:hover {
	background: #bae6fd;
	color: #0c4a6e;
}
.dash-storage__buy-btn--card {
	margin-top: 0.85rem;
	color: #e0f2fe;
	background: rgba(56, 189, 248, 0.12);
	border-color: rgba(125, 211, 252, 0.28);
}
.dash-storage__buy-btn--card:hover {
	background: rgba(56, 189, 248, 0.22);
	color: #fff;
}
.dash-storage--card .dash-storage__bar--card {
	height: 0.45rem;
	background: #1e293b;
	border-radius: 9999px;
	overflow: hidden;
}
.dash-storage--card .dash-storage__top {
	margin-bottom: 0.85rem;
}
.dash-storage--card .dash-storage__label {
	color: #94a3b8;
}
.dash-storage--card .dash-storage__main {
	color: #e2e8f0;
}
.dash-storage--card .dash-storage__main strong {
	color: #f8fafc;
	font-size: 1.35rem;
}
.dash-storage__icon-wrap--card {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: #1e293b;
}
.dash-storage__bar--card {
	height: 0.5rem;
	background: #1e293b;
}
.dash-storage__meta--card {
	justify-content: space-between;
	color: #94a3b8;
	font-size: 0.72rem;
}
.dash-storage--mobile {
	padding: 0.75rem 0.85rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
}
.dash-storage__top--mobile {
	margin-bottom: 0.35rem;
}
.dash-storage__label--mobile {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.72rem;
}
.dash-storage__pct--mobile {
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}
.dash-storage__main--mobile {
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.8rem;
	margin: 0 0 0.55rem;
}
.dash-storage__main--mobile strong {
	font-size: 1.05rem;
}
.dash-storage__bar--mobile {
	height: 0.4rem;
	background: rgba(255, 255, 255, 0.22);
}
.dash-storage__fill--mobile {
	background: #fff;
}
html[data-theme="dark"] .dash-storage--sidebar {
	background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
	border-color: #334155;
}
html[data-theme="dark"] .dash-storage--sidebar .dash-storage__limit-top,
html[data-theme="dark"] .dash-storage--sidebar .dash-storage__limit-side {
	color: #cbd5e1;
}
html[data-theme="dark"] .dash-storage--sidebar .dash-storage__meta {
	color: #94a3b8;
}
html[data-theme="dark"] .dash-storage--sidebar .dash-storage__main {
	color: #cbd5e1;
}
html[data-theme="dark"] .dash-storage--sidebar .dash-storage__main strong {
	color: #f1f5f9;
}
html[data-theme="dark"] .dash-storage--sidebar .dash-storage__bar {
	background: #334155;
}

/* ========== داشبورد اصلی — سازگار با تم روشن و تاریک ========== */
.dash-home-title {
	color: var(--site-text);
}
.dash-home-subtitle {
	color: var(--site-text-muted);
}
.dash-home-btn-secondary {
	background: var(--dash-btn-secondary-bg);
	color: var(--dash-btn-secondary-text);
	border: 1px solid var(--site-border);
}
.dash-home-btn-secondary:hover {
	background: var(--site-bg-hover);
}
.dash-home-card-dark {
	background: var(--dash-card-dark-bg);
	border-color: var(--dash-card-dark-border) !important;
	color: var(--dash-card-dark-text);
}
.dash-home-card-dark .text-slate-400,
.dash-home-card-dark .text-slate-50 {
	color: var(--dash-card-dark-muted) !important;
}
.dash-home-card-dark .text-slate-50.font-medium,
.dash-home-card-dark .font-medium.text-slate-50 {
	color: var(--dash-card-dark-text) !important;
}

.site-theme {
	--dash-card-dark-bg: rgba(15, 23, 42, 0.9);
	--dash-card-dark-border: rgba(51, 65, 85, 0.55);
	--dash-card-dark-text: #f8fafc;
	--dash-card-dark-muted: #94a3b8;
	--dash-btn-secondary-bg: #f1f5f9;
	--dash-btn-secondary-text: #334155;
	--dash-subscription-header-bg: linear-gradient(to left, rgba(255, 251, 235, 0.85), #ffffff 40%, #ffffff);
	--dash-subscription-stat-bg: #f8fafc;
}
html[data-theme="dark"] .site-theme {
	--dash-card-dark-bg: rgba(15, 23, 42, 0.92);
	--dash-card-dark-border: #334155;
	--dash-card-dark-text: #f1f5f9;
	--dash-card-dark-muted: #94a3b8;
	--dash-btn-secondary-bg: #1e293b;
	--dash-btn-secondary-text: #e2e8f0;
	--dash-subscription-header-bg: linear-gradient(to left, rgba(245, 158, 11, 0.14), var(--site-bg-card) 45%, var(--site-bg-card));
	--dash-subscription-stat-bg: rgba(15, 23, 42, 0.55);
}

/* ========== تنظیمات — اشتراک و فاکتورها ========== */
.dash-subscription-header {
	background: var(--dash-subscription-header-bg);
}
.dash-subscription-stat {
	background: var(--dash-subscription-stat-bg);
	border-color: var(--site-border) !important;
}
.dash-settings-panel {
	background-color: var(--site-bg-card);
}
.dash-invoice-card {
	background-color: var(--site-bg-card);
}
.dash-invoice-summary:hover {
	background-color: var(--site-bg-hover);
}
.dash-invoice-details {
	background-color: var(--dash-subscription-stat-bg);
}
.dash-invoice-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.5rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	border-width: 1px;
	border-style: solid;
}
.dash-invoice-badge--plan {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
	border-color: var(--brand-primary-soft-2);
}
.dash-invoice-badge--storage {
	background: #f0f9ff;
	color: #0369a1;
	border-color: #e0f2fe;
}
.dash-invoice-badge--paid {
	background: #ecfdf5;
	color: #047857;
	border-color: #d1fae5;
}
.dash-invoice-badge--pending {
	background: #fffbeb;
	color: #b45309;
	border-color: #fef3c7;
}
.dash-invoice-badge--failed {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fee2e2;
}
.dash-invoice-badge--default {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}
html[data-theme="dark"] .site-theme .dash-invoice-badge--plan {
	background: rgba(75, 0, 110, 0.28);
	color: var(--brand-primary-soft-2);
	border-color: rgba(75, 0, 110, 0.5);
}
html[data-theme="dark"] .site-theme .dash-invoice-badge--storage {
	background: rgba(14, 165, 233, 0.15);
	color: #7dd3fc;
	border-color: rgba(14, 165, 233, 0.3);
}
html[data-theme="dark"] .site-theme .dash-invoice-badge--paid {
	background: rgba(16, 185, 129, 0.15);
	color: #6ee7b7;
	border-color: rgba(16, 185, 129, 0.3);
}
html[data-theme="dark"] .site-theme .dash-invoice-badge--pending {
	background: rgba(245, 158, 11, 0.15);
	color: #fcd34d;
	border-color: rgba(245, 158, 11, 0.3);
}
html[data-theme="dark"] .site-theme .dash-invoice-badge--failed {
	background: rgba(239, 68, 68, 0.15);
	color: #fca5a5;
	border-color: rgba(239, 68, 68, 0.3);
}
html[data-theme="dark"] .site-theme .dash-invoice-badge--default {
	background: rgba(51, 65, 85, 0.5);
	color: #cbd5e1;
	border-color: #475569;
}
.user-invoice-card summary::-webkit-details-marker {
	display: none;
}
.user-invoice-card summary::after {
	content: none;
}
.user-invoice-card[open] summary::after {
	transform: none;
}
html[data-theme="dark"] .site-theme .text-slate-400 {
	color: var(--site-text-muted) !important;
}
html[data-theme="dark"] .site-theme .text-slate-300 {
	color: #64748b !important;
}
html[data-theme="dark"] .site-theme .text-purple-600 {
	color: #c99ad6 !important;
}
html[data-theme="dark"] .site-theme a.text-purple-600:hover {
	color: #dcc0e8 !important;
}
html[data-theme="dark"] .site-theme .text-emerald-600 {
	color: #34d399 !important;
}
html[data-theme="dark"] .site-theme .text-rose-600,
html[data-theme="dark"] .site-theme .text-rose-500 {
	color: #f87171 !important;
}

/* ========== خرید فضای ذخیره‌سازی — کارت بسته‌ها ========== */
.dash-storage-plan-card {
	background: var(--site-bg-card);
	border: 1px solid var(--site-border);
	border-radius: 1.25rem;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-storage-plan-card:hover {
	border-color: rgba(14, 165, 233, 0.35);
	box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}
.dash-storage-plan-card__head {
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--site-border);
}
.dash-storage-plan-card__name {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--site-text);
}
.dash-storage-plan-card__mb {
	margin: 0.35rem 0 0;
	font-size: 1.65rem;
	font-weight: 900;
	line-height: 1.1;
	color: #0284c7;
}
.dash-storage-plan-card__mb span {
	font-size: 0.85rem;
	font-weight: 700;
}
html[data-theme="dark"] .site-theme .dash-storage-plan-card__mb {
	color: #38bdf8;
}
.dash-storage-plan-card__icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.85rem;
	background: rgba(14, 165, 233, 0.1);
	color: #0284c7;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
html[data-theme="dark"] .site-theme .dash-storage-plan-card__icon {
	background: rgba(14, 165, 233, 0.18);
	color: #38bdf8;
}
.dash-storage-plan-card__desc {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--site-text-muted);
}
.dash-storage-plan-card__pricing {
	background: var(--dash-subscription-stat-bg);
	border: 1px solid var(--site-border);
	border-radius: 1rem;
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}
.dash-storage-plan-card__pricing-label {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--site-text-muted);
}
.dash-storage-plan-card__daily-price {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
}
.dash-storage-plan-card__daily-amount {
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	font-weight: 900;
	line-height: 1.1;
	color: #0369a1;
}
html[data-theme="dark"] .site-theme .dash-storage-plan-card__daily-amount {
	color: #7dd3fc;
}
.dash-storage-plan-card__daily-unit {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--site-text-muted);
}
.dash-storage-plan-card__remaining {
	margin: 0.85rem 0 0;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--site-border);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.dash-storage-plan-card__remaining-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--site-text-muted);
}
.dash-storage-plan-card__remaining-value {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--site-text);
}
.dash-storage-plan-card__footer {
	margin-top: auto;
	padding-top: 0.25rem;
}
.dash-storage-plan-card__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.85rem;
	background: rgba(14, 165, 233, 0.06);
	border: 1px solid rgba(14, 165, 233, 0.15);
}
html[data-theme="dark"] .site-theme .dash-storage-plan-card__total {
	background: rgba(14, 165, 233, 0.12);
	border-color: rgba(14, 165, 233, 0.22);
}
.dash-storage-plan-card__total-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--site-text-muted);
}
.dash-storage-plan-card__total-value {
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--site-text);
}
.dash-storage-plan-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.85rem 1.25rem;
	border-radius: 0.95rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #8b2db0 0%, #720ba1 100%);
	box-shadow: 0 8px 20px rgba(114, 11, 161, 0.28);
	transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.dash-storage-plan-card__btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

/* ========== انتخاب فروشگاه — باکس‌های کلیکی ========== */
.dash-store-picker__label {
	color: var(--site-text);
}
.dash-store-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
	gap: 0.75rem;
}
.dash-store-picker__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.9rem 1rem;
	text-align: right;
	border: 1.5px solid var(--site-border);
	border-radius: 1rem;
	background: var(--site-bg-card);
	color: var(--site-text);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.dash-store-picker__item:hover {
	border-color: rgba(75, 0, 110, 0.45);
	background: var(--site-bg-hover);
	box-shadow: 0 4px 14px rgba(75, 0, 110, 0.08);
}
.dash-store-picker__item.is-selected {
	border-color: var(--brand-primary);
	background: linear-gradient(135deg, rgba(75, 0, 110, 0.1) 0%, rgba(104, 41, 141, 0.06) 100%);
	box-shadow: 0 0 0 1px rgba(75, 0, 110, 0.2), 0 6px 18px rgba(75, 0, 110, 0.12);
}
.dash-store-picker__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: rgba(75, 0, 110, 0.1);
	color: var(--brand-primary);
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}
.dash-store-picker__item.is-selected .dash-store-picker__icon {
	background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
	color: #fff;
}
.dash-store-picker__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1;
}
.dash-store-picker__name {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--site-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dash-store-picker__slug {
	font-size: 0.75rem;
	color: var(--site-text-muted);
	font-family: ui-monospace, monospace;
}
.dash-store-picker__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 9999px;
	background: var(--brand-primary);
	color: #fff;
	flex-shrink: 0;
	opacity: 0;
	transform: scale(0.75);
	transition: opacity 0.2s, transform 0.2s;
}
.dash-store-picker__item.is-selected .dash-store-picker__check {
	opacity: 1;
	transform: scale(1);
}
html[data-theme="dark"] .site-theme .dash-store-picker__item.is-selected {
	background: linear-gradient(135deg, rgba(75, 0, 110, 0.26) 0%, rgba(104, 41, 141, 0.14) 100%);
}
html[data-theme="dark"] .site-theme .dash-store-picker__item:hover {
	border-color: rgba(201, 154, 214, 0.45);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .site-theme .dash-store-picker__icon {
	background: rgba(114, 11, 161, 0.28);
	color: #dcc0e8;
}
html[data-theme="dark"] .site-theme .dash-store-picker__item.is-selected .dash-store-picker__icon {
	background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
	color: #fff;
}
html[data-theme="dark"] .site-theme .dash-store-picker__name {
	color: var(--site-text);
}
html[data-theme="dark"] .site-theme .dash-store-picker__slug {
	color: var(--site-text-muted);
}

/* ─── منوی کشویی موبایل — اسلاید نرم مثل تلگرام ─── */
#dashMobileOverlay,
#adminMobileOverlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.42s cubic-bezier(0.33, 0.82, 0.35, 1);
}

#dashMobileSidebar,
#adminMobileSidebar {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 60;
	width: min(320px, 88vw);
	max-width: 100%;
	height: 100%;
	height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	box-shadow: -16px 0 48px rgba(15, 23, 42, 0.2);
	transform: translate3d(105%, 0, 0);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	will-change: transform;
	transition:
		transform 0.52s cubic-bezier(0.32, 0.72, 0, 1),
		opacity 0.36s cubic-bezier(0.33, 0.82, 0.35, 1),
		visibility 0s linear 0.52s;
}

#dashMobileOverlay.is-open,
#adminMobileOverlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

#dashMobileSidebar.is-open,
#adminMobileSidebar.is-open {
	transform: translate3d(0, 0, 0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition:
		transform 0.52s cubic-bezier(0.32, 0.72, 0, 1),
		opacity 0.36s cubic-bezier(0.33, 0.82, 0.35, 1),
		visibility 0s linear 0s;
}

#dashMobileSidebar .dash-mob-nav-item,
#homeMobileSidebar .dash-mob-nav-item,
#adminMobileSidebar nav a,
#adminMobileSidebar nav > span.flex {
	opacity: 0;
	transform: translate3d(14px, 0, 0);
	transition:
		opacity 0.34s ease,
		transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

#dashMobileSidebar.is-open .dash-mob-nav-item,
#homeMobileSidebar.is-open .dash-mob-nav-item,
#adminMobileSidebar.is-open nav a,
#adminMobileSidebar.is-open nav > span.flex {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(1),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(1) { transition-delay: 0.1s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(2),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(2) { transition-delay: 0.14s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(3),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(3) { transition-delay: 0.18s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(4),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(4) { transition-delay: 0.22s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(5),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(5) { transition-delay: 0.26s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(6),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(6) { transition-delay: 0.3s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(7),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(7) { transition-delay: 0.34s; }
#dashMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(8),
#homeMobileSidebar.is-open .dash-mob-nav-item:nth-of-type(8) { transition-delay: 0.38s; }

html[data-theme="dark"] #dashMobileSidebar,
html[data-theme="dark"] #adminMobileSidebar,
html[data-theme="dark"] #homeMobileSidebar {
	background: #1e293b;
}

@media (min-width: 64rem) {
	#dashMobileOverlay,
	#dashMobileSidebar,
	#adminMobileOverlay,
	#adminMobileSidebar {
		display: none !important;
	}
}

/* ── Site brand logos (public/assets/images/logo/) ── */
.site-brand-logo,
.home-nav-brand__logo,
.home-footer__logo-img,
.dash-sidebar-logo {
	display: block;
	object-fit: contain;
	object-position: center;
	flex-shrink: 0;
}

.home-nav-brand__logo {
	width: auto;
	height: 2.125rem;
	max-width: 10.5rem;
}

@media (min-width: 1024px) {
	.home-nav-brand__logo {
		height: 2.5rem;
		max-width: 12rem;
	}
}

.home-nav-brand__fallback {
	line-height: 1.2;
	white-space: nowrap;
}

.home-footer__logo-img {
	width: auto;
	height: 2.5rem;
	max-width: 11rem;
}

.home-footer__logo-fallback {
	font-size: 1.25rem;
	font-weight: 800;
	color: #f3f4f1;
	letter-spacing: -0.02em;
}

.dash-sidebar-logo {
	width: auto;
	height: 2.85rem;
	max-width: 3.35rem;
}

.site-brand-logo--dark {
	display: none !important;
}

html[data-theme="dark"] .site-brand-logo--light {
	display: none !important;
}

html[data-theme="dark"] .site-brand-logo--dark {
	display: block !important;
}

@media (prefers-reduced-motion: reduce) {
	#dashMobileOverlay,
	#dashMobileSidebar,
	#adminMobileOverlay,
	#adminMobileSidebar,
	#dashMobileSidebar .dash-mob-nav-item,
	#homeMobileSidebar .dash-mob-nav-item,
	#adminMobileSidebar nav a,
	#adminMobileSidebar nav > span.flex {
		transition: none !important;
	}
}