/* ===================================================================
   سیستم طراحی — فقط حالت روشن، RTL، موبایل‌اول
   =================================================================== */

:root {
  /* -------------------------------------------------------------------
     پالت — فیروزه‌ای کاشی و طلای زعفران
     عمداً از بنفشِ رایج SaaS فاصله گرفته: این دو رنگ ریشه در کاشی‌کاری
     ایرانی دارند و سایت را از رقبا جدا می‌کنند.
     ------------------------------------------------------------------- */
  --ink:        #0F2B28;   /* متن اصلی — سیاهِ فیروزه‌ای، نه خاکستری */
  --ink-soft:   #4A6864;
  --ink-faint:  #8AA19D;
  --line:       #E2E9E6;
  --surface:    #FFFFFF;
  --canvas:     #F5F7F5;

  --brand:      #0E6F63;   /* فیروزه‌ای عمیق */
  --brand-dark: #0A554B;
  --brand-tint: #E3F0ED;

  --gold:       #D9971A;   /* زعفران — رنگ اقدام */
  --gold-dark:  #B67C0C;
  --gold-tint:  #FBF0DA;

  --ok:         #12866B;
  --ok-tint:    #E2F1EC;
  --warn:       #C4820A;
  --warn-tint:  #FCF2DE;
  --bad:        #C24734;
  --bad-tint:   #FAE9E5;

  /* --- شعاع و سایه --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,43,40,.06);
  --shadow-md: 0 4px 20px rgba(15,43,40,.09);
  --shadow-lg: 0 18px 48px rgba(15,43,40,.16);

  --font: 'Vazirmatn', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-display: 'Morabba', 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "ss02";
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* -------------------------------------------------------------------
   دکمه
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(14,111,99,.24); }
.btn--primary:hover:not(:disabled) { background: var(--brand-dark); }

/* دکمه اقدام اصلی صفحات عمومی — طلایی، برای جایی که می‌خواهیم چشم برود */
.btn--gold { background: var(--gold); color: #22160A; box-shadow: 0 4px 16px rgba(217,151,26,.3); }
.btn--gold:hover:not(:disabled) { background: var(--gold-dark); color: #fff; }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { background: #FAFAFE; }

.btn--danger { background: var(--bad); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: 13px; }

/* -------------------------------------------------------------------
   فرم
   ------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form--narrow { max-width: 440px; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field__opt { font-weight: 500; color: var(--ink-faint); }

.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field__input::placeholder { color: var(--ink-faint); }
.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.field__input--code {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .5em;
  padding-inline-start: calc(15px + .5em);
}

.field__group { display: flex; align-items: stretch; }

/* --- انتخاب‌گر تاریخ شمسی (روز/ماه/سال) --- */
/* --- انتخاب‌گر تاریخ شمسی (فیلد نمایشی + مودال تقویم) --- */
.jdatepick__field {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; font-size: 13.5px; color: var(--ink);
  transition: border-color .15s ease;
}
.jdatepick__field:hover { border-color: var(--brand); }
.jdatepick__field span:empty::before { content: 'انتخاب تاریخ'; color: var(--ink-faint); }

/* ===================================================================
   تعاملات و پیگیری مشتری (CRM)
   =================================================================== */
.crmforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 4px; }
@media (max-width: 720px) { .crmforms { grid-template-columns: 1fr; } }
.crmforms__box { padding: 14px; background: var(--canvas); border-radius: var(--r-sm); }
.crmforms__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.crmforms__icon {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
}

.crmline { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.crmline__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.crmline__item:last-child { border-bottom: none; }
.crmline__ico {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; margin-top: 2px;
}
.crmline__body { flex: 1; min-width: 0; }

.jdp__nav {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); font-size: 18px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
}
.jdp__nav:hover { border-color: var(--brand); color: var(--brand); }

.jdpgrid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin: 14px 0;
}
.jdpgrid__dow {
  text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-faint);
  padding-bottom: 6px;
}
.jdpgrid__day {
  aspect-ratio: 1; border-radius: 50%; border: none; background: transparent;
  font-size: 13px; font-family: inherit; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .12s ease, color .12s ease;
}
.jdpgrid__day:hover { background: var(--brand-tint); }
.jdpgrid__day.is-today { border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; }
.jdpgrid__day.is-selected { background: var(--brand); color: #fff; font-weight: 700; }

/* --- انتخاب ساعت داخل مودال تقویم — شبیه نمایشگر ساعت دیجیتال --- */
.jdptime {
  display: flex; align-items: flex-start; justify-content: center; gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.jdptime__col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jdptime__input {
  width: 72px; height: 56px; text-align: center; font-size: 26px; font-weight: 800;
  font-family: inherit; color: var(--ink); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface); direction: ltr;
  -moz-appearance: textfield;
}
.jdptime__input::-webkit-outer-spin-button,
.jdptime__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jdptime__input:focus { border-color: var(--brand); outline: none; }
.jdptime__label { font-size: 11.5px; color: var(--ink-faint); }
.jdptime__colon { font-size: 26px; font-weight: 800; color: var(--ink-faint); margin-top: 12px; }
.field__group .field__input { border-start-start-radius: 0; border-end-start-radius: 0; }
.field__prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-inline-end: 0;
  border-start-end-radius: var(--r-sm);
  border-end-end-radius: var(--r-sm);
  background: #FAFAFE;
  color: var(--ink-faint);
  font-size: 13px;
  white-space: nowrap;
}

.field__hint { font-size: 12px; color: var(--ink-faint); }
.field__hint--ok  { color: var(--ok); }
.field__hint--bad { color: var(--bad); }
/* آدرس ویژه: نه سبز (آزاد نیست) و نه قرمز (خطا نیست) — یک دعوت است */
.field__hint--premium { color: var(--gold-dark); font-weight: 700; }
.field__hint--premium a { color: var(--gold-dark); }

/* -------------------------------------------------------------------
   پیام
   ------------------------------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: 18px;
}
.alert--error   { background: var(--bad-tint);  color: #8E1B2A; border-color: #F6C9CF; }
.alert--info    { background: var(--brand-tint); color: #3B2E9C; border-color: #DAD3FF; }
.alert--success { background: var(--ok-tint);   color: #0A6B47; border-color: #BCE8D6; }
.alert--warn    { background: var(--warn-tint); color: #8A5A05; border-color: #F5DCB0; }

/* -------------------------------------------------------------------
   کارت
   ------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card--action {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: start;
  cursor: pointer;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.card--action:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card__title { font-weight: 800; font-size: 16px; }
.card__meta  { font-size: 13px; color: var(--ink-faint); }

/* -------------------------------------------------------------------
   صفحه ورود
   ------------------------------------------------------------------- */
/* -------------------------------------------------------------------
   صفحه ورود — همان زبان بصری صفحه اصلی
   ------------------------------------------------------------------- */
