/* ==========================================================================
   Music School Manager — Student Portal (front-end shortcode [msm_portal])
   ========================================================================== */

:root {
	--msm-p-primary: #8f72ff;
	--msm-p-primary-dark: #6440f5;
	--msm-p-primary-light: #f1edff;
	--msm-p-teal: #2dd4bf;
	--msm-p-pink: #f472b6;
	--msm-p-ink: #f3f0ff;
	--msm-p-ink-soft: #b3a9dd;
	--msm-p-border: rgba(255,255,255,0.12);
	/* رنگ‌های مخصوص تمِ تیره‌ی درخشان (شبیه صفحه‌ی ورود) */
	--msm-p-glass-bg: rgba(35, 24, 68, 0.55);
	--msm-p-glass-bg-solid: #211448;
	--msm-p-glass-border: rgba(168, 139, 255, 0.28);
	--msm-p-glow: 0 0 0 1px rgba(168,139,255,0.15), 0 20px 50px rgba(20, 8, 60, 0.55);
}

/* App-shell mode: the portal takes over the ENTIRE viewport, covering the
   active theme's header/footer/sidebar — regardless of which theme is
   installed. This is what makes it read as "an app", not "a page on a site". */
html.msm-app-shell-active, html.msm-app-shell-active body {
	overflow: hidden !important;
	height: 100%;
	height: -webkit-fill-available;
	height: 100dvh;
	background: #1a1140;
}
.msm-portal-app-shell {
	position: fixed;
	inset: 0;
	height: 100vh;
	height: 100dvh;
	z-index: 999999;
	background:
		radial-gradient(60% 40% at 50% 0%, rgba(124, 92, 255, 0.28), transparent 60%),
		linear-gradient(180deg, #1a1140 0%, #241857 55%, #1a1140 100%);
	display: flex;
	flex-direction: column;
}
.msm-portal-scroll-area {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	/* padding-top این‌جا عمداً است: پوسته‌ی اپ کل صفحه (از جمله زیر نوار وضعیت
	   آیفون/نوار وضعیت اندروید) را می‌پوشاند؛ بدون این padding محتوا (هدر و ...)
	   دقیقاً زیر ساعت/باتری/آنتن رندر می‌شود و دیده نمی‌شود. */
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.msm-portal-wrap {
	direction: rtl;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	color: var(--msm-p-ink);
	max-width: 640px;
	margin: 0 auto;
	padding: 6px 6px 40px;
}
.msm-portal-wrap * , .msm-sheet-panel * , .msm-modal * { box-sizing: border-box; }
/* مودال‌های ساخته‌شده با JS مستقیم به body اضافه می‌شوند و بیرون از
   .msm-portal-wrap هستند — همین قانون را برای آن‌ها هم صریحاً تکرار می‌کنیم. */
.msm-modal-overlay, .msm-modal-overlay * { box-sizing: border-box; }
.msm-modal-footer { flex-wrap: wrap; }

/* Sticky app-bar (replaces the plain gradient header when inside the app shell) */
.msm-app-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	padding-top: env(safe-area-inset-top, 0px);
	background: linear-gradient(120deg, var(--msm-p-primary), var(--msm-p-primary-dark) 70%, var(--msm-p-teal));
	box-shadow: 0 10px 26px rgba(88, 65, 190, 0.22);
}

.msm-icon { display: inline-block; vertical-align: middle; }

/* Bottom app-navigation bar */
.msm-app-tabbar {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	z-index: 1000000;
	display: flex;
	background: rgba(26, 17, 64, 0.85);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-top: 1px solid var(--msm-p-glass-border);
	box-shadow: 0 -12px 32px rgba(10, 5, 30, 0.4);
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
	gap: 4px;
}
.msm-app-tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 8px 4px;
	background: none;
	border: none;
	border-radius: 14px;
	font-family: inherit;
	color: var(--msm-p-ink-soft);
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, transform .18s ease;
}
.msm-app-tab-icon { line-height: 1; transition: transform .18s ease; }
.msm-app-tab.is-active {
	color: #fff;
	background: linear-gradient(155deg, var(--msm-p-primary), var(--msm-p-primary-dark));
	box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 18px rgba(124, 92, 255, 0.4);
	transform: translateY(-2px);
}

/* نوار پایین با تعداد تب زیاد (مثلاً پرتال پرسنل): به‌جای فشرده‌شدن همه‌ی
   تب‌ها در یک ردیف (flex:1)، به‌صورت افقی اسکرول می‌شود — هر تب اندازه‌ی
   ثابت و راحت خودش را دارد، شبیه اپ‌های موبایل مدرن. */
.msm-app-tabbar-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	justify-content: flex-start;
}
.msm-app-tabbar-scroll::-webkit-scrollbar { display: none; }
.msm-app-tabbar-scroll .msm-app-tab {
	flex: 0 0 auto;
	min-width: 72px;
	scroll-snap-align: start;
	padding: 9px 12px;
}
.msm-app-tabbar-scroll .msm-app-tab.is-active {
	box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 10px 22px rgba(124, 92, 255, 0.5), 0 2px 6px rgba(0,0,0,0.25);
}
.msm-app-tabbar-scroll .msm-app-tab-icon { font-size: 17px; }
.msm-app-tabbar-scroll .msm-app-tab:not(.is-active) {
	background: rgba(255,255,255,0.04);
	box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* ---- Bottom-sheet panels (کلاس‌ها/حضور و غیاب/پرداخت‌ها و ...) ----
   صفحه‌ی اصلی فقط خوش‌آمدگویی + آخرین جلسه + ارتباط با پرسنل را نشان می‌دهد؛
   بقیه‌ی محتوا به‌شکل یک "شیت" از پایین بالا می‌آید، فقط وقتی از نوار پایین
   انتخاب شود — دقیقاً مثل اپ‌های موبایل بومی. */
.msm-sheet-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	background: rgba(20, 12, 45, 0.38);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}
.msm-sheet-overlay.is-open { opacity: 1; pointer-events: auto; }

/* نکته‌ی مهم برای سافاری iOS: ترکیب overflow-y:auto با یک transform متحرک روی
   همان المان position:fixed، باعث یک باگ شناخته‌شده‌ی رندر در iOS Safari
   می‌شود (لایه اصلاً پینت/نمایش داده نمی‌شود). به همین دلیل transform و
   اسکرول را روی دو المان تودرتوی جدا گذاشته‌ایم: خود «شیت» فقط جابه‌جا/محو
   می‌شود (بدون overflow)، و یک div داخلی مسئول اسکرول محتوا است (بدون transform). */
.msm-sheet-panel {
	position: fixed;
	right: 0; left: 0; bottom: 0;
	z-index: 1000002;
	max-height: 85vh;
	max-height: 85dvh; /* روی موبایل با نمایش/پنهان‌شدن نوار آدرس، vh واقعی تغییر می‌کند؛
	                       dvh ارتفاع واقعی و قابل‌مشاهده را حساب می‌کند تا دکمه‌های
	                       پایین شیت (مثل «انصراف») هیچ‌وقت نصفه/بریده دیده نشوند. */
	background: #1e1448;
	border-radius: 24px 24px 0 0;
	box-shadow: 0 1px 0 rgba(168,139,255,0.15) inset, 0 -20px 60px rgba(10, 5, 30, 0.55);
	border-top: 1px solid var(--msm-p-glass-border);
	transform: translateY(100%) scale(.98);
	opacity: 0;
	pointer-events: none;
	transform-origin: bottom center;
	transition: transform .34s cubic-bezier(.19,.86,.24,1), opacity .28s ease;
	display: flex;
	flex-direction: column;
	will-change: transform;
}
.msm-sheet-panel.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.msm-sheet-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 6px calc(24px + env(safe-area-inset-bottom, 0px));
}
.msm-sheet-handle-bar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 0 6px;
	background: #1e1448;
	border-radius: 24px 24px 0 0;
}
.msm-sheet-handle-bar .msm-sheet-grip { width: 40px; height: 5px; border-radius: 4px; background: rgba(255,255,255,0.18); }
.msm-sheet-close {
	position: absolute;
	top: 8px; left: 10px;
	width: 32px; height: 32px;
	border-radius: 50%;
	border: 1px solid var(--msm-p-glass-border);
	background: rgba(255,255,255,0.08);
	color: #f3f0ff;
	box-shadow: 0 4px 12px rgba(10,5,30,.3);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}

/* ---- ارتباط با پرسنل (صفحه‌ی اصلی) ----
   طبق درخواست، این بخش دیگر باز/دیده‌شده باز نمی‌شود — چون دم‌دست بودنش باعث
   می‌شد هنرجوها مدام کلاسشان را کنسل/جبرانی کنند. حالا فقط یک نوار کوچک با
   عنوان و فلش دیده می‌شود؛ گزینه‌های کنسلی/جبرانی/تیکت فقط بعد از کلیک روی
   همین نوار باز می‌شوند. */
.msm-contact-collapsed { padding-bottom: 6px; }
.msm-contact-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 20px 0 4px;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	text-align: right;
}
.msm-contact-toggle-title {
	display: flex;
	align-items: center;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--msm-p-ink);
}
.msm-contact-toggle-arrow {
	color: var(--msm-p-ink-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(90deg);
	transition: transform .22s ease;
}
.msm-contact-collapsed.is-expanded .msm-contact-toggle-arrow { transform: rotate(-90deg); }
.msm-contact-body {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	opacity: 0;
	transition: grid-template-rows .28s ease, opacity .22s ease;
}
.msm-contact-body > .msm-contact-grid { overflow: hidden; min-height: 0; }
.msm-contact-collapsed.is-expanded .msm-contact-body {
	grid-template-rows: 1fr;
	opacity: 1;
	margin-top: 12px;
}
.msm-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.msm-contact-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: right;
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 16px;
	padding: 14px;
	cursor: pointer;
	font-family: inherit;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.msm-contact-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); box-shadow: 0 10px 24px rgba(10,5,30,.35); }
.msm-contact-btn-icon {
	flex: none;
	width: 42px; height: 42px;
	border-radius: 13px;
	display: flex; align-items: center; justify-content: center;
	background: var(--msm-p-primary-light);
	color: var(--msm-p-primary-dark);
}
.msm-contact-btn-title { font-weight: 800; font-size: 13.5px; color: var(--msm-p-ink); }
.msm-contact-btn-sub { font-size: 11.5px; color: var(--msm-p-ink-soft); margin-top: 2px; }
.msm-app-tab.is-active .msm-app-tab-icon { transform: scale(1.08); }
.msm-app-tab:active { transform: scale(.94); }

