/* ============================================================
   باج‌یار ۲ — سیستم طراحی «مینیمالِ شناور»
   تفاوت‌های عمدی با نسخهٔ ۱ (شیشه‌ایِ سایدبار/تب‌بار):
   • منوی شناور بالای صفحه (بدون سایدبار، بدون تب‌بار پایین، بدون نشانگر اتصال)
   • سطح‌های صاف با خط مویی (به‌جای شیشهٔ مات و هاله‌های نورانی)
   • زمینهٔ نقطه‌چین ظریف، دکمه‌های کپسولی، گوشه‌های بزرگ
   ============================================================ */

/* ---------- فونت‌های لوکال ---------- */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Shabnam'; src: url('../fonts/Shabnam-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('../fonts/Estedad-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('../fonts/Estedad-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('../fonts/Estedad-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- متغیرها ---------- */
:root {
  --font: 'Vazirmatn';
  --bg: #0C1017;
  --surface: #131A24;
  --surface-2: #1A2330;
  --veil: rgba(4, 7, 12, .64);
  --ink: #E9EEF5;
  --faint: #8B99AC;
  --dot: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .17);
  --good: #34D399; --bad: #F87171; --warn: #FBBF24; --info: #60A5FA;
  --good-soft: rgba(52, 211, 153, .13); --bad-soft: rgba(248, 113, 113, .13);
  --warn-soft: rgba(251, 191, 36, .13); --info-soft: rgba(96, 165, 250, .13);
  --r: 18px; --r-lg: 26px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .3);
  /* پالت پیش‌فرض: زمرد */
  --acc: #34D399; --acc-deep: #10A56F; --acc-ink: #052A1D;
  --acc-soft: rgba(52, 211, 153, .15); --acc-border: rgba(52, 211, 153, .42);
}
[data-theme="light"] {
  --bg: #F4F6FA; --surface: #FFFFFF; --surface-2: #EFF2F7;
  --veil: rgba(15, 23, 42, .45);
  --ink: #131C2B; --faint: #5D6B81;
  --dot: rgba(19, 28, 43, .07);
  --line: rgba(19, 28, 43, .1); --line-strong: rgba(19, 28, 43, .19);
  --shadow: 0 12px 34px rgba(19, 28, 43, .1);
}
[data-palette="emerald"]   { --acc:#34D399; --acc-deep:#10A56F; --acc-ink:#052A1D; --acc-soft:rgba(52,211,153,.15); --acc-border:rgba(52,211,153,.42); }
[data-palette="turquoise"] { --acc:#2DD4CE; --acc-deep:#0E9494; --acc-ink:#03302E; --acc-soft:rgba(45,212,206,.15);  --acc-border:rgba(45,212,206,.42); }
[data-palette="gold"]      { --acc:#E3B85C; --acc-deep:#B8862E; --acc-ink:#2E2107; --acc-soft:rgba(227,184,92,.16);  --acc-border:rgba(227,184,92,.44); }
[data-palette="ocean"]     { --acc:#60A5FA; --acc-deep:#2563EB; --acc-ink:#FFFFFF; --acc-soft:rgba(96,165,250,.15);  --acc-border:rgba(96,165,250,.44); }
[data-palette="violet"]    { --acc:#A78BFA; --acc-deep:#7C3AED; --acc-ink:#FFFFFF; --acc-soft:rgba(167,139,250,.15); --acc-border:rgba(167,139,250,.44); }
[data-font="shabnam"] { --font: 'Shabnam'; }
[data-font="estedad"] { --font: 'Estedad'; }

/* ---------- پایه ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font), Tahoma, system-ui, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 10px; }
::selection { background: var(--acc-soft); color: var(--acc); }
.ic { flex-shrink: 0; vertical-align: middle; }
.faint { color: var(--faint); }
.fgrow { flex: 1; min-width: 0; }

/* ---------- منوی شناور بالای صفحه (امضای ظاهری نسخهٔ ۲) ---------- */
.topdock {
  position: sticky; top: 10px; z-index: 60;
  max-width: 1080px; margin: 12px auto 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 10px 16px 12px;
}
.dockrow { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { border-radius: 11px; }
.bname { display: flex; flex-direction: column; line-height: 1.25; }
.bname b { font-size: 16.5px; font-weight: 800; }
.bname small { color: var(--faint); font-size: 11px; }
.docktools { margin-inline-start: auto; display: flex; gap: 7px; }
.docknav {
  display: flex; gap: 6px; margin-top: 11px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.docknav::-webkit-scrollbar { display: none; }
.navpill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid transparent;
  color: var(--faint); background: transparent;
  font-weight: 700; font-size: 13.5px; white-space: nowrap;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.navpill:hover { color: var(--ink); background: var(--surface-2); }
.navpill.on { background: var(--acc); color: var(--acc-ink); }
.navpill.on:hover { color: var(--acc-ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 2px 18px 40px; display: flex; flex-direction: column; gap: 16px; }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 6px 16px 36px; }

/* ---------- پنل و تیترها ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.ptitle { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 800; margin: 0 0 12px; }
.ptitle .badge { margin-inline-start: auto; }
.ptitle-xl { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; margin: 4px 0 14px; }
.ptitle-xl .ic { color: var(--acc); }
.hero { padding: 30px 26px; }
.hero-h { font-size: clamp(25px, 4.4vw, 38px); font-weight: 800; margin: 2px 0 8px; }
.hero-sub { color: var(--faint); font-size: 15px; max-width: 560px; margin: 0 0 4px; }

/* ---------- دکمه‌ها (کپسولی) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: .15s; text-align: center;
}
.btn:hover { border-color: var(--acc-border); }
.btn.primary { background: linear-gradient(135deg, var(--acc), var(--acc-deep)); color: var(--acc-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn.sm { padding: 7px 14px; font-size: 12.5px; gap: 6px; }
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

.iconbtn {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--faint);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: .15s;
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.iconbtn.sm { width: 30px; height: 30px; border-radius: 9px; }
.iconbtn.listening { color: var(--bad); border-color: var(--bad); animation: pulse 1.1s infinite; }

/* ---------- فرم‌ها ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.flabel { font-size: 12.5px; color: var(--faint); font-weight: 700; }
.input {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; color: var(--ink);
  padding: 11px 15px; font-family: inherit; font-size: 14px; width: 100%;
}
.input:focus { outline: none; border-color: var(--acc-border); box-shadow: 0 0 0 3px var(--acc-soft); }
textarea.input { min-height: 100px; resize: vertical; line-height: 2; }
select.input { cursor: pointer; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); cursor: pointer; }
.check.sm { font-size: 12.5px; color: var(--faint); }
.multibox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 220px; overflow-y: auto; padding: 4px; }

/* ---------- چیپ و بج ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--faint);
  white-space: nowrap;
}
.chip.gold { background: var(--acc-soft); color: var(--acc); border-color: var(--acc-border); }
.chip.green { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.red { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.blue { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.clickable { cursor: pointer; }
.chip.clickable:hover { border-color: var(--acc-border); color: var(--acc); }
.badge {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  background: var(--acc-soft); color: var(--acc); border: 1px solid var(--acc-border);
}

/* ---------- اطلاع‌ها ---------- */
.notice { padding: 14px 17px; border-radius: 16px; font-size: 13.5px; line-height: 2; }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice.ok { background: var(--good-soft); color: var(--good); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err { background: var(--bad-soft); color: var(--bad); }
.hint-note { font-size: 12.5px; color: var(--faint); background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.listen-note { text-align: center; color: var(--bad); font-weight: 700; font-size: 13px; margin-top: 10px; }

/* ---------- چیدمان‌های کمکی ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 7px; transition: .18s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--acc-border); box-shadow: var(--shadow); }
.tile .ic { color: var(--acc); }
.tile b { font-size: 15.5px; }
.tile span { color: var(--faint); font-size: 12.5px; line-height: 1.9; }

/* ---------- تایم‌لاین مهلت‌ها ---------- */
.timeline { display: flex; flex-direction: column; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--line); }
.tl-row:last-child { border-bottom: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); flex-shrink: 0; }
.tl-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.tl-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.tl-row b { display: block; font-size: 13.5px; }

/* ---------- آیتم عمومی ---------- */
.item { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--surface-2); }
.item-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-title { font-weight: 800; font-size: 14px; }
.item-sub { color: var(--faint); font-size: 12.5px; line-height: 2; margin-top: 6px; }
.kv { margin-top: 9px; font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kv > b { color: var(--faint); font-weight: 700; }
.price { font-weight: 800; color: var(--acc); }
.manage-row { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--surface-2); }
.checkitem { cursor: pointer; }
.snaplist { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 6px 14px; margin-bottom: 16px; }
.snap-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.snap-row:last-child { border-bottom: none; }
.snap-row.total { font-weight: 800; color: var(--acc); }

/* ---------- مراحل ویزارد ---------- */
.steps { display: flex; margin-bottom: 22px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--faint); font-size: 11px; font-weight: 700; }
.step i {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 13px; z-index: 1;
}
.step::before { content: ''; position: absolute; top: 15px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step.done i { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.step.done::before { background: var(--acc); }
.step.on i { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.step.on { color: var(--ink); }

.qbox { max-width: 620px; margin: 0 auto; text-align: center; }
.qtext { font-size: 19px; font-weight: 800; margin: 12px 0 6px; }
.optcol { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: block; width: 100%; text-align: start;
  padding: 15px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font-weight: 700; font-size: 14.5px;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.opt:hover { border-color: var(--acc-border); background: var(--acc-soft); }
.pick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; margin: 10px auto; }
.pick {
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 20px; text-align: center; cursor: pointer;
  background: var(--surface); transition: .15s;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.pick .ic { color: var(--acc); }
.pick b { font-size: 17px; }
.pick span { color: var(--faint); font-size: 12.5px; }
.pick:hover { border-color: var(--acc-border); background: var(--acc-soft); transform: translateY(-2px); }
.totals { border: 1px solid var(--acc-border); background: var(--acc-soft); border-radius: var(--r); padding: 16px 20px; margin-top: 16px; }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.total-row b { font-size: 16px; }
.total-row.light { border-top: 1px dashed var(--acc-border); margin-top: 6px; padding-top: 12px; color: var(--acc); }

/* ---------- دراپ‌زون ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r);
  cursor: pointer; text-align: center; color: var(--faint); transition: .15s;
  margin-bottom: 14px;
}
.dropzone:hover { border-color: var(--acc-border); background: var(--acc-soft); }
.dropzone .ic { color: var(--acc); }
.dropzone b { color: var(--ink); font-size: 14.5px; }
.dropzone span { font-size: 11.5px; }
.confwrap { display: flex; flex-direction: column; gap: 5px; }
.conf { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; max-width: 320px; }
.conf i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-deep)); border-radius: 99px; }

/* ---------- تقویم ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-title { font-weight: 800; font-size: 16.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--faint); font-weight: 800; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid transparent; font-size: 13px; position: relative;
}
@media (min-width: 821px) {
  .cal-day { aspect-ratio: auto; height: 54px; }
}
.cal-day.today { background: var(--acc); color: var(--acc-ink); font-weight: 800; }
.cal-day.hasdue { border-color: var(--acc-border); background: var(--acc-soft); }
.ddot { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }

/* ---------- چت ---------- */
.chatpanel { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chat-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; }
.chat-head .ic { color: var(--acc); }
.chatlist { display: flex; flex-direction: column; gap: 13px; max-height: 54vh; min-height: 220px; overflow-y: auto; padding: 4px 2px; }
.chat-hello { text-align: center; padding: 30px 10px; color: var(--faint); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.chat-hello b { color: var(--ink); font-size: 15.5px; }
.chipcol { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.msg { display: flex; flex-direction: column; max-width: 86%; }
.msg.user { align-self: flex-start; align-items: flex-start; }
.msg.bot { align-self: flex-end; align-items: flex-end; }
.msg .bub { padding: 12px 17px; border-radius: 19px; font-size: 14px; line-height: 2; white-space: pre-wrap; word-break: break-word; }
.msg.user .bub { background: linear-gradient(135deg, var(--acc), var(--acc-deep)); color: var(--acc-ink); border-end-start-radius: 7px; }
.msg.bot .bub { background: var(--surface-2); border: 1px solid var(--line); border-end-end-radius: 7px; }
.msg-tools { display: flex; gap: 6px; margin-top: 5px; }
.cites { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.lawcite {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: var(--acc-soft); color: var(--acc);
  border: 1px solid var(--acc-border); border-radius: 9px; padding: 3px 10px;
  margin: 3px 0 0;
}
.typing { display: flex; gap: 5px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.chatinput { display: flex; gap: 9px; margin-top: 14px; align-items: center; }
.chatinput .input { border-radius: 999px; }

/* ---------- آمار / خالی / نوار پیشرفت ---------- */
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 17px; display: flex; flex-direction: column; gap: 3px; }
.stat .ic { color: var(--acc); }
.stat b { font-size: 21px; font-weight: 800; }
.stat span { color: var(--faint); font-size: 12px; }
.empty { text-align: center; padding: 34px 16px; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.empty .ic { color: var(--acc); opacity: .85; }
.empty b { color: var(--ink); font-size: 15px; }
.empty span { font-size: 12.5px; line-height: 2; max-width: 380px; }
.progress { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-deep)); transition: width .3s; }
.terms summary { cursor: pointer; font-weight: 700; color: var(--acc); }
.terms-body { white-space: pre-wrap; color: var(--faint); font-size: 12.5px; line-height: 2.1; padding: 12px 2px 2px; }

/* ---------- مدیریت: ظاهر ---------- */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button {
  border: none; background: transparent; color: var(--faint);
  padding: 9px 17px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.seg button.on { background: var(--acc); color: var(--acc-ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 46px; height: 46px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transition: .15s; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--acc-soft); }
.opt-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }

/* ---------- مودال / توست ---------- */
.modal-veil {
  position: fixed; inset: 0; z-index: 100;
  background: var(--veil);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-veil[hidden] { display: none; }
.modal {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 24px;
  width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
#toast-zone {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: max-content; max-width: 94vw;
}
.toast {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 999px; padding: 11px 21px;
  font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow);
  animation: tin .25s; max-width: 94vw;
}
.toast.err { border-color: var(--bad); color: var(--bad); }
.toast.ok { border-color: var(--good); color: var(--good); }
.toast.out { opacity: 0; transition: .32s; }

/* ---------- لودر ---------- */
.spinnerbox { display: flex; align-items: center; gap: 12px; color: var(--faint); padding: 26px 6px; justify-content: center; }
.spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line-strong); border-top-color: var(--acc);
  animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--bad-soft); } 50% { box-shadow: 0 0 0 7px var(--bad-soft); } }
@keyframes tin { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
.bootdot {
  width: 14px; height: 14px; border-radius: 50%; margin: 44vh auto 0;
  background: var(--acc); animation: blink 1s infinite;
}

/* ---------- اسناد ---------- */
.docrow { display: flex; flex-wrap: wrap; }
.docchip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 9px 15px; border-radius: 999px; font-size: 12.5px;
  margin: 0 0 8px 8px; transition: .15s;
}
.docchip:hover { border-color: var(--acc-border); }
.docchip .ic { color: var(--acc); }
.docchip span { color: var(--faint); }

/* ---------- باج‌یار ۳: اشتراک‌ها و تیکت‌ها ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: .15s; }
.plan-card.on { border-color: var(--acc-border); box-shadow: 0 0 0 3px var(--acc-soft); }
.plan-card.current { border-color: var(--good); }
.plan-name { font-size: 17px; font-weight: 800; }
.price-line { font-size: 24px; font-weight: 800; color: var(--acc); margin: 8px 0 4px; }
.price-line small { font-size: 12px; color: var(--faint); font-weight: 700; }
.perks { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 4px; }
.perk { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.9; color: var(--ink); }
.perk .ic { color: var(--acc); margin-top: 4px; }
.ticket-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); margin-bottom: 9px; cursor: pointer; font-family: inherit; color: var(--ink); transition: .15s; }
.ticket-row:hover { border-color: var(--acc-border); }
.ticket-row.has-unread { border-color: var(--acc-border); background: var(--acc-soft); }
.ticket-row b { font-size: 13.5px; }

/* ---------- چاپ ---------- */
@media print {
  .topdock, .foot, #toast-zone, .modal-veil, .noprint, .btnrow, .dropzone { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .wrap { max-width: none; padding: 0; gap: 0; }
  .panel { border: none; background: none; box-shadow: none; padding: 0; }
  .brief-body { background: none; border: none; padding: 0; font-size: 12pt; line-height: 2.4; }
}

/* ---------- موبایل ---------- */
@media (max-width: 820px) {
  .grid2, .pick2, .grid3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .multibox { grid-template-columns: 1fr; }
  .opt-row { grid-template-columns: 1fr; }
  .wrap { padding: 0 12px 34px; }
  .panel { padding: 18px; border-radius: 21px; }
  .hero { padding: 22px 18px; }
  .modal-veil { align-items: flex-end; padding: 0; }
  .modal { border-radius: 22px 22px 0 0; max-width: none; max-height: 92vh; }
  .chatlist { max-height: 48vh; }
  .msg { max-width: 94%; }
  .bname small { display: none; }
}