.auth {
  min-height: 100vh; display: grid; place-items: center;
  padding: 28px 20px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% 5%, rgba(217,151,26,.17), transparent 62%),
    radial-gradient(560px 380px at 8% 95%, rgba(20,152,138,.2), transparent 60%),
    linear-gradient(165deg, #103833, #0A211E 72%);
}
/* بافت کاشی، همان الگوی هیرو */
.auth::before {
  content: ''; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image:
    linear-gradient(45deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%);
  background-size: 34px 34px;
}

.auth__panel {
  position: relative; width: 100%; max-width: 424px;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 38px 34px; box-shadow: 0 26px 64px rgba(0,0,0,.32);
}
@media (max-width: 480px) { .auth__panel { padding: 30px 22px; } }

.auth__brand {
  display: flex; align-items: center; gap: 11px; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: 26px;
}
.auth__mark {
  width: 90px; height: 90px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand), #14988A);
  box-shadow: 0 4px 12px rgba(14,111,99,.3);
}

.auth__title {
  font-family: var(--font-display);
  font-size: 23px; margin: 0 0 8px; text-align: center;
  letter-spacing: -.02em;
}
.auth__lead {
  color: var(--ink-soft); font-size: 13.5px; text-align: center;
  margin: 0 0 26px; line-height: 1.95;
}
.auth__phone {
  display: block; text-align: center; font-weight: 800;
  font-size: 15px; color: var(--brand); margin-bottom: 4px; direction: ltr;
}

/* خانه کد تایید — درشت و با فاصله، چون از پیامک کپی می‌شود */
.field__input--code {
  text-align: center; font-size: 26px; font-weight: 800;
  letter-spacing: .5em; padding-inline-start: .5em;
  font-family: var(--font);
}

.auth__fine {
  text-align: center; font-size: 12.5px; color: var(--ink-faint);
  margin: 20px 0 0; line-height: 1.95;
}
.auth__fine a { color: var(--brand); }

/* نکته پایین کارت — همان جمله‌ای که در هیرو آمده */
.auth__note {
  margin: 22px -34px -38px; padding: 16px 34px;
  background: var(--canvas); border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 12.5px; color: var(--ink-soft); text-align: center; line-height: 1.9;
}
@media (max-width: 480px) { .auth__note { margin: 20px -22px -30px; padding: 15px 22px; } }
.auth__note strong { color: var(--gold-dark); }

/* شمارنده ارسال مجدد */
.auth__resend {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-faint); margin-top: 14px;
}

.auth__aside { display: none; }