.msm-portal-wrap h2 , .msm-sheet-panel h2 , .msm-modal h2 {
	font-size: 21px;
	font-weight: 800;
	margin: 10px 0 20px;
	background: linear-gradient(90deg, var(--msm-p-ink), var(--msm-p-primary-dark));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.msm-portal-wrap h3 , .msm-sheet-panel h3 , .msm-modal h3 ,
.msm-portal-wrap h4 , .msm-sheet-panel h4 , .msm-modal h4 {
	font-size: 14.5px;
	font-weight: 800;
	margin: 30px 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	/* رنگ صریح و روشن (نه سبز پیش‌فرض تم) — چون این اپ‌شل روی پس‌زمینه‌ی بنفش
	   تیره‌ی خودش رندر می‌شود، رنگ عنوان‌ها باید همیشه از همین پالت باشد، نه
	   چیزی که از تم قالب سایت به ارث برسد. */
	color: var(--msm-p-ink) !important;
}
.msm-portal-wrap h3::before , .msm-sheet-panel h3::before , .msm-modal h3::before {
	content: '';
	width: 5px;
	height: 16px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--msm-p-primary), var(--msm-p-teal));
	display: inline-block;
}

/* Section card wrapper — groups each "h3 + table" block for a cleaner, less flat look */
.msm-portal-section {
	background: var(--msm-p-glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 18px;
	padding: 6px 20px 20px;
	margin-bottom: 18px;
	box-shadow: 0 1px 0 rgba(168,139,255,0.1) inset, 0 16px 40px rgba(10, 5, 30, 0.35);
	transition: box-shadow .2s ease, transform .2s ease;
	position: relative;
	overflow: hidden;
}
.msm-portal-section::before {
	content: '';
	position: absolute;
	inset-inline-start: 0; top: 0; bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--msm-p-primary), var(--msm-p-teal));
}
.msm-portal-section:hover {
	box-shadow: 0 1px 0 rgba(168,139,255,0.15) inset, 0 20px 50px rgba(10, 5, 30, 0.45);
	transform: translateY(-2px);
}
.msm-portal-section > h3 { margin-top: 20px; }
.msm-portal-section .msm-table { box-shadow: none; border: 1px solid var(--msm-p-border); }
.msm-portal-section > p { color: var(--msm-p-ink-soft); font-size: 13px; }

/* برخی از پنل‌ها هم‌زمان کلاس msm-portal-section (کارت معمولی) و هم
   msm-sheet-panel (شیت کشویی از پایین) دارند. چون هر دو سلکتور تک‌کلاسی و
   هم‌ارزش‌اند، هرکدام که در فایل CSS دیرتر بیاید برنده می‌شود — و چون
   msm-portal-section دیرتر تعریف شده، position/border-radius/margin آن، حالت
   fixed شیت را به‌طور کامل بی‌اثر می‌کرد (شیت به‌جای چسبیدن به پایین صفحه، در
   جریان عادی سند رندر می‌شد و در نتیجه خیلی پایین‌تر و خارج از دید ظاهر
   می‌شد). این قانون با یک سلکتور دوکلاسی (که همیشه اولویت بالاتری دارد،
   صرف‌نظر از ترتیب در فایل) آن مقادیر را دوباره به حالت درست شیت برمی‌گرداند. */
.msm-sheet-panel.msm-portal-section {
	position: fixed;
	right: 0;
	left: 0;
	bottom: 0;
	top: auto;
	margin-bottom: 0;
	border-radius: 24px 24px 0 0;
	/* .msm-portal-section sets overflow:hidden (for the rounded-corner accent
	   stripe on regular cards). On a sheet, that same overflow:hidden clips
	   the close (✕) button sitting in the rounded top corner. Restore it. */
	overflow: visible;
}
.msm-sheet-panel.msm-portal-section::before {
	/* Round the accent stripe's own top corner instead of relying on the
	   panel's overflow:hidden (now disabled above) to clip it. */
	border-radius: 24px 0 0 0;
}

.msm-portal-box-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px; height: 30px;
	border-radius: 10px;
	font-size: 15px;
	margin-inline-end: 8px;
	vertical-align: middle;
	box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 4px 10px rgba(0,0,0,0.08);
}

