/* ==========================================================================
   پدل تو (PadelTo) — رابط موبایل
   سیستم طراحی: سرمه‌ای + لیمویی روی خاکستری مه‌آلود، خط‌های زمین پدل
   ========================================================================== */

/* ---------- 1. توکن‌ها ---------- */
:root {
  /* رنگ‌های برند */
  --navy: #0C1230;
  --lime: #D6F43D;
  --mist: #F3F5F9;
  --white: #FFFFFF;
  --black: #000000;

  /* مشتقات (فقط شفافیت‌های همان رنگ‌ها) */
  --ink: var(--navy);
  --ink-2: rgba(12, 18, 48, .66);
  --ink-3: rgba(12, 18, 48, .46);
  --ink-4: rgba(12, 18, 48, .28);
  --fill: rgba(12, 18, 48, .05);
  --fill-2: rgba(12, 18, 48, .09);
  --line: rgba(12, 18, 48, .08);
  --line-2: rgba(12, 18, 48, .14);
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, .66);
  --on-dark-3: rgba(255, 255, 255, .42);
  --dark-line: rgba(255, 255, 255, .09);
  --dark-fill: rgba(255, 255, 255, .08);
  --navy-2: #1A2148;            /* سطح دوم روی کارت تیره */

  /* رنگ کاربردی: فقط برای باخت، رد و خطا */
  --danger: #E5484D;
  --danger-fill: rgba(229, 72, 77, .10);

  /* شعاع‌ها */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* فاصله‌ها */
  --gutter: 20px;
  --gap: 12px;

  /* سایه */
  --shadow-sm: 0 1px 2px rgba(12, 18, 48, .05);
  --shadow: 0 1px 2px rgba(12, 18, 48, .04), 0 10px 30px -12px rgba(12, 18, 48, .12);
  --shadow-lg: 0 24px 60px -20px rgba(12, 18, 48, .45);

  /* تایپوگرافی */
  --font: "Yekan Bakh", Tahoma, system-ui, sans-serif;
  --fs-display: 34px;
  --fs-h1: 28px;
  --fs-h2: 20px;
  --fs-h3: 17px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 11.5px;

  /* حرکت */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t: 240ms;

  --tabbar-h: 78px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- 2. پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 2px; border-radius: 10px; }
.card--dark :focus-visible, .dark :focus-visible { outline-color: var(--lime); }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 14px; height: 14px; stroke-width: 2.2; }
.ico--lg { width: 26px; height: 26px; }
.ico--flip { transform: scaleX(-1); }

/* ---------- 3. پوستهٔ اپ ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.statusbar { display: none; }
.viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.viewport::-webkit-scrollbar { display: none; }

.screen { display: none; min-height: 100%; padding-bottom: 32px; animation: screen-in var(--t) var(--ease); }
.screen.is-active { display: block; }
.app.has-tabbar .screen { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.screen--flush { padding-bottom: 0 !important; display: none; flex-direction: column; }
.screen--flush.is-active { display: flex; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* حالت قاب گوشی در دسکتاپ و گالری */
html.framed body {
  background: var(--navy);
  display: grid;
  place-items: center;
  min-height: 100vh;
  height: auto;
  padding: 32px 0;
}
html.framed body::before {
  content: "";
  position: fixed; inset: 6vh 16vw;
  border: 2px solid rgba(255, 255, 255, .05);
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)) 0 30% / 100% 2px no-repeat,
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)) 0 70% / 100% 2px no-repeat;
  pointer-events: none;
}
html.framed .device {
  position: relative;
  width: 402px;
  height: 860px;
  padding: 12px;
  border-radius: 62px;
  background: #05070F;
  box-shadow: 0 0 0 1.5px #2A2F45, var(--shadow-lg), 0 60px 120px -40px rgba(0,0,0,.6);
}
html.framed .app { height: 100%; max-width: none; border-radius: 50px; }
html.framed .statusbar {
  display: flex; align-items: center; justify-content: space-between;
  direction: ltr;
  height: 50px; padding: 14px 30px 0 34px; flex: none;
  font-weight: 700; font-size: 15px; position: relative; z-index: 5;
}
html.framed .statusbar::after {
  content: ""; position: absolute; top: 11px; left: 50%; translate: -50% 0;
  width: 118px; height: 34px; border-radius: 20px; background: #05070F;
}
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
html.embed body { padding: 0; background: transparent; display: block; }
html.embed body::before { display: none; }
html.embed .device { width: 100%; height: 100vh; padding: 0; border-radius: 0; box-shadow: none; background: none; }
html.embed .app { border-radius: 0; }