@media (min-width: 900px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth__panel { padding: 56px 64px; max-width: none; }
  .auth__aside {
    display: flex;
    align-items: center;
    padding: 64px;
    background:
      radial-gradient(900px 480px at 80% 10%, rgba(217,151,26,.18), transparent 62%),
      linear-gradient(155deg, #0F3B36, #0A211E);
  }
  .auth__quote p {
    color: #E8F2EF;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.7;
    max-width: 22ch;
    margin: 0;
  }
}

/* -------------------------------------------------------------------
   شروع کار
   ------------------------------------------------------------------- */
/* -------------------------------------------------------------------
   صفحه انتخاب/ساخت کسب‌وکار — همان زبان بصری صفحه اصلی
   ------------------------------------------------------------------- */
.onboard {
  min-height: 100vh; padding: 30px 20px 60px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(217,151,26,.15), transparent 62%),
    radial-gradient(560px 380px at 5% 100%, rgba(20,152,138,.18), transparent 60%),
    linear-gradient(165deg, #103833, #0A211E 72%);
}
.onboard::before {
  content: ''; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image:
    linear-gradient(45deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%);
  background-size: 34px 34px;
}

.onboard__head {
  position: relative; max-width: 560px; margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.onboard__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
}
.onboard__brand:hover { text-decoration: none; }
.onboard__mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand), #14988A);
  box-shadow: 0 4px 12px rgba(14,111,99,.32);
}
.onboard__exit { font-size: 13px; color: #8FB3AD; }
.onboard__exit:hover { color: #fff; }

.onboard__card {
  position: relative; max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 34px 32px; box-shadow: 0 26px 64px rgba(0,0,0,.3);
}
@media (max-width: 520px) { .onboard__card { padding: 26px 20px; } }

.onboard__title {
  font-family: var(--font-display); font-size: 24px;
  margin: 0 0 8px; letter-spacing: -.02em;
}
.onboard__lead  { color: var(--ink-soft); margin: 0 0 26px; font-size: 14px; line-height: 1.95; }
.onboard__alert { margin-bottom: 20px; }

/* --- فهرست کسب‌وکارهای موجود --- */
.onboard__list  { display: grid; gap: 10px; margin-bottom: 22px; }
.onboard__item  { margin: 0; }
.onboard__pick {
  width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 15px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; text-align: start;
  font: inherit; color: var(--ink);
  transition: border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.onboard__pick:hover {
  border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.onboard__avatar {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  background: linear-gradient(140deg, var(--brand), #14988A);
}
.onboard__meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.onboard__name { font-weight: 800; font-size: 14.5px; }
.onboard__role { font-size: 12px; color: var(--ink-faint); }
.onboard__pick .ico { color: var(--ink-faint); flex: none; }

/* --- دو گزینه ساخت / پیوستن --- */
.onboard__actions { display: grid; gap: 11px; }
.onboard__opt {
  display: flex; align-items: center; gap: 13px;
  padding: 16px; border: 1px dashed var(--line); border-radius: var(--r-md);
  color: var(--ink); transition: border-color .16s ease, background .16s ease;
}
.onboard__opt:hover {
  border-color: var(--brand); background: var(--brand-tint); text-decoration: none;
}
.onboard__opticon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.onboard__opt:hover .onboard__opticon { background: var(--surface); }
.onboard__opttext { flex: 1; display: grid; gap: 3px; }
.onboard__opttitle { font-weight: 800; font-size: 14px; }
.onboard__optsub { font-size: 12.5px; color: var(--ink-faint); line-height: 1.8; }

.onboard__switch {
  text-align: center; font-size: 13px; color: var(--ink-faint); margin: 22px 0 0;
}
.onboard__switch a { color: var(--brand); font-weight: 600; }

/* --- نشان دوره آزمایشی --- */
.onboard__trial {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-tint); border: 1px solid #F0D9A8;
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 22px;
  font-size: 13px; color: #6B4E08; line-height: 1.8;
}
.onboard__trial .ico { color: var(--gold-dark); flex: none; }

/* -------------------------------------------------------------------
   صفحه‌بندی
   ------------------------------------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.pager__link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pager__link:disabled { opacity: .4; cursor: not-allowed; }
.pager__link:hover:not(:disabled) { border-color: var(--brand); text-decoration: none; }
.pager__info { font-size: 13px; color: var(--ink-faint); }

/* -------------------------------------------------------------------
   کمکی
   ------------------------------------------------------------------- */
.muted   { color: var(--ink-faint); }
.nowrap  { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================================================================
   پنل
   =================================================================== */

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px; z-index: 100;
  border-end-end-radius: var(--r-sm);
}
.skip-link:focus { inset-inline-start: 0; }

.topbanner {
  padding: 11px 20px; text-align: center; font-size: 13.5px; font-weight: 600;
  background: var(--brand-tint); color: #3B2E9C;
}
.topbanner--warning { background: var(--warn-tint); color: #8A5A05; }
.topbanner--danger  { background: var(--bad-tint);  color: #8E1B2A; }
.topbanner--success { background: var(--ok-tint);   color: #0A6B47; }
.topbanner a { text-decoration: underline; margin-inline-start: 6px; }

.shell { display: flex; min-height: 100dvh; }

/* --- نوار کناری --- */
.side {
  width: 264px; flex: none;
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 18px 14px;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.side__top { margin-bottom: 18px; }
.side__backdrop { display: none; }

/* -------------------------------------------------------------------
   سوییچر کسب‌وکار — منوی کشویی بالای نوار کناری
   ------------------------------------------------------------------- */
.switcher { position: relative; margin: 0; }

.switcher__btn {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-align: start; font: inherit; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.switcher__btn:hover { border-color: var(--brand); }
.switcher__btn[aria-expanded="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.switcher__avatar {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #14988A);
  color: #fff; font-weight: 800; font-size: 16px;
}
.switcher__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.switcher__name {
  font-weight: 800; font-size: 13.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.switcher__role { font-size: 11.5px; color: var(--ink-faint); }
.switcher__chev {
  width: 17px; height: 17px; flex: none; color: var(--ink-faint);
  transition: transform .18s ease;
}
.switcher__btn[aria-expanded="true"] .switcher__chev { transform: rotate(180deg); }

.switcher__menu {
  position: absolute; inset-inline: 0; top: calc(100% + 7px); z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  overflow: hidden; padding: 5px;
}
.switcher__menu[hidden] { display: none; }

.switcher__label {
  display: block; padding: 8px 11px 6px;
  font-size: 11px; font-weight: 800; color: var(--ink-faint);
  letter-spacing: .03em;
}

.switcher__item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border: 0; border-radius: var(--r-sm);
  background: none; cursor: pointer; text-align: start;
  font: inherit; font-size: 13px; color: var(--ink);
}
.switcher__item:hover { background: var(--canvas); text-decoration: none; }
.switcher__item .ico { color: var(--ink-faint); flex: none; }
.switcher__item > span { flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher__item small { color: var(--ink-faint); font-size: 11px; flex: none; }

.switcher__item.is-current { background: var(--brand-tint); font-weight: 800; }
.switcher__item.is-current .ico { color: var(--brand); }

.switcher__sep {
  height: 1px; background: var(--line); margin: 5px 3px;
}

.switcher__item--new { color: var(--brand); font-weight: 700; }
.switcher__item--new .ico { color: var(--brand); }
.switcher__item--new:first-of-type { border-top: 0; }

.nav { display: grid; gap: 2px; flex: 1; }
.nav__link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-soft); font-size: 14px; font-weight: 600;
  transition: background .14s ease, color .14s ease;
}
.nav__link:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
.nav__link.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 800; }
.nav__icon { width: 19px; height: 19px; flex: none; }
.nav__badge {
  margin-inline-start: auto; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 11px; background: var(--bad); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

.usage {
  margin-top: 16px; padding: 15px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--brand), #12897B);
  color: #fff; display: grid; gap: 9px;
}
.usage__head { display: flex; align-items: center; justify-content: space-between; }
.usage__plan { font-weight: 800; font-size: 14px; }
.usage__count {
  background: rgba(255,255,255,.22); padding: 3px 9px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.usage__bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.26); overflow: hidden; }
.usage__bar span { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width .3s ease; }
.usage__note { margin: 0; font-size: 11.5px; opacity: .9; }
.usage .btn--primary { background: #fff; color: var(--brand); box-shadow: none; }
.usage .btn--primary:hover { background: var(--brand-tint); }

/* --- محتوا --- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 26px 30px 18px;
}
.topbar__menu {
  display: none; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; padding: 10px; color: var(--ink);
}
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 24px; margin: 0 0 3px; }
.topbar__title p { margin: 0; color: var(--ink-faint); font-size: 13.5px; }
.topbar__actions { display: flex; gap: 9px; flex-wrap: wrap; }

.content { padding: 0 30px 60px; flex: 1; }

@media (max-width: 900px) {
  .side {
    position: fixed; inset-block: 0; right: 0; left: auto; z-index: 60;
    transform: translateX(100%); transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .side.is-open { transform: none; }
  .topbar__menu { display: block; }
  .topbar { padding: 18px 18px 14px; flex-wrap: wrap; }
  .content { padding: 0 18px 48px; }

  /* ⚠️ باگ ریسپانسیو رفع‌شده: عنوان صفحه و دکمه‌های بالای صفحه
     (ویرایش، چاپ فاکتور، بازگشت و…) در موبایل هنوز کنار هم قرار
     می‌گرفتند — وقتی صفحه‌ای چند دکمه داشت (مثل جزئیات سفارش)،
     همه در یک ستون خیلی باریک فشرده و بدشکل می‌شدند. حالا در موبایل
     زیر عنوان می‌آیند و کل عرض را می‌گیرند. */
  .topbar__title { flex-basis: 100%; }
  .topbar__actions { width: 100%; }
  .topbar__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* ⚠️ باگ ریسپانسیو رفع‌شده — نسخه دوم: قبلاً جدول‌ها (مشتری‌ها،
     سفارش‌ها، محصولات و همه لیست‌های مشابه) در موبایل به یک بلوک
     قابل‌اسکرول افقی تبدیل می‌شدند؛ کار می‌کرد ولی ظاهرش زشت و
     دست‌وپاگیر بود. حالا هر جدول به یک لیست کارتی عمودی تبدیل
     می‌شود — هیچ اسکرول افقی، هیچ‌جا. عنوان هر ستون (که جاوااسکریپت
     بالای همین فایل خودکار به هر سلول چسبانده) کنار مقدارش نشان
     داده می‌شود، دقیقاً مثل یک فرم خلاصه. */
  .tablewrap { overflow-x: visible; }
  .table, .table thead, .table tbody, .table tr, .table td, .table th { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr {
    padding: 13px 15px; border-bottom: 1px solid var(--line);
  }
  .table tr:last-child { border-bottom: 0; }
  .table td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 6px 0; border-bottom: 0 !important;
    font-size: 13.5px; text-align: end;
  }
  .table td[data-label]::before {
    content: attr(data-label);
    color: var(--ink-faint); font-size: 12px; font-weight: 600;
    flex-shrink: 0; text-align: start;
  }
  /* سلول‌های بدون برچسب (مثل ردیف خالی با colspan، یا اولین ستونِ
     شاخص هر ردیف که معمولاً عنوان اصلی است) — تمام‌عرض و بدون فلکس دوطرفه */
  .table td:not([data-label]) {
    justify-content: flex-start; text-align: start;
    font-weight: 700; font-size: 14px; padding-bottom: 8px;
  }
  .table td.table__empty { text-align: center; font-weight: 400; font-size: 13.5px; padding: 20px 0; }

  /* ⚠️ ستون چک‌باکس انتخاب گروهی نباید در حالت کارتیِ موبایل یک ردیف
     کامل بگیرد — کنار عنوان می‌نشیند و برچسبی هم نمی‌خواهد. */
  .table td[data-nolabel] {
    display: inline-flex; width: auto; padding: 0 0 6px;
    border: 0; justify-content: flex-start;
  }

  /* ⚠️ باگ ریسپانسیو رفع‌شده: سلول‌های colspan که محتوای واقعی دارند
     (نه فقط ردیف خالی) — مثل فرم ویرایش تنوع محصول توی product-edit.php —
     قبلاً از قواعد display:flex/text-align بالا ارث می‌بردند و فرم
     دوستونی (.grid2) داخلشان روی موبایل کج/فشرده می‌شد. این‌جا کاملاً
     از آن قواعد خارج می‌شوند تا محتوایشان دقیقاً مثل حالت دسکتاپ، عادی
     و تمام‌عرض رندر شود. */
  .table td[colspan]:not(.table__empty) {
    display: block; text-align: start; padding: 12px 4px;
  }

  .side__backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 59;
    background: rgba(20,22,31,.5);
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease;
  }
  .side__backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* ⚠️ تخته سفارش در موبایل به‌جای ردیف افقی (که نیاز به اسکرول
     کنار هم داشت و زشت بود)، ستون‌ها را عمودی و تمام‌عرض می‌چیند —
     هر مرحله زیر مرحله قبلی، مثل یک لیست بلند. */
  .kanban { flex-direction: column; overflow-x: visible; }
  .kcol { flex: none; width: 100%; max-height: none; }
  .kcol__body { max-height: 360px; }
}

/* --- کارت آمار --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 17px; display: grid; gap: 5px;
}
.stat--brand {
  background: linear-gradient(150deg, var(--brand), #12897B);
  border-color: transparent; color: #fff;
}
.stat__label { font-size: 12.5px; color: var(--ink-faint); }
.stat--brand .stat__label { color: rgba(255,255,255,.85); }
.stat__value { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.stat__hint { font-size: 11.5px; color: var(--ink-faint); }
.stat--brand .stat__hint { color: rgba(255,255,255,.8); }

/* --- کانبان --- */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.kcol {
  flex: 0 0 268px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; flex-direction: column; max-height: 640px;
}
.kcol__head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 15px; border-bottom: 1px solid var(--line);
}
.kcol__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kcol__title { font-weight: 800; font-size: 13.5px; }
.kcol__count {
  margin-inline-start: auto; font-size: 11.5px; color: var(--ink-faint);
  background: var(--canvas); padding: 2px 8px; border-radius: 10px;
}
.kcol__body { padding: 10px; display: grid; gap: 9px; overflow-y: auto; }
.kcol__empty { padding: 26px 10px; text-align: center; color: var(--ink-faint); font-size: 12.5px; }

.kcard {
  display: block; padding: 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .14s ease, box-shadow .14s ease, transform .12s ease;
}
.kcard:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.kcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.kcard__code { font-weight: 800; font-size: 13px; color: var(--ink); }
.kcard__total { font-weight: 800; font-size: 13px; color: var(--brand); }
.kcard__name { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard__meta { display: flex; gap: 8px; margin-top: 7px; font-size: 11.5px; color: var(--ink-faint); flex-wrap: wrap; }

/* --- جدول --- */
.tablewrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: start; padding: 12px 15px; font-size: 12px; font-weight: 700;
  color: var(--ink-faint); background: #FAFAFE; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFBFE; }
.table__empty { padding: 46px 20px; text-align: center; color: var(--ink-faint); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- نوار ابزار --- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar__search { flex: 1; min-width: 220px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); font-size: 12.5px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__n { opacity: .65; margin-inline-start: 3px; font-size: 11px; }

/* --- مدال --- */
.modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20,22,31,.45); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
/* ⚠️ باگ سراسری که رفع شد: چون .modal روی خودش display:grid داشت، این قاعده
   اولویتش از [hidden] پیش‌فرض مرورگر بیشتر بود و مودال را همیشه نمایش می‌داد،
   صرف‌نظر از وجود ویژگی hidden. این خط دوباره کنترل را به hidden برمی‌گرداند. */
.modal[hidden] { display: none; }
.modal__box {
  background: var(--surface); border-radius: var(--r-lg);
  width: 100%; max-width: 540px; max-height: 90dvh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 24px;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.modal__head h2 { font-size: 19px; margin: 0; }
.modal__close {
  width: 34px; height: 34px; border: 0; border-radius: var(--r-sm);
  background: var(--canvas); cursor: pointer; font-size: 18px; color: var(--ink-soft); flex: none;
}
.modal__close:hover { background: var(--line); }
.modal__foot { display: flex; gap: 10px; margin-top: 22px; }
.modal__foot .btn { flex: 1; }

/* --- شبکه فرم --- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* --- حالت خالی --- */
.empty {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--r-md); padding: 52px 24px; text-align: center;
}
.empty__icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand-tint); display: grid; place-items: center; color: var(--brand);
}
.empty h2 { font-size: 17px; margin: 0 0 7px; }
.empty p { color: var(--ink-faint); margin: 0 auto 20px; max-width: 42ch; font-size: 13.5px; }

/* --- قفل ویژگی پلن --- */
.locked {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--r-md); padding: 44px 24px; text-align: center;
}
.locked__icon {
  width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 50%;
  background: var(--brand-tint); display: grid; place-items: center; color: var(--brand);
}
.locked h2 { font-size: 17px; margin: 0 0 7px; }
.locked p { color: var(--ink-faint); margin: 0 auto 18px; max-width: 46ch; font-size: 13.5px; }

/* --- پیام شناور --- */
.toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 90;
  background: var(--ink); color: #fff; padding: 13px 20px;
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); max-width: 380px;
  opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast--error { background: var(--bad); }
.toast--ok    { background: var(--ok); }

/* --- تب --- */
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 9px 18px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.tab:hover { border-color: var(--brand); text-decoration: none; }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- بخش --- */
.section { margin-bottom: 30px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head h2 { font-size: 17px; margin: 0; }

/* --- نتایج جستجوی زنده --- */
.results {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-top: 6px; max-height: 240px; overflow-y: auto; background: var(--surface);
}
.results__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 13px; border: 0; border-bottom: 1px solid var(--line);
  background: none; cursor: pointer; font: inherit; text-align: start;
}
.results__item:last-child { border-bottom: 0; }
.results__item:hover { background: var(--canvas); }
.results__item small { color: var(--ink-faint); font-size: 11.5px; }
.results__item:disabled { opacity: .45; cursor: not-allowed; background: none; }

/* --- اقلام سفارش --- */
.lineitems { display: grid; gap: 8px; }
.lineitem {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #FAFAFE;
}
.lineitem__title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.lineitem__qty { width: 62px; }
.lineitem__price { width: 108px; }
.lineitem__del {
  width: 30px; height: 30px; flex: none; border: 0; border-radius: 8px;
  background: var(--bad-tint); color: var(--bad); cursor: pointer; font-size: 16px;
}

/* --- خلاصه مبلغ --- */
.totals { display: grid; gap: 7px; padding: 14px; background: #FAFAFE; border-radius: var(--r-sm); font-size: 13.5px; }
.totals__row { display: flex; justify-content: space-between; }
.totals__row--final { font-weight: 800; font-size: 15px; padding-top: 9px; border-top: 1px solid var(--line); }

/* ===================================================================
   پنل مدیریت
   =================================================================== */
.shell--admin .side { background: #0C201E; border-color: #1B3936; }
.shell--admin .nav__link { color: #93AEA9; }
.shell--admin .nav__link:hover { background: #143430; color: #fff; }
.shell--admin .nav__link.is-active { background: var(--brand); color: #fff; }
.shell--admin .side .btn--ghost { background: #143430; border-color: #1F4541; }

.adminid { display: flex; align-items: center; gap: 11px; padding: 4px 2px 14px; }
.adminid__avatar {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), #E8B44A);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.adminid__text { display: grid; min-width: 0; }
.adminid__name { color: #fff; font-weight: 800; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adminid__role { color: #6E8985; font-size: 11.5px; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '▸ '; display: inline-block; transition: transform .15s ease; }
details[open] > summary::before { transform: rotate(90deg); }


/* -------------------------------------------------------------------
   آیکون‌ها
   ------------------------------------------------------------------- */
.ico { flex: none; vertical-align: -.15em; }
.ico--gold  { color: var(--gold); }
.ico--brand { color: var(--brand); }
.ico--muted { color: var(--ink-faint); }

/* -------------------------------------------------------------------
   جعبه جستجوی زنده
   ------------------------------------------------------------------- */
.lsbox { position: relative; flex: 1; min-width: 200px; }
.lsbox__form { margin: 0; position: relative; }
.lsbox__icon {
  position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); pointer-events: none; display: flex;
}
.lsbox__input { padding-inline-start: 40px; }
.lsbox__results {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 40;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto;
}
.results__item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 13px;
}
.results__item:last-child { border-bottom: 0; }
.results__item:hover { background: var(--canvas); text-decoration: none; }
.results__item > span { flex: 1; min-width: 0; line-height: 1.7; }
.results__img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none;
  background: var(--canvas);
}

/* فیلد قفل‌شده — مقدارش نمایش داده می‌شود ولی قابل تغییر نیست */
.field__group--locked { background: var(--canvas); opacity: .9; position: relative; }
.field__group--locked .field__input { background: transparent; cursor: not-allowed; }
.field__lock {
  display: flex; align-items: center; padding-inline-end: 12px; color: var(--ink-faint);
}

/* -------------------------------------------------------------------
   کارت دعوت به دوره آزمایشی
   ------------------------------------------------------------------- */
.trialcard {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--gold-tint), #FEF8EC);
  border: 1px solid #F0D9A8; border-radius: var(--r-lg);
  padding: 20px 22px; margin-bottom: 20px;
}
.trialcard__icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold); color: #22160A;
}
.trialcard__body { flex: 1; min-width: 220px; }
.trialcard__body h2 { font-size: 17px; margin: 0 0 6px; color: #4A3407; }
.trialcard__body p  { font-size: 13px; color: #6B4E08; margin: 0; line-height: 1.95; }
.trialcard__action { margin: 0; flex: none; }

/* نشان دوره آزمایشی روی کارت پلن در صفحات عمومی */
.plan__trial {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-tint); color: #6B4E08;
  border: 1px solid #F0D9A8; border-radius: 20px;
  padding: 5px 12px; font-size: 11.5px; font-weight: 700;
  margin-bottom: 14px;
}

/* مشتری انتخاب‌شده در فرم سفارش */
.picked {
  display: flex; align-items: center; gap: 9px; margin-top: 8px;
  background: var(--brand-tint); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 13px; color: var(--brand);
}
.picked .ico { flex: none; }
.picked span { flex: 1; }
.picked__clear {
  border: 0; background: none; cursor: pointer; font-size: 18px;
  color: var(--brand); line-height: 1; padding: 0 4px;
}

/* کارت اقدام خطرناک — غیرفعال‌سازی و مانند آن */
.card--danger { border-color: var(--bad-tint); background: #FFFCFC; }

/* -------------------------------------------------------------------
   کسب‌وکارهای غیرفعال‌شده — قابل فعال‌سازی دوباره
   ------------------------------------------------------------------- */
.onboard__inactive { margin-bottom: 22px; }
.onboard__label {
  display: block; font-size: 11.5px; font-weight: 800;
  color: var(--ink-faint); margin-bottom: 9px; letter-spacing: .02em;
}
.onboard__inactive-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px dashed var(--line); border-radius: var(--r-md);
  margin-bottom: 8px; opacity: .82;
}
.onboard__avatar--dim {
  background: var(--ink-faint) !important;
}

/* -------------------------------------------------------------------
   انتخاب پلن هنگام ساخت کسب‌وکار (onboarding — خرید مستقیم)
   ------------------------------------------------------------------- */
.onboard__plans { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.onboard__plan {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; cursor: pointer; position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.onboard__plan:hover { border-color: var(--brand); }
.onboard__plan input[type="radio"] { position: absolute; top: 12px; inset-inline-end: 12px; }
.onboard__plan.is-checked,
.onboard__plan:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.onboard__plan-name { font-weight: 700; font-size: 13.5px; padding-inline-end: 22px; }
.onboard__plan-price { font-size: 12.5px; color: var(--ink-soft); }
.onboard__plan-price small { color: var(--ink-faint); }

/* -------------------------------------------------------------------
   انتخاب صریح «همین الان» یا «رزرو» و روش پرداخت — کارت‌های انتخابی
   ------------------------------------------------------------------- */
.plan__choice { display: grid; gap: 8px; margin-bottom: 14px; }

.plan__choice-label {
  display: block; font-size: 11px; font-weight: 800; color: var(--ink-faint);
  letter-spacing: .02em; margin-bottom: 1px;
}

.plan__opt {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; background: var(--surface);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.plan__opt:hover { border-color: var(--brand); }
.plan__opt input[type="radio"] {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer;
}

.plan__opt-icon {
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--canvas); color: var(--ink-faint);
  transition: background .15s ease, color .15s ease;
}

.plan__opt-text { flex: 1; min-width: 0; }
.plan__opt-title { display: block; font-weight: 700; font-size: 13px; color: var(--ink); }
.plan__opt-sub { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 2px; line-height: 1.7; }

.plan__opt-check {
  width: 19px; height: 19px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: transparent;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.plan__opt:has(input:checked) {
  border-color: var(--brand); background: var(--brand-tint);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.plan__opt:has(input:checked) .plan__opt-icon { background: var(--brand); color: #fff; }
.plan__opt:has(input:checked) .plan__opt-title { color: var(--brand); }
.plan__opt:has(input:checked) .plan__opt-check { border-color: var(--brand); background: var(--brand); color: #fff; }

/* -------------------------------------------------------------------
   درگ‌اند‌دراپ تخته سفارش‌ها
   ------------------------------------------------------------------- */
.kcard[draggable="true"] { cursor: grab; }
.kcard.is-dragging { opacity: .4; cursor: grabbing; }
.kcol__body[data-dropzone].is-over {
  background: var(--brand-tint);
  outline: 2px dashed var(--brand);
  outline-offset: -2px;
  border-radius: var(--r-sm);
}

/* ===================================================================
   تیکت پشتیبانی — نمای گفتگو
   =================================================================== */
.tchat { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }

.tchat__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.tchat__status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.tchat__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tchat__prio, .tchat__id { font-size: 12px; color: var(--ink-faint); }
.tchat__id { margin-inline-start: auto; }

.tchat__thread { display: flex; flex-direction: column; gap: 4px; }
.tchat__daysep {
  display: flex; justify-content: center; margin: 10px 0;
}
.tchat__daysep span {
  font-size: 11px; color: var(--ink-faint); background: var(--canvas);
  padding: 4px 12px; border-radius: 999px;
}

.tchat__row { display: flex; gap: 9px; margin-bottom: 10px; align-items: flex-end; }
.tchat__row.is-me { flex-direction: row-reverse; }

.tchat__avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--canvas); color: var(--ink-faint);
}
.tchat__row.is-me .tchat__avatar { background: var(--brand); color: #fff; }
.tchat__row.is-support .tchat__avatar { background: var(--brand-tint); color: var(--brand); }
.tchat__avatar svg { width: 15px; height: 15px; }

.tchat__bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.tchat__row.is-me .tchat__bubble {
  background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-right-radius: 4px;
}
.tchat__row.is-support .tchat__bubble { border-bottom-left-radius: 4px; }
.tchat__text { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; }
.tchat__time {
  font-size: 10.5px; margin-top: 4px; text-align: end; opacity: .65;
}

.tchat__compose {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.tchat__compose textarea { resize: vertical; }
.tchat__compose .btn { justify-self: start; }

/* ===================================================================
   سوییچ ماهانه/سالانه — صفحه اشتراک
   =================================================================== */
.periodToggle {
  position: relative;
  display: flex; justify-content: center;
  width: fit-content; margin: 4px auto 22px;
  background: var(--canvas); border-radius: 999px; padding: 5px; gap: 2px;
}
.periodToggle__opt {
  position: relative; z-index: 1;
  border: 0; background: transparent; cursor: pointer;
  padding: 13px 30px; font-size: 15px; font-weight: 700; border-radius: 999px;
  color: var(--ink-faint); transition: color .2s ease;
  display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.periodToggle__opt.is-active { color: #fff; }
.periodToggle__disc {
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,.25);
  padding: 2px 8px; border-radius: 999px;
}
.periodToggle__opt:not(.is-active) .periodToggle__disc { background: var(--ok); color: #fff; }
.periodToggle__thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px;
  left: 5px; width: calc(50% - 4px);
  background: var(--brand); border-radius: 999px;
  transition: left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
}
#planCardsWrap { transition: opacity .15s ease; }

/* ===================================================================
   تور راهنمای Spotlight/Coach Mark — نسخه گرافیکی + ریسپانسیو
   =================================================================== */
.tour-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: radial-gradient(120% 120% at 50% 0%, rgba(15,43,40,.35), rgba(10,30,28,.72));
  backdrop-filter: blur(1.5px);
  animation: tourFadeIn .25s ease;
}
@keyframes tourFadeIn { from { opacity: 0; } to { opacity: 1; } }

.tour-highlight {
  position: relative; z-index: 9991;
  box-shadow: 0 0 0 4px var(--gold), 0 0 0 9px rgba(217,151,26,.25), 0 0 0 9999px rgba(10,30,28,.72);
  border-radius: var(--r-sm, 10px);
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1);
  animation: tourPulse 1.6s ease-in-out .3s 2;
}
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--gold), 0 0 0 9px rgba(217,151,26,.25), 0 0 0 9999px rgba(10,30,28,.72); }
  50%      { box-shadow: 0 0 0 4px var(--gold), 0 0 0 14px rgba(217,151,26,.12), 0 0 0 9999px rgba(10,30,28,.72); }
}

.tour-card {
  position: fixed; z-index: 9992;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15,43,40,.32), 0 2px 8px rgba(15,43,40,.12);
  padding: 18px 20px 16px; max-width: 300px;
  animation: tourCardIn .22s cubic-bezier(.2,.7,.3,1);
  border: 1px solid rgba(15,43,40,.05);
}
@keyframes tourCardIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tour-card--center {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 340px; text-align: center;
}
.tour-card--center .tour-card__icon { margin-inline: auto; }
.tour-card--center .tour-card__foot { justify-content: center; flex-direction: column-reverse; gap: 12px; }
.tour-card--center .tour-card__nav { width: 100%; }
.tour-card--center .tour-card__nav .btn { flex: 1; }

.tour-card__close {
  position: absolute; top: 10px; left: 10px;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--canvas); color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tour-card__close:hover { background: var(--brand-tint); color: var(--brand); }

.tour-card__icon {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(14,111,99,.28);
}
.tour-card--center .tour-card__icon {
  width: 52px; height: 52px; font-size: 25px; border-radius: 16px;
}

.tour-card__progress {
  height: 4px; border-radius: 999px; background: var(--canvas);
  overflow: hidden; margin-bottom: 12px;
}
.tour-card__progress-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--brand));
  transition: width .3s cubic-bezier(.4,0,.2,1);
}
.tour-card__step {
  font-size: 11px; color: var(--ink-faint); font-weight: 600;
  margin-bottom: 9px; display: block;
}
.tour-card__title { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.tour-card__desc { font-size: 13px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 15px; }
.tour-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-card__nav { display: flex; gap: 6px; }

/* --- نسخه موبایل: بات‌شیت پایین صفحه — کاملاً مستقل از موقعیت هدف --- */
@media (max-width: 900px) {
  .tour-card {
    position: fixed; z-index: 9992;
    top: auto !important; left: 0 !important; right: 0; bottom: 0;
    max-width: none; width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    animation: tourSheetIn .25s cubic-bezier(.2,.7,.3,1);
    box-shadow: 0 -8px 32px rgba(15,43,40,.28);
  }
  @keyframes tourSheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .tour-card--center {
    top: auto !important; left: 0 !important; bottom: 0;
    transform: none; text-align: center; max-width: none;
  }
  .tour-card__handle {
    width: 36px; height: 4px; border-radius: 999px; background: var(--line);
    margin: 0 auto 14px;
  }
}

/* ===================================================================
   مرکز اقدام سریع داشبورد — ری‌دیزاین بخش «۴ دکمه»
   =================================================================== */
.quickhub {
  display: flex; gap: 12px; margin-bottom: 26px;
  overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.quickhub::-webkit-scrollbar { display: none; }

.quickhub__item {
  flex: 1 1 0; min-width: 132px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 16px;
  cursor: pointer; text-decoration: none; color: var(--ink);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
  font-family: inherit; text-align: start;
}
.quickhub__item::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90px 90px at 85% -10%, rgba(14,111,99,.06), transparent 70%);
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.quickhub__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,43,40,.1);
  border-color: rgba(14,111,99,.25);
}
.quickhub__item:hover::after { opacity: 1; }

