/* ═══════════════════════════════════════════════════════
   فهرست بخش‌های این فایل (برای پیدا کردن سریع‌تر - Ctrl+F کن)
   ───────────────────────────────────────────────────────
   ریست پایه / فونت / آیکون‌ها ......... (بالای فایل، قبل از HEADER)
   HEADER ................................ نوار بالای صفحه
   CONTENT AREA ........................... محفظه‌ی اصلی صفحات
   BOTTOM NAV ............................. نوار پایین (ناوبری)
   SHARED CARD ............................ کارت عمومی مشترک
   PAGE 0: HOME ........................... صفحه‌ی اصلی
   WELCOME / FIRST-RUN SCREEN ............. صفحه‌ی خوش‌آمدگویی اول اجرا
   PAGE: ORDER ............................ سبد خرید و ثبت سفارش
   PAGE 1: EDUCATION ....................... صفحه‌ی آموزش (مقالات)
   ACCOUNT ENTRY ........................... فرم ثبت‌نام/ورود
   SIDE MENU ............................... منوی کشویی همبرگری
   PAGE 2: PRODUCTS ........................ صفحه‌ی محصولات
   PAGE 3: SESSIONS ......................... صفحه‌ی ثبت جلسات
   MODAL & TOAST ............................ مودال‌های عمومی و پیام‌های toast
   Responsive ............................... کوئری‌های رسپانسیو
   CLUB ...................................... باشگاه مشتریان
   FLOATING CHATBOT WIDGET ................... ویجت چت‌بات شناور
   (بخش انتهایی) ............................. سایر موارد متفرقه
   رنگ‌های برند در css/colors.css تعریف شدن، نه این فایل.
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'IranSansFanum';
  src: local('IRANSansFaNum'), local('IRANSans(FaNum)'), local('B Nazanin');
  font-weight: 900;
  font-style: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* جلوگیری از سرریز افقی هر تصویری که ممکنه از عرض کانتینرش بزرگ‌تر رندر بشه */
img { max-width: 100%; height: auto; display: block; }

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}

:root {
  /* رنگ‌ها به css/colors.css منتقل شدن — این‌جا فقط اندازه‌های ثابت غیررنگی می‌مونن */
  --nav-h-base: 72px;
  --nav-h: calc(var(--nav-h-base) + env(safe-area-inset-bottom, 0px));
  --header-h: 50px;
}

/* رنگ‌های حالت تاریک به css/colors.css منتقل شدن */
html[data-theme="dark"] body {
  background: var(--gray-pale);
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .app-card {
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] img {
  opacity: 0.92;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--gray-pale);
  color: var(--text);
  height: 100vh; /* پشتیبان برای مرورگرهای قدیمی‌تر (مثل iOS Safari زیر ۱۵.۴) که dvh رو نمی‌شناسن */
  height: 100dvh;
  overflow: hidden;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
}

/* ═══════ HEADER ═══════ */
.app-header {
  background: var(--sky);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-shadow: 0 2px 12px rgba(14,118,188,0.35);
  flex-shrink: 0;
  position: relative;
}

.header-search-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
}
.header-search-btn:active {
  background: rgba(255,255,255,0.4);
}

.header-notif-btn {
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
}
.header-notif-btn:active {
  background: rgba(255,255,255,0.4);
}

.header-menu-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.header-menu-btn:active {
  background: rgba(255,255,255,0.4);
}
.header-notif-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--sky);
}
.header-notif-badge.hidden { display: none; }

.logo-text {
  font-family: 'IranSansFanum', 'B Nazanin', 'Tahoma', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.logo-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  display: block;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  white-space: nowrap;
}

/* ═══════ CONTENT AREA ═══════ */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.page {
  display: none;
  min-height: 100%;
  padding: 20px 16px calc(var(--nav-h) + 20px);
  animation: fadeIn 0.25s ease;
}

.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════ BOTTOM NAV ═══════ */
.bottom-nav {
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--white);
  display: flex;
  align-items: stretch;
  border-top: 2.5px solid var(--sky);
  box-shadow: 0 -4px 16px rgba(74,173,220,0.18);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: all 0.2s;
  color: var(--gray-light);
  position: relative;
}

.nav-btn.active {
  color: var(--sky-dark);
  background: var(--sky-light);
  border-radius: 0;
}

.nav-btn.active .nav-icon {
  transform: translateY(-2px) scale(1.12);
}

.nav-btn.active .nav-label {
  font-weight: 800;
}

.nav-icon {
  font-size: 1.45rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.22s, box-shadow 0.22s;
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ═══════ SHARED CARD ═══════ */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(36,52,71,0.10), 0 1px 3px rgba(36,52,71,0.06);
  border: 1px solid rgba(36,52,71,0.06);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sky-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sky-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-nav.hidden { display: none; }

/* ═══════ PAGE 0: HOME ═══════ */
.home-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-dark);
}
.home-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 180px;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(2px) brightness(1.4);
  opacity: 0.35;
  animation: spinLogo 18s linear infinite;
}
@keyframes spinLogo {
  from { transform: scale(1.8) rotate(0deg); }
  to { transform: scale(1.8) rotate(360deg); }
}
.home-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, rgba(123,184,208,0.55), rgba(13,79,130,0.78));
}
.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 18px;
}
.home-logo-img {
  display: block;
  margin: 0 auto 8px auto;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: white;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  object-fit: contain;
}
.home-title {
  font-family: 'IranSansFanum', 'B Nazanin', 'Tahoma', sans-serif;
  font-weight: 900;
  font-size: 1.02rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 5px;
  line-height: 1.3;
}
.home-subtitle {
  font-size: clamp(0.5rem, 2.6vw, 0.6rem);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.home-about-card { padding: 16px; }
.home-about-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
  text-align: justify;
}
.home-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.home-stat-box {
  background: var(--sky-pale);
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
}
.home-stat-num { font-size: 1.15rem; font-weight: 800; color: var(--sky-dark); margin-bottom: 3px; }
.home-stat-lbl { font-size: 0.65rem; color: var(--text-muted); }

