/* =========================================================
   آموزشگاه (Amoozeshgah) - استایل اصلی قالب
   راست‌چین، ریسپانسیو، سازگار با المنتور
   ========================================================= */

:root{
	/* پالت «دفترچه و کهربا» — هویت بصری اختصاصی آموزشگاه، به‌جای آبی/فیروزه‌ای ژنریک قبلی. */
	--amz-ink: #171A33;
	--amz-ink-soft: #2A2F5C;
	--amz-primary: #C98A12;
	--amz-primary-dark: #9C6A0A;
	--amz-primary-light: #FBEBCF;
	--amz-dark: #171A33;
	--amz-text: #3B3F58;
	--amz-text-light: #6B6F8C;
	--amz-border: #E7E4DA;
	--amz-bg-alt: #FBF8F2;
	--amz-paper: #FBF8F2;
	--amz-white: #ffffff;
	--amz-warning: #C98A12;
	--amz-warning-bg: #FBEBCF;
	--amz-info-bg: #E4E6F7;
	--amz-info: #2A2F5C;
	--amz-success: #0f5132;
	--amz-success-bg: #d1e7dd;
	--amz-danger: #842029;
	--amz-danger-bg: #f8d7da;
	--amz-radius: 26px 8px 26px 8px;
	--amz-radius-sm: 8px;
	--amz-radius-pill: 999px;
	--amz-shadow: 0 18px 40px rgba(23, 26, 51, .10);
	--amz-shadow-lg: 0 30px 70px rgba(23, 26, 51, .18);
	--amz-container: 1200px;
	--amz-font: 'Vazirmatn', Tahoma, sans-serif;
}

/* عناصر ساختاری (جدول، ناوبری، ورودی‌ها) شعاع کوچک و ثابت دارند؛ فقط
   کارت‌های شاخص (هیرو، کارت دوره، کارت آزمون) از amz-radius نامتقارن استفاده
   می‌کنند — تا گوشه‌های بریدهٔ اختصاصی فقط جایی که اهمیت دارد دیده شود. */