.quickhub__icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .18s cubic-bezier(.2,.7,.3,1);
}
.quickhub__item:hover .quickhub__icon { transform: scale(1.08) rotate(-4deg); }
.quickhub__label { font-size: 13.5px; font-weight: 600; line-height: 1.4; }

.quickhub__item--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: transparent; color: #fff;
}
.quickhub__item--primary .quickhub__icon {
  background: rgba(255,255,255,.16); color: #fff;
}
.quickhub__item--primary:hover {
  box-shadow: 0 14px 30px rgba(14,111,99,.35);
}
.quickhub__item--primary::after {
  background: radial-gradient(120px 120px at 85% -20%, rgba(217,151,26,.35), transparent 70%);
}

@media (max-width: 900px) {
  .quickhub {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 6px; overflow: visible; margin-bottom: 20px;
  }
  .quickhub__item {
    min-width: 0; padding: 10px 4px 8px;
    align-items: center; text-align: center; gap: 6px;
    border-radius: 12px;
  }
  .quickhub__icon { width: 26px; height: 26px; border-radius: 8px; }
  .quickhub__icon svg { width: 13px; height: 13px; }
  .quickhub__label {
    font-size: 9.8px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 380px) {
  .quickhub { gap: 4px; }
  .quickhub__item { padding: 8px 3px 7px; }
  .quickhub__icon { width: 24px; height: 24px; }
  .quickhub__icon svg { width: 12px; height: 12px; }
  .quickhub__label { font-size: 9px; }
}

/* ===================================================================
   لایه پولیش گرافیکی — تمام صفحات پنل
   هدف: همان پایه و رنگ فعلی، فقط چشم‌نوازتر و کمتر تکراری. هیچ
   رنگ یا چیدمانی عوض نشده، فقط سایه، گردی، و ریزحرکت‌ها ظریف‌تر شدند.
   =================================================================== */

/* --- کارت‌ها: کمی نرم‌تر و با عمق بیشتر --- */
.card {
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(15,43,40,.05), 0 1px 2px rgba(15,43,40,.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(15,43,40,.07), 0 1px 3px rgba(15,43,40,.05); }
.card--action:hover {
  box-shadow: 0 10px 28px rgba(15,43,40,.12);
  transform: translateY(-2px);
}

/* --- کارت‌های آمار: کمی حس شیشه‌ای/عمق‌دار، بدون تغییر رنگ --- */
.stat {
  border-radius: 16px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,43,40,.08); }
.stat--brand {
  box-shadow: 0 8px 24px rgba(14,111,99,.22);
}
.stat--brand::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(140px 90px at 100% 0%, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.stat__value { font-variant-numeric: tabular-nums; }

/* --- بج‌ها: کمی برجسته‌تر --- */
.badge { box-shadow: 0 1px 2px rgba(15,43,40,.04); }
.badge__dot { box-shadow: 0 0 0 2px currentColor; opacity: .9; }

/* --- جدول: هدر واضح‌تر، ردیف با لبه هاور ظریف --- */
.table th {
  font-size: 11.5px; letter-spacing: .02em;
}
.table tbody tr {
  transition: background-color .12s ease;
  position: relative;
}
.table tbody tr:hover {
  background: var(--brand-tint);
}
.tablewrap { border-radius: 16px; box-shadow: 0 1px 3px rgba(15,43,40,.05); }

/* --- کارت‌های کانبان: سایه و بلندشدن نرم‌تر --- */
.kcol { border-radius: 16px; }
.kcard { border-radius: 12px; }
.kcard:hover {
  box-shadow: 0 8px 20px rgba(15,43,40,.1);
  transform: translateY(-2px);
}

/* --- دکمه‌ها: کمی جان بیشتر بدون تغییر رنگ --- */
.btn {
  transition: transform .14s cubic-bezier(.2,.7,.3,1), box-shadow .14s ease, background-color .14s ease;
}
.btn--primary:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(14,111,99,.32);
  transform: translateY(-1px);
}
.btn--gold:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(217,151,26,.38);
  transform: translateY(-1px);
}

