/* iKral Platform — افزونه x-biz: خدمات، درخواست پروژه با برآورد، پیگیری و رزرو مشاوره
   یک پوسته برای دو جا: صفحه‌های عمومی (.xb-site، متغیرهای site.css) و پنجره‌های میز کار (.xb-desk، متغیرهای os.css)
   چیدمان با container query تا در پنجره کوچک میز کار و گوشی هم درست باشد؛ ویژگی‌های منطقی برای راست‌به‌چپ و چپ‌به‌راست */

.xb { --xb-r: 16px; --xb-r2: 12px; --xb-ok: #16a34a; --xb-warn: #d97706; --xb-bad: #dc2626; --xb-red: #dc2626; --xb-ease: cubic-bezier(.22, .9, .28, 1); color: var(--xb-ink); }
.xb-site { --xb-ink: var(--ink); --xb-ink2: var(--ink2); --xb-mut: var(--mut); --xb-card: var(--card); --xb-soft: var(--bg2); --xb-line: var(--line); --xb-line2: var(--line2);
  --xb-acc: var(--acc); --xb-acc-ink: var(--acc-ink); --xb-hl: #3b5bdb; --xb-sh: var(--sh); --xb-est: #1d2030; --xb-est-ink: #fff; --xb-est-mut: rgba(255, 255, 255, .62); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xb-site { --xb-hl: #8ea2ff; --xb-red: #f87171; --xb-est: #eceef4; --xb-est-ink: #12141c; --xb-est-mut: rgba(18, 20, 28, .62); } }
:root[data-theme="dark"] .xb-site { --xb-hl: #8ea2ff; --xb-red: #f87171; --xb-est: #eceef4; --xb-est-ink: #12141c; --xb-est-mut: rgba(18, 20, 28, .62); }
.xb-desk { --xb-ink: var(--text); --xb-ink2: var(--text-2); --xb-mut: var(--text-3); --xb-card: var(--panel-2); --xb-soft: var(--panel); --xb-line: var(--line); --xb-line2: var(--line-2);
  --xb-acc: var(--accent); --xb-acc-ink: #fff; --xb-hl: var(--accent); --xb-sh: none; --xb-red: #f87171; --xb-est: linear-gradient(140deg, #1f2a5c, #3b2a78 55%, #5b2370); --xb-est-ink: #fff; --xb-est-mut: rgba(255, 255, 255, .66);
  font-family: var(--font); font-size: 14px; line-height: 1.85; }
[data-theme="light"] .xb-desk { --xb-red: #dc2626; }
.xb *, .xb *::before, .xb *::after { box-sizing: border-box; }
.xb h2, .xb h3, .xb h4 { margin: 0; line-height: 1.5; }
.xb p { margin: 0; }
.xb-i { flex: none; vertical-align: middle; }
.xb-imask { display: inline-block; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* ---------- اجزای پایه ---------- */
.xb-card { background: var(--xb-card); border: 1px solid var(--xb-line); border-radius: var(--xb-r); box-shadow: var(--xb-sh); min-width: 0; }
.xb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.xb-center { justify-content: center; }
.xb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 13px; border: 1px solid var(--xb-line2); background: transparent; color: var(--xb-ink);
  font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s, transform .12s; white-space: nowrap; position: relative; }
.xb-btn:hover { background: var(--xb-soft); }
.xb-btn:active { transform: translateY(1px); }
.xb-btn.pri { background: var(--xb-acc); border-color: var(--xb-acc); color: var(--xb-acc-ink); }
.xb-btn.pri:hover { opacity: .92; background: var(--xb-acc); }
.xb-btn.danger { background: var(--xb-bad); border-color: var(--xb-bad); color: #fff; }
.xb-btn.sm { min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 10px; }
.xb-btn.wide { width: 100%; }
.xb-btn[disabled] { opacity: .45; cursor: default; transform: none; }
.xb-btn.busy { color: transparent !important; pointer-events: none; }
.xb-btn.busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--xb-acc-ink) transparent var(--xb-acc-ink) transparent; animation: xb-spin .8s linear infinite; }
.xb-btn.ghost.busy::after { border-color: var(--xb-ink) transparent var(--xb-ink) transparent; }
@keyframes xb-spin { to { transform: rotate(360deg); } }
.xb-ib { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--xb-line); background: var(--xb-card); color: var(--xb-ink); cursor: pointer; flex: none; transition: background .2s, border-color .2s; }
.xb-ib:hover:not([disabled]) { border-color: var(--xb-line2); background: var(--xb-soft); }
.xb-ib[disabled] { opacity: .35; cursor: default; }
.xb-f { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--xb-ink2); min-width: 0; }
.xb-f em { color: var(--xb-bad); font-style: normal; }
.xb-f small { font-weight: 400; color: var(--xb-mut); }
.xb-in { width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--xb-ink); background: var(--xb-card); border: 1px solid var(--xb-line2); border-radius: var(--xb-r2); padding: 9px 12px; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.xb-desk .xb-in { background: var(--panel); }
textarea.xb-in { resize: vertical; line-height: 1.9; min-height: 96px; }
select.xb-in { cursor: pointer; }
.xb-in:focus { outline: none; border-color: var(--xb-hl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xb-hl) 20%, transparent); }
.xb-in.bad, .xb-in[aria-invalid="true"] { border-color: var(--xb-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xb-bad) 14%, transparent); }
.xb-in[dir="ltr"] { text-align: left; }
.xb-in::placeholder { color: var(--xb-mut); opacity: .75; }
.xb-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.xb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.xb-form { display: grid; gap: 13px; }
.xb-hint { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--xb-mut); line-height: 1.8; }
.xb-hint .xb-i, .xb-hint svg { margin-top: 3px; }
.xb-err { color: var(--xb-bad); font-size: 13.5px; font-weight: 600; }
.xb-err[hidden] { display: none; }
.xb-cb { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--xb-ink2); cursor: pointer; line-height: 1.8; }
.xb-cb input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--xb-acc); flex: none; }
.xb-cb:has(input.bad) span { color: var(--xb-bad); }
.xb-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.xb-fs legend { font-size: 13.5px; font-weight: 600; color: var(--xb-ink2); padding: 0; margin-bottom: 7px; }
.xb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.xb-chip span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--xb-line2); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 13.5px; transition: background .2s, color .2s, border-color .2s; }
.xb-chip input:checked + span { background: var(--xb-acc); color: var(--xb-acc-ink); border-color: var(--xb-acc); }
.xb-chip input:focus-visible + span { outline: 2px solid var(--xb-hl); outline-offset: 2px; }
.xb-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xb-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--xb-soft); color: var(--xb-ink2); white-space: nowrap; }
.xb-badge.ok { background: color-mix(in srgb, var(--xb-ok) 15%, transparent); color: var(--xb-ok); }
.xb-badge.warn { background: color-mix(in srgb, var(--xb-warn) 16%, transparent); color: var(--xb-warn); }
.xb-badge.bad { background: color-mix(in srgb, var(--xb-bad) 14%, transparent); color: var(--xb-bad); }
.xb-badge.info { background: color-mix(in srgb, var(--xb-hl) 15%, transparent); color: var(--xb-hl); }
.xb-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 38px 16px; color: var(--xb-mut); }
.xb-empty b { color: var(--xb-ink2); font-size: 15px; }
.xb-empty.sm { padding: 26px 12px; }
.xb-empty span { font-size: 13px; }
.xb-skel { display: grid; gap: 12px; padding: 4px 0; }
.xb-skel i { display: block; height: 120px; border-radius: var(--xb-r); background: linear-gradient(90deg, var(--xb-soft, #eee) 0%, color-mix(in srgb, var(--xb-soft, #eee) 40%, var(--xb-card, #fff)) 50%, var(--xb-soft, #eee) 100%); background-size: 200% 100%; animation: xb-sh 1.4s ease-in-out infinite; }
.xb-skel i:first-child { height: 46px; }
.xb-skel.sm i { height: 40px; }
.xb-mount > .xb-skel i { background-color: var(--bg2, rgba(127, 127, 127, .12)); }
@keyframes xb-sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.xb-sub { font-size: 14.5px; font-weight: 800; margin: 18px 0 10px !important; color: var(--xb-ink); }
.xb-sub:first-child { margin-top: 0 !important; }
.xb-mt { margin-top: 16px; }

/* ---------- گزینه‌های کارتی (رادیو و چک‌باکس) ---------- */
.xb-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.xb-types { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.xb-cols3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.xb-opt { position: relative; display: flex; gap: 11px; align-items: center; padding: 12px 14px; padding-inline-end: 38px; border: 1px solid var(--xb-line2); border-radius: 14px; background: var(--xb-card); cursor: pointer; min-width: 0;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s var(--xb-ease); }
.xb-opt:hover { border-color: color-mix(in srgb, var(--xb-hl) 45%, var(--xb-line2)); }
.xb-opt input { position: absolute; opacity: 0; pointer-events: none; }
.xb-opt:has(input:focus-visible) { outline: 2px solid var(--xb-hl); outline-offset: 2px; }
.xb-opt-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--xb-soft); color: var(--xb-ink); flex: none; transition: background .2s, color .2s; }
.xb-opt-t { display: grid; gap: 1px; min-width: 0; }
.xb-opt-t b { font-size: 14px; font-weight: 700; line-height: 1.6; }
.xb-opt-t small { font-size: 12.5px; color: var(--xb-mut); line-height: 1.7; }
.xb-ck { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--xb-line2); display: grid; place-items: center; color: transparent; transition: all .2s; }
.xb-opt input[type="radio"] ~ .xb-ck { border-radius: 50%; }
.xb-opt.on { border-color: var(--xb-hl); background: color-mix(in srgb, var(--xb-hl) 6%, var(--xb-card)); box-shadow: 0 0 0 1px var(--xb-hl) inset; }
.xb-opt.on .xb-ck { background: var(--xb-hl); border-color: var(--xb-hl); color: #fff; }
.xb-opt.on .xb-opt-ic { background: var(--xb-hl); color: #fff; }
.xb-opt.big { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; padding-inline-end: 16px; min-height: 132px; }
.xb-opt.big .xb-ck { top: 16px; translate: none; }
.xb-opt.big .xb-opt-ic { width: 46px; height: 46px; border-radius: 14px; }

/* ---------- جادوگر درخواست پروژه ---------- */
.xb-wiz { container-type: inline-size; display: grid; gap: 14px; }
.xb-prog { list-style: none; margin: 0; padding: 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.xb-prog::-webkit-scrollbar { display: none; }
.xb-prog li { flex: 1 0 auto; position: relative; }
.xb-prog button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 12px; cursor: pointer; color: var(--xb-mut); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.xb-prog button:hover:not([disabled]) { background: var(--xb-soft); }
.xb-prog button:focus-visible { outline: 2px solid var(--xb-hl); }
.xb-prog button[disabled] { cursor: default; opacity: .6; }
.xb-prog i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; border: 1.5px solid var(--xb-line2); font-style: normal; font-size: 12.5px; font-weight: 800; flex: none; transition: all .25s; }
.xb-prog li.done button { color: var(--xb-ink2); }
.xb-prog li.done i { background: color-mix(in srgb, var(--xb-ok) 14%, transparent); border-color: transparent; color: var(--xb-ok); }
.xb-prog li.on button { color: var(--xb-ink); }
.xb-prog li.on i { background: var(--xb-acc); border-color: var(--xb-acc); color: var(--xb-acc-ink); }
.xb-wz-grid { display: grid; gap: 14px; align-items: start; }
.xb-wz-main { padding: clamp(16px, 3.4cqi, 26px); display: grid; gap: 16px; }
.xb-wz-h small { color: var(--xb-mut); font-size: 12.5px; font-weight: 600; }
.xb-wz-h h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.6cqi, 22px); font-weight: 800; margin: 2px 0 4px; outline: none; }
.xb-wz-h p { color: var(--xb-ink2); font-size: 14px; }
.xb-wz-body { min-height: 120px; animation: xb-in .35s var(--xb-ease) both; }
@keyframes xb-in { from { opacity: 0; transform: translateY(8px); } }
.xb-wz-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--xb-line); }
.xb-step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xb-step output { min-width: 42px; text-align: center; font-size: 20px; font-weight: 800; }
.xb-step small { color: var(--xb-mut); font-size: 13px; margin-inline-start: 6px; }