.home-brands-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.home-brands-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.home-brands-track-outer {
  overflow: hidden;
  position: relative;
  direction: ltr;
}
.home-brands-track-outer::before,
.home-brands-track-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}
.home-brands-track-outer::before {
  right: 0;
  background: linear-gradient(to left, var(--white), rgba(255,255,255,0));
}
.home-brands-track-outer::after {
  left: 0;
  background: linear-gradient(to right, var(--white), rgba(255,255,255,0));
}
.home-brands-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: brandsScroll 22s linear infinite;
  pointer-events: none;
}
.home-brand-logo {
  height: 58px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stories-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.story-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.story-ring.seen {
  background: var(--gray-light);
}
.story-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--white);
  display: block;
}
.story-label {
  font-size: 0.65rem;
  color: var(--text);
  max-width: 72px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3500;
  align-items: center;
  justify-content: center;
}
.story-viewer.open { display: flex; }
.story-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.story-progress-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 3502;
}
.story-progress-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  overflow: hidden;
}
.story-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 2px;
}
.story-close-btn {
  position: absolute;
  top: 20px;
  left: 14px;
  z-index: 3502;
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 3501;
}
.story-tap-left { left: 0; }
.story-tap-right { right: 0; }

.home-enter-wrap {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.home-enter-btn {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky));
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 48px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(74,173,220,0.35);
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
}
.home-enter-btn:hover { opacity: 0.92; transform: translateY(-1px); }

/* ═══════ WELCOME / FIRST-RUN SCREEN ═══════ */
.welcome-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: linear-gradient(160deg, var(--sky-dark), var(--sky));
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.welcome-screen.active { display: flex; }
.welcome-content {
  text-align: center;
  max-width: 380px;
  width: 100%;
}
.welcome-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 24px;
  background: white;
  padding: 10px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.welcome-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.welcome-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(0.56rem, 2.6vw, 0.82rem);
  line-height: 1.8;
  margin-bottom: 36px;
  white-space: nowrap;
}
.welcome-btn-wrap { display: flex; justify-content: center; }
.welcome-register-btn {
  background: white;
  color: var(--sky-dark);
  border: none;
  border-radius: 14px;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  font-family: inherit;
  transition: opacity 0.2s, transform 0.2s;
}
.welcome-register-btn:hover { opacity: 0.92; transform: translateY(-1px); }

/* ═══════ PAGE: ORDER ═══════ */
.order-form-row { margin-bottom: 14px; }
.field-error {
  color: var(--danger);
  font-size: 0.74rem;
  font-weight: 700;
  margin-top: 5px;
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sky-light);
  border-radius: 10px;
  font-size: 0.85rem;
  background: var(--sky-pale);
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.form-control:focus { border-color: var(--sky-dark); background: var(--white); }
.form-control.invalid { border-color: var(--danger); background: var(--danger-pale); }
.form-control.invalid:focus { border-color: var(--danger-dark); }
.stock-warning {
  margin-top: 8px;
  background: var(--danger-pale);
  border: 1px solid var(--danger-light);
  color: var(--danger-dark);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: var(--sky-pale);
  border-radius: 10px;
  margin-bottom: 8px;
}
.cart-item-name { flex: 1; font-size: 0.82rem; font-weight: 600; }
.cart-item-qty { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1rem; padding: 2px 6px; }
.order-history-item {
  padding: 12px;
  background: var(--sky-pale);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.order-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-history-id { font-size: 0.85rem; font-weight: 800; color: var(--sky-dark); }
.order-history-date { font-size: 0.72rem; color: var(--text-muted); }
.order-history-summary { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.order-history-total { font-size: 0.8rem; font-weight: 700; margin-top: 6px; }
.order-history-items {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--sky);
}
.order-history-item.expanded .order-history-items { display: block; }
.order-history-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 4px 0;
}

/* ── نوار وضعیت برجسته‌ی سفارش (بالای هر کارت) ── */
.order-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 6px 0;
  width: fit-content;
}
.order-status-row .icon { width: 15px; height: 15px; flex-shrink: 0; }
.order-status-row.os-pending { background: var(--warning-pale); color: var(--warning); }
.order-status-row.os-confirmed { background: var(--sky-pale); color: var(--sky-dark); }
.order-status-row.os-shipped { background: var(--gold-pale); color: var(--gold-dark); }
.order-status-row.os-completed { background: var(--success-pale); color: var(--success-dark); }
.order-status-row.os-cancelled { background: var(--danger-pale); color: var(--danger-dark); }

/* ── بخش پرداخت/فیش واریزی داخل هر سفارش ── */
.order-payment-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--sky);
  font-size: 0.78rem;
}
.order-payment-paid {
  color: var(--success-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.order-payment-paid .icon, .order-payment-pending .icon, .order-payment-rejected .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.order-payment-pending {
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.order-payment-view-receipt {
  background: var(--sky-light);
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--sky-dark);
  cursor: pointer;
}
.order-payment-rejected {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--danger-dark);
  background: var(--danger-pale);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.order-payment-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.order-payment-no-bank {
  color: var(--text-muted);
  padding: 8px 0;
}

/* ── کارت بانکی یکپارچه (شماره کارت + شماره حساب + شبا همه با هم) ── */
.bank-card-visual {
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--white);
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.bank-card-visual-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.85;
  margin-bottom: 4px;
}
.bank-card-visual-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.bank-card-visual-top .icon { width: 16px; height: 16px; }

.bank-card-section {
  padding: 12px 0;
  border-top: 1px dashed rgba(255,255,255,0.25);
}
.bank-card-section:first-of-type { border-top: none; }
.bank-card-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bank-card-section-title {
  font-size: 0.68rem;
  opacity: 0.8;
  font-weight: 600;
}
.bank-card-section-copy {
  background: rgba(255,255,255,0.18);
  border: none;
  color: var(--white);
  border-radius: 7px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.bank-card-section-copy .icon { width: 13px; height: 13px; }
.bank-card-section-value {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1px;
  direction: ltr;
  text-align: right;
  margin-top: 4px;
  overflow-wrap: break-word;
}
.bank-card-section-main .bank-card-section-value {
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 8px 0;
}
.bank-card-section-owner {
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 3px;
}
.bank-card-section-main .bank-card-section-owner { text-align: center; }

/* ── دو کاشی انتخاب دوربین/گالری ── */
.receipt-upload-tiles {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.receipt-upload-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 14px;
  border: 1.5px dashed var(--sky-dark);
  background: var(--sky-pale);
  color: var(--sky-dark);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
.receipt-upload-tile:active { transform: scale(0.96); background: var(--sky-light); }
.receipt-upload-tile .icon { width: 24px; height: 24px; }

.order-payment-multi-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ── لیست فیش‌های آپلودشده (با تصویر کوچیک) ── */
.order-receipts-list {
  margin-bottom: 10px;
}
.order-receipt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--sky-light);
}
.order-receipt-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.order-receipt-thumb .icon { width: 18px; height: 18px; }
.order-receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-receipt-info { flex: 1; min-width: 0; }
.order-receipt-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
}
.order-receipt-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--sky-pale);
  color: var(--sky-dark);
}
.order-receipt-row.rc-approved .order-receipt-badge { background: var(--success-pale); color: var(--success-dark); }
.order-receipt-row.rc-rejected .order-receipt-badge { background: var(--danger-pale); color: var(--danger-dark); }
.order-receipt-reason {
  font-size: 0.72rem;
  color: var(--danger-dark);
  margin-top: 4px;
  line-height: 1.6;
}