/* --- چیپ‌ها: حالت فعال با کمی سایه --- */
.chip {
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}
.chip.is-active { box-shadow: 0 4px 12px rgba(14,111,99,.25); }
.chip:hover { transform: translateY(-1px); }

/* --- حالت خالی/قفل: آیکون با کمی گرادینت به‌جای رنگ تخت --- */
.empty__icon, .locked__icon {
  background: linear-gradient(150deg, var(--brand-tint), #EAF4F1);
  box-shadow: inset 0 0 0 1px rgba(14,111,99,.08);
}

/* --- عنوان بخش‌ها: کمی هویت بصری بیشتر --- */
.section__head h2 {
  position: relative; padding-inline-start: 12px;
}
.section__head h2::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--brand));
}

/* --- مودال: کمی نرم‌تر --- */
.modal__box { border-radius: 24px; }

/* --- انیمیشن ورود ملایم برای کارت‌ها هنگام بارگذاری صفحه --- */
@media (prefers-reduced-motion: no-preference) {
  .card, .stat { animation: panelFadeIn .35s cubic-bezier(.2,.7,.3,1) both; }
  .stats .stat:nth-child(2) { animation-delay: .04s; }
  .stats .stat:nth-child(3) { animation-delay: .08s; }
  .stats .stat:nth-child(4) { animation-delay: .12s; }
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   صفحه وضعیت — پرداخت موفق/ناموفق، مسدودی کسب‌وکار، بسته‌بودن فروشگاه،
   بدون‌دسترسی و مشابه آن‌ها.

   ⚠️ عمداً از .onboard استفاده نمی‌شود: .onboard برای ویزارد
   ساخت/انتخاب کسب‌وکار طراحی شده و پس‌زمینه‌اش گرادیان سبز تیره است —
   مناسب وقتی یک کارت سفید (.onboard__card) رویش قرار می‌گیرد. این
   صفحات کارت ندارند و متن مستقیم روی پس‌زمینه می‌نشیند؛ قبلاً همین
   باعث می‌شد متنِ تیره روی زمینه‌ی تیره تقریباً ناخوانا شود. این‌جا از
   صفر یک صفحه‌ی تمام‌سفید و گرافیکی طراحی شده — بدون هیچ اشتراکی با
   پس‌زمینه‌ی تیره‌ی onboard.
   ------------------------------------------------------------------- */
.statuspage {
  min-height: 100vh; padding: 40px 20px 60px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--canvas);
}
/* لکه‌های رنگی محو — همان زبان بصری برند (فیروزه‌ای/زعفرانی) ولی
   خیلی کم‌رنگ روی سفید، نه گرادیان تیره‌ی تمام‌صفحه */