/* راهنمای صفحه‌ها در دسکتاپ */
.screen-index { display: none; }
html.framed:not(.embed) .screen-index {
  display: block;
  position: fixed; top: 24px; bottom: 24px; inset-inline-start: 24px;
  width: 260px; overflow-y: auto;
  color: var(--on-dark-2); font-size: 13px;
  scrollbar-width: thin;
}
.screen-index img { height: 22px; margin-bottom: 20px; }
.screen-index h4 { color: var(--lime); font-size: 12px; font-weight: 700; margin: 18px 0 6px; }
.screen-index a { display: block; padding: 5px 10px; border-radius: 8px; }
.screen-index a:hover, .screen-index a.is-on { color: var(--white); background: rgba(255,255,255,.07); }
.screen-index .note { font-size: 12px; line-height: 1.8; margin-top: 20px; color: var(--on-dark-3); }
@media (max-width: 1100px) { html.framed:not(.embed) .screen-index { display: none; } }

/* ---------- 4. نوار بالا ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  gap: 8px; height: 60px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: blur(14px);
}
.topbar__title { text-align: center; font-size: var(--fs-h3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__title small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-2); line-height: 1.2; }
.topbar--dark { background: var(--navy); color: var(--white); }
.icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn--ghost { background: transparent; box-shadow: none; }
.icon-btn--dark { background: var(--dark-fill); color: var(--white); box-shadow: none; }
.icon-btn .dot {
  position: absolute; top: 9px; inset-inline-end: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--navy);
}

.page-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter) 8px; }
.page-head h1 { font-size: var(--fs-h1); font-weight: 900; }

/* ---------- 5. نوار تب پایین ---------- */
.tabbar {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 8px 8px calc(10px + var(--safe-b));
  display: none; grid-template-columns: repeat(5, 1fr); align-items: start;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.app.has-tabbar .tabbar { display: grid; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding-top: 6px; min-height: 52px;
  font-size: 11.5px; font-weight: 500; color: var(--ink-3);
  position: relative;
}
.tab .ico { width: 24px; height: 24px; }
.tab.is-on { color: var(--ink); font-weight: 700; }
.tab.is-on::after {
  content: ""; position: absolute; top: 4px; inset-inline-end: calc(50% - 18px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 1.5px var(--navy);
}
.tab--record { margin-top: -22px; }
.tab--record .tab__fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--lime);
  box-shadow: 0 10px 24px -8px rgba(12, 18, 48, .6), 0 0 0 5px var(--mist);
  transition: transform var(--t-fast) var(--ease);
}
.tab--record:active .tab__fab { transform: scale(.94); }
.tab--record .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.tab--record.is-on::after { display: none; }

/* ---------- 6. چیدمان کمکی ---------- */
.pad { padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--gap); }
.stack-lg > * + * { margin-top: 20px; }
.row-flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grow { flex: 1; min-width: 0; }
/* فاصله‌های کمکی بر کلاس‌های اجزا مقدم‌اند */
.mt-8 { margin-top: 8px !important; } .mt-12 { margin-top: 12px !important; } .mt-16 { margin-top: 16px !important; } .mt-20 { margin-top: 20px !important; } .mt-24 { margin-top: 24px !important; } .mt-32 { margin-top: 32px !important; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.bold { font-weight: 700; }
.heavy { font-weight: 800; }
.center { text-align: center; }
.num { font-weight: 900; line-height: 1; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin: 28px 0 12px; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 800; }
.sec-head a, .link { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--lime); padding-bottom: 1px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 0 var(--gutter); margin: 22px 0 10px; }
.eyebrow--in { padding: 0; margin: 4px 0 8px; }

/* ---------- 7. کارت‌ها ---------- */
.card { background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 20px; }
.card--dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--on-dark);
  border-radius: var(--r-xl); padding: 20px;
}
.card--lime { background: var(--lime); color: var(--navy); }
.card--outline { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2); }
.cards-gap > * + * { margin-top: var(--gap); }

/* امضای بصری: خط‌های زمین پدل روی کارت‌های تیره */
.court::before, .court::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.court::before {
  top: -2px; bottom: -2px; inset-inline-start: 64%; width: 26%;
  border-inline: 1.5px solid var(--dark-line);
}
.court::after {
  top: 50%; inset-inline-start: 64%; width: 26%; height: 50%;
  border-top: 1.5px solid var(--dark-line);
  background: linear-gradient(var(--dark-line), var(--dark-line)) 50% 0 / 1.5px 100% no-repeat;
}
.court--full::before { inset-inline-start: 8%; width: 84%; }
.court--full::after { inset-inline-start: 8%; width: 84%; top: 34%; height: 32%; border-bottom: 1.5px solid var(--dark-line); }