/* Per-box color themes — distinct accent, icon background, and table header tint */
.msm-portal-box-purple::before { background: linear-gradient(180deg, #8f72ff, #6440f5); }
.msm-portal-box-purple .msm-portal-box-icon { background: rgba(143,114,255,0.18); color: #c4b5ff; }
.msm-portal-box-purple .msm-table thead th { background: rgba(143,114,255,0.1); color: #c4b5ff; }

.msm-portal-box-teal::before { background: linear-gradient(180deg, #2dd4bf, #0d9488); }
.msm-portal-box-teal .msm-portal-box-icon { background: rgba(45,212,191,0.15); color: #5eead4; }
.msm-portal-box-teal .msm-table thead th { background: rgba(45,212,191,0.08); color: #5eead4; }

.msm-portal-box-rose::before { background: linear-gradient(180deg, #f472b6, #db2777); }
.msm-portal-box-rose .msm-portal-box-icon { background: rgba(244,114,182,0.15); color: #f9a8d4; }
.msm-portal-box-rose .msm-table thead th { background: rgba(244,114,182,0.08); color: #f9a8d4; }

.msm-portal-box-amber::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.msm-portal-box-amber .msm-portal-box-icon { background: rgba(245,158,11,0.16); color: #fbbf24; }
.msm-portal-box-amber .msm-table thead th { background: rgba(245,158,11,0.09); color: #fbbf24; }

.msm-portal-box-blue::before { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.msm-portal-box-blue .msm-portal-box-icon { background: rgba(96,165,250,0.16); color: #93c5fd; }
.msm-portal-box-blue .msm-table thead th { background: rgba(96,165,250,0.09); color: #93c5fd; }

.msm-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
	background: linear-gradient(120deg, var(--msm-p-primary), var(--msm-p-primary-dark) 70%, var(--msm-p-teal));
	border-radius: 20px;
	padding: 22px 26px;
	box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 40px rgba(88, 65, 190, 0.28);
	position: relative;
	overflow: hidden;
}
.msm-portal-header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 90% -20%, rgba(255,255,255,0.25), transparent 55%);
	pointer-events: none;
}
.msm-portal-header-info { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.msm-portal-avatar {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 16px;
	background: rgba(255,255,255,0.22);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	font-weight: 800;
	box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 18px rgba(0,0,0,0.15);
}
.msm-portal-header h2 {
	color: #fff;
	-webkit-text-fill-color: #fff;
	background: none;
	margin: 0;
	font-size: 19px;
}
.msm-portal-header-sub { color: rgba(255,255,255,0.85); font-size: 12.5px; margin-top: 2px; }
.msm-portal-header .msm-btn-outline {
	position: relative;
	z-index: 1;
	background: rgba(255,255,255,0.14);
	border-color: rgba(255,255,255,0.5);
	color: #fff;
}
.msm-portal-header .msm-btn-outline:hover { background: rgba(255,255,255,0.24); }

.msm-portal-scroll-area.is-login-view {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 24px 20px;
	padding-top: max(24px, env(safe-area-inset-top, 0px));
	padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
	position: relative;
	overflow: hidden;
	flex-direction: column;
	gap: 0;
	background:
		radial-gradient(50% 38% at 50% 18%, rgba(155, 122, 255, 0.55), transparent 68%),
		radial-gradient(70% 50% at 15% 85%, rgba(108, 76, 241, 0.28), transparent 65%),
		radial-gradient(70% 50% at 88% 82%, rgba(94, 234, 212, 0.10), transparent 65%),
		linear-gradient(165deg, #0d0a24 0%, #171040 45%, #241857 100%);
	animation: msmLoginFadeIn .4s ease both;
}
@keyframes msmLoginFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
/* بال‌های نوری ملایم پشت لوگو — همان حسی که در تصویر مرجع هست، بدون کپی مو‌به‌مو */
.msm-portal-scroll-area.is-login-view::before,
.msm-portal-scroll-area.is-login-view::after {
	content: '';
	position: absolute;
	top: 8%;
	width: 46%;
	height: 30%;
	background: radial-gradient(closest-side, rgba(168, 139, 255, 0.28), transparent 72%);
	filter: blur(18px);
	pointer-events: none;
	z-index: 0;
}
.msm-portal-scroll-area.is-login-view::before { right: -6%; transform: rotate(-18deg); }
.msm-portal-scroll-area.is-login-view::after { left: -6%; transform: rotate(18deg); }
.msm-portal-scroll-area.is-login-view .msm-portal-wrap {
	padding: 0;
	width: 100%;
	position: relative;
	z-index: 1;
	flex: none;
}
/* .msm-portal-login-card بالا هم .msm-portal-wrap است و هم .msm-portal-login؛
   بدون این قانون، ریست padding بالا (که سه کلاسی و پرقدرت‌تر است) روی
   padding-top خودِ کارتِ ورود هم اثر می‌گذاشت و لوگو را روی کلید هنرجو/اساتید
   می‌انداخت. */
.msm-portal-scroll-area.is-login-view .msm-portal-wrap.msm-portal-login {
	padding: 40px 26px 28px;
}

/* ---- هیرو: آیکون شیشه‌ای/براق سه‌بعدی با هاله‌ی نوری شناور ---- */
.msm-portal-login-hero {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.msm-portal-login-logo {
	width: 78px; height: 78px;
	border-radius: 22px;
	background: linear-gradient(160deg, #a98bff 0%, #8f72ff 45%, #6440f5 100%);
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	position: relative;
	box-shadow:
		0 1px 0 rgba(255,255,255,0.5) inset,
		0 -6px 14px rgba(30, 10, 80, 0.35) inset,
		0 20px 50px rgba(108, 76, 241, 0.55);
}
.msm-portal-login-logo::before {
	/* هایلایت شیشه‌ای بالای آیکون */
	content: '';
	position: absolute;
	top: 6px; left: 10px; right: 10px;
	height: 34%;
	border-radius: 16px 16px 60% 60% / 16px 16px 100% 100%;
	background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
	pointer-events: none;
}
.msm-portal-login-logo svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 3px rgba(30,10,80,0.35)); }
.msm-portal-login-logo-img {
	position: relative; z-index: 1;
	width: 58px; height: 58px; object-fit: cover;
	border-radius: 14px;
	filter: drop-shadow(0 2px 3px rgba(30,10,80,0.35));
}
.msm-portal-login-logo::after {
	/* هاله‌ی نوری اطراف آیکون */
	content: '';
	position: absolute;
	inset: -22px;
	border-radius: 34px;
	background: radial-gradient(circle, rgba(168, 139, 255, 0.5), transparent 70%);
	filter: blur(10px);
	z-index: -1;
}
/* پایه‌ی نوری (سکو) زیر آیکون — شبیه یک هاله‌ی بیضی محو روی کارت */
.msm-portal-login-hero-pedestal {
	position: absolute;
	bottom: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 22px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(168, 139, 255, 0.5), transparent 75%);
	filter: blur(4px);
	z-index: 1;
}

/* ---- کارتِ ورود: شیشه‌ی تیره با حاشیه‌ی درخشان ---- */
.msm-portal-login {
	width: 100%;
	max-width: 360px;
	margin: -18px auto 0;
	background: rgba(30, 22, 64, 0.62);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(168, 139, 255, 0.3);
	border-radius: 28px;
	padding: 40px 26px 28px;
	box-shadow:
		0 0 0 1px rgba(168,139,255,0.08),
		0 0 40px rgba(124, 92, 255, 0.18),
		0 30px 70px rgba(5, 2, 20, 0.55);
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
.msm-portal-login h2 {
	font-size: 19px;
	font-weight: 800;
	margin: 0 0 7px;
	text-align: center;
	color: #f3f0ff;
}
.msm-portal-login > .msm-hint {
	margin: 0 0 26px;
	font-size: 12.5px;
	line-height: 1.65;
	text-align: center;
	color: rgba(230, 224, 255, 0.55);
}

.msm-portal-login-error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: rgba(255, 82, 82, 0.12);
	border: 1px solid rgba(255, 82, 82, 0.3);
	color: #ff9d9d;
	border-radius: 12px;
	padding: 11px 13px;
	font-size: 12px;
	line-height: 1.6;
	font-weight: 600;
	margin: 0 0 16px;
	animation: msmLoginFadeIn .25s ease both;
}
.msm-portal-login-error svg { flex: none; margin-top: 1px; }

.msm-portal-login form p { position: relative; margin: 15px 0; }
.msm-portal-login label {
	font-size: 12px;
	font-weight: 700;
	color: rgba(230, 224, 255, 0.65);
	display: block;
	margin-bottom: 8px;
}
.msm-portal-login p:has(#user_login)::before,
.msm-portal-login p:has(#user_pass)::before {
	content: '';
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 18px; height: 18px;
	background-color: #b9a6ff;
	pointer-events: none;
	-webkit-mask: no-repeat center / contain;
	mask: no-repeat center / contain;
	filter: drop-shadow(0 0 6px rgba(168,139,255,0.7));
}
.msm-portal-login p:has(#user_login)::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.87 0-8 1.79-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.21-4.13-4-8-4z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.87 0-8 1.79-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.21-4.13-4-8-4z'/></svg>");
}
.msm-portal-login p:has(#user_pass)::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17 9V7a5 5 0 00-10 0v2a2 2 0 00-2 2v8a2 2 0 002 2h10a2 2 0 002-2v-8a2 2 0 00-2-2zM9 7a3 3 0 016 0v2H9V7zm3 6a2 2 0 012 2c0 .74-.4 1.38-1 1.72V18a1 1 0 01-2 0v-1.28a2 2 0 011-3.72z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17 9V7a5 5 0 00-10 0v2a2 2 0 00-2 2v8a2 2 0 002 2h10a2 2 0 002-2v-8a2 2 0 00-2-2zM9 7a3 3 0 016 0v2H9V7zm3 6a2 2 0 012 2c0 .74-.4 1.38-1 1.72V18a1 1 0 01-2 0v-1.28a2 2 0 011-3.72z'/></svg>");
}
.msm-portal-login input[type="text"],
.msm-portal-login input[type="password"] {
	width: 100%;
	height: 50px;
	border: 1px solid rgba(168, 139, 255, 0.22);
	border-radius: 15px;
	padding: 0 44px 0 18px;
	font-family: inherit;
	font-size: 13.5px;
	background: rgba(255,255,255,0.05);
	color: #f3f0ff;
	box-sizing: border-box;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.msm-portal-login input[type="text"]::placeholder,
.msm-portal-login input[type="password"]::placeholder { color: rgba(230, 224, 255, 0.32); }
.msm-portal-login input[type="text"]:focus,
.msm-portal-login input[type="password"]:focus {
	outline: none;
	border-color: #8f72ff;
	background: rgba(255,255,255,0.08);
	box-shadow: 0 0 0 4px rgba(143, 114, 255, 0.22), 0 0 20px rgba(143,114,255,0.25);
}
.msm-portal-login .login-remember {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: rgba(230, 224, 255, 0.55);
	margin: 6px 0 0 !important;
}
.msm-portal-login .login-remember label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-weight: 500;
	color: rgba(230, 224, 255, 0.55);
}
.msm-portal-login .login-remember input[type="checkbox"] {
	width: 17px; height: 17px;
	margin: 0;
	accent-color: #8f72ff;
	appearance: none;
	-webkit-appearance: none;
	border: 1.5px solid rgba(168, 139, 255, 0.4);
	border-radius: 5px;
	background: rgba(255,255,255,0.05);
	cursor: pointer;
	position: relative;
}
.msm-portal-login .login-remember input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #8f72ff, #6440f5);
	border-color: #8f72ff;
}
.msm-portal-login .login-remember input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	right: 5px; top: 1px;
	width: 4px; height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(35deg);
}

.msm-portal-login .login-submit { margin: 18px 0 0 !important; }
.msm-portal-login input[type="submit"],
.msm-login-submit-btn {
	width: 100%;
	height: 50px;
	background: linear-gradient(135deg, #8f72ff, #6440f5);
	color: #fff;
	border: none;
	border-radius: 16px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 14px 30px rgba(108, 76, 241, 0.5);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.msm-portal-login input[type="submit"]:hover,
.msm-login-submit-btn:hover { transform: scale(1.02); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 18px 36px rgba(108, 76, 241, 0.6); }
.msm-portal-login input[type="submit"]:active,
.msm-login-submit-btn:active { transform: scale(.98); }
.msm-login-arrow { flex: none; }

.msm-portal-login p:has(#user_pass) input[type="password"] { padding-left: 42px; }

/* دکمه‌ی نمایش/پنهان‌سازی رمز عبور (اضافه‌شده با جاوااسکریپت) */
.msm-login-toggle-pass {
	position: absolute;
	left: 14px;
	bottom: 13px;
	width: 22px; height: 22px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: rgba(230, 224, 255, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
}
.msm-login-toggle-pass:hover { color: rgba(230, 224, 255, 0.8); }

/* ---- فوتر ثبت‌نام: بیرون کارت، ساده و بدون قاب ---- */
.msm-portal-login-footer {
	width: 100%;
	max-width: 360px;
	margin: 22px auto 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
}
.msm-portal-login-footer-hint {
	font-size: 12.5px;
	color: rgba(230, 224, 255, 0.5);
}
.msm-portal-login-footer-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(255,255,255,0.06);
	border: 1.5px solid rgba(168, 139, 255, 0.28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 13px 18px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: #f3f0ff;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease, border-color .2s ease;
	box-sizing: border-box;
}
.msm-portal-login-footer-btn:hover {
	background: rgba(255,255,255,0.12);
	border-color: rgba(168, 139, 255, 0.5);
	transform: translateY(-1px);
}
.msm-portal-login-footer-btn:active { transform: translateY(1px); }
.msm-portal-login-footer-btn svg { flex: none; }

/* Reuse table/badge/button styles so it matches the admin look */
.msm-portal-wrap .msm-table , .msm-sheet-panel .msm-table , .msm-modal .msm-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(10, 5, 30, 0.25);
	margin-bottom: 18px;
}
.msm-portal-wrap .msm-table thead th , .msm-sheet-panel .msm-table thead th , .msm-modal .msm-table thead th {
	background: rgba(255,255,255,0.04);
	text-align: right;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--msm-p-ink-soft);
	padding: 12px 16px;
	border-bottom: 1px solid var(--msm-p-glass-border);
}
.msm-portal-wrap .msm-table tbody td , .msm-sheet-panel .msm-table tbody td , .msm-modal .msm-table tbody td {
	padding: 12px 16px;
	font-size: 13px;
	color: var(--msm-p-ink);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	vertical-align: middle;
}
.msm-portal-wrap .msm-table tbody tr:last-child td , .msm-sheet-panel .msm-table tbody tr:last-child td , .msm-modal .msm-table tbody tr:last-child td { border-bottom: none; }
.msm-portal-wrap .msm-table tbody tr , .msm-sheet-panel .msm-table tbody tr , .msm-modal .msm-table tbody tr { transition: background .12s ease; }
.msm-portal-wrap .msm-table tbody tr:hover , .msm-sheet-panel .msm-table tbody tr:hover , .msm-modal .msm-table tbody tr:hover { background: rgba(255,255,255,0.04); }

.msm-portal-wrap .msm-portal-sub-table , .msm-sheet-panel .msm-portal-sub-table , .msm-modal .msm-portal-sub-table {
	margin: 6px 0 4px;
	box-shadow: none;
	border: 1px solid rgba(255,255,255,0.08);
	background: rgba(255,255,255,0.02);
}
.msm-portal-wrap .msm-portal-sub-table thead th , .msm-sheet-panel .msm-portal-sub-table thead th , .msm-modal .msm-portal-sub-table thead th { background: rgba(255,255,255,0.03); font-size: 11.5px; }
.msm-portal-wrap .msm-portal-sub-table tbody td , .msm-sheet-panel .msm-portal-sub-table tbody td , .msm-modal .msm-portal-sub-table tbody td { padding: 8px 12px; font-size: 12.5px; }

.msm-portal-wrap .msm-badge , .msm-sheet-panel .msm-badge , .msm-modal .msm-badge {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 100px;
	background: rgba(143,114,255,0.16);
	color: #c4b5ff;
}
.msm-portal-wrap .msm-badge.active, .msm-sheet-panel .msm-badge.active, .msm-modal .msm-badge.active,
.msm-portal-wrap .msm-badge.held, .msm-sheet-panel .msm-badge.held, .msm-modal .msm-badge.held,
.msm-portal-wrap .msm-badge.paid , .msm-sheet-panel .msm-badge.paid , .msm-modal .msm-badge.paid { background: rgba(34,197,94,0.28); color: #4ade80; font-weight: 800; box-shadow: 0 0 0 1px rgba(74,222,128,0.35) inset; }
.msm-portal-wrap .msm-badge.archived, .msm-sheet-panel .msm-badge.archived, .msm-modal .msm-badge.archived,
.msm-portal-wrap .msm-badge.cancelled , .msm-sheet-panel .msm-badge.cancelled , .msm-modal .msm-badge.cancelled { background: rgba(255,255,255,0.08); color: var(--msm-p-ink-soft); }
.msm-portal-wrap .msm-badge.pending, .msm-sheet-panel .msm-badge.pending, .msm-modal .msm-badge.pending,
.msm-portal-wrap .msm-badge.unpaid , .msm-sheet-panel .msm-badge.unpaid , .msm-modal .msm-badge.unpaid { background: rgba(245,166,35,0.18); color: #fbbf24; }
.msm-portal-wrap .msm-badge.absent , .msm-sheet-panel .msm-badge.absent , .msm-modal .msm-badge.absent { background: rgba(239,68,68,0.18); color: #fca5a5; }

.msm-portal-wrap .msm-instrument-chip , .msm-sheet-panel .msm-instrument-chip , .msm-modal .msm-instrument-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.05);
	color: var(--msm-p-ink);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 100px;
	padding: 3px 10px 3px 6px;
	font-size: 11.5px;
	font-weight: 700;
}
.msm-portal-wrap .msm-instrument-dot , .msm-sheet-panel .msm-instrument-dot , .msm-modal .msm-instrument-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}

.msm-portal-wrap .msm-btn , .msm-sheet-panel .msm-btn , .msm-modal .msm-btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background: #7c5cff;
	color: #fff;
	background-image: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
	box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 14px rgba(124, 92, 255, 0.35);
	transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.msm-portal-wrap .msm-btn:hover , .msm-sheet-panel .msm-btn:hover , .msm-modal .msm-btn:hover { background: #6440f5; transform: translateY(-1px); }
.msm-portal-wrap .msm-btn-sm , .msm-sheet-panel .msm-btn-sm , .msm-modal .msm-btn-sm { padding: 6px 12px; font-size: 12px; }
.msm-portal-wrap .msm-btn-outline , .msm-sheet-panel .msm-btn-outline , .msm-modal .msm-btn-outline { background: rgba(255,255,255,0.05); color: #c4b5ff; border: 1px solid var(--msm-p-glass-border); box-shadow: none; }
.msm-portal-wrap .msm-btn-outline:hover , .msm-sheet-panel .msm-btn-outline:hover , .msm-modal .msm-btn-outline:hover { background: rgba(255,255,255,0.1); }
.msm-portal-wrap .msm-btn-text , .msm-sheet-panel .msm-btn-text , .msm-modal .msm-btn-text {
	background: none;
	color: var(--msm-p-ink-soft);
	box-shadow: none;
	padding: 6px 8px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.msm-portal-wrap .msm-btn-text:hover , .msm-sheet-panel .msm-btn-text:hover , .msm-modal .msm-btn-text:hover { background: none; color: #c4b5ff; transform: none; }

/* ---- دکمه‌های «سه‌بعدی» مدرن ----
   عمداً بدون scope به .msm-portal-wrap: چون شیت‌ها (پروفایل، ویزارد ثبت‌نام،
   حضور و غیاب، تمرین و ...) با جاوااسکریپت مستقیماً زیر body برده می‌شوند و
   دیگر داخل .msm-portal-wrap نیستند؛ اگر این کلاس‌ها را به آن محدود کنیم،
   داخل شیت‌ها اصلاً اعمال نمی‌شوند. */
.msm-btn.msm-btn-3d {
	background: linear-gradient(180deg, #8f72ff, #6440f5 60%, #5433d6);
	border: none;
	border-radius: 16px;
	font-weight: 800;
	box-shadow:
		0 1px 0 rgba(255,255,255,0.35) inset,
		0 -3px 0 rgba(0,0,0,0.16) inset,
		0 7px 0 #4726b8,
		0 16px 28px rgba(100, 64, 245, 0.4);
	transition: transform .12s ease, box-shadow .12s ease;
}
.msm-btn.msm-btn-3d:hover {
	background: linear-gradient(180deg, #8f72ff, #6440f5 60%, #5433d6);
	transform: translateY(-2px);
	box-shadow:
		0 1px 0 rgba(255,255,255,0.35) inset,
		0 -3px 0 rgba(0,0,0,0.16) inset,
		0 9px 0 #4726b8,
		0 20px 34px rgba(100, 64, 245, 0.48);
}
.msm-btn.msm-btn-3d:active {
	transform: translateY(4px);
	box-shadow:
		0 1px 0 rgba(255,255,255,0.3) inset,
		0 3px 0 #4726b8,
		0 6px 14px rgba(100, 64, 245, 0.32);
}
.msm-btn.msm-btn-3d:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 4px 0 #4726b8, 0 8px 16px rgba(100, 64, 245, 0.2) !important;
}
.msm-btn.msm-btn-3d-outline {
	background: rgba(255,255,255,0.06);
	color: #c4b5ff;
	border: 1.5px solid var(--msm-p-glass-border);
	border-radius: 16px;
	font-weight: 800;
	box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 7px 0 rgba(20,10,55,0.5), 0 16px 26px rgba(10,5,30,0.35);
	transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.msm-btn.msm-btn-3d-outline:hover {
	background: rgba(255,255,255,0.1);
	transform: translateY(-2px);
	box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 9px 0 rgba(20,10,55,0.5), 0 20px 32px rgba(10,5,30,0.4);
}
.msm-btn.msm-btn-3d-outline:active {
	transform: translateY(4px);
	box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 3px 0 rgba(20,10,55,0.5), 0 6px 12px rgba(10,5,30,0.3);
}

.msm-modal .msm-form-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--msm-p-ink-soft); margin: 16px 0 7px; }
.msm-modal .msm-form-label:first-of-type { margin-top: 0; }
.msm-modal .msm-form-input {
	width: 100%;
	border: 1.5px solid var(--msm-p-glass-border);
	border-radius: 13px;
	padding: 11px 14px;
	font-family: inherit;
	font-size: 13.5px;
	background: rgba(255,255,255,0.05);
	color: var(--msm-p-ink);
	resize: vertical;
	box-sizing: border-box;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.msm-modal .msm-form-input:focus {
	outline: none;
	border-color: var(--msm-p-primary);
	background: rgba(255,255,255,0.08);
	box-shadow: 0 0 0 4px rgba(143, 114, 255, 0.18);
}
select.msm-form-input {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b3a9dd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	background-size: 16px;
	padding-left: 36px;
	cursor: pointer;
}
select.msm-form-input option { background: #211448; color: #f3f0ff; }
textarea.msm-form-input { line-height: 1.7; }
.msm-modal h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16.5px;
	margin: 0 0 4px;
}
.msm-modal h2::before {
	content: '';
	width: 5px;
	height: 18px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--msm-p-primary), var(--msm-p-teal));
	display: inline-block;
	flex: none;
}

.msm-portal-wrap .msm-hint , .msm-sheet-panel .msm-hint , .msm-modal .msm-hint { font-size: 12.5px; color: var(--msm-p-ink-soft); }

.msm-portal-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 22px; }

.msm-portal-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--msm-p-glass-bg);
	border: 1px solid var(--msm-p-glass-border);
	border-inline-start: 4px solid var(--msm-p-primary);
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: 0 1px 0 rgba(168,139,255,0.1) inset, 0 12px 28px rgba(10, 5, 30, 0.3);
	transition: transform .15s ease, box-shadow .15s ease;
}
.msm-portal-stat:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(168,139,255,0.15) inset, 0 18px 36px rgba(10, 5, 30, 0.4); }
.msm-portal-stat-icon {
	width: 42px; height: 42px; flex: none; border-radius: 12px;
	background: rgba(143,114,255,0.18); color: #c4b5ff;
	display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.msm-portal-stat-value { font-size: 24px; font-weight: 800; color: #b9a6ff; line-height: 1.2; }
.msm-portal-stat-label { font-size: 12px; color: var(--msm-p-ink-soft); margin-top: 2px; }

.msm-portal-wrap .msm-score-badge , .msm-sheet-panel .msm-score-badge , .msm-modal .msm-score-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	font-weight: 800;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 100px;
}
.msm-portal-wrap .msm-score-badge small , .msm-sheet-panel .msm-score-badge small , .msm-modal .msm-score-badge small { font-weight: 600; font-size: 10px; opacity: .75; }
.msm-portal-wrap .msm-score-badge.msm-score-high , .msm-sheet-panel .msm-score-badge.msm-score-high , .msm-modal .msm-score-badge.msm-score-high { background: rgba(34,197,94,0.16); color: #6ee7a4; }
.msm-portal-wrap .msm-score-badge.msm-score-mid , .msm-sheet-panel .msm-score-badge.msm-score-mid , .msm-modal .msm-score-badge.msm-score-mid { background: rgba(245,166,35,0.18); color: #fbbf24; }
.msm-portal-wrap .msm-score-badge.msm-score-low , .msm-sheet-panel .msm-score-badge.msm-score-low , .msm-modal .msm-score-badge.msm-score-low { background: rgba(239,68,68,0.18); color: #fca5a5; }

/* ---- گزارش پیشرفت سه‌ماهه (نمودار میله‌ای ساده، بدون کتابخانه‌ی خارجی) ---- */
.msm-progress-chart {
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
	gap: 8px;
	padding: 8px 4px 0;
}
.msm-progress-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	max-width: 90px;
}
.msm-progress-bars {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	height: 96px;
	width: 100%;
	justify-content: center;
}
.msm-progress-bar-track {
	width: 16px;
	height: 100%;
	background: rgba(255,255,255,0.06);
	border-radius: 8px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.msm-progress-bar {
	width: 100%;
	border-radius: 8px;
	transition: height .4s ease;
	min-height: 3px;
}
.msm-progress-bar-attendance { background: linear-gradient(180deg, #a78bfa, #7c5cff); }
.msm-progress-bar-score { background: linear-gradient(180deg, #5eead4, #14b8a6); }
.msm-progress-col-values {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 800;
	color: var(--msm-p-ink);
}
.msm-progress-col-label { font-size: 11px; color: var(--msm-p-ink-soft); margin-top: 3px; font-weight: 600; }
.msm-progress-legend {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 11.5px;
	color: var(--msm-p-ink-soft);
}
.msm-progress-legend span { display: inline-flex; align-items: center; gap: 6px; }
.msm-progress-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.msm-progress-dot-attendance { background: #7c5cff; }
.msm-progress-dot-score { background: #14b8a6; }

/* ---- پلنر تمرین هفتگی ---- */
.msm-practice-week-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 4px 0 20px;
	background: rgba(255,255,255,0.05);
	border-radius: 100px;
	padding: 5px;
}
.msm-practice-week-nav button {
	flex: none;
	background: rgba(255,255,255,0.08);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 100px;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 800;
	color: #c4b5ff;
	cursor: pointer;
	box-shadow: none;
	transition: transform .12s ease, background .12s ease;
}
.msm-practice-week-nav button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.14); }
.msm-practice-week-nav button:active { transform: translateY(1px); }
.msm-practice-week-label { font-size: 12px; font-weight: 800; color: var(--msm-p-ink); text-align: center; flex: 1; }

.msm-practice-days { display: flex; flex-direction: column; gap: 10px; }
.msm-practice-day-row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.04);
	border-radius: 18px;
	padding: 12px 14px;
	box-shadow: none;
	position: relative;
	border: 1px solid var(--msm-p-glass-border);
	transition: box-shadow .15s ease, transform .15s ease;
}
.msm-practice-day-row.is-today {
	background: rgba(143,114,255,0.22);
	border-color: rgba(168,139,255,0.7);
	border-width: 1.5px;
	box-shadow: 0 10px 24px rgba(100,64,245,0.3), 0 0 0 1px rgba(168,139,255,0.25) inset;
}
.msm-practice-day-row.is-future { opacity: .4; }
.msm-practice-day-label {
	width: 54px; height: 54px; flex: none;
	border-radius: 14px;
	background: rgba(255,255,255,0.06);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	box-shadow: none;
}
.msm-practice-day-row.is-today .msm-practice-day-label { background: linear-gradient(160deg, #8f72ff, #6440f5); box-shadow: 0 4px 12px rgba(100,64,245,0.4); }
.msm-practice-day-name { font-size: 11.5px; font-weight: 800; color: var(--msm-p-ink); }
.msm-practice-day-row.is-today .msm-practice-day-name { color: #fff; }
.msm-practice-day-date { font-size: 9.5px; color: var(--msm-p-ink-soft); margin-top: 1px; }
.msm-practice-day-row.is-today .msm-practice-day-date { color: rgba(255,255,255,0.8); }
.msm-practice-day-fields { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.msm-practice-minutes { display: flex; align-items: center; gap: 5px; flex: none; background: rgba(255,255,255,0.05); border: 1px solid var(--msm-p-glass-border); border-radius: 12px; padding: 2px; }
.msm-practice-minutes-input {
	width: 46px;
	border: none;
	border-radius: 9px;
	padding: 8px 4px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	background: transparent;
	color: #c4b5ff;
}
.msm-practice-minutes span { font-size: 10px; color: var(--msm-p-ink-soft); padding-left: 6px; }
.msm-practice-note-input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 12px;
	padding: 9px 12px;
	font-family: inherit;
	font-size: 12px;
	background: rgba(255,255,255,0.05);
	color: var(--msm-p-ink);
}
.msm-practice-minutes-input:disabled, .msm-practice-note-input:disabled { background: transparent; color: rgba(255,255,255,0.25); }
.msm-practice-day-row.is-confirmed {
	border-color: rgba(34,197,94,0.55);
	background: rgba(34,197,94,0.08);
	box-shadow: 0 6px 16px rgba(34,197,94,0.14);
}
.msm-practice-day-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.msm-practice-save-indicator {
	width: 9px; height: 9px; border-radius: 50%; flex: none;
	background: transparent;
	box-shadow: none;
	transition: background .2s ease, box-shadow .2s ease;
}
.msm-practice-save-indicator.is-pending { background: #f5a623; box-shadow: 0 0 0 4px rgba(245,166,35,0.18); }
.msm-practice-save-indicator.is-saved { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.msm-practice-confirm-btn {
	width: 30px; height: 30px; flex: none;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1.5px solid var(--msm-p-glass-border);
	background: rgba(255,255,255,0.05);
	color: rgba(255,255,255,0.55);
	cursor: pointer;
	padding: 0;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
.msm-practice-confirm-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.msm-practice-confirm-btn:active { transform: scale(0.92); }
.msm-practice-confirm-btn:disabled { opacity: .45; cursor: default; transform: none; }
.msm-practice-confirm-btn.is-hidden { display: none; }
.msm-practice-confirm-btn.is-confirmed {
	background: #22c55e;
	border-color: #22c55e;
	color: #fff;
	box-shadow: 0 4px 12px rgba(34,197,94,0.4);
}
.msm-practice-total {
	margin-top: 16px;
	text-align: center;
	font-size: 12.5px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #8f72ff, #6440f5);
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 10px 22px rgba(100,64,245,0.35);
}

/* ---- مرور هفتگی تمرین برای استاد: کارت‌های سبک هبیت‌تراکر، نه جدول خشک ---- */
.msm-practice-overview-list { display: flex; flex-direction: column; gap: 12px; }
.msm-practice-overview-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 18px;
	padding: 14px 14px 12px;
	box-shadow: none;
	transition: transform .15s ease, background .15s ease;
}
.msm-practice-overview-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.msm-practice-overview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.msm-practice-overview-name { font-size: 13.5px; font-weight: 800; color: var(--msm-p-ink); }
.msm-practice-overview-total {
	font-size: 13px; font-weight: 800; color: #fff;
	background: linear-gradient(135deg, #8f72ff, #6440f5);
	border-radius: 100px;
	padding: 5px 12px;
	box-shadow: 0 6px 14px rgba(100,64,245,0.35);
}
.msm-practice-overview-total small { font-weight: 600; font-size: 10px; opacity: .85; margin-right: 3px; }
.msm-practice-overview-days { display: flex; gap: 6px; }
.msm-practice-pill {
	flex: 1;
	border-radius: 12px;
	padding: 8px 2px;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	background: rgba(255,255,255,0.05);
	transition: transform .15s ease;
}
.msm-practice-pill:hover { transform: translateY(-2px); }
.msm-practice-pill-day { font-size: 10px; font-weight: 700; color: var(--msm-p-ink-soft); }
.msm-practice-pill-min { font-size: 11.5px; font-weight: 800; color: var(--msm-p-ink); }
.msm-practice-pill.tier-0 { background: rgba(255,255,255,0.05); }
.msm-practice-pill.tier-1 { background: rgba(143,114,255,0.22); }
.msm-practice-pill.tier-1 .msm-practice-pill-day, .msm-practice-pill.tier-1 .msm-practice-pill-min { color: #c4b5ff; }
.msm-practice-pill.tier-2 { background: rgba(143,114,255,0.42); }
.msm-practice-pill.tier-2 .msm-practice-pill-day, .msm-practice-pill.tier-2 .msm-practice-pill-min { color: #fff; }
.msm-practice-pill.tier-3 { background: #7c5cff; box-shadow: 0 4px 10px rgba(100,64,245,0.3); }
.msm-practice-pill.tier-3 .msm-practice-pill-day, .msm-practice-pill.tier-3 .msm-practice-pill-min { color: #fff; }
.msm-practice-pill.tier-4 { background: linear-gradient(160deg, #8f72ff, #6440f5); box-shadow: 0 6px 14px rgba(100,64,245,0.4); }
.msm-practice-pill.tier-4 .msm-practice-pill-day, .msm-practice-pill.tier-4 .msm-practice-pill-min { color: #fff; }

.msm-portal-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	background: var(--msm-p-glass-bg);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 22px;
	padding: 20px 24px;
	margin-bottom: 22px;
	box-shadow: 0 1px 0 rgba(168,139,255,0.12) inset, 0 20px 44px rgba(10, 5, 30, 0.35);
	position: relative;
	overflow: hidden;
}
.msm-portal-hero::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: linear-gradient(180deg, var(--msm-p-primary), var(--msm-p-teal));
}
.msm-portal-hero-icon {
	width: 54px; height: 54px; flex: none; border-radius: 16px;
	background: rgba(143,114,255,0.18); color: #c4b5ff;
	display: flex; align-items: center; justify-content: center; font-size: 24px;
	box-shadow: none;
}
.msm-portal-hero-body { flex: 1; min-width: 0; }
.msm-portal-hero-label { font-size: 11px; font-weight: 800; color: #c4b5ff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.msm-portal-hero-title { font-size: 15px; font-weight: 800; color: var(--msm-p-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msm-portal-hero-date { font-size: 12.5px; color: var(--msm-p-ink-soft); margin-top: 3px; }
.msm-portal-hero-status { margin-top: 8px; }
.msm-portal-hero-score { flex: none; text-align: center; }
.msm-portal-hero-score-ring {
	width: 68px; height: 68px; border-radius: 50%;
	display: flex; align-items: baseline; justify-content: center; gap: 1px;
	font-weight: 900; font-size: 24px; color: #fff;
	background: conic-gradient(from -90deg, #22c55e, #22c55e var(--p, 80%), rgba(255,255,255,0.08) 0);
	box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
	position: relative;
}
.msm-portal-hero-score-ring::after {
	content: '';
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: #241857;
}
.msm-portal-hero-score-ring span, .msm-portal-hero-score-ring small { position: relative; z-index: 1; }
.msm-portal-hero-score-ring span { color: #6ee7a4; font-size: 22px; }
.msm-portal-hero-score-ring small { color: var(--msm-p-ink-soft); font-size: 10px; font-weight: 700; }
.msm-portal-hero-score-ring.msm-score-ring-mid { box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28); }
.msm-portal-hero-score-ring.msm-score-ring-mid span { color: #fbbf24; }
.msm-portal-hero-score-ring.msm-score-ring-low { box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28); }
.msm-portal-hero-score-ring.msm-score-ring-low span { color: #fca5a5; }
.msm-portal-hero-score-ring.is-empty { background: rgba(255,255,255,0.08); box-shadow: none; }
.msm-portal-hero-score-ring.is-empty span { color: var(--msm-p-ink-soft); font-size: 20px; }
.msm-portal-hero-score-label { font-size: 10.5px; color: var(--msm-p-ink-soft); margin-top: 6px; font-weight: 600; }
.msm-portal-hero-empty { background: var(--msm-p-glass-bg); }
.msm-portal-hero-empty .msm-portal-hero-icon { background: rgba(255,255,255,0.06); color: var(--msm-p-ink-soft); }
.msm-portal-hero-empty .msm-portal-hero-title { color: var(--msm-p-ink-soft); font-weight: 700; }
.msm-portal-hero-empty .msm-portal-hero-date { white-space: normal; }

.msm-portal-login-toggle {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 220px;
	margin: 0 auto 24px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(168,139,255,0.2);
	border-radius: 14px;
	padding: 4px;
}
.msm-portal-login-toggle-thumb {
	position: absolute;
	top: 4px; left: 4px;
	height: calc(100% - 8px);
	width: 50%;
	background: linear-gradient(135deg, #8f72ff, #6440f5);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(108, 76, 241, 0.5);
	transition: transform .25s cubic-bezier(.4,0,.2,1), width .25s ease;
}
.msm-portal-login-tab {
	position: relative;
	z-index: 1;
	flex: 1;
	border: none;
	background: transparent;
	color: rgba(230, 224, 255, 0.55);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition: color .2s ease;
}
.msm-portal-login-tab.is-active { color: #fff; }

/* Standalone modal (appended to <body>, used by the teacher portal's score picker) */
.msm-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20, 12, 50, 0.45);
	z-index: 2000000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
}
.msm-modal-overlay.is-open { display: flex; }
.msm-modal {
	background: #211448;
	border-radius: 22px;
	max-width: 420px;
	width: 100%;
	padding: 26px;
	box-shadow: 0 1px 0 rgba(168,139,255,0.15) inset, 0 30px 70px rgba(10, 5, 30, 0.6);
	border: 1px solid var(--msm-p-glass-border);
}
.msm-confirm-modal { text-align: center; }
.msm-confirm-title { font-size: 16px; font-weight: 800; margin: 0 0 10px; color: var(--msm-p-ink); }
.msm-confirm-message { font-size: 13px; color: var(--msm-p-ink-soft); line-height: 1.8; margin: 0 0 16px; }
.msm-modal-footer { display: flex; gap: 10px; justify-content: center; }
.msm-score-modal-wide { max-width: 460px; }
.msm-score-categories { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; text-align: right; }
.msm-score-category-label { font-size: 12.5px; font-weight: 800; color: var(--msm-p-ink); margin-bottom: 6px; }
.msm-score-category-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.msm-score-level-btn {
	border: 1.5px solid var(--msm-p-glass-border);
	background: rgba(255,255,255,0.05);
	color: var(--msm-p-ink);
	font-weight: 700;
	font-size: 11.5px;
	padding: 9px 3px;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	transition: all .12s ease;
}
.msm-score-level-btn.is-active { background: linear-gradient(180deg, #8f72ff, #6440f5); border-color: #6440f5; color: #fff; box-shadow: 0 4px 12px rgba(124,92,255,.35); }
.msm-teacher-actions-cell { transition: opacity .2s ease; }

.msm-teacher-session-list { display: flex; flex-direction: column; gap: 8px; }
.msm-teacher-session-row, .msm-staff-session-row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: none;
}
.msm-teacher-session-avatar {
	width: 38px; height: 38px; flex: none; border-radius: 12px;
	background: rgba(143,114,255,0.18); color: #c4b5ff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 15px;
}
.msm-teacher-session-info { flex: 1; min-width: 0; }
.msm-teacher-session-name { font-weight: 700; font-size: 13.5px; color: var(--msm-p-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msm-teacher-session-time { font-size: 11.5px; color: var(--msm-p-ink-soft); margin-top: 1px; }
.msm-teacher-actions-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.msm-portal-header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.msm-notif-bell {
	position: relative;
	width: 40px; height: 40px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.4);
	background: rgba(255,255,255,0.14);
	font-size: 17px;
	cursor: pointer;
	color: #fff;
}
.msm-notif-bell:hover { background: rgba(255,255,255,0.24); }
.msm-notif-dot {
	position: absolute;
	top: 6px; left: 6px;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: #ef4444;
	border: 2px solid #6440f5;
}
.msm-notif-dropdown {
	position: fixed;
	/* top/left/right توسط جاوااسکریپت (نسبت به موقعیت واقعی زنگوله) تنظیم می‌شود؛
	   چون این پوسته مستقیم زیر body اضافه می‌شود، دیگر overflow:hidden هدر
	   (که در دسکتاپ باعث نصفه دیده شدن آن می‌شد) رویش اثر نمی‌گذارد. */
	width: 320px;
	max-width: 88vw;
	max-height: 400px;
	overflow-y: auto;
	background: #211448;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 20px;
	box-shadow: 0 1px 0 rgba(168,139,255,0.15) inset, 0 26px 60px rgba(10, 5, 30, 0.55);
	border: 1px solid var(--msm-p-glass-border);
	z-index: 1000000;
	direction: rtl;
	color: var(--msm-p-ink);
}
.msm-notif-header { font-size: 13px; font-weight: 800; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.msm-notif-list { padding: 6px; }
.msm-notif-empty { padding: 30px 10px; text-align: center; color: var(--msm-p-ink-soft); font-size: 12.5px; }
.msm-notif-show-all {
	display: block;
	width: 100%;
	text-align: center;
	background: none;
	border: none;
	border-top: 1px solid rgba(255,255,255,0.08);
	color: #c4b5ff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 12px 6px 8px;
	cursor: pointer;
}
.msm-notif-show-all:hover { color: #fff; text-decoration: underline; }
.msm-notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; }
.msm-notif-item.is-unread { background: rgba(143,114,255,0.12); }
.msm-notif-icon {
	width: 30px; height: 30px; flex: none;
	border-radius: 10px;
	background: rgba(143,114,255,0.18);
	color: #c4b5ff;
	display: flex; align-items: center; justify-content: center;
}
.msm-notif-body { flex: 1; min-width: 0; }
.msm-notif-title { font-weight: 700; font-size: 12.5px; color: var(--msm-p-ink); }
.msm-notif-text { font-size: 12px; color: var(--msm-p-ink-soft); margin-top: 2px; line-height: 1.6; }
.msm-notif-time { font-size: 10.5px; color: rgba(255,255,255,0.35); margin-top: 4px; }

.msm-install-modal { max-width: 420px; text-align: center; padding-top: 26px; }
.msm-install-icon { font-size: 40px; margin-bottom: 6px; }
.msm-install-steps { text-align: right; font-size: 12.5px; color: var(--msm-p-ink-soft); line-height: 2; margin: 0 0 18px; padding-right: 20px; }

.msm-toast {
	position: fixed;
	bottom: 90px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1b1730;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 100px;
	box-shadow: 0 14px 34px rgba(0,0,0,0.28);
	z-index: 3000000;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
	direction: rtl;
	white-space: nowrap;
}
.msm-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.msm-toast.is-error { background: #c81e1e; }

@media (max-width: 640px) {
	.msm-teacher-session-row, .msm-staff-session-row { flex-wrap: wrap; }
	.msm-teacher-actions-cell { width: 100%; justify-content: flex-start; margin-top: 4px; }
	.msm-portal-hero { flex-wrap: wrap; }
	.msm-portal-wrap .msm-table thead , .msm-sheet-panel .msm-table thead , .msm-modal .msm-table thead { display: none; }
	.msm-portal-wrap .msm-table, .msm-sheet-panel .msm-table, .msm-modal .msm-table, .msm-portal-wrap .msm-table tbody, .msm-sheet-panel .msm-table tbody, .msm-modal .msm-table tbody,
	.msm-portal-wrap .msm-table tr, .msm-sheet-panel .msm-table tr, .msm-modal .msm-table tr, .msm-portal-wrap .msm-table td , .msm-sheet-panel .msm-table td , .msm-modal .msm-table td { display: block; width: 100%; }
	.msm-portal-wrap .msm-table tbody tr , .msm-sheet-panel .msm-table tbody tr , .msm-modal .msm-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px 0; }
	.msm-portal-wrap .msm-table tbody td:before , .msm-sheet-panel .msm-table tbody td:before , .msm-modal .msm-table tbody td:before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		color: var(--msm-p-ink-soft);
		font-weight: 700;
		margin-bottom: 2px;
	}
	.msm-portal-header { padding: 18px; border-radius: 16px; }
	.msm-portal-section { padding: 4px 14px 16px; }
}
/* ==========================================================================
   Modern card-lists: کلاس‌ها / حضور و غیاب / پرداخت‌ها
   جایگزین شکیل‌تر و سه‌بعدی‌تر جدول‌های ساده‌ی قبلی برای این سه لیست.
   ========================================================================== */
.msm-fancy-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

/* ---- کارت کلاس (خصوصی/گروهی) ---- */
.msm-class-card {
	position: relative;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: none;
	transition: transform .18s ease, background .18s ease;
}
.msm-class-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.msm-class-card.is-renewable { border-color: rgba(168,139,255,0.45); box-shadow: 0 12px 28px rgba(100, 64, 245, 0.18); }
.msm-class-card-top { display: flex; align-items: center; gap: 12px; }
.msm-class-card-icon {
	flex: none;
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 14px;
	background: rgba(143,114,255,0.18);
	box-shadow: none;
}
.msm-class-card-info { flex: 1; min-width: 0; }
.msm-class-card-title { font-size: 14px; font-weight: 800; color: var(--msm-p-ink); }
.msm-class-card-sub { font-size: 11.5px; color: var(--msm-p-ink-soft); margin-top: 2px; }
.msm-class-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msm-class-meta-chip {
	display: inline-flex; align-items: center; gap: 5px;
	background: rgba(255,255,255,0.05);
	border: 1px solid var(--msm-p-glass-border);
	color: var(--msm-p-ink-soft);
	font-size: 11px; font-weight: 700;
	padding: 5px 10px;
	border-radius: 100px;
}
.msm-class-meta-chip .msm-icon { flex: none; opacity: .8; }

.msm-progress-track {
	position: relative;
	margin-top: 10px;
	height: 7px;
	border-radius: 100px;
	background: rgba(255,255,255,0.08);
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(10,5,30,.3);
}
.msm-progress-fill {
	height: 100%;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--msm-p-teal), var(--msm-p-primary));
	box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
	transition: width .4s ease;
}

.msm-renew-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(143,114,255,0.1);
	border: 1px solid rgba(168,139,255,0.3);
}
.msm-renew-banner-icon {
	flex: none;
	width: 36px; height: 36px;
	border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(150deg, var(--msm-p-primary), var(--msm-p-primary-dark));
	color: #fff;
	box-shadow: 0 6px 14px rgba(124, 92, 255, 0.4);
}
.msm-renew-banner-text { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.msm-renew-banner-text strong { font-size: 12.5px; color: var(--msm-p-ink); }
.msm-renew-banner-text span { font-size: 11px; color: var(--msm-p-ink-soft); line-height: 1.6; }
.msm-portal-wrap .msm-renew-btn , .msm-sheet-panel .msm-renew-btn , .msm-modal .msm-renew-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(150deg, var(--msm-p-primary), var(--msm-p-primary-dark));
	box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 20px rgba(124, 92, 255, 0.45);
}
.msm-portal-wrap .msm-renew-btn:hover , .msm-sheet-panel .msm-renew-btn:hover , .msm-modal .msm-renew-btn:hover { transform: translateY(-2px) scale(1.01); }
.msm-portal-wrap .msm-renew-btn .msm-icon , .msm-sheet-panel .msm-renew-btn .msm-icon , .msm-modal .msm-renew-btn .msm-icon { flex: none; }

/* ---- کارت حضور و غیاب ---- */
.msm-attendance-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 14px;
	padding: 11px 14px;
	box-shadow: none;
	border-inline-start: 4px solid rgba(255,255,255,0.2);
	transition: transform .15s ease, background .15s ease;
}
.msm-attendance-card:hover { transform: translateY(-1px); background: rgba(255,255,255,0.06); }
.msm-attendance-card.status-held { border-inline-start-color: #22c55e; }
.msm-attendance-card.status-absent { border-inline-start-color: #ef4444; }
.msm-attendance-card.status-pending { border-inline-start-color: #f5a623; }
.msm-attendance-card.status-cancelled { border-inline-start-color: rgba(255,255,255,0.25); }
.msm-attendance-date {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	padding: 6px 8px;
	border-radius: 11px;
	background: rgba(255,255,255,0.05);
}
.msm-attendance-date-day { font-size: 11.5px; font-weight: 800; color: var(--msm-p-ink); white-space: nowrap; }
.msm-attendance-date-time { font-size: 10.5px; color: var(--msm-p-ink-soft); margin-top: 1px; }
.msm-attendance-main { flex: 1; min-width: 0; }
.msm-attendance-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--msm-p-ink); }
.msm-attendance-title span { font-size: 11.5px; font-weight: 600; color: var(--msm-p-ink-soft); }
.msm-attendance-side { flex: none; display: flex; align-items: center; gap: 8px; }

/* ---- کارت پرداخت ---- */
.msm-payment-card {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--msm-p-glass-border);
	border-radius: 15px;
	padding: 12px 14px;
	box-shadow: none;
	transition: transform .15s ease, background .15s ease;
}
.msm-payment-card:hover { transform: translateY(-1px); background: rgba(255,255,255,0.06); }
.msm-payment-card.is-unpaid { border-color: rgba(245,166,35,0.4); background: rgba(245,166,35,0.06); }
.msm-payment-icon {
	flex: none;
	width: 38px; height: 38px;
	border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(96,165,250,0.18); color: #93c5fd;
}
.msm-payment-card.is-unpaid .msm-payment-icon { background: rgba(245,166,35,0.2); color: #fbbf24; }
.msm-payment-info { flex: 1; min-width: 120px; }
.msm-payment-title { font-size: 13px; font-weight: 800; color: var(--msm-p-ink); }
.msm-payment-sub { font-size: 11px; color: var(--msm-p-ink-soft); margin-top: 2px; }
.msm-payment-amount { font-size: 13px; font-weight: 800; color: var(--msm-p-ink); white-space: nowrap; }
.msm-payment-action { flex: none; display: flex; align-items: center; gap: 8px; }
.msm-portal-wrap .msm-pay-debt-btn , .msm-sheet-panel .msm-pay-debt-btn , .msm-modal .msm-pay-debt-btn {
	display: inline-flex; align-items: center; gap: 5px;
	background: linear-gradient(150deg, #f59e0b, #d97706);
	box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 16px rgba(217, 119, 6, 0.4);
}
.msm-portal-wrap .msm-pay-debt-btn:hover , .msm-sheet-panel .msm-pay-debt-btn:hover , .msm-modal .msm-pay-debt-btn:hover { background: linear-gradient(150deg, #ea9008, #c86c05); transform: translateY(-1px); }

/* ---- مودال تایید پرداخت (تمدید کلاس / تسویه‌ی بدهی) ----
   چون این مودال مستقیم به body اضافه می‌شود (بیرون از .msm-portal-wrap)،
   دکمه‌های آن استایل مستقل خودشان را می‌گیرند تا مستقل از اسکوپ‌شدگی
   .msm-portal-wrap .msm-btn درست دیده شوند. */
.msm-pay-confirm-amount {
	font-size: 22px;
	font-weight: 800;
	color: #c4b5ff;
	background: rgba(143,114,255,0.15);
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 18px;
}
#msm-pay-confirm-overlay .msm-btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background: #7c5cff;
	color: #fff;
	background-image: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
	box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 14px rgba(124, 92, 255, 0.35);
	transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
#msm-pay-confirm-overlay .msm-btn:hover { background: #6440f5; transform: translateY(-1px); }
#msm-pay-confirm-overlay .msm-btn:disabled { opacity: .7; cursor: default; transform: none; }
#msm-pay-confirm-overlay .msm-btn-outline { background: rgba(255,255,255,0.06); color: #c4b5ff; border: 1px solid var(--msm-p-glass-border); box-shadow: none; }
#msm-pay-confirm-overlay .msm-btn-outline:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 640px) {
	.msm-attendance-card { flex-wrap: wrap; }
	.msm-attendance-side { width: 100%; justify-content: flex-start; margin-top: 4px; }
	.msm-payment-amount { order: 3; width: 100%; }
	.msm-payment-action { order: 4; width: 100%; justify-content: flex-start; margin-top: 4px; }
}

/* ---------------- لیگ هنرجویان (Duolingo-style) ---------------- */
.msm-league-wrap { padding: 2px; }
.msm-league-head-title { font-size: 15px; font-weight: 800; color: var(--msm-p-ink, #f3f0ff); }
.msm-league-head-sub { font-size: 11.5px; color: var(--msm-p-ink-soft, #b3a9dd); margin: 2px 0 12px; }
.msm-league-champions-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.msm-league-champion-chip {
	display: flex; align-items: center; gap: 5px;
	background: linear-gradient(135deg, rgba(255,209,102,0.18), rgba(255,138,92,0.14));
	border: 1px solid rgba(255,209,102,0.35);
	border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700;
	color: var(--msm-p-ink, #f3f0ff);
}
.msm-league-champion-medal { font-size: 13px; }
.msm-league-champion-instrument { color: var(--msm-p-ink-soft, #b3a9dd); font-weight: 600; }
.msm-league-boards { display: flex; flex-direction: column; gap: 14px; }
.msm-league-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--msm-p-border, rgba(255,255,255,0.12));
	border-radius: 16px; padding: 12px;
}
.msm-league-card-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 8px; color: var(--msm-p-ink, #f3f0ff); }
.msm-league-row {
	display: flex; align-items: center; gap: 10px;
	padding: 7px 4px; border-radius: 10px;
}
.msm-league-row + .msm-league-row { border-top: 1px dashed rgba(255,255,255,0.08); }
.msm-league-row.is-top1 { background: linear-gradient(90deg, rgba(255,209,102,0.14), transparent); }
.msm-league-row.is-top2 { background: linear-gradient(90deg, rgba(192,192,192,0.12), transparent); }
.msm-league-row.is-top3 { background: linear-gradient(90deg, rgba(205,127,50,0.12), transparent); }
.msm-league-rank-badge {
	width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 800;
	background: rgba(255,255,255,0.08); color: var(--msm-p-ink-soft, #b3a9dd);
}
.msm-league-medal-1 {
	font-size: 15px;
	background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd166 55%, #d69b00);
	box-shadow: 0 0 10px rgba(255,209,102,0.55);
}
.msm-league-medal-2 {
	font-size: 15px;
	background: radial-gradient(circle at 35% 30%, #f4f4f7, #c9c9d4 55%, #8f8f9c);
	box-shadow: 0 0 8px rgba(201,201,212,0.4);
}
.msm-league-medal-3 {
	font-size: 15px;
	background: radial-gradient(circle at 35% 30%, #f0b98c, #cd7f32 55%, #9a5c1f);
	box-shadow: 0 0 8px rgba(205,127,50,0.4);
}
.msm-league-row.is-top1 { padding: 9px 4px; transform: scale(1.015); }
.msm-league-avatar {
	width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, var(--msm-p-primary, #8f72ff), var(--msm-p-primary-dark, #6440f5));
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 800;
}
.msm-league-info { flex: 1; min-width: 0; }
.msm-league-name { font-size: 12.5px; font-weight: 700; color: var(--msm-p-ink, #f3f0ff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msm-league-score-bar-wrap { height: 5px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-top: 4px; overflow: hidden; }
.msm-league-score-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--msm-p-teal, #2dd4bf), var(--msm-p-primary, #8f72ff)); }
.msm-league-score { font-size: 12px; font-weight: 800; color: var(--msm-p-ink, #f3f0ff); flex-shrink: 0; }
.msm-league-score small { font-weight: 600; color: var(--msm-p-ink-soft, #b3a9dd); }
.msm-league-trend { font-size: 11px; font-weight: 800; width: 34px; text-align: center; flex-shrink: 0; }
.msm-league-trend.is-up { color: #2fd47a; }
.msm-league-trend.is-down { color: #ff6b6b; }
.msm-league-trend.is-same { color: var(--msm-p-ink-soft, #b3a9dd); }
.msm-league-trend.is-new { color: var(--msm-p-teal, #2dd4bf); font-size: 10px; }
.msm-league-row.is-top1 .msm-league-score-bar-fill { background: linear-gradient(90deg, #ffd166, #f4a100); }
.msm-league-row.is-top1 .msm-league-name { color: #ffd166; }

/* دکمه‌ی دانلود قالب استوری اینستاگرام از لیگ هنرجویان */
.msm-league-story-btn {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	width: 100%; margin-top: 12px;
	padding: 9px 14px; border: 1px solid var(--msm-p-border, rgba(255,255,255,0.14));
	border-radius: 12px; background: rgba(255,255,255,0.05);
	color: var(--msm-p-ink, #f3f0ff); font-family: inherit;
	font-size: 12.5px; font-weight: 700; cursor: pointer;
	transition: background .15s, transform .1s;
}
.msm-league-story-btn:hover { background: rgba(255,255,255,0.1); }
.msm-league-story-btn:active { transform: scale(0.98); }

/* ---- ورود پرسنل: لینک کوچک و کم‌رنگ، جدا از تب هنرجو/استاد ---- */
.msm-portal-staff-login-link-wrap {
	width: 100%; max-width: 360px; margin: 14px auto 0;
	text-align: center; position: relative; z-index: 1;
}
.msm-portal-staff-login-link {
	background: none; border: none; font-family: inherit;
	font-size: 12px; color: rgba(230, 224, 255, 0.45);
	cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
	padding: 6px 10px;
}
.msm-portal-staff-login-link:hover { color: rgba(230, 224, 255, 0.75); }
.msm-portal-staff-login-box {
	width: 100%; max-width: 360px; margin: 16px auto 0;
	background: rgba(255,255,255,0.05);
	border: 1.5px solid rgba(168, 139, 255, 0.22);
	border-radius: 18px; padding: 18px; box-sizing: border-box;
	position: relative; z-index: 1;
}
.msm-portal-staff-login-box h3 { margin: 0 0 4px; font-size: 15px; color: #f3f0ff; }
.msm-portal-staff-login-box .msm-hint { margin: 0 0 14px; color: rgba(230,224,255,.55); }
.msm-portal-staff-login-box .msm-field { margin-bottom: 12px; }
.msm-portal-staff-login-box .msm-field label { display: block; font-size: 12px; color: rgba(230,224,255,.7); margin-bottom: 5px; }
.msm-portal-staff-login-box .msm-field input {
	width: 100%; box-sizing: border-box; padding: 11px 14px;
	border-radius: 12px; border: 1.5px solid rgba(168,139,255,.25);
	background: rgba(255,255,255,0.04); color: #f3f0ff; font-family: inherit; font-size: 13.5px;
}
.msm-portal-staff-login-box .msm-login-submit-btn { width: 100%; }

/* ---------------- پرتال پرسنل ---------------- */
.msm-staff-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.msm-staff-tile {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	background: rgba(255,255,255,0.05); border: 1.5px solid rgba(168,139,255,.2);
	border-radius: 16px; padding: 16px 8px; color: #f3f0ff; font-family: inherit;
	font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s;
}
.msm-staff-tile:hover { background: rgba(255,255,255,0.09); }
.msm-staff-tile:active { transform: scale(.97); }
.msm-staff-tile-icon { font-size: 26px; }

#msm-staff-payment-form .msm-field,
#msm-staff-expense-form .msm-field { margin-bottom: 12px; }
#msm-staff-payment-form .msm-field-row,
#msm-staff-expense-form .msm-field-row { display: flex; gap: 10px; }
#msm-staff-payment-form .msm-field-row .msm-field,
#msm-staff-expense-form .msm-field-row .msm-field { flex: 1; min-width: 0; }
#msm-staff-payment-form .msm-field label,
#msm-staff-expense-form .msm-field label {
	display: block; font-size: 12px; font-weight: 700;
	color: rgba(230,224,255,.7); margin-bottom: 6px;
}
#msm-staff-payment-form .msm-field input,
#msm-staff-payment-form .msm-field select,
#msm-staff-expense-form .msm-field input,
#msm-staff-expense-form .msm-field select {
	width: 100%; box-sizing: border-box; padding: 11px 13px;
	border-radius: 12px; border: 1.5px solid rgba(168,139,255,.25);
	background: rgba(255,255,255,0.04); color: #f3f0ff;
	font-family: inherit; font-size: 13.5px;
}
#msm-staff-payment-form .msm-field input:focus,
#msm-staff-payment-form .msm-field select:focus,
#msm-staff-expense-form .msm-field input:focus,
#msm-staff-expense-form .msm-field select:focus {
	outline: none; border-color: var(--msm-p-primary, #8f72ff);
	box-shadow: 0 0 0 3px rgba(143,114,255,0.18);
}
#msm-staff-payment-form .msm-btn,
#msm-staff-expense-form .msm-btn { margin-top: 4px; }

/* ---------------- پرتال پرسنل: آکاردئون و کارت‌های تفکیک‌شده ---------------- */
.msm-staff-accordion { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.msm-staff-accordion-item {
	background: rgba(255,255,255,0.04);
	border: 1.5px solid rgba(168,139,255,.16);
	border-radius: 14px; padding: 4px 14px; overflow: hidden;
}
.msm-staff-accordion-item.is-empty { opacity: .55; }
.msm-staff-accordion-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 2px; cursor: pointer; list-style: none; font-weight: 700; font-size: 13.5px;
	color: #f3f0ff;
}
.msm-staff-accordion-item summary::-webkit-details-marker { display: none; }
.msm-staff-accordion-item summary::after {
	content: '›'; font-size: 20px; color: rgba(230,224,255,.5);
	transform: rotate(90deg); transition: transform .15s; margin-inline-start: auto;
}
.msm-staff-accordion-item[open] summary::after { transform: rotate(-90deg); }
.msm-staff-accordion-name { display: flex; align-items: center; gap: 6px; }
.msm-staff-accordion-meta { font-size: 11.5px; font-weight: 600; color: rgba(230,224,255,.55); }
.msm-staff-accordion-item .msm-table,
.msm-staff-accordion-item .msm-staff-schedule-list { margin: 4px 0 12px; }

.msm-staff-schedule-list { display: flex; flex-direction: column; gap: 6px; }
.msm-staff-schedule-row {
	display: flex; align-items: center; gap: 12px;
	background: rgba(255,255,255,0.035); border-radius: 10px; padding: 9px 12px;
}
.msm-staff-schedule-time {
	flex-shrink: 0; font-size: 12px; font-weight: 800; color: #ffd166;
	background: rgba(255,209,102,0.12); border-radius: 8px; padding: 4px 8px;
	min-width: 78px; text-align: center;
}
.msm-staff-schedule-title { font-size: 13px; font-weight: 700; color: #f3f0ff; }

.msm-staff-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.msm-staff-person-card {
	display: flex; align-items: center; gap: 10px;
	background: rgba(255,255,255,0.045); border: 1.5px solid rgba(168,139,255,.16);
	border-radius: 14px; padding: 12px;
}
.msm-staff-person-avatar {
	width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #8f72ff, #6440f5);
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 800;
}
.msm-staff-person-name { font-size: 13px; font-weight: 700; color: #f3f0ff; }
.msm-staff-person-sub { font-size: 11.5px; color: rgba(230,224,255,.55); margin-top: 2px; }

/* ---------------- پرتال پرسنل: تیکت‌ها ---------------- */
.msm-staff-ticket-body { padding: 4px 2px 14px; }
.msm-staff-ticket-subject { font-weight: 700; color: #f3f0ff; margin-bottom: 4px; }
.msm-staff-ticket-body p { color: rgba(230,224,255,.85); font-size: 13px; line-height: 1.9; margin: 6px 0; }
.msm-staff-ticket-reply-box {
	background: rgba(45,212,191,0.08); border: 1px solid rgba(45,212,191,0.25);
	border-radius: 12px; padding: 10px 12px; margin: 10px 0;
}
.msm-staff-ticket-reply-box strong { font-size: 12px; color: #2dd4bf; }
.msm-staff-ticket-reply-box p { margin: 4px 0 0; color: #f3f0ff; }
.msm-staff-ticket-reply-form textarea {
	width: 100%; box-sizing: border-box; padding: 10px 12px; min-height: 60px;
	border-radius: 12px; border: 1.5px solid rgba(168,139,255,.25);
	background: rgba(255,255,255,0.04); color: #f3f0ff;
	font-family: inherit; font-size: 13px; resize: vertical;
}
.msm-staff-ticket-reply-form textarea:focus {
	outline: none; border-color: var(--msm-p-primary, #8f72ff);
	box-shadow: 0 0 0 3px rgba(143,114,255,0.18);
}
.msm-staff-ticket-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 2px; }
.msm-staff-ticket-dot.is-open { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
.msm-staff-ticket-dot.is-closed { background: rgba(230,224,255,0.35); }

/* ---------------- مسیر یادگیری (پروفایل) ---------------- */
.msm-journey-card {
	background: rgba(255,255,255,0.05);
	border: 1.5px solid rgba(168,139,255,.2);
	border-radius: 18px; padding: 16px; margin: 12px 0;
}
.msm-journey-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.msm-journey-item-label { font-size: 11px; color: rgba(230,224,255,.55); margin-bottom: 4px; }
.msm-journey-item-value { font-size: 14px; font-weight: 800; color: #f3f0ff; }
.msm-journey-actions { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.msm-journey-actions .msm-btn { flex: 1; min-width: 140px; }
.msm-profile-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 18px 0; }

/* ---------------- مودال آنالیز هوش مصنوعی ---------------- */
.msm-ai-analysis-modal {
	max-width: 480px; width: calc(100% - 32px);
	background: linear-gradient(160deg, #241c40, #17122c);
	border: 1.5px solid rgba(168,139,255,.25);
	border-radius: 22px; padding: 24px; position: relative;
	max-height: 85vh; max-height: 85dvh; overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.msm-ai-analysis-modal h3 { margin: 0 0 4px; font-size: 17px; color: #fff; }
.msm-ai-analysis-close {
	position: absolute; top: 14px; left: 14px;
	width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255,255,255,0.08); border: none; color: #fff;
	font-size: 18px; cursor: pointer; line-height: 1;
}
.msm-ai-loading { text-align: center; padding: 40px 0; color: rgba(230,224,255,.7); font-size: 13.5px; }

.msm-ai-trend-chart {
	display: flex; align-items: flex-end; justify-content: space-around;
	gap: 8px; height: 130px; margin: 18px 0 22px;
	background: rgba(255,255,255,0.03); border-radius: 14px; padding: 14px 10px 10px;
}
.msm-ai-trend-col { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; }
.msm-ai-trend-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; justify-content: center; }
.msm-ai-trend-bar {
	width: 60%; max-width: 28px; border-radius: 6px 6px 0 0;
	background: linear-gradient(180deg, #8f72ff, #6440f5);
	box-shadow: 0 0 12px rgba(143,114,255,.4);
	min-height: 6px;
}
.msm-ai-trend-val { font-size: 11px; font-weight: 800; color: #ffd166; margin-top: 6px; }
.msm-ai-trend-label { font-size: 10px; color: rgba(230,224,255,.55); margin-top: 2px; }

.msm-ai-categories { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.msm-ai-cat-row {}
.msm-ai-cat-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: #f3f0ff; margin-bottom: 6px; }
.msm-ai-cat-quality { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.msm-ai-cat-quality.is-excellent { background: rgba(74,222,128,0.18); color: #4ade80; }
.msm-ai-cat-quality.is-good { background: rgba(45,212,191,0.18); color: #2dd4bf; }
.msm-ai-cat-quality.is-average { background: rgba(255,209,102,0.18); color: #ffd166; }
.msm-ai-cat-quality.is-weak { background: rgba(255,107,107,0.18); color: #ff6b6b; }
.msm-ai-cat-bar-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.msm-ai-cat-bar-fill { height: 100%; border-radius: 6px; }
.msm-ai-cat-bar-fill.is-excellent { background: linear-gradient(90deg, #4ade80, #22c55e); }
.msm-ai-cat-bar-fill.is-good { background: linear-gradient(90deg, #2dd4bf, #14b8a6); }
.msm-ai-cat-bar-fill.is-average { background: linear-gradient(90deg, #ffd166, #f4a100); }
.msm-ai-cat-bar-fill.is-weak { background: linear-gradient(90deg, #ff8a8a, #ff6b6b); }

.msm-ai-advice-box {
	background: rgba(143,114,255,0.1);
	border: 1px solid rgba(143,114,255,0.3);
	border-radius: 14px; padding: 14px;
}
.msm-ai-advice-title { font-size: 12.5px; font-weight: 800; color: #c9bdf5; margin-bottom: 6px; }
.msm-ai-advice-box p { margin: 0; font-size: 13px; line-height: 1.9; color: #f3f0ff; }