/* پنل برآورد زنده */
.xb-est { position: sticky; bottom: 10px; z-index: 4; border-radius: var(--xb-r); background: var(--xb-est); color: var(--xb-est-ink); box-shadow: 0 18px 40px -18px rgba(10, 12, 30, .55); overflow: hidden; }
.xb-est-in { position: relative; padding: 14px 16px; display: grid; gap: 4px; }
.xb-est-in::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(120, 140, 255, .32), transparent 65%); pointer-events: none; }
.xb-est-k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--xb-est-mut); }
.xb-est-in.empty p { font-size: 13.5px; color: var(--xb-est-mut); }
.xb-est-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.xb-est-v b { font-size: 21px; font-weight: 900; letter-spacing: -.01em; line-height: 1.4; }
.xb-est-v span, .xb-est-v small { color: var(--xb-est-mut); font-size: 13px; font-weight: 600; }
.xb-est-v.pulse { animation: xb-pulse .45s var(--xb-ease); }
@keyframes xb-pulse { 40% { transform: scale(1.03); } }
.xb-est-m { font-size: 12.5px; color: var(--xb-est-mut); }
.xb-est-w { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.xb-est-l { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xb-est-l li { font-size: 12px; padding: 1px 10px; border-radius: 99px; background: color-mix(in srgb, var(--xb-est-ink) 12%, transparent); }
.xb-est-d { font-size: 11.5px; line-height: 1.8; color: var(--xb-est-mut); margin-top: 8px !important; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--xb-est-ink) 14%, transparent); }
@container (max-width: 759px) {
  .xb-est-l, .xb-est-d, .xb-est-v { display: none; }
  .xb-est-m { font-size: 16px; font-weight: 800; color: var(--xb-est-ink); }
  .xb-est-in { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 11px 14px; }
  .xb-est-k { grid-column: 1 / -1; }
  .xb-est-v b { font-size: 17px; }
  .xb-est-w { font-size: 13px; }
  .xb-prog span { display: none; }
  .xb-prog li.on span { display: inline; }
  .xb-prog li { flex: 0 0 auto; }
  .xb-prog li.on { flex: 1 0 auto; }
}
@container (min-width: 760px) {
  .xb-wz-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .xb-est { position: sticky; top: 84px; bottom: auto; }
  .xb-est-in { padding: 20px; gap: 6px; }
  .xb-est-v { flex-direction: column; align-items: flex-start; gap: 0; }
  .xb-est-v b { font-size: 25px; }
  .xb-est-v span { font-size: 12px; }
  .xb-est-w { margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--xb-est-ink) 10%, transparent); }
}
.xb-desk .xb-wiz .xb-est { top: 12px; }