/* ---------- 8. دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 54px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), opacity var(--t-fast);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--soft { background: var(--fill-2); color: var(--navy); }
.btn--line { background: transparent; color: var(--navy); border: 1.5px solid var(--line-2); }
.btn--dark-soft { background: rgba(255,255,255,.1); color: var(--white); }
.btn--danger { background: var(--danger-fill); color: var(--danger); }
.btn--sm { height: 38px; width: auto; padding: 0 16px; font-size: var(--fs-sm); }
.btn--md { height: 46px; font-size: 15px; }
.btn--auto { width: auto; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }
.btn .price-split { padding-inline-start: 12px; margin-inline-start: 4px; border-inline-start: 1px solid rgba(255,255,255,.25); }

.circle-btn {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
}
.circle-btn--dark { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- 9. برچسب‌ها و چیپ‌ها ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; white-space: nowrap; line-height: 1;
}
.tag--lime { background: var(--lime); color: var(--navy); }
.tag--navy { background: var(--navy); color: var(--white); }
.tag--soft { background: var(--fill-2); color: var(--ink-2); }
.tag--white { background: var(--white); color: var(--navy); }
.tag--line { border: 1.5px solid var(--line-2); color: var(--ink-2); }
.tag--danger { background: var(--danger-fill); color: var(--danger); }
.tag--dark { background: var(--dark-fill); color: var(--on-dark-2); }
.tag--guest { border: 1.5px dashed var(--ink-4); color: var(--ink-2); height: 22px; }
.tag--v2 { background: var(--navy); color: var(--lime); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background var(--t-fast), color var(--t-fast);
}
.chip.is-on { background: var(--navy); color: var(--white); box-shadow: none; font-weight: 700; }
.chip--lime.is-on { background: var(--lime); color: var(--navy); }

/* ---------- 10. آواتار ---------- */
.av {
  --s: 42px;
  width: var(--s); height: var(--s); flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: calc(var(--s) * .38); font-weight: 800; line-height: 1;
  background: var(--navy); color: var(--lime);
  position: relative;
}
.av--2 { background: var(--lime); color: var(--navy); }
.av--3 { background: #DDE2EC; color: var(--navy); }
.av--4 { background: var(--navy-2); color: var(--white); }
.av--5 { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.av--guest { background: var(--mist); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--ink-4); border: 0; }
.av--guest::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--ink-3); }
.av--xs { --s: 26px; } .av--sm { --s: 34px; } .av--lg { --s: 56px; } .av--xl { --s: 72px; }
.av--ring { box-shadow: 0 0 0 3px var(--lime); }
.av-stack { display: flex; }
.av-stack .av { box-shadow: 0 0 0 2.5px var(--white); }
.av-stack .av + .av { margin-inline-start: -12px; }
.av-stack .av:nth-child(1) { z-index: 5; } .av-stack .av:nth-child(2) { z-index: 4; } .av-stack .av:nth-child(3) { z-index: 3; } .av-stack .av:nth-child(4) { z-index: 2; } .av-stack .av:nth-child(5) { z-index: 1; }
.card--dark .av-stack .av { box-shadow: 0 0 0 2.5px var(--navy); }
.av-add {
  border-radius: 50%; display: grid; place-items: center;
  width: 42px; height: 42px; border: 1.5px dashed var(--ink-4); color: var(--ink-2);
}

/* ---------- 11. فهرست‌ها ---------- */
.list { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.list--bare { background: transparent; box-shadow: none; border-radius: 0; }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px;
  width: 100%; text-align: start;
}
.list .row + .row { border-top: 1px solid var(--line); }
button.row:active, a.row:active { background: var(--fill); }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 15px; font-weight: 700; line-height: 1.45; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row__sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.row__end { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.row__icon {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--mist); color: var(--navy);
}
.row__icon--lime { background: var(--lime); }
.row__icon--navy { background: var(--navy); color: var(--lime); }
.chev { color: var(--ink-4); }