/* ── پیش‌نمایش لحظه‌ای عکس‌های تازه‌انتخاب‌شده، حین آپلود (سبک واتساپ/تلگرام) ── */
.receipt-preview-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.receipt-thumb-pending {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.receipt-thumb-pending img { width: 100%; height: 100%; object-fit: cover; display: block; }
.receipt-thumb-pending-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.receipt-thumb-pending-overlay .icon { width: 20px; height: 20px; }
.receipt-thumb-pending.is-done .receipt-thumb-pending-overlay { background: rgba(var(--success-rgb), 0.35); }
.receipt-thumb-pending.is-failed .receipt-thumb-pending-overlay { background: rgba(var(--danger-rgb), 0.45); }
.spin-icon { animation: spin-rotate 1.1s linear infinite; }
@keyframes spin-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 6px;
  border-top: 2px solid var(--sky-light);
  margin-top: 8px;
}
.cart-total-label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.cart-total-amount { font-size: 1.05rem; font-weight: 800; color: var(--sky-dark); }
.order-empty-state { text-align: center; padding: 30px 16px; color: var(--text-muted); }
.order-empty-icon { font-size: 2.2rem; margin-bottom: 10px; opacity: 0.5; }
.sms-fallback { margin-top: 4px; }
.sms-fallback-divider {
  display: flex; align-items: center; text-align: center;
  margin: 14px 0 12px; color: var(--gray-light); font-size: 0.7rem;
}
.sms-fallback-divider::before, .sms-fallback-divider::after {
  content: ''; flex: 1; border-bottom: 1px solid var(--sky-pale);
}
.sms-fallback-divider span { padding: 0 10px; }
.btn-sms {
  background: var(--white); color: var(--text);
  border: 1.5px dashed var(--gray-light);
  border-radius: 10px; padding: 12px 16px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  font-family: inherit; display: flex; align-items: center;
  justify-content: center; gap: 8px; width: 100%;
}
.sms-fallback-hint { font-size: 0.68rem; color: var(--text-muted); text-align: center; margin-top: 8px; line-height: 1.6; }
.invoice-success-icon { font-size: 2.4rem; margin-bottom: 8px; text-align:center; color: var(--success); }

/* ── نشانگر مراحل ثبت سفارش (استپر) ── */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 18px;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 76px;
}
.checkout-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.25s;
}
.checkout-step-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 600;
}
.checkout-step.active .checkout-step-circle { background: var(--sky-dark); }
.checkout-step.active .checkout-step-label { color: var(--sky-dark); font-weight: 800; }
.checkout-step.done .checkout-step-circle { background: var(--success); }
.checkout-step-line {
  width: 46px;
  height: 2px;
  background: var(--gray-light);
  margin: 0 2px 16px;
  transition: background 0.25s;
}
.checkout-step-line.done { background: var(--success); }

/* ── یادداشت اطمینان‌بخشی زیر دکمه‌ی ثبت سفارش ── */
.checkout-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  line-height: 1.6;
}
.checkout-trust-note .icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ── استفاده از کیف پول در تسویه‌حساب ── */
.wallet-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.wallet-toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--sky);
}
.wallet-toggle-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}
.wallet-toggle-title .icon { width: 16px; height: 16px; color: var(--sky-dark); }
.wallet-toggle-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.wallet-toggle-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--sky-pale);
}
.wallet-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 3px 0;
}
.wallet-breakdown-row.total { font-weight: 800; color: var(--sky-dark); font-size: 0.85rem; }

.order-payment-wallet-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.order-payment-wallet-notice .icon { width: 16px; height: 16px; flex-shrink: 0; }

.wallet-balance-box {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky));
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: var(--white);
}
.wallet-balance-amount { font-size: 1.4rem; font-weight: 800; }
.wallet-balance-amount span { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.wallet-balance-label { font-size: 0.72rem; opacity: 0.9; margin-top: 4px; }
.wallet-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.7rem;
  margin-top: 10px;
}
.wallet-countdown .icon { width: 12px; height: 12px; }

/* ── هدر موفقیت بعد از ثبت سفارش ── */
.checkout-success-hero {
  text-align: center;
  padding: 6px 0 18px;
}
.checkout-success-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--success);
  animation: checkoutPulse 0.5s ease-out;
}
.checkout-success-ring .icon { width: 32px; height: 32px; }
@keyframes checkoutPulse {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.checkout-success-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--success-dark);
}
.checkout-success-order-chip {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--sky-dark);
  background: var(--sky-pale);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
  font-weight: 700;
}

/* ═══════ PAGE 1: EDUCATION ═══════ */
.edu-hero {
  background: var(--sky);
  border-radius: 16px;
  padding: 14px 20px;
  color: white;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(36,52,71,0.10), 0 1px 3px rgba(36,52,71,0.06);
}

.edu-hero h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.edu-hero p {
  font-size: 0.76rem;
  opacity: 0.88;
  line-height: 1.5;
}

.edu-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 10px 0 4px 0;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--gray-pale);
}

.edu-tabs::-webkit-scrollbar { display: none; }