/* ---------- Reset پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--amz-font);
	color: var(--amz-text);
	background: var(--amz-white);
	direction: rtl;
	text-align: right;
	margin: 0;
	line-height: 1.9;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--amz-dark); font-weight: 700; margin: 0 0 .6em; line-height: 1.5; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
input, textarea, select {
	font-family: inherit;
	font-size: 15px;
	border: 1px solid var(--amz-border);
	border-radius: var(--amz-radius-sm);
	padding: 10px 14px;
	background: var(--amz-white);
	color: var(--amz-text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amz-primary); }

.amz-container { max-width: var(--amz-container); margin: 0 auto; padding: 0 20px; }
.amz-container-wide { max-width: 1440px; }
.amz-section { padding: 70px 0; }
.amz-section-alt { background: var(--amz-bg-alt); }
.amz-page-wrap { padding: 40px 0 70px; }

/* ---------- دکمه‌ها ---------- */
.amz-btn, button.amz-btn, .tam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .25s ease;
	width: auto;
}
.amz-btn-primary, button.amz-btn-primary, .tam-btn {
	background: var(--amz-primary);
	color: #fff !important;
}
.amz-btn-primary:hover, .tam-btn:hover { background: var(--amz-primary-dark); color: #fff; }
.amz-btn-outline { background: transparent; border-color: var(--amz-primary); color: var(--amz-primary) !important; }
.amz-btn-outline:hover { background: var(--amz-primary); color: #fff !important; }
.amz-btn-ghost { background: rgba(255,255,255,.15); color: var(--amz-dark); border-color: var(--amz-border); }
.amz-btn-light { background: #fff; color: var(--amz-primary-dark) !important; }
.amz-btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff !important; }
.amz-btn-sm { padding: 9px 18px; font-size: 13px; }

/* دکمه‌های ورود و ثبت‌نام — ظاهر یکسان */
.amz-btn-auth {
	background: #fff;
	border: 1.5px solid var(--amz-primary, #C98A12);
	color: var(--amz-primary, #C98A12) !important;
	font-weight: 700;
	border-radius: 10px;
	min-width: 96px;
	text-align: center;
	transition: background .2s, color .2s, box-shadow .2s;
}
.amz-btn-auth:hover,
.amz-btn-auth:focus {
	background: var(--amz-primary, #C98A12);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(201, 138, 18, .28);
}
.amz-btn-block { width: 100%; }

/* ---------- نوار بالای هدر ---------- */
.amz-topbar { background: var(--amz-dark); color: #cbd5e1; font-size: 13px; }
.amz-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; flex-wrap: wrap; gap: 8px; }
.amz-topbar-item { margin-inline-start: 16px; }
.amz-topbar-social { display: flex; gap: 10px; }
.amz-topbar-social a { color: #cbd5e1; display: flex; }
.amz-topbar-social a:hover { color: #fff; }

/* ---------- هدر ---------- */
.amz-header { background: #fff; box-shadow: 0 2px 12px rgba(15,23,42,.05); position: sticky; top: 0; z-index: 999; }
.amz-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.amz-logo { display: flex; align-items: center; gap: 12px; }
.amz-logo img { max-height: 46px; width: auto; display: block; }
.amz-logo-text { font-size: 22px; font-weight: 800; color: var(--amz-primary); }
.amz-primary-nav { flex: 1; }
.amz-menu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.amz-menu > li { position: relative; }
.amz-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--amz-dark); }
.amz-menu > li > a:hover, .amz-menu > li.current-menu-item > a { color: var(--amz-primary); background: var(--amz-primary-light); }
.amz-menu-caret { font-size: 10px; }
.amz-sub-menu { position: absolute; top: 100%; right: 0; min-width: 220px; background: #fff; box-shadow: var(--amz-shadow); border-radius: var(--amz-radius-sm); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 50; }
.amz-menu > li:hover > .amz-sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.amz-sub-menu li a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.amz-sub-menu li a:hover { background: var(--amz-primary-light); color: var(--amz-primary); }
.amz-sub-menu .amz-sub-menu { top: 0; right: 100%; }

.amz-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amz-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.amz-menu-toggle span,
.amz-menu-toggle .amz-menu-toggle-bar { width: 24px; height: 2px; background: var(--amz-dark); border-radius: 2px; display: block; }

/* ---------- هیرو ---------- */
.amz-hero { background: linear-gradient(135deg, var(--amz-primary-light), #fff 60%); padding: 70px 0; overflow: hidden; }
.amz-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.amz-hero-badge { display: inline-block; background: var(--amz-primary); color: #fff; padding: 6px 16px; border-radius: 50px; font-size: 13px; margin-bottom: 16px; }
.amz-hero-text h1 { font-size: 42px; line-height: 1.4; margin-bottom: 18px; }
.amz-hero-text p { font-size: 17px; color: var(--amz-text-light); max-width: 520px; }
.amz-hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.amz-hero-media img { border-radius: var(--amz-radius); box-shadow: var(--amz-shadow); }

/* ---------- فرم جستجو + نتایج زنده ---------- */
.amz-search-wrap { position: relative; max-width: 620px; margin: 24px 0; }
.amz-search-form { display: flex; align-items: stretch; background: #fff; border-radius: 50px; box-shadow: var(--amz-shadow); padding: 6px; margin: 0; width: 100%; }
.amz-search-field { flex: 1; border: none; border-radius: 50px; padding: 12px 18px; min-width: 0; background: transparent; }
.amz-search-field:focus { outline: none; }
.amz-search-type { border: none; border-inline-start: 1px solid var(--amz-border); border-radius: 0; background: transparent; padding: 0 10px; max-width: 130px; }
.amz-search-submit { background: var(--amz-primary); color: #fff; border: none; border-radius: 50px; width: 46px; min-width: 46px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.amz-search-submit:hover { background: var(--amz-primary-dark); }
.amz-search-submit svg { display: block; }

.amz-live-search-results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, .14);
	border: 1px solid var(--amz-border);
	z-index: 200;
	overflow: hidden;
	max-height: 380px;
	overflow-y: auto;
}
.amz-live-search-results[hidden] { display: none !important; }
.amz-live-search-list { list-style: none; margin: 0; padding: 6px; }
.amz-live-search-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--amz-dark);
	text-decoration: none;
	transition: background .15s;
}
.amz-live-search-item a:hover { background: var(--amz-primary-light); }
.amz-live-search-item img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 10px;
	background: #f1f5f9;
	flex-shrink: 0;
}
.amz-live-search-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.amz-live-search-title { font-weight: 700; font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amz-live-search-type { font-size: 12px; color: var(--amz-text-light); }
.amz-live-search-all {
	display: block;
	text-align: center;
	padding: 12px;
	font-weight: 700;
	font-size: 13px;
	color: var(--amz-primary);
	border-top: 1px solid var(--amz-border);
	background: #f8fafc;
}
.amz-live-search-all:hover { background: var(--amz-primary-light); }
.amz-live-search-empty,
.amz-live-search-loading {
	padding: 18px 16px;
	text-align: center;
	color: var(--amz-text-light);
	font-size: 14px;
}

/* ---------- سکشن‌ها (تیتر) ---------- */
.amz-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.amz-section-head-center { flex-direction: column; align-items: center; text-align: center; }
.amz-section-tag { color: var(--amz-primary); font-weight: 700; font-size: 14px; display: block; margin-bottom: 8px; }
.amz-section-head h2 { font-size: 30px; margin: 0; }

/* ---------- ویژگی‌ها ---------- */
.amz-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.amz-feature-card { text-align: center; padding: 30px 20px; border-radius: var(--amz-radius); border: 1px solid var(--amz-border); transition: all .2s ease; }
.amz-feature-card:hover { box-shadow: var(--amz-shadow); border-color: transparent; transform: translateY(-4px); }
.amz-feature-icon { font-size: 34px; margin-bottom: 14px; }
.amz-feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.amz-feature-card p { color: var(--amz-text-light); font-size: 14px; margin: 0; }

/* ---------- گرید دوره‌ها ---------- */
.amz-course-grid { display: grid; gap: 26px; }
.amz-course-grid.amz-columns-2 { grid-template-columns: repeat(2, 1fr); }
.amz-course-grid.amz-columns-3 { grid-template-columns: repeat(3, 1fr); }
.amz-course-grid.amz-columns-4 { grid-template-columns: repeat(4, 1fr); }

.amz-course-card { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s ease; }
.amz-course-card:hover { box-shadow: var(--amz-shadow); transform: translateY(-4px); border-color: transparent; }
.amz-course-thumb { position: relative; display: block; aspect-ratio: 16/10.5; overflow: hidden; }
.amz-course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.amz-course-card:hover .amz-course-thumb img { transform: scale(1.06); }
.amz-course-badge { position: absolute; top: 12px; right: 12px; background: var(--amz-primary); color: #fff; font-size: 11px; padding: 5px 12px; border-radius: 50px; }
.amz-course-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.amz-course-title { font-size: 18px; margin: 0; }
.amz-course-title a:hover { color: var(--amz-primary); }
.amz-course-excerpt { color: var(--amz-text-light); font-size: 14px; flex: 1; }
.amz-course-meta-list { display: flex; gap: 16px; font-size: 13px; color: var(--amz-text-light); flex-wrap: wrap; }
.amz-course-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--amz-border); }
.amz-price { font-weight: 700; color: var(--amz-dark); font-size: 16px; }
.amz-price-free { color: var(--amz-primary); }

/* ---------- گرید اساتید ---------- */
.amz-instructor-grid { display: grid; gap: 26px; }
.amz-instructor-grid.amz-columns-2 { grid-template-columns: repeat(2, 1fr); }
.amz-instructor-grid.amz-columns-3 { grid-template-columns: repeat(3, 1fr); }
.amz-instructor-grid.amz-columns-4 { grid-template-columns: repeat(4, 1fr); }
.amz-instructor-card { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); overflow: hidden; text-align: center; transition: all .25s ease; }
.amz-instructor-card:hover { box-shadow: var(--amz-shadow); transform: translateY(-4px); }
.amz-instructor-photo { display: block; aspect-ratio: 1/1; overflow: hidden; }
.amz-instructor-photo img { width: 100%; height: 100%; object-fit: cover; }
.amz-instructor-info { padding: 18px; }
.amz-instructor-name { font-size: 17px; margin-bottom: 4px; }
.amz-instructor-name a:hover { color: var(--amz-primary); }
.amz-instructor-excerpt { color: var(--amz-text-light); font-size: 13px; margin-bottom: 8px; }
.amz-instructor-courses-count { display: inline-block; background: var(--amz-primary-light); color: var(--amz-primary); font-size: 12px; padding: 4px 12px; border-radius: 50px; }

/* ---------- آمار ---------- */
.amz-stats-section { background: var(--amz-dark); }
.amz-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.amz-stat-item { display: flex; flex-direction: column; gap: 6px; }
.amz-stat-number { font-size: 36px; font-weight: 800; color: var(--amz-white); }
.amz-stat-label { color: #94a3b8; font-size: 14px; }

/* ---------- تستیمونیال‌ها ---------- */
.amz-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.amz-testimonial-card { background: #fff; padding: 28px; border-radius: var(--amz-radius); box-shadow: var(--amz-shadow); }
.amz-testimonial-text { font-size: 15px; color: var(--amz-text); margin-bottom: 16px; }
.amz-testimonial-author { display: flex; flex-direction: column; }
.amz-testimonial-name { font-weight: 700; }
.amz-testimonial-role { font-size: 13px; color: var(--amz-text-light); }

/* ---------- CTA ---------- */
.amz-cta { background: linear-gradient(120deg, var(--amz-primary), var(--amz-primary-dark)); color: #fff; padding: 60px 0; }
.amz-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.amz-cta h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.amz-cta p { color: rgba(255,255,255,.85); margin: 0; }
.amz-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- وبلاگ ---------- */
.amz-blog-grid { display: grid; gap: 26px; }
.amz-blog-grid.amz-columns-3 { grid-template-columns: repeat(3, 1fr); }
.amz-blog-card { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); overflow: hidden; transition: all .25s ease; }
.amz-blog-card:hover { box-shadow: var(--amz-shadow); transform: translateY(-4px); }
.amz-blog-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.amz-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.amz-blog-card-body { padding: 18px; }
.amz-blog-meta { display: flex; gap: 12px; font-size: 12px; color: var(--amz-text-light); margin-bottom: 8px; }
.amz-blog-title { font-size: 17px; margin-bottom: 8px; }
.amz-blog-title a:hover { color: var(--amz-primary); }
.amz-blog-excerpt { color: var(--amz-text-light); font-size: 14px; }
.amz-read-more { color: var(--amz-primary); font-weight: 600; font-size: 13px; display: inline-block; margin-top: 8px; }

/* ---------- فوتر ---------- */
.amz-footer { background: var(--amz-dark); color: #cbd5e1; padding-top: 60px; }
.amz-footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.amz-footer-logo-text { color: #fff; font-size: 22px; }
.amz-footer-about p { font-size: 14px; color: #94a3b8; }
.amz-footer-address { font-size: 13px; }
.amz-footer-social { display: flex; gap: 10px; margin-top: 14px; }
.amz-footer-social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border-radius: 50%; color: #cbd5e1; }
.amz-footer-social a:hover { background: var(--amz-primary); color: #fff; }
.amz-footer-widget-title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.amz-footer-links li { margin-bottom: 10px; }
.amz-footer-links a { color: #94a3b8; font-size: 14px; }
.amz-footer-links a:hover { color: #fff; }
.amz-newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.amz-newsletter-form input { flex: 1; }
.amz-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.amz-footer-bottom-inner { display: flex; justify-content: space-between; font-size: 13px; color: #94a3b8; flex-wrap: wrap; gap: 8px; }

.amz-scroll-top { position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px; background: var(--amz-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--amz-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 500; }
.amz-scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- بردکرامب ---------- */
.amz-breadcrumb { font-size: 13px; color: var(--amz-text-light); margin-bottom: 18px; }
.amz-breadcrumb a { color: var(--amz-text-light); }
.amz-breadcrumb a:hover { color: var(--amz-primary); }
.amz-breadcrumb .sep { margin: 0 6px; }

/* ---------- آرشیو هیرو ---------- */
.amz-archive-hero { background: var(--amz-bg-alt); padding: 50px 0; margin-bottom: 40px; text-align: center; }
.amz-archive-hero h1 { font-size: 32px; }
.amz-archive-hero .amz-search-form { margin: 20px auto 0; }
.amz-empty-state { text-align: center; padding: 60px 20px; color: var(--amz-text-light); }

/* ---------- تک‌دوره ---------- */
.amz-course-hero { background: var(--amz-dark); padding: 40px 0; color: #fff; }
.amz-course-hero .amz-breadcrumb, .amz-course-hero .amz-breadcrumb a { color: #94a3b8; }
.amz-course-hero h1 { color: #fff; font-size: 30px; margin: 10px 0 16px; }
.amz-course-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #cbd5e1; }

.amz-course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: flex-start; }
.amz-course-thumb-large { border-radius: var(--amz-radius); overflow: hidden; margin-bottom: 24px; }
.amz-course-thumb-large img { width: 100%; }

.amz-tabs-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--amz-border); margin-bottom: 24px; flex-wrap: wrap; }
.amz-tab-btn { background: none; border: none; padding: 12px 18px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--amz-text-light); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.amz-tab-btn.active { color: var(--amz-primary); border-color: var(--amz-primary); }
.amz-tab-panel { display: none; }
.amz-tab-panel.active { display: block; }

.amz-schedule-list { display: flex; flex-direction: column; gap: 14px; }
.amz-schedule-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--amz-border); border-radius: var(--amz-radius-sm); flex-wrap: wrap; }
.amz-schedule-instructor { display: flex; align-items: center; gap: 12px; }
.amz-schedule-instructor img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.amz-schedule-details { display: flex; gap: 16px; font-size: 13px; color: var(--amz-text-light); flex-wrap: wrap; }

.amz-course-box { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 24px; box-shadow: var(--amz-shadow); position: sticky; top: 100px; }
.amz-course-box .amz-price { display: block; font-size: 24px; margin-bottom: 14px; }
.amz-course-box-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.amz-course-box-list li { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--amz-border); }
.amz-course-box-list li span { color: var(--amz-text-light); }
.amz-enroll-hint { font-size: 12px; color: var(--amz-text-light); text-align: center; margin-top: 10px; }

/* ---------- بج‌های وضعیت (هماهنگ با افزونه) ---------- */
.amz-badge, .tam-badge { display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: 12px; background: var(--amz-bg-alt); }
.amz-badge-pending, .tam-badge-pending { background: var(--amz-warning-bg); color: #856404; }
.amz-badge-in_progress, .tam-badge-in_progress { background: var(--amz-info-bg); color: var(--amz-info); }
.amz-badge-completed, .tam-badge-completed { background: var(--amz-success-bg); color: var(--amz-success); }
.amz-badge-cancelled, .tam-badge-cancelled { background: var(--amz-danger-bg); color: var(--amz-danger); }
.amz-badge-class-upcoming { background: #e2e3e5; color: #41464b; }
.amz-badge-class-in_progress { background: var(--amz-info-bg); color: var(--amz-info); }
.amz-badge-class-completed { background: var(--amz-success-bg); color: var(--amz-success); }

/* ---------- پنل کاربری (داشبورد) ---------- */
.amz-dashboard-guest { text-align: center; padding: 60px 20px; }
.amz-dashboard-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: flex-start; }
.amz-dashboard-side { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 24px; position: sticky; top: 100px; }
.amz-dashboard-user { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--amz-border); }
.amz-dashboard-user img { border-radius: 50%; margin-bottom: 8px; }
.amz-dashboard-user span { font-size: 13px; color: var(--amz-text-light); }
.amz-dashboard-menu li a { display: block; padding: 11px 14px; border-radius: var(--amz-radius-sm); font-size: 14px; font-weight: 600; color: var(--amz-text); }
.amz-dashboard-menu li a:hover, .amz-dashboard-menu li.active a { background: var(--amz-primary-light); color: var(--amz-primary); }
.amz-dashboard-content { min-width: 0; }

/* هماهنگ‌سازی طراحی خروجی شورت‌کدهای افزونه با تم */
.tam-dashboard-mobile { background: var(--amz-bg-alt); border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 18px; margin-bottom: 24px; }
.tam-dashboard-tabs { border-bottom: 2px solid var(--amz-border); margin-bottom: 20px; }
.tam-tab-btn { font-family: var(--amz-font); }
.tam-tab-btn.active { color: var(--amz-primary); border-bottom-color: var(--amz-primary); }
.tam-tab-panel { display: none; }
.tam-tab-panel.active { display: block; }
.tam-table { border: 1px solid var(--amz-border); border-radius: var(--amz-radius-sm); overflow: hidden; }
.tam-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tam-course-card { border-radius: var(--amz-radius); border-color: var(--amz-border); }

/* ---------- صفحات ساده / بلاگ تکی ---------- */
.amz-layout.amz-has-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: flex-start; }
.amz-page-title { font-size: 30px; margin-bottom: 20px; }
.amz-page-content { font-size: 16px; line-height: 2; }
.amz-page-content img { border-radius: var(--amz-radius-sm); }
.amz-single-thumb { border-radius: var(--amz-radius); overflow: hidden; margin-bottom: 20px; }
.amz-post-tags { margin-top: 20px; font-size: 13px; color: var(--amz-text-light); }
.amz-sidebar { background: #fff; }
.amz-widget, .amz-footer-widget { margin-bottom: 26px; }
.amz-widget-title { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--amz-primary); display: inline-block; }

/* ---------- صفحه‌بندی ---------- */
.amz-pagination ul { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.amz-pagination a, .amz-pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--amz-radius-sm); border: 1px solid var(--amz-border); font-size: 14px; }
.amz-pagination .current { background: var(--amz-primary); color: #fff; border-color: var(--amz-primary); }
.amz-pagination a:hover { border-color: var(--amz-primary); color: var(--amz-primary); }

/* ---------- کامنت‌ها ---------- */
.amz-comments-area { margin-top: 40px; }
.amz-comments-title { font-size: 20px; margin-bottom: 20px; }
.amz-comment-list { display: flex; flex-direction: column; gap: 20px; }
.amz-comment-body { display: flex; gap: 14px; }
.amz-comment-avatar img { border-radius: 50%; }
.amz-comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.amz-comment-date { font-size: 12px; color: var(--amz-text-light); }
.amz-comment-awaiting { font-size: 13px; color: var(--amz-warning); }
.comment-form-comment textarea, .comment-form-author input, .comment-form-email input { width: 100%; margin-bottom: 14px; }
#respond { margin-top: 30px; }
#respond .comment-reply-title { font-size: 18px; }

/* ---------- ۴۰۴ ---------- */
.amz-404 { text-align: center; padding: 80px 20px; }
.amz-404 h1 { font-size: 90px; color: var(--amz-primary); margin: 0; }
.amz-404-links { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- نمایه استاد ---------- */
.amz-instructor-profile { display: flex; gap: 30px; align-items: center; background: var(--amz-bg-alt); border-radius: var(--amz-radius); padding: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.amz-instructor-profile-photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.amz-instructor-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.amz-instructor-profile-tag { display: inline-block; background: var(--amz-primary-light); color: var(--amz-primary); padding: 4px 14px; border-radius: 50px; font-size: 12px; margin: 8px 0 12px; }

/* =========================================================
   صفحه ثبت‌نام
   ========================================================= */
.amz-register-page { max-width: 820px; }
.amz-register-intro { color: var(--amz-text-light); margin-bottom: 24px; }
.amz-register-login-link { margin-top: 18px; font-size: 14px; }

/* =========================================================
   تب‌های سطح بالای پنل (دوره‌ها/کلاس‌ها در مقابل پروفایل)
   ========================================================= */
.amz-section-tabs-row {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 28px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--amz-border);
	border-radius: 50px;
	padding: 5px;
	box-shadow: 0 4px 14px rgba(23,26,51,.05);
}
.amz-section-tabs-row .amz-section-tab-btn {
	background: transparent; border: none; border-radius: 50px;
	padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--amz-text-light);
	transition: all .25s ease;
}
.amz-section-tabs-row .amz-section-tab-btn:hover { color: var(--amz-ink); }
.amz-section-tabs-row .amz-section-tab-btn.active { background: var(--amz-primary); color: #fff; box-shadow: 0 6px 16px rgba(201,138,18,.35); }
/* منوی کناری: فقط li.active استایل می‌گیرد — نه پس‌زمینه طلایی روی لینک */
.amz-dashboard-menu .amz-section-tab-btn.active {
	background: transparent !important;
	color: inherit;
	box-shadow: none !important;
}
.amz-dashboard-menu li.active a,
.amz-dashboard-menu li.active .amz-section-tab-btn {
	background: var(--amz-primary-light) !important;
	color: var(--amz-primary) !important;
}
.amz-section-tab-panel { display: none; }
.amz-section-tab-panel.active { display: block; animation: amzFadeIn .35s ease; }
@keyframes amzFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* فرم ویرایش پروفایل */
.amz-profile-form-box { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 26px; max-width: 640px; }
.amz-profile-avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--amz-border); flex-wrap: wrap; }
.amz-profile-avatar-row img { border-radius: 50%; }
.amz-profile-avatar-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.amz-field-hint { font-size: 12px; color: var(--amz-text-light); margin: 6px 0 0; }
.amz-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 10px; }
.amz-profile-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.amz-profile-grid input,
.amz-profile-grid select { padding: 10px 12px; border-radius: var(--amz-radius-sm); border: 1px solid var(--amz-border); font-family: inherit; }
.amz-profile-full { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.amz-profile-full textarea { padding: 10px 12px; border-radius: var(--amz-radius-sm); border: 1px solid var(--amz-border); font-family: inherit; resize: vertical; }
.amz-field-hint { font-size: 11px; font-weight: 400; color: var(--amz-text-light); margin: 4px 0 0; }
.amz-profile-subhead { margin: 22px 0 12px; font-size: 15px; padding-top: 16px; border-top: 1px dashed var(--amz-border); }


.amz-back-link { display: inline-block; margin-bottom: 16px; color: var(--amz-primary); font-weight: 600; font-size: 14px; }
.amz-notice { background: var(--amz-bg-alt); border: 1px solid var(--amz-border); border-radius: var(--amz-radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.amz-notice-success { background: var(--amz-success-bg); color: var(--amz-success); border-color: transparent; }

.amz-instructor-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-bottom: 30px; }
.amz-instructor-class-card { display: block; background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); overflow: hidden; transition: all .25s ease; }
.amz-instructor-class-card:hover { box-shadow: var(--amz-shadow); transform: translateY(-4px); }
.amz-instructor-class-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.amz-instructor-class-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.amz-instructor-class-body h3 { font-size: 17px; margin: 6px 0; }
.amz-instructor-class-body p { margin: 0; font-size: 13px; color: var(--amz-text-light); }
.amz-instructor-class-body .amz-read-more { margin-top: 8px; }

.amz-instructor-history { margin-top: 20px; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 16px 20px; }
.amz-instructor-history summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.amz-instructor-history table { margin-top: 14px; }

.amz-instructor-class-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.amz-instructor-class-meta { color: var(--amz-text-light); font-size: 14px; margin-bottom: 24px; }

.amz-attendance-box { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 24px; margin-bottom: 26px; box-shadow: 0 6px 20px rgba(23,26,51,.05); }
.amz-attendance-box h2 { font-size: 19px; margin-bottom: 16px; }

/* آمار داشبورد استاد/مدیر (کارت‌های آماری بالای داشبورد) */
.amz-dash-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 4px 0 30px;
}
.amz-dash-stat-box {
	background: #fff;
	border: 1px solid var(--amz-border);
	border-radius: 16px;
	padding: 18px 16px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(23,26,51,.05);
	transition: transform .2s ease;
}
.amz-dash-stat-box:hover { transform: translateY(-3px); }
.amz-dash-stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--amz-primary); }
.amz-dash-stat-label { display: block; margin-top: 6px; font-size: 12.5px; color: var(--amz-text-light); }
.amz-page-subtitle { margin: 30px 0 14px; font-size: 18px; font-weight: 800; color: var(--amz-ink); }

.amz-instructor-wage-box,
.amz-instructor-trial-box {
	background: #fff;
	border: 1px solid var(--amz-border);
	border-radius: var(--amz-radius);
	padding: 24px;
	margin-bottom: 26px;
	box-shadow: 0 6px 20px rgba(23,26,51,.05);
}
.amz-complete-class-box {
	background: var(--amz-primary-light, #FBEBCF);
	border: 1px dashed var(--amz-primary);
	border-radius: var(--amz-radius);
	padding: 22px;
	margin: 26px 0;
	text-align: center;
}
.amz-instructor-wage-box h2,
.amz-instructor-trial-box h2 { font-size: 18px; margin: 0 0 12px; color: var(--amz-ink); }
.amz-trial-exam-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.amz-trial-exam-form select { min-width: 220px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--amz-border); }
.amz-attendance-date-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.amz-attendance-date-form label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.amz-jalali-hint { font-size: 13px; color: var(--amz-text-light); }
.amz-attendance-table th, .amz-attendance-table td { text-align: center; }
.amz-attendance-table td:first-child, .amz-attendance-table th:first-child { text-align: right; }
.amz-radio-cell { display: inline-flex; cursor: pointer; }
.amz-radio-cell input { width: 18px; height: 18px; cursor: pointer; }

.amz-table-scroll { overflow-x: auto; }
.amz-attendance-matrix { min-width: 100%; }
.amz-attendance-matrix th, .amz-attendance-matrix td { text-align: center; white-space: nowrap; padding: 8px 12px; }
.amz-attendance-matrix td:first-child, .amz-attendance-matrix th:first-child { text-align: right; position: sticky; right: 0; background: #fff; }
.amz-att-present { color: var(--amz-success); font-weight: 700; }
.amz-att-absent { color: var(--amz-danger); font-weight: 700; }
.amz-att-none { color: #cbd5e1; }

.amz-complete-class-form { margin-top: 10px; }

/* دوره‌های من (داشبورد کارآموز) */
.amz-my-course-card { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 20px; margin-bottom: 18px; }
.amz-my-course-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.amz-my-course-head h3 { margin: 0; font-size: 17px; }
.amz-my-course-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--amz-text-light); margin: 0 0 14px; }
.amz-my-course-finance { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; margin: 0 0 10px; padding-top: 12px; border-top: 1px dashed var(--amz-border); }
.amz-my-course-finance li { display: flex; flex-direction: column; gap: 4px; }
.amz-my-course-finance span { color: var(--amz-text-light); }
.amz-my-course-finance strong { font-size: 15px; }
.amz-balance-due { color: var(--amz-danger); }
.amz-attendance-details { margin-top: 10px; }
.amz-attendance-details summary { cursor: pointer; color: var(--amz-primary); font-weight: 600; font-size: 13px; }
.amz-attendance-details table { margin-top: 10px; }
@media (max-width: 1024px) {
	.amz-course-layout, .amz-layout.amz-has-sidebar, .amz-dashboard-layout { grid-template-columns: 1fr; }
	.amz-dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.amz-course-box, .amz-dashboard-side { position: static; }
	.amz-hero-inner { grid-template-columns: 1fr; }
	.amz-hero-media { order: -1; }
	.amz-features-grid { grid-template-columns: repeat(2, 1fr); }
	.amz-course-grid.amz-columns-3, .amz-course-grid.amz-columns-4,
	.amz-instructor-grid.amz-columns-3, .amz-instructor-grid.amz-columns-4,
	.amz-blog-grid.amz-columns-3 { grid-template-columns: repeat(2, 1fr); }
	.amz-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
	.amz-footer-columns { grid-template-columns: repeat(2, 1fr); }
	.amz-stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 782px) {
	.amz-topbar { display: none; }
	.amz-primary-nav {
		position: fixed; left: 0; top: 0; bottom: 0; width: auto; min-width: 220px; max-width: 85%;
		background: #fff; box-shadow: var(--amz-shadow); padding: 90px 24px 20px;
		transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; z-index: 1000;
	}
	.amz-primary-nav.is-open { transform: translateX(0); }
	.amz-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.amz-sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-inline-start: 14px; }
	.amz-menu li.is-open > .amz-sub-menu { display: block; }
	.amz-menu-toggle { display: flex; }
	.amz-hide-mobile { display: none; }
	.amz-hero-text h1 { font-size: 30px; }
	.amz-section { padding: 46px 0; }
}

@media (max-width: 640px) {
	.amz-features-grid,
	.amz-course-grid.amz-columns-3, .amz-course-grid.amz-columns-4,
	.amz-instructor-grid.amz-columns-3, .amz-instructor-grid.amz-columns-4,
	.amz-blog-grid.amz-columns-3,
	.amz-testimonial-grid, .amz-footer-columns, .amz-stats-row,
	.amz-course-grid.amz-columns-2, .amz-instructor-grid.amz-columns-2 {
		grid-template-columns: 1fr;
	}
	.amz-cta-inner { flex-direction: column; text-align: center; }
	.amz-search-form { flex-direction: column; border-radius: var(--amz-radius-sm); gap: 6px; padding: 10px; }
	.amz-search-type { border-inline-start: none; border-top: 1px solid var(--amz-border); max-width: none; width: 100%; padding: 8px 10px; }
	.amz-search-submit { width: 100%; height: 40px; border-radius: var(--amz-radius-sm); }
	.amz-live-search-results { border-radius: 12px; }
	.amz-instructor-profile { flex-direction: column; text-align: center; }
	.amz-404 h1 { font-size: 60px; }
	.amz-schedule-item { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   دسترسی‌پذیری (Accessibility)
   ========================================================= */

/* متن مخصوص صفحه‌خوان */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* لینک پرش به محتوا */
.amz-skip-link {
	position: absolute;
	top: -100px;
	right: 16px;
	background: var(--amz-primary);
	color: #fff !important;
	padding: 12px 20px;
	border-radius: var(--amz-radius-sm);
	z-index: 100001;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.2s ease;
}
.amz-skip-link:focus {
	top: 16px;
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* فوکوس قابل مشاهده برای کیبورد */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.amz-btn:focus-visible,
.amz-menu a:focus-visible,
.amz-tab-btn:focus-visible,
.amz-section-tab-btn:focus-visible {
	outline: 3px solid var(--amz-primary);
	outline-offset: 2px;
}

/* کاهش حرکت برای کاربرانی که prefers-reduced-motion دارند */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* کنتراست بهتر برای حالت تیره سیستم (اختیاری) */
@media (prefers-color-scheme: dark) {
	/* فقط اگر کاربر تم تیره سیستم دارد و قالب هنوز حالت تاریک کامل ندارد، حداقل متن‌ها خوانا بمانند */
}

/* اطمینان از اندازه کلیک مناسب دکمه‌ها */
.amz-menu-toggle {
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}
.amz-btn {
	min-height: 40px;
}

/* ---------- خبرنامه AJAX ---------- */
.amz-newsletter-form {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.amz-newsletter-form input[type="email"] {
	flex: 1;
	min-width: 140px;
	padding: 11px 14px;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 8px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
}
.amz-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
.amz-newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: rgba(255,255,255,.55);
	background: rgba(255,255,255,.12);
}
.amz-newsletter-form .amz-btn { white-space: nowrap; }
.amz-newsletter-message {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
}
.amz-newsletter-message.is-success {
	background: rgba(16, 185, 129, .15);
	color: #6ee7b7;
	border: 1px solid rgba(16, 185, 129, .35);
}
.amz-newsletter-message.is-error {
	background: rgba(239, 68, 68, .15);
	color: #fca5a5;
	border: 1px solid rgba(239, 68, 68, .35);
}
.amz-newsletter-message[hidden] { display: none !important; }

/* آرشیو: فرم جستجو تمام‌عرض‌تر */
.amz-archive-hero .amz-search-wrap { margin-left: auto; margin-right: auto; }

/* موبایل: دکمه خروج فقط آیکن */
@media (max-width: 782px) {
	.amz-search-wrap { max-width: 100%; }
}

/* ==========================================================================
   پنل کارآموز — بخش «آزمون‌های من»
   ========================================================================== */
.amz-online-pay-form { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.amz-input-sm { padding: 6px 10px; border-radius: var(--amz-radius-sm); border: 1px solid var(--amz-border); font-size: 13px; }
.amz-online-pay-disabled { margin-top: 8px; font-size: 12px; color: var(--amz-text-light); }

.amz-exam-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}
.amz-exam-card {
	background: #fff;
	border: 1px solid var(--amz-border);
	border-radius: var(--amz-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.amz-exam-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.amz-exam-card-head h3 { margin: 0; font-size: 16px; }
.amz-exam-card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--amz-text-light); }
.amz-exam-start-meta { font-size: 14px; color: var(--amz-text); margin-bottom: 18px; }
.amz-exam-start-meta strong { color: var(--amz-text); }

.amz-back-link { display: inline-block; margin-bottom: 16px; color: var(--amz-primary); text-decoration: none; font-size: 14px; }
.amz-back-link:hover { text-decoration: underline; }

/* زمان‌سنج معکوس — ثابت در بالای صفحه، با اسکرول جابه‌جا نمی‌شود. */
.amz-exam-timer-bar {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 99999;
	background: #2c3338;
	color: #fff;
	text-align: center;
	padding: 12px 10px;
	font-size: 18px;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	transition: background-color .3s ease;
}
.amz-exam-timer-bar .amz-exam-timer-label { font-weight: 400; font-size: 14px; margin-inline-end: 8px; }
.amz-exam-timer-value { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.amz-exam-timer-bar.amz-exam-timer-warning { background: #caa316; color: #2c2200; }
.amz-exam-timer-bar.amz-exam-timer-danger { background: var(--amz-danger); color: #fff; animation: amz-exam-pulse 1s infinite; }
@keyframes amz-exam-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .75; }
}
.amz-exam-panel-with-timer { padding-top: 64px; }
body.admin-bar .amz-exam-timer-bar { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .amz-exam-timer-bar { top: 46px; }
}

.amz-exam-question {
	background: #fff;
	border: 1px solid var(--amz-border);
	border-radius: var(--amz-radius);
	padding: 16px 18px;
	margin-bottom: 14px;
}
.amz-exam-question h4 { margin: 0 0 12px; font-size: 15px; }
.amz-exam-options { display: flex; flex-direction: column; gap: 8px; }
.amz-exam-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--amz-border);
	border-radius: var(--amz-radius-sm);
	cursor: pointer;
	font-size: 14px;
}
.amz-exam-option:hover { background: var(--amz-bg-alt); }
.amz-exam-option input[type="radio"] { flex-shrink: 0; }
.amz-exam-finish-btn { margin-top: 10px; }

.amz-exam-result { background: #fff; border: 1px solid var(--amz-border); border-radius: var(--amz-radius); padding: 20px; max-width: 460px; }
.amz-exam-result-badge { font-size: 16px; padding: 8px 18px; }
.amz-exam-result-meta { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.amz-exam-result-meta li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--amz-border); padding-bottom: 6px; font-size: 14px; }


/* دکمه مشاهده در پنل مالی استاد */
.amz-btn-view {
	display: inline-block;
	background: linear-gradient(135deg, #2E346B 0%, #4A52A0 100%);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .15s, box-shadow .15s;
	box-shadow: 0 2px 8px rgba(46, 52, 107, .25);
}
.amz-btn-view:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(46, 52, 107, .35);
	color: #fff !important;
}

.amz-fin-detail-card {
	background: #fff;
	border: 1px solid #E8E4D9;
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 4px 20px rgba(23, 26, 51, .06);
}
.amz-fin-detail-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #20233A;
}
.amz-fin-detail-meta {
	color: #5B5F78;
	font-size: 14px;
	margin-bottom: 20px;
	line-height: 1.8;
}
.amz-fin-history-table th {
	background: #F8F6F0;
}

/* جداول پنل‌ها در موبایل */
@media (max-width: 768px) {
	.amz-table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.amz-instructor-trial-box form.amz-trial-exam-form {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.amz-instructor-trial-box form.amz-trial-exam-form select,
	.amz-instructor-trial-box form.amz-trial-exam-form button {
		width: 100%;
	}
	.amz-exam-grid {
		grid-template-columns: 1fr !important;
	}
	.amz-fin-detail-card {
		padding: 16px !important;
	}
	.amz-dashboard-layout {
		flex-direction: column !important;
	}
	.amz-dashboard-side {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ماتریس حضور و غیاب — تاریخ‌ها عمودی */
.amz-attendance-matrix th.amz-att-date-col {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	font-size: 11px;
	font-weight: 600;
	padding: 8px 4px;
	min-width: 28px;
	max-width: 36px;
	vertical-align: bottom;
	height: 90px;
}
.amz-attendance-matrix .amz-att-name-col {
	min-width: 120px;
	position: sticky;
	right: 0;
	background: #fff;
	z-index: 2;
}
.amz-attendance-matrix .amz-att-total-col {
	min-width: 48px;
	text-align: center;
	font-weight: 700;
	background: #F8F6F0;
}
.amz-attendance-matrix .amz-attendance-cell {
	text-align: center;
	min-width: 28px;
}
.amz-att-present { color: #0f5132; font-weight: 800; font-size: 16px; }
.amz-att-absent { color: #842029; font-weight: 800; font-size: 16px; }
.amz-att-none { color: #ccc; }

/* داشبورد کارآموز */
.amz-student-dash-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0 0 24px;
}
.amz-student-dash-card {
	background: #fff;
	border: 1px solid #E8E4D9;
	border-radius: 14px;
	padding: 16px 14px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(23,26,51,.05);
}
.amz-student-dash-card .num {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
	color: #2E346B;
}
.amz-student-dash-card .lbl {
	font-size: 12px;
	font-weight: 600;
	color: #5B5F78;
	margin-top: 6px;
}
.amz-student-dash-card.is-green .num { color: #065F46; }
.amz-student-dash-card.is-blue .num { color: #1E40AF; }
.amz-student-dash-card.is-amber .num { color: #92400E; }
.amz-student-dash-card.is-red .num { color: #991B1B; }

.amz-student-week-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.amz-student-week-table th,
.amz-student-week-table td {
	border: 1px solid #E8E4D9;
	padding: 10px 8px;
	text-align: center;
	font-size: 13px;
	vertical-align: top;
}
.amz-student-week-table th {
	background: #F8F6F0;
	font-weight: 700;
}
.amz-student-week-slot {
	display: block;
	background: #DBEAFE;
	color: #1E40AF;
	border-radius: 8px;
	padding: 6px 8px;
	margin: 4px 0;
	font-size: 12px;
	font-weight: 600;
	text-align: right;
}
@media (max-width: 768px) {
	.amz-student-week-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.amz-student-week-table th.amz-att-date-col,
	.amz-attendance-matrix th.amz-att-date-col {
		height: 70px;
		font-size: 10px;
	}
}

/* گزارش حضور و غیاب — خطوط جدول و عرض متناسب */
.amz-attendance-matrix {
	border-collapse: collapse;
	width: auto;
	min-width: 100%;
	table-layout: auto;
}
.amz-attendance-matrix th,
.amz-attendance-matrix td {
	border: 1px solid #c8c5b8 !important;
	padding: 6px 8px;
	white-space: nowrap;
	width: auto;
}
.amz-attendance-matrix th.amz-att-date-col {
	width: 1%;
	padding: 6px 4px;
}
.amz-attendance-matrix .amz-att-name-col {
	width: auto;
	min-width: 100px;
	max-width: 180px;
	white-space: normal;
}
.amz-attendance-matrix .amz-att-total-col {
	width: 1%;
	min-width: 40px;
}
.amz-attendance-table th,
.amz-attendance-table td {
	border: 1px solid #c8c5b8 !important;
}
.amz-session-count-badge {
	display: inline-block;
	margin-right: 10px;
	padding: 4px 12px;
	background: #DBEAFE;
	color: #1E40AF;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	vertical-align: middle;
}
.amz-session-count-inline {
	display: inline-block;
	margin-right: 12px;
	font-size: 13px;
	font-weight: 600;
	color: #1E40AF;
	background: #EFF6FF;
	padding: 6px 12px;
	border-radius: 8px;
}
.amz-attendance-date-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 14px;
}
.amz-student-week-slot {
	display: block;
	border-radius: 10px;
	padding: 8px 10px;
	margin: 4px 0;
	font-size: 12px;
	font-weight: 600;
	text-align: right;
	border: 1px solid rgba(0,0,0,.06);
	transition: transform .12s, box-shadow .12s;
}
.amz-student-week-slot:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* تب‌های وضعیت کلاس استاد — زبانه واضح */
.amz-class-status-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 6px;
	background: #F3F1EA;
	border-radius: 14px;
}
.amz-class-status-tab {
	flex: 1 1 auto;
	min-width: 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: transparent;
	font-family: var(--amz-font, inherit);
	font-size: 14px;
	font-weight: 700;
	color: #5B5F78;
	cursor: pointer;
	transition: .15s ease;
}
.amz-class-status-tab:hover {
	background: #fff;
	color: #2E346B;
}
.amz-class-status-tab.active {
	background: #fff;
	color: #2E346B;
	border-color: #2E346B;
	box-shadow: 0 2px 10px rgba(46,52,107,.12);
}
.amz-class-status-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	background: #E8E4D9;
	font-size: 12px;
	font-weight: 800;
}
.amz-class-status-tab.active .amz-class-status-tab-count {
	background: #2E346B;
	color: #fff;
}

/* کارت‌های کلاس به‌صورت ردیفی */
.amz-instructor-class-rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.amz-instructor-class-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #E8E4D9;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: .15s ease;
	box-shadow: 0 2px 8px rgba(23,26,51,.04);
}
.amz-instructor-class-row:hover {
	border-color: #2E346B;
	box-shadow: 0 6px 18px rgba(46,52,107,.1);
	transform: translateY(-1px);
}
.amz-instructor-class-row-thumb {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
}
.amz-instructor-class-row-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F3F1EA;
	font-size: 28px;
}
.amz-instructor-class-row-body {
	flex: 1;
	min-width: 0;
}
.amz-instructor-class-row-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.amz-instructor-class-row-top h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #171A33;
}
.amz-instructor-class-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	font-size: 13px;
	color: #5B5F78;
}
.amz-instructor-class-row-action {
	flex-shrink: 0;
	font-weight: 700;
	color: #2E346B;
	font-size: 13px;
}
@media (max-width: 600px) {
	.amz-instructor-class-row {
		flex-wrap: wrap;
	}
	.amz-instructor-class-row-action {
		width: 100%;
		text-align: left;
	}
}

/* کارت‌های داشبورد کارآموز — رنگی */
.amz-student-dash-card.is-amber {
	background: linear-gradient(145deg, #FEF3C7, #FDE68A);
	border-color: #F59E0B;
}
.amz-student-dash-card.is-amber .num,
.amz-student-dash-card.is-amber .lbl { color: #92400E; }
.amz-student-dash-card.is-blue {
	background: linear-gradient(145deg, #DBEAFE, #93C5FD);
	border-color: #3B82F6;
}
.amz-student-dash-card.is-blue .num,
.amz-student-dash-card.is-blue .lbl { color: #1E3A8A; }
.amz-student-dash-card.is-green {
	background: linear-gradient(145deg, #D1FAE5, #6EE7B7);
	border-color: #10B981;
}
.amz-student-dash-card.is-green .num,
.amz-student-dash-card.is-green .lbl { color: #065F46; }
.amz-student-dash-card.is-red {
	background: linear-gradient(145deg, #FEE2E2, #FCA5A5);
	border-color: #EF4444;
}
.amz-student-dash-card.is-red .num,
.amz-student-dash-card.is-red .lbl { color: #991B1B; }
.amz-student-dash-card.is-purple {
	background: linear-gradient(145deg, #EDE9FE, #C4B5FD);
	border-color: #8B5CF6;
}
.amz-student-dash-card.is-purple .num,
.amz-student-dash-card.is-purple .lbl { color: #5B21B6; }

.amz-my-course-card-highlight {
	outline: 3px solid #3B82F6;
	box-shadow: 0 0 0 6px rgba(59,130,246,.2);
	transition: outline .3s, box-shadow .3s;
}

.amz-instructor-class-row-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--amz-primary, #C98A12);
	color: #fff !important;
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(201,138,18,.25);
}
.amz-instructor-class-row:hover .amz-instructor-class-row-action {
	filter: brightness(1.05);
}

/* ========== استایل تب منوی پنل (استاد / کارآموز) ========== */
.amz-dashboard-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.amz-dashboard-menu li {
	margin: 0;
	padding: 0;
}
.amz-dashboard-menu li a,
.amz-dashboard-menu .amz-section-tab-btn {
	display: block;
	padding: 12px 18px;
	border-radius: 999px; /* مستطیل با اضلاع عمودی کاملاً گرد */
	font-size: 14px;
	font-weight: 600;
	color: var(--amz-text, #333);
	background: transparent;
	border: 2px solid transparent;
	text-decoration: none;
	transition:
		background .28s ease,
		color .28s ease,
		box-shadow .28s ease,
		transform .28s cubic-bezier(.34,1.56,.64,1),
		border-color .28s ease;
}
.amz-dashboard-menu li a:hover,
.amz-dashboard-menu .amz-section-tab-btn:hover {
	background: rgba(201,138,18,.08);
	color: var(--amz-primary, #C98A12);
}
.amz-dashboard-menu li.active a,
.amz-dashboard-menu li.active .amz-section-tab-btn,
.amz-dashboard-menu .amz-section-tab-btn.active {
	background: #fff !important;
	color: var(--amz-primary, #C98A12) !important;
	border-color: rgba(201,138,18,.25) !important;
	box-shadow:
		0 8px 24px rgba(23,26,51,.12),
		0 2px 6px rgba(201,138,18,.15) !important;
	transform: translateY(-2px) scale(1.02);
	font-weight: 800;
}

/* تب‌های وضعیت کلاس استاد — همان زبان طراحی */
.amz-class-status-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 8px;
	background: #F3F1EA;
	border-radius: 16px;
}
.amz-class-status-tab {
	flex: 1 1 auto;
	min-width: 130px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #5B5F78;
	cursor: pointer;
	transition:
		background .28s ease,
		color .28s ease,
		box-shadow .28s ease,
		transform .28s cubic-bezier(.34,1.56,.64,1),
		border-color .28s ease;
}
.amz-class-status-tab:hover {
	background: rgba(255,255,255,.7);
	color: #2E346B;
}
.amz-class-status-tab.active {
	background: #fff;
	color: var(--amz-primary, #C98A12);
	border-color: rgba(201,138,18,.3);
	box-shadow:
		0 10px 28px rgba(23,26,51,.14),
		0 3px 8px rgba(201,138,18,.18);
	transform: translateY(-2px) scale(1.03);
}
.amz-class-status-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: #E8E4D9;
	font-size: 12px;
	font-weight: 800;
	transition: background .25s, color .25s;
}
.amz-class-status-tab.active .amz-class-status-tab-count {
	background: var(--amz-primary, #C98A12);
	color: #fff;
}

/* تب وضعیت دوره‌های کارآموز */
.tam-dashboard-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding: 8px;
	background: #F3F1EA;
	border-radius: 16px;
	border-bottom: none;
}
.tam-tab-btn {
	flex: 1 1 auto;
	min-width: 120px;
	padding: 11px 16px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #5B5F78;
	cursor: pointer;
	transition:
		background .28s ease,
		color .28s ease,
		box-shadow .28s ease,
		transform .28s cubic-bezier(.34,1.56,.64,1);
}
.tam-tab-btn:hover {
	background: rgba(255,255,255,.7);
}
.tam-tab-btn.active {
	background: #fff;
	color: var(--amz-primary, #C98A12);
	border-color: rgba(201,138,18,.3);
	box-shadow:
		0 10px 28px rgba(23,26,51,.14),
		0 3px 8px rgba(201,138,18,.18);
	transform: translateY(-2px) scale(1.02);
}

/* انیمیشن پنل تب */
.amz-section-tab-panel,
.tam-tab-panel,
.amz-class-status-panel {
	animation: none;
}
.amz-section-tab-panel.active,
.tam-tab-panel.active,
.amz-class-status-panel.active {
	animation: amzTabSlideIn .4s cubic-bezier(.22,1,.36,1);
}
@keyframes amzTabSlideIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.amz-student-week-slot {
	cursor: default;
}
.amz-student-week-slot:hover {
	transform: none;
	box-shadow: none;
}

/* ========== همه دکمه‌ها کپسولی ========== */
.amz-btn,
button.amz-btn,
a.amz-btn,
.tam-btn,
button.tam-btn,
.amz-btn-auth,
.amz-btn-view,
.amz-back-link,
.amz-instructor-class-row-action,
button[type="submit"].amz-btn,
.amz-online-pay-form button,
.amz-trial-exam-form button,
.amz-attendance-form button,
.amz-complete-class-form button {
	border-radius: 999px !important;
}

.amz-btn-auth {
	border-radius: 999px !important;
	min-width: 100px;
	padding: 10px 22px;
}

.amz-btn-view {
	border-radius: 999px !important;
	padding: 8px 16px;
	background: var(--amz-primary, #C98A12);
	color: #fff !important;
	border: none;
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(201,138,18,.28);
}
.amz-btn-view:hover {
	filter: brightness(1.08);
	color: #fff !important;
}

.amz-back-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 999px !important;
	background: #F3F1EA;
	font-weight: 700;
	font-size: 13px;
	color: #2E346B;
	text-decoration: none;
	margin-bottom: 16px;
	transition: box-shadow .25s, transform .25s;
}
.amz-back-link:hover {
	box-shadow: 0 6px 16px rgba(23,26,51,.1);
	transform: translateY(-1px);
}

/* کلید ورود به کلاس — قابل کلیک و واضح */
.amz-instructor-class-row {
	cursor: pointer;
	position: relative;
	text-decoration: none !important;
	color: inherit;
}
.amz-instructor-class-row-action {
	pointer-events: none; /* کلیک روی کل ردیف */
	border-radius: 999px !important;
	padding: 10px 20px !important;
	background: linear-gradient(135deg, #D4A017, #C98A12) !important;
	color: #fff !important;
	font-weight: 800 !important;
	font-size: 13px !important;
	box-shadow: 0 6px 18px rgba(201,138,18,.35) !important;
	border: none !important;
}

/* تب فعال طلایی برجسته */
.amz-dashboard-menu li.active a,
.amz-dashboard-menu li.active .amz-section-tab-btn,
.amz-dashboard-menu .amz-section-tab-btn.active {
	background: linear-gradient(135deg, #E8B84A, #C98A12) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow:
		0 10px 28px rgba(201,138,18,.4),
		0 4px 10px rgba(23,26,51,.12) !important;
	transform: translateY(-3px) scale(1.03);
	font-weight: 800;
}

.amz-class-status-tab.active,
.tam-tab-btn.active {
	background: linear-gradient(135deg, #E8B84A, #C98A12) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow:
		0 12px 32px rgba(201,138,18,.42),
		0 4px 12px rgba(23,26,51,.1) !important;
	transform: translateY(-3px) scale(1.04);
}
.amz-class-status-tab.active .amz-class-status-tab-count {
	background: rgba(255,255,255,.25) !important;
	color: #fff !important;
}

/* موشن پنل */
@keyframes amzTabPop {
	0% { opacity: 0; transform: translateY(16px) scale(.96); }
	60% { opacity: 1; transform: translateY(-3px) scale(1.01); }
	100% { opacity: 1; transform: translateY(0) scale(1); }
}
.amz-section-tab-panel.active,
.tam-tab-panel.active,
.amz-class-status-panel.active {
	animation: amzTabPop .45s cubic-bezier(.22,1.2,.36,1) !important;
}

/* ========== سیستم طراحی یکپارچه پنل‌ها ========== */

/* سایدبار */
.amz-dashboard-side {
	background: linear-gradient(180deg, #FFFCF7 0%, #F8F4EC 100%);
	border: 1px solid #E8E0D0;
	border-radius: 20px;
	padding: 28px 20px;
	box-shadow: 0 8px 28px rgba(23,26,51,.06);
}
.amz-dashboard-user {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding-bottom: 22px;
	margin-bottom: 12px;
	border-bottom: 1px solid #E8E0D0;
}
.amz-dashboard-user-avatar img,
.amz-dashboard-user img {
	border-radius: 50%;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba(201,138,18,.2);
	margin-bottom: 6px;
}
.amz-dashboard-user strong {
	font-size: 16px;
	color: #171A33;
}
.amz-dashboard-role {
	display: inline-block;
	margin-top: 4px;
	padding: 4px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #E8B84A, #C98A12);
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
}

/* هایلایت زوج و فرد ملایم */
.amz-alt-even,
.amz-panel-item.amz-alt-even {
	background: #FFFDF9 !important;
	border-color: #EDE6D8 !important;
}
.amz-alt-odd,
.amz-panel-item.amz-alt-odd {
	background: #F3F7FB !important;
	border-color: #D8E4F0 !important;
}

/* آیتم‌های پنل */
.amz-panel-item {
	border: 1px solid #E8E4D9;
	border-radius: 16px;
	padding: 18px 20px;
	margin-bottom: 14px;
	transition: box-shadow .25s, transform .2s;
}
.amz-panel-item:hover {
	box-shadow: 0 8px 24px rgba(23,26,51,.08);
}
.amz-panel-item-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.amz-panel-item-title h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}
.amz-panel-thumb {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.amz-panel-thumb-ph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #F3F1EA, #E8E4D9);
	font-size: 22px;
}

/* کارت دوره کارآموز */
.amz-my-course-card {
	border-radius: 16px;
	padding: 18px 20px;
	margin-bottom: 14px;
	border: 1px solid #E8E4D9;
}
.amz-my-course-card.amz-alt-even {
	background: #FFFDF9;
}
.amz-my-course-card.amz-alt-odd {
	background: #F3F7FB;
}
.amz-my-course-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

/* مالی استاد — کارت */
.amz-fin-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.amz-fin-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-radius: 16px;
	padding: 16px 18px;
	border: 1px solid #E8E4D9;
}
.amz-fin-card-main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}
.amz-fin-card-body h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
}
.amz-fin-card-meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: #5B5F78;
}
.amz-fin-card-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.amz-fin-card-amount {
	font-size: 16px;
	color: #065F46;
}
.amz-fin-grand-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-radius: 16px;
	border: 2px solid rgba(201,138,18,.3);
	font-weight: 700;
}
.amz-fin-grand-total strong {
	font-size: 18px;
	color: #C98A12;
}

/* پروفایل مدرن */
.amz-profile-modern {
	max-width: 720px;
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
}
.amz-profile-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	margin-bottom: 18px;
	border-radius: 20px;
	background: linear-gradient(135deg, #FBF3E0, #F5E6C8);
	border: 1px solid #E8D5A8;
	box-shadow: 0 8px 24px rgba(201,138,18,.12);
}
.amz-profile-hero-avatar img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.amz-profile-hero-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.amz-profile-hero-text strong {
	font-size: 20px;
	color: #171A33;
}
.amz-profile-hero-text span {
	font-size: 13px;
	color: #5B5F78;
}
.amz-profile-section {
	border-radius: 16px;
	padding: 20px 22px;
	margin-bottom: 14px;
	border: 1px solid #E8E4D9;
}
.amz-profile-subhead {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 800;
	color: #2E346B;
	padding-bottom: 10px;
	border-bottom: 1px dashed #E0DCD0;
}
.amz-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px 16px;
}
.amz-profile-grid label,
.amz-profile-full {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3D4160;
}
.amz-profile-grid input,
.amz-profile-grid select,
.amz-profile-full textarea,
.amz-profile-section input,
.amz-profile-section select,
.amz-profile-section textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #E0DCD0;
	border-radius: 12px;
	font-size: 14px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.amz-profile-grid input:focus,
.amz-profile-grid select:focus,
.amz-profile-full textarea:focus {
	outline: none;
	border-color: #C98A12;
	box-shadow: 0 0 0 3px rgba(201,138,18,.15);
}
.amz-profile-full {
	margin-top: 14px;
}
.amz-profile-actions {
	margin-top: 8px;
	padding: 8px 0 0;
}
.amz-profile-avatar-upload {
	flex: 1;
}

/* جدول حضور داشبورد — زوج فرد */
.amz-dashboard-content .amz-table tbody tr:nth-child(even) {
	background: #FFFDF9;
}
.amz-dashboard-content .amz-table tbody tr:nth-child(odd) {
	background: #F3F7FB;
}

/* محتوای پنل */
.amz-dashboard-content {
	background: #fff;
	border-radius: 20px;
	padding: 24px 26px;
	border: 1px solid #EDE8DC;
	box-shadow: 0 4px 20px rgba(23,26,51,.04);
	min-width: 0;
}

/* ریسپانسیو پنل */
@media (max-width: 900px) {
	.amz-dashboard-layout {
		grid-template-columns: 1fr !important;
		gap: 18px;
	}
	.amz-dashboard-side {
		position: static !important;
		padding: 20px 16px;
	}
	.amz-dashboard-menu {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
	.amz-dashboard-menu li {
		flex: 1 1 auto;
	}
	.amz-dashboard-menu li a {
		text-align: center;
		font-size: 13px;
		padding: 10px 14px;
	}
	.amz-dashboard-content {
		padding: 16px;
	}
	.amz-profile-hero {
		flex-direction: column;
		text-align: center;
	}
	.amz-fin-card {
		flex-direction: column;
		align-items: flex-start;
	}
	.amz-fin-card-side {
		align-items: flex-start;
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
	}
	.amz-panel-thumb {
		width: 44px;
		height: 44px;
	}
}

/* ========== رنگ زمینه کادرهای پنل ========== */
.amz-dashboard-content,
.amz-dashboard-side,
.amz-panel-item,
.amz-my-course-card,
.amz-exam-card,
.amz-fin-card,
.amz-fin-detail-card,
.amz-fin-grand-total,
.amz-profile-section,
.amz-profile-form-box,
.amz-profile-modern .amz-profile-section,
.amz-instructor-trial-box,
.amz-attendance-box,
.amz-complete-class-box,
.amz-instructor-class-row,
.amz-student-dash-card,
.amz-dash-stat-box,
.amz-fin-detail-card,
.tam-timetable-section,
.amz-dashboard-mobile {
	background-color: #FFFaf3 !important;
	background: #FFFaf3 !important;
}

.amz-alt-even,
.amz-panel-item.amz-alt-even,
.amz-my-course-card.amz-alt-even {
	background: #FFF8EC !important;
	background-color: #FFF8EC !important;
}
.amz-alt-odd,
.amz-panel-item.amz-alt-odd,
.amz-my-course-card.amz-alt-odd {
	background: #F0F6FC !important;
	background-color: #F0F6FC !important;
}

.amz-profile-hero {
	background: linear-gradient(135deg, #FFF3D6, #F5E0B0) !important;
}

.amz-dashboard-side {
	background: linear-gradient(180deg, #FFF9F0 0%, #F5EDE0 100%) !important;
}

/* ========== سایه تمام کلیدهای پنل ========== */
.amz-dashboard-layout .amz-btn,
.amz-dashboard-layout button.amz-btn,
.amz-dashboard-layout a.amz-btn,
.amz-dashboard-layout .tam-btn,
.amz-dashboard-layout button[type="submit"],
.amz-dashboard-layout .amz-btn-view,
.amz-dashboard-layout .amz-btn-primary,
.amz-dashboard-layout .amz-btn-outline,
.amz-dashboard-layout .amz-btn-sm,
.amz-dashboard-layout .amz-instructor-class-row-action,
.amz-dashboard-layout .amz-back-link {
	box-shadow: 0 4px 14px rgba(23, 26, 51, .14), 0 2px 6px rgba(201, 138, 18, .12) !important;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.amz-dashboard-layout .amz-btn:hover,
.amz-dashboard-layout button.amz-btn:hover,
.amz-dashboard-layout a.amz-btn:hover,
.amz-dashboard-layout .amz-btn-view:hover,
.amz-dashboard-layout .amz-btn-primary:hover,
.amz-dashboard-layout .amz-instructor-class-row-action:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(23, 26, 51, .18), 0 4px 12px rgba(201, 138, 18, .2) !important;
}
.amz-dashboard-layout .amz-btn-primary,
.amz-dashboard-layout .amz-btn-view {
	box-shadow: 0 6px 18px rgba(201, 138, 18, .32) !important;
}

/* ========== برچسب آزمون‌های من — اندازه متعادل ========== */
.amz-exam-card .amz-badge,
.amz-exam-card-head .amz-badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 3px 10px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	border-radius: 999px !important;
	white-space: nowrap;
	max-width: 100%;
	flex-shrink: 0;
	margin: 0 !important;
	height: auto !important;
	min-height: 0 !important;
}
.amz-exam-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.amz-exam-card-head .amz-panel-item-title {
	flex: 1;
	min-width: 0;
}
.amz-exam-card-head .amz-panel-item-title h3 {
	font-size: 15px;
	font-weight: 800;
}
.amz-exam-card-head > .amz-badge,
.amz-exam-card-head .amz-badge + .amz-badge {
	margin-top: 0;
}
/* ردیف برچسب‌های وضعیت کنار هم */
.amz-exam-card-head {
	row-gap: 8px;
}
.amz-exam-card .amz-badge-completed {
	background: #D1FAE5 !important;
	color: #065F46 !important;
}
.amz-exam-card .amz-badge-cancelled {
	background: #FEE2E2 !important;
	color: #991B1B !important;
}
.amz-exam-card .amz-badge-pending {
	background: #FEF3C7 !important;
	color: #92400E !important;
}
.amz-exam-card .amz-badge-in_progress {
	background: #DBEAFE !important;
	color: #1E40AF !important;
}

/* ========== کارت‌های داشبورد استاد — رنگی ========== */
.amz-dash-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}
.amz-dash-stat-box {
	border-radius: 16px !important;
	padding: 20px 16px !important;
	text-align: center;
	border: 1px solid transparent !important;
	box-shadow: 0 6px 18px rgba(23,26,51,.08);
	transition: transform .2s, box-shadow .2s;
}
.amz-dash-stat-box:nth-child(1) {
	background: linear-gradient(145deg, #FEF3C7, #FDE68A) !important;
	border-color: #F59E0B !important;
}
.amz-dash-stat-box:nth-child(1) .amz-dash-stat-num,
.amz-dash-stat-box:nth-child(1) .amz-dash-stat-label { color: #92400E !important; }

.amz-dash-stat-box:nth-child(2) {
	background: linear-gradient(145deg, #DBEAFE, #93C5FD) !important;
	border-color: #3B82F6 !important;
}
.amz-dash-stat-box:nth-child(2) .amz-dash-stat-num,
.amz-dash-stat-box:nth-child(2) .amz-dash-stat-label { color: #1E3A8A !important; }

.amz-dash-stat-box:nth-child(3) {
	background: linear-gradient(145deg, #D1FAE5, #6EE7B7) !important;
	border-color: #10B981 !important;
}
.amz-dash-stat-box:nth-child(3) .amz-dash-stat-num,
.amz-dash-stat-box:nth-child(3) .amz-dash-stat-label { color: #065F46 !important; }

.amz-dash-stat-box:nth-child(4) {
	background: linear-gradient(145deg, #EDE9FE, #C4B5FD) !important;
	border-color: #8B5CF6 !important;
}
.amz-dash-stat-box:nth-child(4) .amz-dash-stat-num,
.amz-dash-stat-box:nth-child(4) .amz-dash-stat-label { color: #5B21B6 !important; }

.amz-dash-stat-box:nth-child(5) {
	background: linear-gradient(145deg, #CFFAFE, #67E8F9) !important;
	border-color: #06B6D4 !important;
}
.amz-dash-stat-box:nth-child(5) .amz-dash-stat-num,
.amz-dash-stat-box:nth-child(5) .amz-dash-stat-label { color: #155E75 !important; }

.amz-dash-stat-box:nth-child(6) {
	background: linear-gradient(145deg, #FCE7F3, #F9A8D4) !important;
	border-color: #EC4899 !important;
}
.amz-dash-stat-box:nth-child(6) .amz-dash-stat-num,
.amz-dash-stat-box:nth-child(6) .amz-dash-stat-label { color: #9D174D !important; }

.amz-dash-stat-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(23,26,51,.12);
}
.amz-dash-stat-num {
	display: block;
	font-size: 28px !important;
	font-weight: 800;
	line-height: 1.1;
}
.amz-dash-stat-label {
	display: block;
	margin-top: 8px;
	font-size: 12.5px !important;
	font-weight: 600;
}

/* کارت‌های داشبورد کارآموز هم سایه */
.amz-student-dash-card {
	box-shadow: 0 6px 18px rgba(23,26,51,.08) !important;
	border-radius: 16px !important;
}
.amz-exam-card .amz-badge-trial {
	background: #0284C7 !important;
	color: #fff !important;
	padding: 3px 10px !important;
	font-size: 11px !important;
}

/* کلاس‌های فعال داشبورد استاد */
.amz-dash-class-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.amz-dash-class-card {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none !important;
	color: inherit;
	padding: 16px 18px;
	border-radius: 16px;
	border: 1px solid #E8E4D9;
	transition: box-shadow .2s, transform .2s;
}
.amz-dash-class-card:hover {
	box-shadow: 0 10px 28px rgba(23,26,51,.1);
	transform: translateY(-2px);
}
.amz-dash-class-card-body {
	flex: 1;
	min-width: 0;
}
.amz-dash-class-card-body h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
}
.amz-dash-class-card-body p {
	margin: 0 0 8px;
	font-size: 13px;
	color: #5B5F78;
}
.amz-dash-class-students {
	display: inline-block;
	margin-right: 8px;
	font-size: 12px;
	color: #5B5F78;
}

/* سایه قوی‌تر ورود به کلاس */
.amz-instructor-class-row-action,
.amz-dash-class-card .amz-instructor-class-row-action {
	box-shadow: 0 6px 20px rgba(201,138,18,.4), 0 2px 8px rgba(23,26,51,.12) !important;
	pointer-events: none;
}

/* ردیف‌های حضور غیاب زوج/فرد در جزئیات کلاس */
.amz-attendance-table tbody tr.amz-alt-even td {
	background: #FFF8EC !important;
}
.amz-attendance-table tbody tr.amz-alt-odd td {
	background: #F0F6FC !important;
}

/* کارت حضور و غیاب کارآموز */
.amz-att-status-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.amz-att-status-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 18px;
	border-radius: 16px;
}
.amz-att-status-main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1;
}
.amz-att-status-main h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
}
.amz-att-status-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.amz-att-present {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #D1FAE5;
	color: #065F46;
	font-size: 13px;
	font-weight: 700;
}
.amz-att-absent {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #FEE2E2;
	color: #991B1B;
	font-size: 13px;
	font-weight: 700;
}

/* برنامه هفتگی کارآموز شبیه استاد */
.amz-student-timetable-wrap {
	margin: 16px 0 24px;
	padding: 18px 16px;
	border-radius: 16px;
	border: 1px solid #E8E4D9;
	overflow-x: auto;
}
.amz-student-timetable-wrap > h2 {
	margin: 0 0 14px !important;
	font-size: 18px !important;
}
.amz-student-week-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 6px;
	min-width: 640px;
}
.amz-student-week-table th {
	background: #2E346B;
	color: #fff;
	padding: 10px 8px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 10px;
	text-align: center;
}
.amz-student-week-table td {
	background: #F8F6F0;
	vertical-align: top;
	padding: 8px;
	border-radius: 10px;
	min-width: 110px;
}
.amz-student-week-slot {
	display: block;
	padding: 10px 10px;
	border-radius: 10px;
	margin-bottom: 6px;
	font-size: 12px;
	line-height: 1.45;
	border: 1px solid rgba(0,0,0,.06);
	box-shadow: 0 2px 8px rgba(23,26,51,.06);
}
.amz-student-week-slot strong {
	font-size: 13px;
	display: block;
	margin-bottom: 2px;
}

/* موبایل در داشبورد */
.amz-dashboard-mobile {
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: 16px;
	border: 1px solid #E8E4D9;
}
.amz-dashboard-mobile h3 {
	margin: 0 0 12px;
	font-size: 15px;
}

@media (max-width: 700px) {
	.amz-att-status-card,
	.amz-dash-class-card {
		flex-direction: column;
		align-items: flex-start;
	}
	.amz-att-status-stats {
		width: 100%;
	}
}

/* برنامه هفتگی کارآموز — زمینه روشن‌تر */
.amz-student-timetable-wrap {
	background: #FFFef9 !important;
	background-color: #FFFef9 !important;
}
.amz-student-week-table td {
	background: #FFFcf5 !important;
}
.amz-student-week-table th {
	background: #3D4580 !important;
}

/* اطمینان از نمایش پنل تب فعال */
.amz-section-tab-panel {
	display: none !important;
}
.amz-section-tab-panel.active {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}
.tam-tab-panel {
	display: none !important;
}
.tam-tab-panel.active {
	display: block !important;
}

/* تب فعال — سفید با حاشیه طلایی برجسته محدب */
.amz-dashboard-menu li.active a,
.amz-dashboard-menu li.active .amz-section-tab-btn,
.amz-dashboard-menu .amz-section-tab-btn.active,
.amz-class-status-tab.active,
.tam-tab-btn.active {
	background: #ffffff !important;
	color: #C98A12 !important;
	border: 2px solid #C98A12 !important;
	box-shadow:
		0 8px 0 rgba(201,138,18,.18),
		0 12px 28px rgba(201,138,18,.22),
		inset 0 1px 0 rgba(255,255,255,.95),
		inset 0 -3px 8px rgba(201,138,18,.08) !important;
	transform: translateY(-3px) scale(1.03);
	font-weight: 800;
	text-shadow: none !important;
}
.amz-class-status-tab.active .amz-class-status-tab-count {
	background: #C98A12 !important;
	color: #fff !important;
}

/* خط جداکننده سایدبار واضح‌تر */
.amz-dashboard-user {
	border-bottom: 2px solid #C98A12 !important;
	padding-bottom: 22px !important;
	margin-bottom: 18px !important;
	position: relative;
}
.amz-dashboard-user::after {
	content: '';
	display: block;
	position: absolute;
	bottom: -2px;
	right: 20%;
	left: 20%;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, transparent, #E8B84A, #C98A12, #E8B84A, transparent);
	box-shadow: 0 2px 8px rgba(201,138,18,.35);
}

/* سیستم پیام */
.amz-msg-panel { margin-top: 8px; }
.amz-msg-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 16px;
	min-height: 480px;
}
.amz-msg-sidebar {
	background: #FFF9F0;
	border: 1px solid #E8E0D0;
	border-radius: 16px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	max-height: 70vh;
}
.amz-msg-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}
.amz-msg-sidebar-head h2 {
	margin: 0;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.amz-msg-badge,
.amz-msg-nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #DC2626;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}
.amz-msg-thread-list {
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.amz-msg-thread-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	text-align: right;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	transition: .15s;
}
.amz-msg-thread-item:hover,
.amz-msg-thread-item.is-active {
	border-color: #C98A12;
	box-shadow: 0 4px 14px rgba(201,138,18,.15);
}
.amz-msg-thread-item.has-unread {
	background: #FFF3D6;
}
.amz-msg-thread-title {
	font-weight: 700;
	font-size: 13px;
	color: #171A33;
}
.amz-msg-thread-preview {
	font-size: 12px;
	color: #6B7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.amz-msg-main {
	background: #FFFaf3;
	border: 1px solid #E8E0D0;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	min-height: 480px;
	max-height: 70vh;
}
.amz-msg-empty-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9CA3AF;
}
.amz-msg-conversation {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}
.amz-msg-conv-head {
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid #E8E0D0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.amz-msg-bubbles {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 8px 4px;
}
.amz-msg-bubble {
	max-width: 78%;
	padding: 10px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #E8E4D9;
	align-self: flex-start;
}
.amz-msg-bubble.is-mine {
	align-self: flex-end;
	background: linear-gradient(145deg, #FFF3D6, #F5E0B0);
	border-color: #E8D5A8;
}
.amz-msg-bubble-meta {
	font-size: 11px;
	color: #6B7280;
	margin-bottom: 4px;
}
.amz-msg-bubble-body {
	font-size: 14px;
	line-height: 1.55;
	color: #171A33;
	white-space: pre-wrap;
}
.amz-msg-ch {
	background: #0284C7;
	color: #fff;
	padding: 1px 6px;
	border-radius: 6px;
	font-size: 10px;
	margin-right: 4px;
}
.amz-msg-compose {
	display: flex;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #E8E0D0;
	margin-top: 8px;
}
.amz-msg-compose textarea {
	flex: 1;
	border: 1.5px solid #E0DCD0;
	border-radius: 12px;
	padding: 10px 12px;
	font-family: inherit;
	resize: none;
}
.amz-msg-new-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
}
.amz-msg-new-form input,
.amz-msg-new-form textarea,
.amz-msg-new-form select {
	padding: 10px 12px;
	border: 1.5px solid #E0DCD0;
	border-radius: 12px;
	font-family: inherit;
}
.amz-msg-new-actions {
	display: flex;
	gap: 8px;
}
@media (max-width: 800px) {
	.amz-msg-layout {
		grid-template-columns: 1fr;
	}
	.amz-msg-sidebar {
		max-height: 240px;
	}
}