/* ---------- 12. فرم ---------- */
.field + .field { margin-top: 18px; }
.field__label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.field__label span { font-weight: 400; color: var(--ink-3); }
.field__hint { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; height: 54px; padding: 0 16px;
  border-radius: var(--r-md);
  background: var(--white); border: 1.5px solid transparent;
  font-size: 16px; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: border-color var(--t-fast);
}
.textarea { height: 104px; padding: 14px 16px; resize: none; line-height: 1.7; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--navy); }
.input-group { display: flex; align-items: center; background: var(--white); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); border: 1.5px solid transparent; }
.input-group:focus-within { border-color: var(--navy); }
.input-group .input { box-shadow: none; border: 0; background: transparent; }
.input-group__addon { white-space: nowrap; padding: 0 16px; color: var(--ink-2); font-weight: 700; border-inline-start: 1px solid var(--line); height: 28px; display: flex; align-items: center; direction: ltr; }
.input--ltr { direction: ltr; text-align: left; letter-spacing: .04em; }
.search {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.search input { border: 0; outline: 0; background: none; flex: 1; font-size: 15px; color: var(--ink); }

.upload {
  display: grid; place-items: center; gap: 4px; text-align: center;
  height: 112px; border-radius: var(--r-md);
  border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: 13px;
  background: var(--white);
}

/* سوییچ */
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--fill-2); transition: background var(--t-fast); }
.switch span::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--white);
  box-shadow: 0 2px 6px rgba(12,18,48,.2); transition: inset-inline-start var(--t) var(--ease), background var(--t);
}
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { inset-inline-start: 23px; background: var(--lime); }
.switch input:focus-visible + span { outline: 2.5px solid var(--navy); outline-offset: 2px; }

/* انتخاب رادیویی / گزینه‌ها */
.option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 60px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  text-align: start; font-weight: 500;
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.option + .option { margin-top: 10px; }
.option__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-4); flex: none; display: grid; place-items: center; }
.option.is-on { box-shadow: inset 0 0 0 2px var(--navy); }
.option.is-on .option__radio { border-color: var(--navy); background: var(--navy); }
.option.is-on .option__radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.option__body { flex: 1; }
.option__body small { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }

/* ---------- 13. کنترل بخش‌بندی ---------- */
.seg { display: flex; padding: 4px; border-radius: var(--r-pill); background: var(--fill-2); }
.seg button {
  flex: 1; height: 38px; border-radius: var(--r-pill); white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.seg button.is-on { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }
.seg--sm button { height: 30px; font-size: 12.5px; padding: 0 12px; }
.seg--inline { display: inline-flex; }
.seg--dark { background: var(--dark-fill); }
.seg--dark button { color: var(--on-dark-2); }
.seg--dark button.is-on { background: var(--lime); color: var(--navy); }
[data-panel-group] > [data-panel] { display: none; }
[data-panel-group] > [data-panel].is-on { display: block; }

/* ---------- 14. کاشی آمار ---------- */
.tile { background: var(--white); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.tile__num { font-size: 30px; font-weight: 900; line-height: 1.1; }
.tile__label { font-size: 14px; font-weight: 700; margin-top: 6px; }
.tile__sub { font-size: 12px; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi__num { font-size: 26px; font-weight: 900; line-height: 1.15; }
.kpi__label { font-size: 12px; color: var(--ink-2); }
.card--dark .kpi__label { color: var(--on-dark-2); }

.delta { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; direction: ltr; }
.delta--up { color: var(--navy); background: var(--lime); padding: 2px 8px; border-radius: 99px; }
.delta--down { color: var(--danger); }
.card--dark .delta--up { background: var(--lime); }

/* نوار پیشرفت (از راست پر می‌شود) */
.bar { height: 6px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--navy); width: var(--v, 50%); }
.bar--lime > i { background: var(--lime); }
.card--dark .bar { background: var(--dark-fill); }

/* ---------- 15. خانه ---------- */
.hello { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) 6px; }
.hello__text small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.hello__text strong { font-size: 24px; font-weight: 900; line-height: 1.3; }
.hello__actions { margin-inline-start: auto; display: flex; gap: 8px; }

.hero-match { margin: 14px var(--gutter) 0; }
.hero-match__top { display: flex; justify-content: space-between; align-items: center; }
.hero-match__title { font-size: 22px; font-weight: 900; margin-top: 14px; line-height: 1.35; }
.hero-match__meta { font-size: 13px; color: var(--on-dark-2); margin-top: 2px; }
.versus { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.vs-pill { height: 28px; padding: 0 12px; border-radius: 99px; background: var(--lime); color: var(--navy); font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.sets-inline { display: flex; gap: 6px; margin-inline-start: auto; }
.sets-inline span { min-width: 38px; height: 30px; padding: 0 8px; border-radius: 10px; background: var(--dark-fill); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.sets-inline span.w { background: var(--lime); color: var(--navy); }
.hero-match__cta { display: flex; gap: 10px; margin-top: 20px; }
.hero-match__cta .btn { flex: 1; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px var(--gutter) 0; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: center; }
.quick__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.quick__ico .ico { width: 26px; height: 26px; }

.level-card { display: flex; align-items: center; gap: 16px; }
.level-ball {
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--lime); color: var(--navy);
  font-size: 26px; font-weight: 900; position: relative; overflow: hidden;
}
.level-ball::before, .level-ball::after {
  content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid rgba(12, 18, 48, .14); top: 0;
}
.level-ball::before { inset-inline-start: -52px; }
.level-ball::after { inset-inline-start: 52px; }
.level-ball span { position: relative; z-index: 1; }

/* ---------- 16. کارت بازی ---------- */
.match { background: var(--white); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); display: block; }
.match + .match { margin-top: 10px; }
.match__head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.match__team { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 5px 0; }
.match__names { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.match__names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match__team.is-win .match__names::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--navy); flex: none; }
.match__sets { display: flex; gap: 4px; }
.match__sets b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--mist); color: var(--ink-3); }
.match__sets b.w { background: var(--navy); color: var(--lime); }
.match__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.stake { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }

/* تابلوی امتیاز (ثبت بازی) */
.scoreboard { padding: 18px 18px 14px; }
.scoreboard__head { display: grid; grid-template-columns: 1fr repeat(3, 44px); gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--on-dark-3); margin-bottom: 8px; }
.scoreboard__head span { text-align: center; }
.scoreboard__head span.is-on { color: var(--lime); }
.scoreboard__row { display: grid; grid-template-columns: 1fr repeat(3, 44px); gap: 6px; align-items: center; padding: 8px 0; }
.scoreboard__row + .scoreboard__row { border-top: 1px solid var(--dark-line); }
.scoreboard__team { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; min-width: 0; }
.scoreboard__team .trophy { color: var(--lime); display: none; }
.scoreboard__row.is-win .trophy { display: block; }
.sb-num { height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: var(--on-dark-2); }
.sb-num.w { color: var(--lime); }
.sb-num.is-on { background: var(--dark-fill); color: var(--white); }
.sb-num.is-on.w { color: var(--lime); }

.stepper { background: var(--white); border-radius: var(--r-lg); padding: 14px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.stepper__label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.stepper__ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.stepper__ctrl output { font-size: 38px; font-weight: 900; line-height: 1; min-width: 40px; }
.step-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--navy); }
.step-btn--plus { background: var(--navy); color: var(--lime); }
.winner-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 18px; border-radius: var(--r-md);
  background: var(--lime); color: var(--navy); font-weight: 700; font-size: 15px;
}
.winner-bar.is-empty { background: var(--fill-2); color: var(--ink-2); font-weight: 500; }

/* انتخاب بازیکن‌ها */
.teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.team-box { background: var(--white); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.team-box__label { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.slot { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px; border-radius: 14px; font-size: 13.5px; font-weight: 700; }
.slot + .slot { margin-top: 4px; }
.slot--empty { color: var(--ink-3); font-weight: 500; border: 1.5px dashed var(--line-2); justify-content: center; }
.vs-col { display: grid; place-items: center; font-weight: 900; color: var(--ink-3); font-size: 13px; }

/* ---------- 17. ورود و آشنایی ---------- */
.onb { display: flex; flex-direction: column; min-height: 100%; padding: 8px var(--gutter) 24px; }
.onb__top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.onb__top img { height: 24px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 40px; scroll-padding-inline: var(--gutter); margin: 8px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide__art { position: relative; height: 380px; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); }
.slide__art > svg { width: 100%; height: 100%; }
.slide__chip {
  position: absolute; bottom: 16px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 8px 0 16px; border-radius: 99px;
  background: var(--white); font-size: 13.5px; font-weight: 700;
}
.slide__chip i { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.slide h1 { font-size: 30px; font-weight: 900; line-height: 1.35; margin-top: 26px; }
.slide p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 22px 0; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-4); transition: width var(--t) var(--ease), background var(--t); }
.dots i.is-on { width: 22px; background: var(--navy); }
.onb__foot { margin-top: auto; }
.onb__alt { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }
.onb__alt a { color: var(--ink); font-weight: 700; }

.auth { padding: 0 var(--gutter); }
.auth h1 { font-size: 28px; font-weight: 900; margin-top: 12px; }
.auth p.lead { color: var(--ink-2); margin-top: 6px; }
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; margin-top: 28px; }
.otp input {
  width: 56px; height: 64px; text-align: center;
  font-size: 26px; font-weight: 900; border-radius: var(--r-md);
  border: 1.5px solid transparent; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.otp input:focus { outline: none; border-color: var(--navy); }
.otp input.filled { background: var(--navy); color: var(--lime); }
.resend { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 18px; }

.progress-steps { display: flex; gap: 6px; padding: 0 var(--gutter); }
.progress-steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--fill-2); }
.progress-steps i.is-on { background: var(--navy); }