/* پایان: کد پیگیری */
.xb-done { padding: clamp(22px, 5cqi, 40px) 18px; display: grid; justify-items: center; text-align: center; gap: 12px; animation: xb-in .4s var(--xb-ease) both; }
.xb-done h2 { font-size: clamp(19px, 3cqi, 24px); font-weight: 800; }
.xb-done > p { color: var(--xb-ink2); max-width: 520px; }
.xb-done-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: color-mix(in srgb, var(--xb-ok) 14%, transparent); color: var(--xb-ok); }
.xb-done-ic.warn { background: color-mix(in srgb, var(--xb-warn) 15%, transparent); color: var(--xb-warn); }
.xb-code { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; padding: 12px 18px; border-radius: 16px; border: 1.5px dashed var(--xb-line2); background: var(--xb-soft); margin: 6px 0; }
.xb-code small { width: 100%; color: var(--xb-mut); font-size: 12px; }
.xb-code b { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: clamp(22px, 4cqi, 30px); letter-spacing: .12em; font-weight: 800; }
.xb-done-est { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.xb-done-est > div { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--xb-line); min-width: 180px; }
.xb-done-est small { color: var(--xb-mut); font-size: 12px; }
.xb-done-est b { font-size: 15.5px; }
.xb-done-est em { font-style: normal; font-weight: 400; color: var(--xb-mut); font-size: 13px; }
.xb-done .xb-hint { justify-content: center; }
.xb-done .xb-tr-meta { width: min(100%, 560px); text-align: start; }