.edu-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--sky-light);
  background: var(--white);
  color: var(--gray);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.edu-tab.active {
  background: var(--sky);
  color: white;
  border-color: var(--sky);
}

.edu-content { display: none; }
.edu-content.active { display: block; }

.info-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sky-pale);
}

.info-item:last-child { border-bottom: none; }

.info-icon {
  width: 40px; height: 40px;
  background: var(--sky-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: var(--sky-dark); }
.info-text p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

.meridian-chip {
  display: inline-block;
  background: var(--sky-pale);
  border: 1px solid var(--sky-light);
  color: var(--sky-dark);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 4px;
}

/* ── Article Cards ── */
.article-card {
  background: var(--sky-pale);
  border: 1px solid var(--sky-light);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 12px;
}
.article-card:active { transform: scale(0.98); }
.article-tag {
  display: inline-block;
  background: var(--sky);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.article-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.article-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-excerpt {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.article-read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sky-dark);
}

/* ── Article Modal ── */
.article-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.article-modal.open {
  display: flex;
}
.article-modal-box {
  background: var(--white);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-height: 88vh; /* پشتیبان برای مرورگرهای قدیمی‌تر */
  max-height: 88dvh;
  overflow-y: auto;
  padding: 20px 18px 40px;
  position: relative;
  animation: slideUp 0.28s ease;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.article-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--sky-pale);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-modal-tag {
  display: inline-block;
  background: var(--sky);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.article-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}
.article-modal-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sky-pale);
}
.article-modal-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sky-dark);
  margin: 14px 0 6px;
}
.article-modal-body p {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
}
.article-modal-body ul {
  padding-right: 18px;
  margin-bottom: 8px;
}
.article-modal-body ul li {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 2;
}
.article-source {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sky-pale);
  line-height: 1.6;
}
.article-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sky-dark);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sky-pale);
}
.article-source-link .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.article-source-link:active {
  opacity: 0.75;
}
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--gray-pale);
  z-index: 1100;
  flex-direction: column;
}
.search-overlay.open {
  display: flex;
}
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--sky);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(14,118,188,0.35);
}
.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-icon {
  position: absolute;
  right: 12px;
  color: var(--gray);
  font-size: 1rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 10px 38px 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
}
.search-cancel-btn {
  background: none;
  border: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 4px;
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 24px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--sky-pale);
  cursor: pointer;
}
.search-result-item:active {
  background: rgba(126,200,227,0.12);
}
.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.search-result-text { flex: 1; min-width: 0; }
.search-result-title { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.search-result-section { font-size: 0.72rem; color: var(--gray); margin-top: 2px; }
.search-empty-state {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  padding: 40px 20px;
}

.notif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--gray-pale);
  z-index: 1100;
  flex-direction: column;
}
.notif-overlay.open {
  display: flex;
}

/* ═══════ ACCOUNT ENTRY (ثبت‌نام / ورود) ═══════ */
.account-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1400;
}
.account-sheet-overlay.open {
  display: block;
  animation: fadeIn 0.2s ease;
}
.account-sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 1401;
  border-radius: 20px 20px 0 0;
  padding: 10px 20px 26px;
  transform: translateY(100%);
  transition: transform 0.28s ease;
}
.account-sheet-panel.open {
  transform: translateY(0);
}
.account-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 3px;
  background: var(--gray-light);
  margin: 6px auto 16px;
}
.account-sheet-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}
.account-sheet-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}
.account-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px solid var(--sky);
  background: var(--white);
  color: var(--sky-dark);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
}
.account-sheet-btn.primary {
  background: var(--sky);
  color: white;
  border-color: var(--sky);
}
.account-sheet-btn:last-child { margin-bottom: 0; }

/* ── پاپ‌آپ سفارشی «نصب اپلیکیشن» (جایگزین بنر پیش‌فرض مرورگر) ── */
.install-prompt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1400;
}
.install-prompt-overlay.open {
  display: block;
  animation: fadeIn 0.2s ease;
}
.install-prompt-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 1401;
  border-radius: 20px 20px 0 0;
  padding: 10px 20px 22px;
  transform: translateY(100%);
  transition: transform 0.28s ease;
}
.install-prompt-panel.open {
  transform: translateY(0);
}
.install-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
}
.install-prompt-title { font-size: 1rem; font-weight: 800; color: var(--text); }
.install-prompt-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.install-prompt-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-prompt-icon-box .icon { width: 24px; height: 24px; color: var(--sky-dark); }
.install-prompt-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.install-prompt-later {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 0 0;
  cursor: pointer;
}

.account-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--gray-pale);
  z-index: 1450;
  flex-direction: column;
}
.account-fullscreen.open { display: flex; }
.account-fullscreen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--sky-pale);
  flex-shrink: 0;
}
.account-back-btn {
  background: var(--sky-pale);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.account-fullscreen-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.account-fullscreen-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 40px;
}
.account-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: var(--gray-light);
  font-size: 0.72rem;
}
.account-divider::before, .account-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--sky-pale);
}
.account-divider span { padding: 0 10px; color: var(--text-muted); font-weight: 700; }


/* ═══════ SIDE MENU (منوی کشویی) ═══════ */
.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1150;
}
.side-menu-overlay.open {
  display: block;
  animation: fadeIn 0.2s ease;
}
.side-menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--white);
  z-index: 1151;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.side-menu-panel.open {
  transform: translateX(0);
}
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--sky);
  flex-shrink: 0;
}
.side-menu-title {
  color: white;
  font-weight: 800;
  font-size: 1rem;
}
.side-menu-close {
  background: rgba(255,255,255,0.22);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.side-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}