.avatar-upload { position: relative; width: 104px; height: 104px; margin: 8px auto 0; }
.avatar-upload .av { --s: 104px; }
.avatar-upload button { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--mist); }

.claim-card { text-align: center; padding: 28px 20px 22px; }
.claim-card .av { margin: 0 auto; }

/* ---------- 18. سطح ---------- */
.gauge { position: relative; width: 260px; height: 220px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge__center { position: absolute; inset: 52px 0 auto; text-align: center; }
.gauge__num { font-size: 64px; font-weight: 900; line-height: 1; }
.gauge__band { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-top: 10px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line-2); stroke-dasharray: 3 4; }
.chart .ylab { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; }
.bands .row { min-height: 56px; }
.band-swatch { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--mist); }

/* ---------- 19. پروفایل ---------- */
.profile-card { margin: 8px var(--gutter) 0; padding: 22px 20px; }
.profile-card__id { display: flex; align-items: center; gap: 14px; }
.profile-card__name { font-size: 22px; font-weight: 900; line-height: 1.3; }
.profile-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--on-dark-2); }
.profile-card .kpis { margin-top: 22px; }
.profile-card .btn-row { margin-top: 20px; }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge {
  background: var(--white); border-radius: var(--r-lg); padding: 16px 8px 14px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.badge__medal {
  width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--lime);
  position: relative;
}
.badge__medal::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lime); }
.badge__name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.badge__sub { font-size: 11px; color: var(--ink-3); }
.badge.is-locked .badge__medal { background: var(--mist); color: var(--ink-4); }
.badge.is-locked .badge__medal::after { border-color: var(--line-2); border-style: dashed; }
.badge.is-locked .badge__name { color: var(--ink-3); }

/* ---------- 20. حساب‌وکتاب ---------- */
.ledger-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ledger-row__what { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ledger-row .btn { flex: none; }
.state-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }

/* ---------- 21. لیگ ---------- */
.league-hero { margin: 8px var(--gutter) 0; }
.league-hero h2 { font-size: 24px; font-weight: 900; margin-top: 12px; }
.sponsor {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 10px 12px; border-radius: var(--r-md); background: var(--dark-fill);
}
.sponsor__logo { width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; padding: 10px 4px; }
.table th:nth-child(2) { text-align: start; }
.table td { text-align: center; padding: 10px 4px; border-top: 1px solid var(--line); font-weight: 500; }
.table td:nth-child(2) { text-align: start; }
.table .rank { width: 30px; font-weight: 900; font-size: 15px; }
.table .pts { font-weight: 900; font-size: 16px; }
.table tr.is-me td { background: rgba(214, 244, 61, .28); }
.table tr.is-me td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.table tr.is-me td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.table .who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.medal { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; font-size: 13px; }
.medal--1 { background: var(--lime); color: var(--navy); }
.medal--2 { background: var(--navy); color: var(--white); }
.medal--3 { background: #DDE2EC; color: var(--navy); }
.table tr.is-out td { color: var(--ink-3); }
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize { background: var(--white); border-radius: var(--r-md); padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.prize__place { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.prize__what { font-size: 13px; font-weight: 700; margin-top: 8px; line-height: 1.5; }

/* ---------- 22. کشف: زمین، مربی، آگهی ---------- */
.map { position: relative; height: 230px; border-radius: var(--r-xl); overflow: hidden; background: #E6EAF2; }
.map > svg { width: 100%; height: 100%; }
.pin {
  position: absolute; transform: translate(50%, -100%);
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 6px; border-radius: 99px;
  background: var(--navy); color: var(--white); font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(12,18,48,.6);
}
.pin::after { content: ""; position: absolute; bottom: -5px; inset-inline-end: calc(50% - 5px); width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; z-index: -1; }
.pin i { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); }
.pin--on { background: var(--lime); color: var(--navy); }
.pin--on i { background: var(--navy); }

.court-card { display: flex; gap: 14px; background: var(--white); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-sm); }
.court-card + .court-card { margin-top: 10px; }
.court-thumb { width: 92px; height: 92px; flex: none; border-radius: 16px; overflow: hidden; background: var(--navy); }
.court-thumb svg { width: 100%; height: 100%; }
.court-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.court-card__title { font-weight: 800; font-size: 15.5px; line-height: 1.4; }
.court-card__meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.court-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 800; font-size: 14px; }
.price small { font-weight: 400; color: var(--ink-2); font-size: 11.5px; }

.hero-art { position: relative; height: 250px; background: var(--navy); overflow: hidden; }
.hero-art > svg { width: 100%; height: 100%; }
.hero-art .topbar { position: absolute; inset: 0 0 auto; background: transparent; backdrop-filter: none; }
.sheet-body { position: relative; margin-top: -28px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--mist); padding-top: 22px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-cell { background: var(--white); border-radius: var(--r-md); padding: 12px 14px; }
.info-cell small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.info-cell b { font-size: 14.5px; font-weight: 800; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--white); font-size: 13px; font-weight: 500; }
.claim-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); }