/* ---------- پیگیری ---------- */
.xb-track { display: grid; gap: 14px; container-type: inline-size; }
.xb-tr-f { padding: 18px; display: grid; gap: 14px; }
.xb-tr-card { padding: clamp(16px, 3.4cqi, 24px); display: grid; gap: 16px; animation: xb-in .35s var(--xb-ease) both; }
.xb-tr-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.xb-tr-h small { display: block; color: var(--xb-mut); font-size: 12px; }
.xb-tr-h b { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 22px; letter-spacing: .08em; }
.xb-tr-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; margin: 0; }
.xb-tr-meta > div { padding: 10px 14px; border-radius: 12px; background: var(--xb-soft); min-width: 0; }
.xb-tr-meta dt { font-size: 12px; color: var(--xb-mut); }
.xb-tr-meta dd { margin: 0; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.xb-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; counter-reset: s; }
.xb-tl li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.xb-tl li::before { content: ''; position: absolute; top: 15px; inset-inline-start: calc(-50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--xb-line2); }
.xb-tl li:first-child::before { display: none; }
.xb-tl li.done::before, .xb-tl li.on::before { background: var(--xb-ok); }
.xb-tl i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--xb-line2); background: var(--xb-card); font-style: normal; font-size: 13px; font-weight: 800; color: var(--xb-mut); z-index: 1; }
.xb-tl li.done i { background: var(--xb-ok); border-color: var(--xb-ok); color: #fff; }
.xb-tl li.on i { border-color: var(--xb-hl); color: var(--xb-hl); box-shadow: 0 0 0 5px color-mix(in srgb, var(--xb-hl) 16%, transparent); }
.xb-tl li.bad i { background: var(--xb-bad); border-color: var(--xb-bad); color: #fff; }
.xb-tl b { font-size: 13px; }
.xb-tl small { font-size: 11.5px; color: var(--xb-mut); }
@container (max-width: 520px) {
  .xb-tl { grid-template-columns: 1fr; gap: 14px; }
  .xb-tl li { grid-template-columns: 32px 1fr; justify-items: start; text-align: start; column-gap: 12px; row-gap: 0; }
  .xb-tl li i { grid-row: span 2; }
  .xb-tl li::before { top: -14px; inset-inline-start: 15px; width: 2px; height: 14px; }
}
.xb-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.xb-notes li { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--xb-line); }
.xb-notes li > div { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.xb-notes small { color: var(--xb-mut); font-size: 12px; }
.xb-notes p { white-space: pre-wrap; font-size: 14px; }

/* ---------- رزرو مشاوره ---------- */
.xb-book { container-type: inline-size; display: grid; gap: 14px; }
.xb-intro { color: var(--xb-ink2); }
.xb-bk-types { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.xb-bk-grid { display: grid; gap: 14px; align-items: start; }
@container (min-width: 720px) { .xb-bk-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.xb-cal { padding: 14px; transition: opacity .2s; }
.xb-cal.loading { opacity: .55; pointer-events: none; }
.xb-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.xb-cal-h > div { display: grid; text-align: center; }
.xb-cal-h b { font-size: 16.5px; font-weight: 800; }
.xb-cal-h small { color: var(--xb-mut); font-size: 12px; }
.xb-wk, .xb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.xb-wk span { text-align: center; font-size: 12px; font-weight: 700; color: var(--xb-mut); padding: 4px 0; }
.xb-wk .red { color: var(--xb-red); }
.xb-d { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; align-content: center; aspect-ratio: 1 / .92; min-height: 40px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--xb-ink); background: var(--xb-soft); border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, transform .12s; }
.xb-d small { font-size: 9.5px; font-weight: 500; color: var(--xb-mut); line-height: 1.2; }
.xb-d.pad { background: none; cursor: default; }
.xb-d.open:hover { border-color: var(--xb-hl); background: color-mix(in srgb, var(--xb-hl) 8%, var(--xb-card)); }
.xb-d:focus-visible { outline: 2px solid var(--xb-hl); outline-offset: 1px; }
.xb-d[disabled] { cursor: default; background: transparent; color: var(--xb-mut); opacity: .5; font-weight: 500; }
.xb-d.red { color: var(--xb-red); }
.xb-d.red[disabled] { opacity: .75; background: color-mix(in srgb, var(--xb-red) 7%, transparent); }
.xb-d.past, .xb-d.far { opacity: .32; }
.xb-d.today::after { content: ''; position: absolute; inset: 2px; border-radius: 10px; border: 1.5px dashed var(--xb-line2); pointer-events: none; }
.xb-d.sel { background: var(--xb-acc); color: var(--xb-acc-ink); border-color: var(--xb-acc); transform: scale(1.04); }
.xb-d.sel small { color: inherit; opacity: .7; }
.xb-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--xb-ok); }
.xb-d .xb-dot { position: absolute; bottom: 5px; inset-inline-start: 50%; translate: -50% 0; }
[dir="rtl"] .xb-d .xb-dot { translate: 50% 0; }
.xb-dot.few { background: var(--xb-warn); }
.xb-d.sel .xb-dot { background: currentColor; }
.xb-sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--xb-red) 22%, transparent); border: 1px solid var(--xb-red); }
.xb-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--xb-mut); }
.xb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.xb-slots { padding: 16px; min-height: 260px; }
.xb-sl-h { display: grid; gap: 2px; margin-bottom: 6px; }
.xb-sl-h b { font-size: 15.5px; font-weight: 800; }
.xb-sl-h small { display: flex; align-items: center; gap: 6px; color: var(--xb-mut); font-size: 12.5px; }
.xb-slots h4 { font-size: 12.5px; color: var(--xb-mut); font-weight: 700; margin: 12px 0 6px; }
.xb-sl { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 7px; }
.xb-sl button { all: unset; box-sizing: border-box; text-align: center; padding: 9px 6px; border-radius: 11px; border: 1px solid var(--xb-line2); cursor: pointer; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; transition: all .18s; animation: xb-in .3s var(--xb-ease) both; }
.xb-sl button:hover { border-color: var(--xb-hl); background: color-mix(in srgb, var(--xb-hl) 8%, transparent); color: var(--xb-hl); }
.xb-sl button:focus-visible { outline: 2px solid var(--xb-hl); }
.xb-pick { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--xb-line); }
.xb-pick small { display: block; color: var(--xb-mut); font-size: 12px; }
.xb-pick b { font-size: 14.5px; }
.xb-slots .xb-err:first-child { margin-bottom: 10px; }