.side-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 10px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
}
.side-menu-item:active {
  background: var(--sky-pale);
}
.side-menu-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-menu-item-icon .icon {
  width: 18px;
  height: 18px;
}
.side-menu-footer {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
  padding: 12px;
  flex-shrink: 0;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--sky-pale);
}
.profile-row:last-child { border-bottom: none; }
.profile-row-label { font-size: 0.78rem; color: var(--text-muted); }
.profile-row-value { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.profile-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border-radius: 10px;
  border: 1.5px solid var(--sky);
  background: var(--sky-pale);
  color: var(--sky-dark);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.profile-edit-btn:active { background: var(--sky-light); }
.profile-edit-btn .icon { width: 16px; height: 16px; }
.profile-save-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: var(--success);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.profile-save-btn:active { background: var(--success-dark); }
.profile-save-btn .icon { width: 16px; height: 16px; }
.profile-cancel-btn {
  padding: 11px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-light);
  background: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.notif-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--sky);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(14,118,188,0.35);
}
.notif-bar-title {
  color: white;
  font-weight: 800;
  font-size: 1rem;
}
.notif-cancel-btn {
  background: none;
  border: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 4px;
}
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 24px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--sky-pale);
  cursor: pointer;
  transition: background 0.2s;
}
.notif-item:active {
  background: rgba(126,200,227,0.16);
}
.notif-item.unread {
  background: rgba(126,200,227,0.08);
}
.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sky-pale);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.notif-icon .icon { width: 18px; height: 18px; }
.notif-text { flex: 1; min-width: 0; }
.notif-title { font-size: 0.87rem; font-weight: 700; color: var(--text); }
.notif-desc { font-size: 0.78rem; color: var(--gray); margin-top: 3px; line-height: 1.5; }
.notif-time { font-size: 0.68rem; color: var(--gray); margin-top: 5px; }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-empty-state {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  padding: 40px 20px;
}

.product-launch-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-launch-modal.open {
  display: flex;
}
.product-launch-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  animation: launchPopIn 0.25s ease;
}
@keyframes launchPopIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.product-launch-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.product-launch-imgwrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.product-launch-imgwrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 70%, transparent 100%);
  animation: launchShine 2.6s ease-in-out infinite;
  animation-delay: 0.5s;
  pointer-events: none;
}
@keyframes launchShine {
  0% { left: -150%; }
  35% { left: 150%; }
  100% { left: 150%; }
}
.product-launch-close {
  position: absolute;
  top: -14px;
  left: -14px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: var(--text);
}
.video-item {
  margin-bottom: 16px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
.video-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
  padding: 0 2px;
}
.edu-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.edu-promo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.edu-promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 16px;
}
.edu-promo-track::-webkit-scrollbar {
  display: none;
}

.edu-promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 100%;
}

.edu-promo-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
}

.edu-promo-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.edu-promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.2s, transform 0.2s;
}
.edu-promo-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

.edu-promo-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 2;
}
.edu-promo-close .icon { width: 12px; height: 12px; }

.session-promo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.session-promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 16px;
}
.session-promo-track::-webkit-scrollbar {
  display: none;
}

.session-promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 100%;
}

.session-promo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.session-promo-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.session-promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.2s, transform 0.2s;
}
.session-promo-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

.session-promo-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 2;
}

.edu-cat-card {
  background: var(--white);
  border: none;
  border-bottom: 3.2px solid var(--sky-light);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(36,52,71,0.10), 0 1px 3px rgba(36,52,71,0.06);
  transition: transform 0.15s;
}
.edu-cat-card:active { transform: scale(0.97); }

.edu-cat-card.cat-acupuncture { border-bottom-color: var(--coral); }
.edu-cat-card.cat-physio { border-bottom-color: var(--coral); }
.edu-cat-card.cat-auric { border-bottom-color: var(--coral); }
.edu-cat-card.cat-beauty { border-bottom-color: var(--coral); }
.edu-cat-card.cat-workshop { border-bottom-color: var(--coral); }

.edu-cat-icon {
  font-size: 2.1rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-pale);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(36,52,71,0.14);
}

.edu-cat-card.cat-acupuncture .edu-cat-icon { box-shadow: 0 0 0 2.4px var(--coral), 0 4px 12px rgba(36,52,71,0.14); }
.edu-cat-card.cat-physio .edu-cat-icon { box-shadow: 0 0 0 2.4px var(--coral), 0 4px 12px rgba(36,52,71,0.14); }
.edu-cat-card.cat-auric .edu-cat-icon { box-shadow: 0 0 0 2.4px var(--coral), 0 4px 12px rgba(36,52,71,0.14); }
.edu-cat-card.cat-beauty .edu-cat-icon { box-shadow: 0 0 0 2.4px var(--coral), 0 4px 12px rgba(36,52,71,0.14); }
.edu-cat-card.cat-workshop .edu-cat-icon { box-shadow: 0 0 0 2.4px var(--coral), 0 4px 12px rgba(36,52,71,0.14); }

.edu-cat-icon-photo {
  overflow: hidden;
  padding: 0;
}
.edu-cat-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-cat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

/* ── Education: Category Detail View ── */
.edu-category { display: none; }
.edu-category.active { display: block; }

.edu-back-btn {
  background: var(--sky-pale);
  border: 1px solid var(--sky-light);
  color: var(--sky-dark);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 14px;
}

.edu-cat-header {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sky-dark);
  margin-bottom: 14px;
}

.edu-cat-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.edu-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
}
.edu-placeholder-icon { font-size: 2.4rem; margin-bottom: 10px; opacity: 0.6; }
.edu-video-placeholder p { font-size: 0.82rem; line-height: 1.7; }

/* ── Workshop Box ── */
.workshop-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  border: 1.5px dashed var(--sky-light);
}
.workshop-icon {
  font-size: 2.2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-pale);
  border-radius: 50%;
  margin-bottom: 14px;
}
.workshop-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.workshop-date { font-size: 0.85rem; color: var(--sky-dark); font-weight: 700; }