.statuspage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 360px at 88% -5%, rgba(217,151,26,.10), transparent 60%),
    radial-gradient(520px 360px at 6% 108%, rgba(14,111,99,.10), transparent 60%);
}

.statuspage__card {
  position: relative; width: 100%; max-width: 460px;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 44px 34px 36px; text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: statuspageIn .4s cubic-bezier(.2,.7,.3,1) both;
}
@media (max-width: 520px) { .statuspage__card { padding: 34px 22px 28px; } }
@media (prefers-reduced-motion: reduce) { .statuspage__card { animation: none; } }
@keyframes statuspageIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.statuspage__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink-soft); text-decoration: none; margin-bottom: 22px;
}
.statuspage__brand:hover { color: var(--brand); text-decoration: none; }
.statuspage__brand span.mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 12px;
  background: linear-gradient(140deg, var(--brand), #14988A);
}

.statuspage__icon {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  animation: statuspageIconPop .5s .1s cubic-bezier(.34,1.4,.4,1) both;
}
@media (prefers-reduced-motion: reduce) { .statuspage__icon { animation: none; } }
@keyframes statuspageIconPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
.statuspage__icon--success { background: linear-gradient(150deg, var(--ok-tint), #EAF4F1); color: var(--ok); }
.statuspage__icon--error   { background: linear-gradient(150deg, var(--bad-tint), #FCEEEA); color: var(--bad); }
.statuspage__icon--warning { background: linear-gradient(150deg, var(--warn-tint), #FDF3E2); color: var(--warn); }
.statuspage__icon--neutral { background: linear-gradient(150deg, var(--brand-tint), #EAF4F1); color: var(--brand); }

.statuspage__title {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em;
}
.statuspage__lead {
  color: var(--ink-soft); font-size: 14px; line-height: 1.95;
  margin: 0 auto 26px; max-width: 40ch;
}
.statuspage__meta {
  font-size: 12px; color: var(--ink-faint); margin: -14px 0 22px;
  direction: ltr; word-break: break-all;
}
.statuspage__actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}


/* ===================================================================
   نوار اقدام گروهی (انتخاب چند سفارش و چاپ دسته‌ای)
   ------------------------------------------------------------------- */
.bulkbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  background: var(--brand-tint); border: 1px solid var(--brand);
  border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 12px;
}
.bulkbar__count { font-size: 13px; color: var(--brand-dark, var(--brand)); }
.bulkbar__count b { font-size: 15px; }
.bulkbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .bulkbar { position: sticky; bottom: 10px; z-index: 20; box-shadow: var(--shadow-lg); background: #fff; }
  .bulkbar__actions { width: 100%; }
  .bulkbar__actions .btn { flex: 1; }
}

/* ===================================================================
   نوار PWA (نصب اپلیکیشن / به‌روزرسانی)
   ⚠️ پایین صفحه و بالای safe-area می‌نشیند تا روی آیفون‌های بدون دکمه
   زیر نوار خانه پنهان نشود.
   ------------------------------------------------------------------- */
.pwabar {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  display: flex; align-items: center; gap: 10px;
  background: #0F2B28; color: #fff;
  padding: 13px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15,43,40,.32);
  font-size: 13px; line-height: 1.8;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  max-width: 520px; margin-inline: auto;
}
.pwabar.is-in { transform: translateY(0); opacity: 1; }
.pwabar__txt { flex: 1; min-width: 0; }
.pwabar__btn {
  flex: none; font: inherit; font-weight: 800; font-size: 12.5px;
  padding: 9px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: #00C896; color: #06231C;
}
.pwabar__btn:active { transform: scale(.96); }
.pwabar__x {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.pwabar--update { background: #0E6F63; }

@media (prefers-reduced-motion: reduce) {
  .pwabar { transition: opacity .2s ease; transform: none; }
}


/* ===================================================================
   اصلاحات ریسپانسیو موبایل — از تست واقعی روی iPhone SE و Pro
   ------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* ⚠️ ۱۶px عمدی و اجباری است: سافاری iOS اگر فونت فیلد کمتر از ۱۶px
     باشد، هنگام فوکوس خودکار روی آن زوم می‌کند و کل صفحه می‌پرد —
     کاربر وسط پر کردن فرم گیج می‌شود و باید دستی زوم را برگرداند. */
  .field__input,
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="number"], input[type="search"], input[type="password"],
  select, textarea {
    font-size: 16px;
  }

  /* هدف لمسی حداقل ۴۴px (راهنمای اپل) — انگشت دقت ماوس را ندارد */
  .btn { min-height: 44px; }
  .btn--sm { min-height: 38px; }
  .pwabar__x { width: 36px; height: 36px; font-size: 20px; }
  .pwabar__btn { min-height: 40px; }

  /* جلوگیری از سرریز افقی در هر شرایطی */
  html, body { overflow-x: hidden; }
  img, video, table { max-width: 100%; }
}

/* ===================================================================
   نمایشگر درون‌برنامه‌ای (رسید / فاکتور / برچسب)
   ⚠️ جایگزین target="_blank" — در حالت PWA تب تازه‌ای وجود ندارد و
   کاربر پنل را کاملاً از دست می‌داد.
   ------------------------------------------------------------------- */
.viewer { display: grid; gap: 14px; }

.viewer__bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 12px;
  position: sticky; top: 8px; z-index: 12;
}
.viewer__title { flex: 1; font-size: 13.5px; font-weight: 700; min-width: 0; }
.viewer__acts { display: flex; gap: 7px; }

.viewer__img {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px; text-align: center;
  overflow: auto;
}
.viewer__img img {
  max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto;
}

.viewer__frame {
  width: 100%; height: 76vh; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff;
}

.viewer__meta {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px;
}
.viewer__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.viewer__row:last-of-type { border-bottom: 0; }
.viewer__row span { color: var(--ink-faint); }
.viewer__decide { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

@media (max-width: 640px) {
  .viewer__title { width: 100%; order: 3; font-size: 12.5px; }
  .viewer__frame { height: 66vh; }
}

/* ===================================================================
   آپلود زنده‌ی عکس (محصول)
   ------------------------------------------------------------------- */
.uplist {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
}
.upitem {
  position: relative; width: 84px; height: 84px; border-radius: 14px;
  overflow: hidden; background: var(--canvas);
  border: 1px solid var(--line); flex: none;
}
.upitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upitem__ph { display: block; width: 100%; height: 100%; background: var(--canvas); }

/* ⚠️ دکمه‌ی حذف عمداً همیشه دیده می‌شود (نه فقط با hover): روی موبایل
   hover وجود ندارد و کاربر راهی برای حذف پیدا نمی‌کرد. */
.upitem__x {
  position: absolute; top: 4px; inset-inline-end: 4px;
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(15,43,40,.72); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  backdrop-filter: blur(4px);
}
.upitem__x:hover { background: var(--bad); }

.upitem__bar {
  position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: rgba(255,255,255,.5);
}
.upitem__bar i {
  display: block; height: 100%; background: var(--brand);
  transition: width .2s ease;
}
.upitem.is-err { border-color: var(--bad); }
.upitem__err {
  position: absolute; inset-inline: 0; bottom: 0;
  background: var(--bad); color: #fff;
  font-size: 10px; text-align: center; padding: 2px 0;
}

@media (max-width: 900px) {
  .upitem { width: 76px; height: 76px; }
  .upitem__x { width: 26px; height: 26px; font-size: 17px; }
}