/* ---------- لغو رزرو ---------- */
.xb-cancel { display: grid; gap: 12px; margin-top: 6px; }
.xb-confirm { font-weight: 700; }
.xb-msg { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--xb-r); }
.xb-msg.ok { background: color-mix(in srgb, var(--xb-ok) 10%, transparent); color: var(--xb-ok); }
.xb-msg.ok p { color: var(--xb-ink2); }
.xb-msg.bad { color: var(--xb-bad); }
.xb-msg.bad p { color: var(--ink2, inherit); }
.xb-msg b { display: block; font-size: 16px; margin-bottom: 2px; }

/* =========================== صفحه‌های قابل خزش =========================== */
.xb-mount { margin-top: 10px; min-height: 200px; }
.xb-hero .s-kick { gap: 7px; }
.xb-hero.sm { padding-bottom: 4px; }
.xb-hero-act { margin-top: 18px; }
.xb-hero-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; font-size: 14px; }
.xb-hero-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); text-decoration: none; }
.xb-hero-links a:hover { color: var(--ink); text-decoration: underline; }
.s-btn .xb-i { margin: 0; }
.xb-svcs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.xb-svc { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; transition: border-color .2s, transform .25s cubic-bezier(.22, .9, .28, 1), box-shadow .25s; }
.xb-svc:hover { border-color: var(--line2, var(--line-2)); }
.xb-site .xb-svc:hover, .s-card.xb-svc:hover { transform: translateY(-2px); }
.xb-svc:target { border-color: #3b5bdb; box-shadow: 0 0 0 3px color-mix(in srgb, #3b5bdb 18%, transparent); }
.xb-svc h3 { margin: 4px 0 0; font-size: 17px; }
.xb-svc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--bg2, var(--panel)); border: 1px solid var(--line, var(--line)); color: var(--ink, var(--text)); }
.xb-svc-d { color: var(--ink2, var(--text-2)); font-size: 14.5px; line-height: 1.95; margin: 0; }
.xb-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink2, var(--text-2)); }
.xb-ticks li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.8; }
.xb-ticks .xb-i, .xb-ticks svg { margin-top: 4px; color: var(--ok, var(--xb-ok)); }
.xb-svc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 12px; }
.xb-svc-meta > div { flex: 1 1 130px; padding: 7px 11px; border-radius: 11px; background: var(--bg2, var(--panel)); min-width: 0; }
.xb-svc-meta dt { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--mut, var(--text-3)); }
.xb-svc-meta dd { margin: 0; font-size: 13.5px; font-weight: 700; }
.xb-svc-go { align-self: flex-start; margin-top: 8px; gap: 6px; }
.xb-steps li b { display: block; font-size: 15.5px; }
.xb-steps li span { display: block; color: var(--ink2); font-size: 14px; }
.s-steps.xb-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.xb-promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.xb-pr { display: flex !important; align-items: center; gap: 16px; padding: 18px 20px; }
.xb-pr > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.xb-pr b { font-size: 16px; }
.xb-pr small { color: var(--ink2); font-size: 13.5px; line-height: 1.85; }
.xb-pr-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--acc); color: var(--acc-ink); flex: none; }
.xb-collab { display: grid; gap: 22px; align-items: start; scroll-margin-top: 80px; }
@media (min-width: 900px) { .xb-collab { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); } .xb-co-side { position: sticky; top: 90px; } }
.xb-co-side h2 { margin: 12px 0 6px; }
.xb-co-side p { color: var(--ink2); }
.xb-co-side .xb-ticks { margin-top: 12px; }
.xb-co-form { padding: clamp(16px, 3vw, 24px); }
.xb-co-form .chk { align-items: flex-start; line-height: 1.8; }
.xb-co-form .chk input { margin-top: 5px; }
.xb-fs legend { font-size: 13.5px; }
.s-form .xb-fs { border: 0; padding: 0; margin: 0; }
.s-form .xb-fs legend { font-weight: 600; color: var(--ink2); margin-bottom: 7px; padding: 0; }
.xb-co-form .s-chips label { font-size: 13.5px; padding: 0; border: 0; background: none; }
.xb-co-form .s-chips label span { display: inline-flex; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 14px; cursor: pointer; background: var(--card); }
.xb-co-form .s-chips label:has(input:checked) { background: none; }
.xb-co-form .s-chips input:checked + span { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.xb-co-form .xb-hint { margin: -4px 0 0; }
.xb-co-form .msg:empty { display: none; }
.xb-how { margin-top: 44px; }
.xb-how .s-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.xb-how .s-note .xb-i { margin-top: 4px; }
.xb-types-ssr { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.xb-types-ssr .s-card { display: grid; gap: 6px; }
.xb-types-ssr h3 { margin: 4px 0 0; }
.xb-bk-card { padding: 20px; display: grid; gap: 12px; max-width: 640px; }
.xb-bk-h { display: flex; align-items: center; gap: 12px; }
.xb-bk-h > div { flex: 1; display: grid; }
.xb-bk-h small { color: var(--mut); font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.xb-bk-when { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0; }
.xb-site .xb-done .xb-code, .s-main > .xb-done .xb-code { background: var(--bg2); }
.s-main > .xb-done { margin-top: 10px; }

/* =========================== پنجره‌های میز کار =========================== */
.xb-wbody { container-type: inline-size; overflow-y: auto !important; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.xb-desk.xb-svcw, .xb-desk.xb-reqw, .xb-desk.xb-bookw { padding: clamp(14px, 3cqi, 26px); display: grid; gap: 18px; align-content: start; min-height: 100%; }
.xb-sw-hero { display: grid; gap: 8px; padding: clamp(18px, 4cqi, 32px); border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--b1, #19aefc) 22%, transparent), transparent 55%), radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--b2, #7b2ff7) 20%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line); }
.xb-kick { display: inline-flex; align-items: center; gap: 7px; justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); }
.xb-sw-hero h1 { margin: 0; font-size: clamp(20px, 3.6cqi, 30px); font-weight: 900; line-height: 1.45; }
.xb-sw-hero p { color: var(--text-2); max-width: 720px; font-size: 14.5px; }
.xb-sw-hero .xb-row { margin-top: 8px; }
.xb-sw-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.xb-desk .xb-svc { padding: 18px; }
.xb-desk .xb-svc-ic { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: transparent; color: var(--accent); }
.xb-desk .xb-svc-meta > div { background: var(--panel); }
.xb-sw-sec h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.xb-desk .xb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.xb-desk .xb-steps li { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 2px; }
.xb-desk .xb-steps i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.xb-desk .xb-steps span { color: var(--text-2); font-size: 13px; }
.xb-faq details { border-bottom: 1px solid var(--line); padding: 10px 2px; }
.xb-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.xb-faq summary::-webkit-details-marker { display: none; }
.xb-faq summary::after { content: '+'; color: var(--text-3); }
.xb-faq details[open] summary::after { content: '−'; }
.xb-faq p { margin-top: 6px; color: var(--text-2); }
.xb-sw-foot { text-align: center; font-size: 13px; }
.xb-sw-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; }
.xb-sw-foot a:hover { color: var(--text); }
.xb-co-wrap { max-width: 760px; width: 100%; margin: 0 auto; }
.xb-co { padding: clamp(16px, 3cqi, 24px); }
.xb-co-h { display: flex; gap: 12px; align-items: flex-start; }
.xb-co-h h2 { font-size: 19px; font-weight: 800; }
.xb-co-h p { color: var(--text-2); font-size: 13.5px; }
.xb-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); justify-self: start; max-width: 100%; overflow-x: auto; }
.xb-tabs button { all: unset; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s; }
.xb-tabs button:hover { color: var(--text); }
.xb-tabs button.on { background: var(--panel-3); color: var(--text); box-shadow: var(--hl); }
.xb-tabs button:focus-visible { outline: 2px solid var(--accent); }
.xb-desk .xb-opt { background: var(--panel); }
.xb-desk .xb-opt.on { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.xb-desk .xb-d { background: var(--panel); }
.xb-desk .xb-d[disabled] { background: transparent; }
.xb-desk .xb-card { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.xb-desk .xb-code { background: var(--panel); }

@media (prefers-reduced-motion: reduce) {
  .xb *, .xb *::before, .xb *::after { animation: none !important; transition: none !important; }
  .xb-skel i { animation: none; }
}
@media print { .xb-est, .xb-wz-nav, .xb-prog { display: none !important; } }
[lang="fa"] .s-steps.xb-steps li::before { content: counter(st, persian); }
.xb-desk .xb-d.sel { background: var(--xb-acc); color: var(--xb-acc-ink); }
@container (max-width: 759px) { .xb-wiz.last .xb-est { position: static; } }
.xb-wz-nav, .xb-wz-nav .xb-btn { scroll-margin-bottom: 110px; }
.xb-js .xb-ssr-only { display: none; }
.xb-d:has(small) .xb-dot { bottom: auto; top: 5px; inset-inline-start: auto; inset-inline-end: 5px; translate: none; }
[dir="rtl"] .xb-d:has(small) .xb-dot { translate: none; }