/* ═══════ PAGE 2: PRODUCTS ═══════ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.product-cat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-top: 3.2px solid var(--sky-light);
  transition: all 0.25s;
  box-shadow: 0 6px 16px rgba(36,52,71,0.10), 0 1px 3px rgba(36,52,71,0.06);
}

.product-cat-card:hover, .product-cat-card.open {
  border-color: var(--sky);
  background: var(--sky-pale);
}

.product-cat-card.cat-acupuncture { border-top-color: var(--coral); }
.product-cat-card.cat-acupuncture:hover, .product-cat-card.cat-acupuncture.open { border-color: var(--coral); background: var(--coral-pale); }

.product-cat-card.cat-physio { border-top-color: var(--coral); }
.product-cat-card.cat-physio:hover, .product-cat-card.cat-physio.open { border-color: var(--coral); background: var(--coral-pale); }

.product-cat-card.cat-auric { border-top-color: var(--coral); }
.product-cat-card.cat-auric:hover, .product-cat-card.cat-auric.open { border-color: var(--coral); background: var(--coral-pale); }

.product-cat-card.cat-beauty { border-top-color: var(--coral); }
.product-cat-card.cat-beauty:hover, .product-cat-card.cat-beauty.open { border-color: var(--coral); background: var(--coral-pale); }

.product-cat-icon { font-size: 2rem; margin-bottom: 8px; }
.product-cat-icon-photo {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 8px auto;
}
.product-cat-icon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-cat-name { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-top: 4px; }
.product-cat-count { font-size: 0.68rem; color: var(--gray); margin-top: 3px; }

.order-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--mint-dark), var(--mint));
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(79,168,160,0.4);
  margin-bottom: 16px;
}
.order-cta-icon { font-size: 1.2rem; }

.order-back-btn {
  background: var(--sky-pale);
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky-dark);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 14px;
}

/* Product drawer */
.product-drawer {
  display: none;
  background: var(--white);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1.5px solid var(--sky-light);
  animation: fadeIn 0.2s ease;
}

.product-drawer.open { display: block; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.drawer-title { font-size: 0.95rem; font-weight: 700; color: var(--sky-dark); }

.close-btn {
  background: var(--sky-pale);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--sky-dark);
  font-size: 0.8rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--sky-pale);
  border-radius: 10px;
  margin-bottom: 8px;
}

.product-item:last-child { margin-bottom: 0; }
.product-bullet { width: 8px; height: 8px; background: var(--sky); border-radius: 50%; flex-shrink: 0; }
.product-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.product-name.num { direction: ltr; text-align: right; unicode-bidi: embed; }

/* ═══════ PAGE 3: SESSIONS ═══════ */
.session-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.role-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--sky-light);
  transition: all 0.25s;
  box-shadow: 0 6px 16px rgba(36,52,71,0.10), 0 1px 3px rgba(36,52,71,0.06);
}

.role-card:hover, .role-card.selected {
  border-color: var(--sky);
  background: linear-gradient(135deg, var(--sky-pale), var(--white));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,173,220,0.18);
}

.role-icon { font-size: 2.5rem; margin-bottom: 10px; }
.role-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.role-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.session-manage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--sky);
  background: var(--sky-pale);
  color: var(--sky-dark);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
}
.session-manage-btn:active { background: var(--sky-light); }
.session-manage-count {
  background: var(--sky);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 8px;
  min-width: 18px;
}
.session-manage-count:empty { display: none; }

.session-manage-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-pale);
  border: 1.5px solid var(--sky-pale);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.session-manage-search-box .icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.session-manage-search-box input {
  border: none; background: none; outline: none; flex: 1;
  font-family: inherit; font-size: 0.82rem; color: var(--text);
}

.session-record-item {
  border-bottom: 1px solid var(--sky-pale);
  padding: 12px 0;
}
.session-record-item:last-child { border-bottom: none; }
.session-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 8px;
}
.session-record-header-main { flex: 1; min-width: 0; }
.session-record-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-record-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.session-record-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.session-record-role-badge.doctor { background: var(--sky-pale); color: var(--sky-dark); }
.session-record-role-badge.patient { background: var(--gold-pale); color: var(--gold-dark); }
.session-record-details {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: var(--gray-pale);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--text);
  line-height: 2;
}
.session-record-item.expanded .session-record-details { display: block; }
.session-record-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.session-record-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.session-record-btn .icon { width: 14px; height: 14px; }
.session-record-btn.edit-btn { background: var(--sky-pale); color: var(--sky-dark); }
.session-record-btn.delete-btn { background: var(--danger-pale); color: var(--danger-dark); }

.session-record-item.upcoming-soon {
  background: var(--warning-pale);
  border: 1px solid var(--warning);
}
.session-upcoming-badge {
  display: inline-block;
  margin-top: 4px;
  background: var(--warning);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── جلسات: بنر آفلاین، اکشن‌های جزئیات بیمار، نمودار روند ── */
.session-offline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.session-offline-banner .icon { width: 16px; height: 16px; flex-shrink: 0; }

.session-detail-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.session-detail-actions .session-record-btn { flex: 1; background: var(--sky-pale); color: var(--sky-dark); }

.session-trend-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-pale);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.session-trend-empty .icon { width: 16px; height: 16px; flex-shrink: 0; }

.session-trend-card {
  background: var(--white);
  border: 1px solid var(--sky-pale);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.session-trend-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.session-trend-card-header .icon { width: 20px; height: 20px; color: var(--sky-dark); flex-shrink: 0; }
.session-trend-card-title { font-weight: 800; font-size: 0.88rem; }
.session-trend-card-sub { font-size: 0.72rem; color: var(--text-muted); }

.session-trend-legend {
  display: flex;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--sky-pale);
}
.session-trend-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-left: 4px;
}
.dot-before { background: var(--sky-light); }
.dot-after { background: var(--sky); }
.session-trend-svg { width: 100%; height: 170px; display: block; }

.physio-technique-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1.5px solid var(--sky-light);
  border-radius: 10px;
  padding: 6px 4px;
  background: var(--gray-pale);
}
.physio-technique-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  font-size: 0.83rem;
  cursor: pointer;
  border-radius: 6px;
}
.physio-technique-item:hover { background: var(--sky-pale); }
.physio-technique-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--sky); }

/* ── تقویم شمسی: اینپوت + مودال انتخاب تاریخ ── */
.jalali-input-wrap { position: relative; }
.jalali-input-wrap .form-control { padding-left: 40px; cursor: pointer; background: var(--white); }
.jalali-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--sky-dark);
  pointer-events: none;
}