.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: block; }
.ad-card__img { aspect-ratio: 1 / 1; background: #E6EAF2; display: grid; place-items: center; position: relative; }
.ad-card__img svg { width: 62%; height: 62%; }
.ad-card__img .tag { position: absolute; top: 10px; inset-inline-start: 10px; }
.ad-card__body { padding: 10px 12px 12px; }
.ad-card__title { font-size: 13.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.ad-card__price { font-size: 15px; font-weight: 900; margin-top: 4px; }
.ad-card__price small { font-size: 11px; font-weight: 400; color: var(--ink-2); }
.ad-card__meta { font-size: 11.5px; color: var(--ink-3); }
.gallery { position: relative; aspect-ratio: 1 / .86; background: #E6EAF2; display: grid; place-items: center; }
.gallery svg.art { width: 58%; height: 58%; }
.gallery .topbar { position: absolute; inset: 0 0 auto; background: transparent; backdrop-filter: none; }
.gallery__count { position: absolute; bottom: 40px; inset-inline-end: var(--gutter); }
.warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--navy); color: var(--white); font-size: 13.5px; font-weight: 500;
}
.warn .ico { color: var(--lime); margin-top: 1px; }
.warn--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.warn--light .ico { color: var(--navy); }

/* ---------- 23. چت ---------- */
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat { flex: 1; padding: 8px var(--gutter) 16px; }
.msg-sys { text-align: center; margin: 10px 0; }
.msg-sys span { display: inline-block; font-size: 12px; color: var(--ink-2); background: var(--fill-2); padding: 4px 12px; border-radius: 99px; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; max-width: 84%; }
.msg__who { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.bubble { background: var(--white); padding: 10px 14px; border-radius: 18px 18px 18px 6px; font-size: 14.5px; line-height: 1.7; box-shadow: var(--shadow-sm); }
.msg__time { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.msg--me { margin-inline-start: auto; flex-direction: row-reverse; }
.msg--me .bubble { background: var(--navy); color: var(--white); border-radius: 18px 18px 6px 18px; }
.msg--me .msg__time { text-align: end; }
.composer {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px var(--gutter) calc(12px + var(--safe-b)); background: var(--mist); border-top: 1px solid var(--line);
}
.composer .search { flex: 1; }
.send-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: var(--lime); display: grid; place-items: center; flex: none; }
.ad-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 var(--gutter); border-radius: var(--r-md); background: var(--white); }
.ad-mini__img { width: 44px; height: 44px; border-radius: 12px; background: #E6EAF2; display: grid; place-items: center; }

/* دستیار */
.ai-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 10px; display: flex; gap: 12px; padding: 10px; align-items: center; }
.ai-card__img { width: 64px; height: 64px; border-radius: 14px; background: #E6EAF2; display: grid; place-items: center; flex: none; }
.ai-card__img svg { width: 70%; height: 70%; }
.ai-bubble { background: var(--white); border-radius: 18px 18px 18px 6px; padding: 14px; box-shadow: var(--shadow-sm); font-size: 14.5px; line-height: 1.8; }
.ai-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex: none; }
.ai-avatar i { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; }

/* ---------- 24. رزرو (نسخهٔ ۲) ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
.day { flex: none; width: 60px; padding: 8px 0; border-radius: 16px; background: var(--white); text-align: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.day small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.day b { display: block; font-size: 22px; font-weight: 900; line-height: 1.3; }
.day span { font-size: 10.5px; color: var(--ink-3); }
.day.is-on { background: var(--navy); color: var(--white); box-shadow: none; }
.day.is-on small, .day.is-on span { color: var(--on-dark-2); }
.slots { overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
.slots table { border-collapse: separate; border-spacing: 5px; margin-inline-start: -5px; }
.slots th { font-size: 11px; font-weight: 700; color: var(--ink-3); padding-bottom: 2px; text-align: start; }
.slots td.lab { padding-inline-end: 6px; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.slots td.lab small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; line-height: 1.2; }
.cell { width: 40px; height: 54px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); display: block; }
.cell.busy { background: repeating-linear-gradient(-45deg, #E3E7EF 0 4px, #EEF1F6 4px 8px); box-shadow: none; cursor: not-allowed; }
.cell.sel { background: var(--navy); box-shadow: none; }
.cell.sel-start { background: var(--navy); color: var(--lime); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cell.hint { box-shadow: inset 0 0 0 2px var(--lime); }
.legend-row { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend-row i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 6px; }

/* نوار عمل چسبان پایین */
.actionbar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding: 12px var(--gutter) calc(14px + var(--safe-b));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.actionbar__info { flex: none; }
.actionbar__info small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.actionbar__info b { font-size: 20px; font-weight: 900; line-height: 1.3; }
.screen.has-actionbar { padding-bottom: 0 !important; }

/* ---------- 25. اعلان‌ها ---------- */
.notif { display: flex; gap: 12px; padding: 14px var(--gutter); align-items: flex-start; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif__body { flex: 1; min-width: 0; }
.notif__title { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.notif__sub { font-size: 13px; color: var(--ink-2); }
.notif__time { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.notif__time i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--navy); }
.notif__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white); flex: none; }