.jalali-picker-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jalali-picker-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.jalali-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.jalali-picker-nav {
  background: var(--sky-pale);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.jalali-picker-nav .icon { width: 16px; height: 16px; color: var(--sky-dark); }
.jalali-picker-title { font-weight: 800; font-size: 0.95rem; }
.jalali-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.jalali-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.jalali-picker-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}
.jalali-picker-day:hover { background: var(--sky-pale); }
.jalali-picker-day.today { font-weight: 800; color: var(--sky-dark); }
.jalali-picker-day.selected { background: var(--sky); color: #fff; font-weight: 700; }
.jalali-picker-day.empty { cursor: default; }
.jalali-picker-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sky-pale);
}
.jalali-picker-today-btn, .jalali-picker-close-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
}
.jalali-picker-today-btn { color: var(--sky-dark); }
.jalali-picker-close-btn { color: var(--text-muted); }

/* Session Form */
.session-form { display: none; }
.session-form.active { display: block; animation: fadeIn 0.25s ease; }

.form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.back-btn {
  background: var(--sky-pale);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--sky-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-title { font-size: 1rem; font-weight: 700; color: var(--sky-dark); }

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--sky-light);
  border-radius: 10px;
  font-size: 0.85rem;
  background: var(--sky-pale);
  color: var(--text);
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}

.form-control:focus { border-color: var(--sky); background: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--mint-dark), var(--mint));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
  box-shadow: 0 4px 14px rgba(79,168,160,0.4);
}

.submit-btn:hover { opacity: 0.92; }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--demo-bg);
  border: 1px solid var(--demo-border);
  color: var(--demo-text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.success-banner {
  display: none;
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: white;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.3s ease;
  margin-bottom: 14px;
}

.success-banner h3 { font-size: 1rem; margin-bottom: 6px; }
.success-banner p { font-size: 0.8rem; opacity: 0.9; }

.company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--sky-pale);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
  margin-bottom: 2px;
}
.company-row:hover { background: var(--sky-pale); }
.company-flag { font-size: 1.3rem; }
.company-name { flex: 1; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.company-arrow { font-size: 0.75rem; color: var(--sky-dark); transition: transform 0.2s; }
.company-arrow.open { transform: rotate(180deg); }
.company-products { display: none; padding: 4px 0 8px 12px; }
.company-products.open { display: block; animation: fadeIn 0.2s ease; }
.sub-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--sky-pale);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-dark);
}
.sub-arrow { font-size: 1rem; transition: transform 0.2s; }
.sub-arrow.open { transform: rotate(90deg); }
.sub-products { display: none; padding: 2px 0 4px 12px; }
.sub-products.open { display: block; animation: fadeIn 0.2s ease; }
.product-item.sub { background: var(--sky-pale); margin-bottom: 6px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sky-pale);
  cursor: pointer;
  transition: background 0.15s;
}
.contact-row:hover { background: var(--sky-pale); border-radius: 10px; padding-right: 8px; }
.contact-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info { flex: 1; }
.contact-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.contact-arrow { color: var(--sky); font-size: 1rem; }
.app-content::-webkit-scrollbar { width: 4px; }
.app-content::-webkit-scrollbar-track { background: transparent; }
.app-content::-webkit-scrollbar-thumb { background: var(--sky-light); border-radius: 2px; }

/* ═══════ MODAL & TOAST ═══════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 950;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-sheet {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 18px calc(var(--nav-h) + 20px);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 1rem; font-weight: 800; color: var(--sky-dark); }
.modal-close { background: var(--sky-pale); border: none; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 0.9rem; color: var(--sky-dark); }
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 980;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-sheet::-webkit-scrollbar { width: 4px; }
.modal-sheet::-webkit-scrollbar-thumb { background: var(--sky-light); border-radius: 2px; }

/* ═══════ Responsive ═══════ */
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .session-role-grid { grid-template-columns: 1fr 1fr; }
  .logo-text { font-size: 1.05rem; }
}

/* ═══════ CLUB ═══════ */
.club-hero-card {
  background: linear-gradient(135deg, var(--gold-shadow), var(--gold-dark), var(--gold-shadow));
  border-radius: 18px;
  padding: 20px 16px 16px;
  margin-bottom: 14px;
}
.club-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.club-logo { font-size: 2rem; }
.club-hero-title { font-size: 1rem; font-weight: 800; color: white; }
.club-hero-sub { font-size: 0.72rem; color: rgba(255,255,255,0.8); margin-top: 2px; }
.member-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(4px);
}
.member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.member-card-label { font-size: 0.65rem; color: rgba(255,255,255,0.65); margin-bottom: 3px; }
.member-card-name { font-size: 0.95rem; font-weight: 800; color: white; }
.member-level-badge {
  background: rgba(var(--vip-gold-rgb), 0.25);
  border: 1px solid rgba(var(--vip-gold-rgb), 0.5);
  color: var(--vip-badge-text);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.member-card-mid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.member-card-code { font-size: 0.88rem; font-weight: 800; color: white; letter-spacing: 0.05em; }
.member-card-bar {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.member-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vip-gold), var(--vip-gold-light));
  border-radius: 10px;
  transition: width 0.8s ease;
}
.member-card-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.7);
}
.club-points-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.club-point-box {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.club-point-num { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.club-point-lbl { font-size: 0.65rem; color: var(--text-muted); }
.discount-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gold-pale);
  border: 1.5px dashed var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}
.discount-code { font-size: 0.9rem; font-weight: 800; color: var(--gold-dark); letter-spacing: 0.05em; }
.copy-btn {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sky-pale);
}
.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.benefit-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.benefit-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sky-pale);
}
.history-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.history-info { flex: 1; }
.history-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.history-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.history-pts { font-size: 0.78rem; font-weight: 700; color: var(--club-points); white-space: nowrap; }
.vip-support-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sky-pale);
  cursor: pointer;
}
.vip-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.vip-info { flex: 1; }
.vip-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 2px; }
.vip-val { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--sky-pale);
  margin-right: 8px;
}
.level-icon { font-size: 1.4rem; }
.level-name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.level-desc { font-size: 0.73rem; color: var(--text-muted); }

/* ═══════ FLOATING CHATBOT WIDGET ═══════ */
.chatbot-fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-pale-alt);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-light);
  cursor: grab;
  box-shadow: 0 6px 16px rgba(var(--gold-rgb), 0.35);
  z-index: 1040;
  transition: transform 0.2s, box-shadow 0.2s, left 0.35s ease, top 0.35s ease;
  touch-action: none;
  user-select: none;
}
.chatbot-fab:active { transform: scale(0.92); }
.chatbot-fab.shake {
  animation: chatbotFabShake 0.6s ease-in-out;
}
@keyframes chatbotFabShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-4deg); }
  90% { transform: rotate(2deg); }
}
.chatbot-fab.dragging {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.45);
}
.chatbot-fab .icon { width: 26px; height: 26px; fill: var(--gold); stroke: var(--gold); }
.chatbot-fab .icon-x-close { display: none; }
.chatbot-fab.open { display: none; }

.chatbot-window {
  position: fixed;
  bottom: calc(var(--nav-h) + 80px);
  left: 16px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - var(--nav-h) - 120px)); /* پشتیبان برای مرورگرهای قدیمی‌تر */
  height: min(520px, calc(100dvh - var(--nav-h) - 120px));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(36,52,71,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1039;
  border: 1px solid rgba(36,52,71,0.08);
}
.chatbot-window.open { display: flex; }

.chatbot-header {
  background: linear-gradient(135deg, var(--chat-accent), var(--chat-accent-dark));
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chatbot-window-close {
  background: rgba(255,255,255,0.22);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
}
.chatbot-window-close .icon { width: 15px; height: 15px; }
.chatbot-fab-online-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--status-online);
  border: 2px solid white;
  box-shadow: 0 0 0 0 rgba(111,224,138,0.6);
  animation: chatbot-pulse 1.8s infinite;
}
.chatbot-fab.open .chatbot-fab-online-dot { display: none; }
.chatbot-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chatbot-header-icon .icon { width: 18px; height: 18px; }
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-title { font-size: 0.88rem; font-weight: 800; }
.chatbot-header-sub { font-size: 0.68rem; opacity: 0.9; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.chatbot-header-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--status-online);
  box-shadow: 0 0 0 0 rgba(111,224,138,0.6);
  animation: chatbot-pulse 1.8s infinite;
}
@keyframes chatbot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111,224,138,0.6); }
  70% { box-shadow: 0 0 0 5px rgba(111,224,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,224,138,0); }
}

.chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: var(--gray-pale);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chatbot-msg {
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 82%;
  line-height: 1.6;
  word-wrap: break-word;
  font-size: 0.82rem;
}
.chatbot-msg.user {
  background: var(--chat-accent);
  color: white;
  margin-right: auto;
  border-bottom-right-radius: 4px;
}
.chatbot-msg.bot {
  background: var(--white);
  color: var(--text);
  margin-left: auto;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(36,52,71,0.08);
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--white);
  border-top: 1px solid var(--sky-light);
  flex-shrink: 0;
}
.chatbot-input-area input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--sky-light);
  outline: none;
  font-size: 0.82rem;
  font-family: inherit;
  background: var(--gray-pale);
  color: var(--text);
}
.chatbot-input-area input:focus { border-color: var(--sky); }
.chatbot-send-btn {
  background: var(--chat-accent);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chatbot-send-btn .icon { width: 17px; height: 17px; transform: rotate(180deg); }

@media (max-width: 360px) {
  .chatbot-window { left: 8px; bottom: calc(var(--nav-h) + 76px); }
  .chatbot-fab { left: 12px; }
}

/* تبلت و صفحه‌های بزرگ‌تر (نه گوشی‌های معمولی) — قبلاً min-width: 410px بود که
   اشتباهاً حتی گوشی‌های کاملاً معمولی مثل iPhone 11 (414px) و بسیاری از سامسونگ‌ها
   (که معمولاً 412px گزارش می‌کنن) رو هم به ۳ ستون فشرده تبدیل می‌کرد و باعث سرریز افقی می‌شد */
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .session-role-grid { grid-template-columns: repeat(3, 1fr); }
}

/* حالت افقی (landscape) روی موبایل: جلوگیری از سرریز چت‌بات و مودال‌ها */
@media (orientation: landscape) and (max-height: 500px) {
  .chatbot-window { max-height: 80vh; }
  .product-drawer, .session-form { max-height: 85vh; overflow-y: auto; }
}


/* ══════════════════════════════════════════
   UTILITY CLASSES (جایگزین استایل‌های درون‌خطی تکراری)
   ══════════════════════════════════════════ */
.u-hidden { display: none; }
.u-badge-row { font-size: 0.69rem; display: flex; align-items: center; gap: 5px; }
.u-mb-14 { margin-bottom: 14px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-no-underline { text-decoration: none; }
.u-no-border-bottom { border-bottom: none; }
.u-caption-sky { text-align: center; font-size: 0.8rem; color: var(--sky-dark); margin-top: 4px; }
.u-heading-sm { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }

/* ── سرتیتر جمع‌وجور صفحات (جایگزین کارت آبی بزرگ قبلی) ── */
.page-header-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--sky-pale);
}
.page-header-compact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-header-compact-icon .icon { width: 15px; height: 15px; color: var(--sky-dark); }
.page-header-compact-title { font-weight: 800; font-size: 0.86rem; color: var(--text); }
.page-header-compact-sub { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }
.u-error-hint { display: none; color: var(--danger); font-size: 0.76rem; font-weight: 700; text-align: center; margin-top: 4px; }
.u-no-border-pad { border: none; padding-bottom: 0; margin-bottom: 0; }

/* ══════════════════════════════════════════
   PRINT: خلاصه‌ی پرونده‌ی بیمار (چاپ/اشتراک‌گذاری)
   روی صفحه دیده نمی‌شه؛ فقط موقع پرینت/Save-as-PDF مرورگر نمایش داده می‌شه
   ══════════════════════════════════════════ */
#print-area { display: none; }

@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area {
    display: block;
    position: absolute;
    inset: 0;
    padding: 24px;
    direction: rtl;
    font-family: inherit;
    color: #000;
    background: #fff;
  }
  .print-header { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; }
  .print-header h1 { font-size: 1.2rem; margin: 0 0 4px; }
  .print-session-row { margin-bottom: 18px; page-break-inside: avoid; }
  .print-session-row-head { font-weight: 700; background: #eee; padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; }
  .print-session-row table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
  .print-session-row td { border: 1px solid #ccc; padding: 5px 8px; }
  .print-session-row td:first-child { font-weight: 700; width: 30%; background: #f7f7f7; }
}