/* ---------- 26. کارت اشتراک ---------- */
.share-card { aspect-ratio: 4 / 5; padding: 22px; display: flex; flex-direction: column; border-radius: 28px; }
.share-card__logo { height: 20px; }
.share-card__team { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; }
.share-card__team + .share-card__team { border-top: 1px solid var(--dark-line); }
.share-card__names { font-weight: 800; font-size: 15px; line-height: 1.4; }
.share-card__names small { display: block; font-weight: 500; font-size: 12px; color: var(--on-dark-2); }
.share-card .sets-inline span { min-width: 34px; height: 34px; font-size: 16px; }
.share-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--on-dark-2); }
.share-targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-targets button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.share-targets span.ic { width: 56px; height: 56px; border-radius: 18px; background: var(--white); display: grid; place-items: center; color: var(--navy); box-shadow: var(--shadow-sm); font-weight: 900; font-size: 18px; }

/* ---------- 27. شیت و توست ---------- */
.backdrop {
  position: absolute; inset: 0; z-index: 60; background: rgba(12, 18, 48, .48);
  opacity: 0; pointer-events: none; transition: opacity var(--t) var(--ease);
}
.backdrop.is-on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 70;
  max-height: 86%; overflow-y: auto;
  padding: 10px var(--gutter) calc(24px + var(--safe-b));
  background: var(--mist); border-radius: 30px 30px 0 0;
  transform: translateY(105%); transition: transform 320ms var(--ease);
}
.sheet.is-on { transform: none; }
.sheet__grab { width: 40px; height: 5px; border-radius: 99px; background: var(--ink-4); margin: 0 auto 16px; }
.sheet h3 { font-size: 20px; font-weight: 900; }
.toast {
  position: absolute; top: 64px; inset-inline: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 18px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-140%); opacity: 0; transition: transform 320ms var(--ease), opacity 200ms;
}
.toast.is-on { transform: none; opacity: 1; }
.toast .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; flex: none; }

/* ---------- 28. حالت‌ها ---------- */
.success { text-align: center; padding: 40px var(--gutter) 0; }
.success__ball {
  width: 112px; height: 112px; margin: 0 auto; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; color: var(--navy);
  box-shadow: 0 0 0 14px rgba(214, 244, 61, .25), 0 0 0 28px rgba(214, 244, 61, .1);
}
.success__ball .ico { width: 48px; height: 48px; stroke-width: 2.6; }
.success h1 { font-size: 26px; font-weight: 900; margin-top: 40px; }
.success p { color: var(--ink-2); margin-top: 8px; }
.timeline { position: relative; }
.timeline li { position: relative; padding-inline-start: 28px; padding-bottom: 16px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 9.25px; top: 20px; bottom: -4px; width: 1.5px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li.is-now::before { background: var(--lime); box-shadow: 0 0 0 2px var(--navy); }
.timeline li.is-todo::before { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink-4); }
.timeline small { display: block; color: var(--ink-3); font-size: 12px; }

.version-ribbon { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare > div { background: var(--white); border-radius: var(--r-md); padding: 12px; }

.level-delta { font-size: 12px; font-weight: 800; direction: ltr; }
.level-delta.up { color: var(--navy); }
.level-delta.down { color: var(--danger); }

/* ---------- 29. حرکت کم ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- اتصال داده (live.js) ---------- */
[hidden] { display: none !important; }
button.slot { width: 100%; text-align: start; transition: box-shadow var(--t) var(--ease); }
button.slot:active { background: var(--fill); }
button.row { width: 100%; text-align: start; }
.av-add { background: none; cursor: pointer; }
.upload { background-repeat: no-repeat; }
.ad-card__img[data-ph] { cursor: pointer; }
.chip[data-pick] [data-pick-label] { pointer-events: none; }
