/* ACC724 — سیستم طراحی (مینیمال، فیروزه‌ای آموزشی + کهربایی) */
/* قلم وزیرمتن (v33.003، متغیر ۱۰۰ تا ۹۰۰) روی همین سرور: یک فایل برای همه وزن‌ها، بدون وابستگی به CDN خارجی، با نمایش فوری متن تا رسیدن قلم */
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/Vazirmatn-v33.003.ttf') format('truetype-variations'), url('/fonts/Vazirmatn-v33.003.ttf') format('truetype'); }

:root {
  /* رنگ */
  --brand: #0e5e6f;
  --brand-600: #0b4f5d;
  --brand-700: #083c47;
  --brand-50: #eaf4f6;
  --brand-100: #cfe6ea;
  --accent: #e9a23b;
  --accent-600: #b9761a;
  --accent-50: #fdf4e3;
  --ink: #17222c;
  --ink-2: #364553;
  --muted: #627080;
  --line: #e2e7ec;
  --line-2: #eef1f4;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --debit: #0a5fb4;
  --credit: #a8322a;
  --ok: #1a7a42;
  --ok-50: #e7f4ec;
  --warn: #8f5a00;
  --warn-50: #fff4dc;
  --danger: #b42318;
  --danger-50: #fdecea;
  --info: #1d5fae;
  --info-50: #eaf2fd;
  --soft-top: #102f37;
  /* شکل */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 6px 16px -6px rgba(16, 24, 40, .12), 0 2px 4px rgba(16, 24, 40, .04);
  --sh-pop: 0 20px 44px -14px rgba(16, 24, 40, .28), 0 4px 10px rgba(16, 24, 40, .06);
  --ring: 0 0 0 3px rgba(14, 94, 111, .16);
  /* حرکت: یک ریتم برای همه انیمیشن‌ها */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --d1: 140ms;
  --d2: 220ms;
  --d3: 340ms;
  --hdr: 64px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.8; color: var(--ink); background: var(--bg);
  direction: rtl; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
a { color: var(--brand); text-decoration: none; transition: color var(--d1) var(--ease); }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: 1.55rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
code, .mono { font-family: Consolas, 'Courier New', monospace; direction: ltr; unicode-bidi: isolate; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.hide { display: none !important; }
svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; right: 12px; z-index: 300; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); transition: top var(--d2) var(--ease); }
.skip:focus { top: 10px; color: #fff; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- لوگو ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark { display: block; flex: none; }
.wm { display: flex; flex-direction: column; line-height: 1.15; }
.wm-name { white-space: nowrap; font-family: 'Segoe UI', Tahoma, sans-serif; font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; color: var(--ink); }
.wm-name b { color: var(--brand); font-weight: 800; }
.wm small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.logo.on-dark .wm-name { color: #fff; }
.logo.on-dark .wm-name b { color: var(--accent); }
.logo.on-dark small { color: rgba(255, 255, 255, .62); }
.logo-anim .lm-t { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawT .7s var(--ease) .15s forwards; }
.logo-anim .lm-b { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: growY .5s var(--spring) forwards; }
.logo-anim .lm-b3 { animation-delay: .7s; }
.logo-anim .lm-b2 { animation-delay: .82s; }
.logo-anim .lm-b1 { animation-delay: .94s; }
@keyframes drawT { to { stroke-dashoffset: 0; } }
@keyframes growY { to { transform: scaleY(1); } }
/* لوگوی متحرک تکرارشونده: هر ۸ ثانیه ستون‌های بدهکار و بستانکار «تراز» می‌شوند و خط T دوباره کشیده می‌شود */
.logo-loop .lm-b { transform-box: fill-box; transform-origin: 50% 100%; animation: lmDebit 8s var(--ease) infinite; }
.logo-loop .lm-b2 { animation-delay: .1s; }
.logo-loop .lm-b3 { animation-name: lmCredit; }
.logo-loop .lm-t { stroke-dasharray: 1; animation: lmT 8s var(--ease) infinite; }
.logo:hover .logo-loop .lm-b, .logo:hover .logo-loop .lm-t, .logo:focus-visible .logo-loop .lm-b, .logo:focus-visible .logo-loop .lm-t { animation-duration: 2.4s; }
@keyframes lmDebit { 0%, 58%, 100% { transform: scaleY(1); } 66% { transform: scaleY(.45); } 76% { transform: scaleY(1.14); } 84% { transform: scaleY(.96); } 90% { transform: scaleY(1); } }
@keyframes lmCredit { 0%, 58%, 100% { transform: scaleY(1); } 66% { transform: scaleY(1.16); } 76% { transform: scaleY(.55); } 84% { transform: scaleY(1.04); } 90% { transform: scaleY(1); } }
@keyframes lmT { 0%, 54% { stroke-dashoffset: 0; } 60% { stroke-dashoffset: 1; } 72%, 100% { stroke-dashoffset: 0; } }

/* ---------- سربرگ ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr > .end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.pnav { display: flex; align-items: center; gap: 2px; margin-inline-start: 18px; }
.pnav > a, .dd-btn {
  font-family: inherit; font-size: .93rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 9px; transition: background var(--d1) var(--ease), color var(--d1) var(--ease);
}
.pnav > a:hover, .dd-btn:hover, .dd.open .dd-btn { background: var(--line-2); color: var(--ink); }
.pnav .active, .dd.active .dd-btn { color: var(--brand); }
.dd-btn .chev { width: 14px; height: 14px; transition: transform var(--d2) var(--ease); }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-pop); padding: 8px; display: grid; gap: 2px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity var(--d1) var(--ease-in), transform var(--d1) var(--ease-in), visibility 0s linear var(--d1);
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease), visibility 0s; }
.dd-menu.end { right: auto; left: 0; transform-origin: top left; }
.mi { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); transition: background var(--d1) var(--ease); }
.mi:hover { background: var(--surface-2); color: var(--ink); }
.mi .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; transition: transform var(--d2) var(--spring); }
.mi:hover .ico { transform: scale(1.06); }
.mi b { display: block; font-size: .92rem; }
.mi small { display: block; font-size: .78rem; line-height: 1.6; }
.mi.danger { color: var(--danger); }
.mi.danger .ico { background: var(--danger-50); color: var(--danger); }
.dd-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center;
  font-weight: 700; flex: none; font-size: .86rem;
}
.user-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 30px; padding: 3px 4px 3px 12px; cursor: pointer; font-family: inherit; color: var(--ink); transition: box-shadow var(--d1) var(--ease), border-color var(--d1) var(--ease); }
.user-btn:hover { border-color: #cfd6dd; box-shadow: var(--sh-1); }
.user-btn .avatar { width: 30px; height: 30px; font-size: .78rem; }
.user-btn .nm { font-weight: 600; font-size: .88rem; }
.kbd-search { display: inline-flex; align-items: center; gap: 8px; min-width: 210px; font-family: inherit; font-size: .88rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease); }
.kbd-search:hover { border-color: #cfd6dd; background: var(--surface); }
.kbd-search kbd { margin-inline-start: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; transition: background var(--d1) var(--ease); }
.icon-btn:hover { background: var(--line-2); }
.only-mobile { display: none !important; }
.sidebar.pub-drawer { display: none; }
.soft-top .logo .wm-name { font-size: 1rem; }
.soft-top .logo small { font-size: .66rem; }

/* نوار پیشرفت مسیر */
.route-bar { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 400; pointer-events: none; }
.route-bar i { display: block; height: 100%; background: linear-gradient(270deg, var(--brand), var(--accent)); transform-origin: right; transform: scaleX(0); opacity: 0; }
.route-bar.run i { opacity: 1; animation: routeRun 1.6s var(--ease) forwards; }
.route-bar.done i { opacity: 0; transform: scaleX(1); transition: opacity .3s var(--ease) .1s, transform .2s var(--ease); }
@keyframes routeRun { from { transform: scaleX(0); } to { transform: scaleX(.85); } }

/* ---------- چیدمان پنل ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - var(--hdr)); }
.sidebar {
  background: var(--surface); border-left: 1px solid var(--line); padding: 14px 12px 24px; position: sticky; top: var(--hdr);
  height: calc(100vh - var(--hdr)); overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin;
}
.sidebar .who { display: flex; gap: 10px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.sidebar .who b { display: block; font-size: .93rem; line-height: 1.5; }
.sidebar .who .code { font-size: .75rem; color: var(--muted); }
.nav-group { margin: 14px 12px 4px; font-size: .72rem; color: #8a96a2; font-weight: 700; letter-spacing: .02em; }
.nav a, .nav button.navlink {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500;
  margin-bottom: 2px; font-size: .92rem; width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; text-align: right;
  transition: background var(--d1) var(--ease), color var(--d1) var(--ease);
}
.nav a svg, .nav button.navlink svg { width: 19px; height: 19px; opacity: .72; transition: opacity var(--d1) var(--ease), transform var(--d2) var(--spring); }
.nav a:hover, .nav button.navlink:hover { background: var(--line-2); color: var(--ink); }
.nav a:hover svg { opacity: 1; }
.nav a::before {
  content: ''; position: absolute; right: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px 0 0 3px; background: var(--brand);
  transform: scaleY(0); transition: transform var(--d2) var(--spring);
}
.nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.nav a.active svg { opacity: 1; }
.nav a.active::before { transform: scaleY(1); }
.nav .pill { margin-inline-start: auto; background: var(--accent); color: #2b1a00; border-radius: 10px; font-size: .7rem; font-weight: 700; padding: 0 7px; line-height: 18px; }
.nav .grow { flex: 1; }
.nav-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); }
.nav-foot a.logout { color: var(--danger); }
.nav-foot a.logout:hover { background: var(--danger-50); color: var(--danger); }
main.view { padding: 26px 30px 72px; min-width: 0; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 760px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ناوبری پایین (موبایل) */
.bnav { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(12, 22, 30, .38); z-index: 55; opacity: 0; visibility: hidden; transition: opacity var(--d2) var(--ease), visibility 0s linear var(--d2); }
body.nav-open .scrim { opacity: 1; visibility: visible; transition: opacity var(--d2) var(--ease); }

/* ---------- اجزای پایه ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
a.card, .card.lift { display: block; color: inherit; transition: transform var(--d2) var(--ease), box-shadow var(--d2) var(--ease), border-color var(--d2) var(--ease); }
a.card.feature, .card.lift.feature { display: flex; }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #d6dde3; color: inherit; }
a.card:active, .card.lift:active { transform: translateY(-1px) scale(.995); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > *, .split > *, .vside > * { min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }

.btn {
  font-family: inherit; font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 7px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  line-height: 1.4; white-space: nowrap; user-select: none;
  transition: background var(--d1) var(--ease), border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease), transform var(--d1) var(--ease), color var(--d1) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: #ccd4db; color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(8, 60, 71, .2); }
.btn.primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 4px 12px -4px rgba(8, 60, 71, .45); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #2b1a00; }
.btn.accent:hover { background: #dd9530; color: #2b1a00; box-shadow: 0 4px 12px -4px rgba(185, 118, 26, .5); }
.btn.danger { color: var(--danger); border-color: #f1c7c3; }
.btn.danger:hover { background: var(--danger-50); color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { min-height: 32px; padding: 4px 11px; font-size: .84rem; border-radius: 8px; }
.btn.lg { min-height: 48px; padding: 11px 24px; font-size: 1rem; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255,255,255,.5) rgba(255,255,255,.5) #fff #fff; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.accent).busy::after { border-color: var(--brand-100) var(--brand-100) var(--brand) var(--brand); }
/* حالت‌های دکمه: فشردن (رنگ تیره‌تر)، در حال ثبت، ثبت‌شده (سبز با تیک)، خطا (قرمز با لرزش) */
.btn { position: relative; overflow: hidden; isolation: isolate; flex-shrink: 0; }
.btn:not(.primary):not(.accent):not(.danger):not(.ghost):active { background: var(--line-2); border-color: #bcc6cf; }
.btn.ghost:active { background: var(--line); }
.btn.primary:active { background: var(--brand-700); border-color: var(--brand-700); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
.btn.accent:active { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn.danger:active { background: #f8d4cf; }
.btn.busy { cursor: progress; }
.btn.primary.busy { background: var(--brand-700); border-color: var(--brand-700); }
.btn.accent.busy { background: var(--accent-600); border-color: var(--accent-600); }
.btn.done, .btn.done:hover { background: var(--ok) !important; border-color: var(--ok) !important; color: transparent !important; box-shadow: 0 0 0 4px rgba(26, 122, 66, .16); animation: btnPop var(--d3) var(--spring); }
.btn.done::after { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat; animation: popIn var(--d3) var(--spring); }
.btn.fail, .btn.fail:hover { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; animation: shake .32s var(--ease); }
.btn.done > *, .btn.busy > * { visibility: hidden; }
.btn .ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .5s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes btnPop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
:root { --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
kbd { font-family: Tahoma, sans-serif; font-size: .7rem; background: var(--line-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); direction: ltr; }
.btn.primary kbd { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .26); color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; line-height: 1.9; }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.danger { background: var(--danger-50); color: var(--danger); }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.badge.info { background: var(--info-50); color: var(--info); }
.badge svg { width: 14px; height: 14px; }

/* فرم‌ها */
label { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: .77rem; color: var(--muted); font-weight: 400; line-height: 1.6; }
.field.req > label::after { content: ' *'; color: var(--danger); }
input, select, textarea {
  font-family: inherit; font-size: .94rem; color: var(--ink); background: var(--surface); border: 1px solid #d4dbe2; border-radius: 10px;
  padding: 8px 12px; width: 100%; min-width: 0; min-height: 40px; transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease), background var(--d1) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #c2cbd3; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); background: var(--danger-50); animation: shake .32s var(--ease); }
input.invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
input[readonly], input:disabled, select:disabled, textarea:disabled, textarea[readonly] { background: var(--surface-2); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; min-height: 0; accent-color: var(--brand); padding: 0; cursor: pointer; }
input[type=file] { padding: 6px; }
textarea { resize: vertical; min-height: 84px; line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
input.amount { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
input.date { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; }
.input-icon { position: relative; }
.input-icon > button { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 7px; display: grid; transition: background var(--d1) var(--ease), color var(--d1) var(--ease); }
.input-icon > button:hover { background: var(--line-2); color: var(--brand); }
.input-icon input { padding-left: 38px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0; }
legend { font-weight: 700; font-size: .88rem; padding: 0 6px; color: var(--ink-2); }

/* جدول */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { background: var(--surface-2); color: var(--ink-2); font-weight: 700; text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: .8rem; position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; transition: background var(--d1) var(--ease); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #f8fbfc; }
.tbl tr.sel td { background: var(--brand-50) !important; }
.tbl tr.click { cursor: pointer; }
.tbl tfoot td { background: var(--surface-2); font-weight: 700; border-top: 1px solid var(--line); }
.tbl td.debit, .tbl .debit { color: var(--debit); }
.tbl td.credit, .tbl .credit { color: var(--credit); }
.tbl .sub td { background: var(--surface-2); font-weight: 700; }
.tbl tr.pending td { background: #fffaf0; }
.tbl.compact td, .tbl.compact th { padding: 6px 10px; }
.tbl td.actions { white-space: nowrap; text-align: left; }
.tbl input, .tbl select { padding: 5px 8px; font-size: .9rem; min-height: 34px; }
.tbl .mono, .tbl .num { white-space: nowrap; }
.tbl.nowrap td { white-space: nowrap; }
.tbl.nowrap td small { white-space: nowrap; }

/* حالت‌ها */
.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; opacity: .4; margin-bottom: 8px; }
.empty b { display: block; color: var(--ink-2); font-size: 1rem; margin-bottom: 4px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.sk { border-radius: var(--r-sm); background: linear-gradient(90deg, #edf1f4 0%, #f7f9fa 40%, #edf1f4 80%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-page { display: grid; gap: 14px; }
.sk-page .sk.h { height: 30px; width: 34%; }
.sk-page .sk.p { height: 14px; width: 56%; }
.sk-page .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.sk-page .sk.c { height: 110px; border-radius: var(--r-lg); }
.sk-page .sk.t { height: 220px; border-radius: var(--r-lg); }
.callout { border-radius: var(--r-sm); padding: 12px 15px; background: var(--info-50); border-inline-start: 4px solid #4b8fdc; margin: 12px 0; }
.callout.tip { background: var(--ok-50); border-color: var(--ok); }
.callout.warn { background: var(--warn-50); border-color: var(--accent); }
.callout.danger { background: var(--danger-50); border-color: var(--danger); }
.callout.practice { background: var(--accent-50); border-color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-1); overflow: hidden; }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stat .k svg { width: 16px; height: 16px; color: var(--brand); }
.stat .v { font-size: 1.55rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.stat .s { font-size: .77rem; color: var(--muted); }
.stat.brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.stat.brand .k, .stat.brand .s { color: rgba(255, 255, 255, .78); }
.stat.brand .k svg { color: var(--accent); }
.stat.brand::after { content: ''; position: absolute; left: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .06); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  position: relative; font-family: inherit; font-size: .92rem; padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: color var(--d1) var(--ease);
}
.tabs a::after, .tabs button::after { content: ''; position: absolute; right: 10px; left: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform var(--d2) var(--ease); }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .active { color: var(--brand); }
.tabs .active::after { transform: scaleX(1); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); padding: 2px; gap: 2px; }
.seg button { font-family: inherit; border: 0; background: none; padding: 5px 12px; cursor: pointer; font-size: .84rem; color: var(--ink-2); border-radius: 8px; transition: background var(--d1) var(--ease), color var(--d1) var(--ease); }
.seg button:hover { background: var(--line-2); }
.seg button.active { background: var(--brand); color: #fff; }

.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line-2); border-radius: 10px; color: inherit; transition: background var(--d1) var(--ease); }
a.list-item:hover { background: var(--surface-2); color: inherit; }
a.list-item:hover > svg:last-child { transform: translateX(-3px); }
.list-item > svg:last-child { transition: transform var(--d2) var(--ease); color: var(--muted); }
.list-item:last-child { border-bottom: 0; }
.progress { height: 7px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; transform-origin: right; animation: growX .9s var(--ease) both .2s; }
@keyframes growX { from { transform: scaleX(0); } }
.score { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ico-chip { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.ico-chip svg { width: 21px; height: 21px; }
.ico-chip.accent { background: var(--accent-50); color: var(--accent-600); }

/* مودال، پیام و فهرست فرمان */
.modal-back { position: fixed; inset: 0; background: rgba(12, 22, 30, .42); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fadeIn var(--d2) var(--ease); }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-pop); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: popIn var(--d3) var(--spring); }
.modal-back.closing { animation: fadeOut var(--d1) var(--ease-in) forwards; }
.modal-back.closing .modal { animation: popOut var(--d1) var(--ease-in) forwards; }
.modal.wide { width: min(880px, 100%); }
.modal.xwide { width: min(1100px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.modal header h3 { margin: 0; }
.modal .body { padding: 18px 20px; overflow-y: auto; }
.modal footer { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes popOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }
.toasts { position: fixed; bottom: 22px; left: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--sh-pop); font-size: .9rem; animation: toastIn var(--d3) var(--spring); pointer-events: auto; }
.toast svg { width: 18px; height: 18px; }
.toast.out { animation: toastOut var(--d2) var(--ease-in) forwards; }
.toast.ok { background: #145f35; }
.toast.error { background: var(--danger); }
.toast.warn { background: #7a4d00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.cmdk { position: fixed; inset: 0; z-index: 120; background: rgba(12, 22, 30, .38); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fadeIn var(--d2) var(--ease); }
.cmdk-box { width: min(620px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--sh-pop); overflow: hidden; animation: popIn var(--d3) var(--spring); }
.cmdk-box .in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.cmdk-box .in input { border: 0; box-shadow: none; padding: 6px 0; font-size: 1rem; min-height: 0; }
.cmdk-box .in input:focus { box-shadow: none; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-list .grp { font-size: .72rem; color: #8a96a2; font-weight: 700; padding: 8px 10px 4px; }
.cmdk-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.cmdk-list a .ico { width: 32px; height: 32px; border-radius: 9px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.cmdk-list a.hl { background: var(--brand-50); }
.cmdk-list a.hl .ico { background: var(--brand); color: #fff; }
.cmdk-list .none { padding: 20px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--line-2); font-size: .76rem; color: var(--muted); }

/* کامبوباکس و تقویم */
.combo-list {
  position: fixed; z-index: 150; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-pop);
  max-height: 280px; overflow-y: auto; min-width: 260px; padding: 4px; animation: popIn var(--d2) var(--ease);
}
.combo-list .opt { padding: 7px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.combo-list .opt .c { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 700; min-width: 54px; direction: ltr; text-align: right; }
.combo-list .opt .s { color: var(--muted); font-size: .77rem; margin-inline-start: auto; }
.combo-list .opt.hl { background: var(--brand-50); }
.combo-list .none { padding: 10px; color: var(--muted); font-size: .86rem; }
.dp { position: fixed; z-index: 160; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-pop); padding: 10px; width: 276px; user-select: none; animation: popIn var(--d2) var(--ease); }
.dp .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 700; }
.dp .hd button { border: 0; background: var(--line-2); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-family: inherit; transition: background var(--d1) var(--ease); }
.dp .hd button:hover { background: var(--brand-50); }
.dp .wk, .dp .days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.dp .wk span { font-size: .72rem; color: var(--muted); padding: 2px 0; }
.dp .days button { border: 0; background: none; padding: 6px 0; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: .86rem; transition: background var(--d1) var(--ease); }
.dp .days button:hover { background: var(--line-2); }
.dp .days button.today { color: var(--brand); font-weight: 800; box-shadow: inset 0 0 0 1px var(--brand-100); }
.dp .days button.sel { background: var(--brand); color: #fff; }
.dp .ft { display: flex; justify-content: space-between; margin-top: 6px; }

/* ---------- صفحات عمومی ---------- */
.public main.view { max-width: 1180px; margin: 0 auto; padding: 32px 24px 72px; }
.public.full main.view { max-width: none; padding: 0; }
.hero { position: relative; overflow: hidden; background: var(--brand-700); color: #fff; padding: 78px 24px 86px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 88% -20%, rgba(58, 157, 147, .45), transparent 60%), radial-gradient(600px 300px at 0% 110%, rgba(233, 162, 59, .16), transparent 60%);
}
.hero .grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero .inner, .section .inner, .cta-band .inner { position: relative; max-width: 1180px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.4; margin-bottom: 16px; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: rgba(255, 255, 255, .84); font-size: 1.08rem; max-width: 640px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); padding: 4px 12px 4px 6px; border-radius: 30px; font-size: .84rem; margin-bottom: 18px; }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(233, 162, 59, .25); }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero .trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: rgba(255,255,255,.75); font-size: .86rem; }
.hero .trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero .trust svg { color: var(--accent); width: 16px; height: 16px; }
/* ویدیوی معرفی در بخش hero */
.hero-video { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b2f37 url('/media/acc724-promo-poster.jpg') center / cover no-repeat; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); animation: popIn .6s var(--ease) .25s both; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.hv-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--brand-700); background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); transition: transform var(--d2) var(--spring), opacity var(--d2) var(--ease), background var(--d1) var(--ease); }
.hv-play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: hvPulse 2s var(--ease) infinite; }
.hv-play svg { width: 30px; height: 30px; margin-inline-end: -4px; }
.hv-play:hover { transform: scale(1.07); background: #fff; }
.hv-play:active { transform: scale(.95); }
.hero-video.playing .hv-play { opacity: 0; transform: scale(.8); pointer-events: none; }
@keyframes hvPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.hv-bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 26px 12px 10px; background: linear-gradient(to top, rgba(4, 30, 36, .72), transparent); opacity: 0; transform: translateY(6px); transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease); }
.hero-video:hover .hv-bar, .hero-video:focus-within .hv-bar, .hero-video:not(.playing) .hv-bar, .hero-video.sound-on .hv-bar { opacity: 1; transform: none; }
.hv-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12); color: #fff; font: 600 .78rem var(--font); cursor: pointer; backdrop-filter: blur(6px); transition: background var(--d1) var(--ease), transform var(--d1) var(--ease); }
.hv-btn:hover { background: rgba(255, 255, 255, .22); }
.hv-btn:active { transform: scale(.95); background: rgba(255, 255, 255, .3); }
.hv-btn svg { width: 18px; height: 18px; }
.hv-btn .i-play, .hero-video.playing .hv-btn .i-pause { display: block; }
.hv-btn .i-pause, .hero-video.playing .hv-btn .i-play { display: none; }
.hv-sound .i-sound, .hero-video.sound-on .hv-sound .i-mute { display: none; }
.hv-sound .i-mute, .hero-video.sound-on .hv-sound .i-sound { display: block; }
.hero-video:not(.sound-on) .hv-sound { background: var(--accent); border-color: var(--accent); color: #2b1a00; animation: hvNudge 3s var(--ease) 2.5s 2; }
@keyframes hvNudge { 0%, 80%, 100% { transform: none; } 86% { transform: scale(1.08); } 92% { transform: scale(.97); } }
.hv-prog { flex: 1; min-width: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hv-prog i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .25s linear; }
.hv-cap { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 30px; font-size: .74rem; font-weight: 600; color: #fff; background: rgba(4, 30, 36, .55); backdrop-filter: blur(6px); pointer-events: none; transition: opacity var(--d2) var(--ease); }
.hv-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-video.playing .hv-cap .dot { background: #ff5a4f; animation: hvRec 1.2s ease-in-out infinite; }
.hero-video.playing:not(:hover) .hv-cap { opacity: .85; }
@keyframes hvRec { 50% { opacity: .35; } }
.hero-video.buffering::after { content: ''; position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; pointer-events: none; }
@media (max-width: 600px) { .hv-play { width: 62px; height: 62px; } .hv-sound span { display: none; } .hv-bar { padding: 22px 8px 8px; } }
@media (prefers-reduced-motion: reduce) { .hv-play::before, .hv-cap .dot, .hv-sound { animation: none !important; } }

/* لودینگ ورود به سایت (اینترو) */
#intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 50% 40%, #12505d 0%, #0c3640 55%, #082a32 100%); transition: opacity .5s var(--ease), visibility 0s linear .5s; animation: introSafety .01s linear 7s forwards; }
#intro .intro-grid { position: absolute; inset: -48px; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; animation: introGrid 6s linear infinite; mask-image: radial-gradient(60% 55% at 50% 50%, #000 30%, transparent 75%); }
@keyframes introGrid { to { transform: translate(48px, 48px); } }
#intro .intro-box { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
#intro .intro-glow { position: absolute; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 162, 59, .32), transparent 65%); filter: blur(6px); animation: introGlow 2.4s ease-in-out infinite; }
@keyframes introGlow { 50% { transform: scale(1.15); opacity: .7; } }
#intro .intro-mark { position: relative; width: 104px; height: 104px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: introMark .7s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes introMark { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
#intro .i-t { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawT .6s var(--ease) .35s forwards; }
#intro .i-b { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: growY .45s var(--spring) forwards, lmDebit 2.2s var(--ease) 1.4s infinite; }
#intro .i-b3 { animation-delay: .8s, 1.4s; animation-name: growY, lmCredit; }
#intro .i-b2 { animation-delay: .95s, 1.5s; }
#intro .i-b1 { animation-delay: 1.05s, 1.4s; }
#intro .intro-wm { margin-top: 6px; font: 800 1.9rem 'Segoe UI', Tahoma, sans-serif; letter-spacing: .04em; opacity: 0; animation: introUp .5s var(--ease) .7s forwards; }
#intro .intro-wm b { color: var(--accent); }
#intro .intro-tag { font-size: .95rem; color: rgba(255, 255, 255, .78); opacity: 0; animation: introUp .5s var(--ease) .9s forwards; }
#intro .intro-bar { width: 180px; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
#intro .intro-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(to left, var(--accent), #8fd8cf); transform: scaleX(0); transform-origin: right; animation: introLoad 1.5s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
#intro.done .intro-bar i { animation: none; transform: scaleX(1); transition: transform .25s var(--ease); }
@keyframes introUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes introLoad { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }
#intro.out { opacity: 0; visibility: hidden; }
#intro.out .intro-box { transform: scale(1.06); transition: transform .5s var(--ease); }
@keyframes introSafety { to { opacity: 0; visibility: hidden; } }
.intro-quick #intro { display: none; }
@media (prefers-reduced-motion: reduce) { #intro, #intro * { animation: none !important; } #intro .i-t { stroke-dashoffset: 0; } #intro .i-b { transform: none; } #intro .intro-wm, #intro .intro-tag { opacity: 1; } }
.mock { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); overflow: hidden; font-size: .8rem; }
.mock .bar { background: var(--soft-top); color: #fff; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.mock .dots { display: flex; gap: 5px; }
.mock .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); text-align: right; }
.mock th { background: var(--surface-2); font-weight: 700; color: var(--ink-2); font-size: .74rem; }
.mock tbody tr { opacity: 0; animation: rowIn .45s var(--ease) forwards; }
.mock tbody tr:nth-child(1) { animation-delay: .9s; } .mock tbody tr:nth-child(2) { animation-delay: 1.15s; } .mock tbody tr:nth-child(3) { animation-delay: 1.4s; }
.mock tfoot td { font-weight: 800; background: var(--brand-50); }
.mock .verdict { padding: 11px 14px; display: flex; gap: 8px; align-items: center; background: #f4fbf7; opacity: 0; animation: rowIn .45s var(--spring) 1.85s forwards; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.section { padding: 72px 24px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section .kicker { color: var(--brand); font-weight: 700; font-size: .84rem; margin-bottom: 6px; display: block; }
.section h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.section .lead { color: var(--muted); max-width: 680px; margin-bottom: 30px; font-size: 1.02rem; }
.section-head { text-align: center; margin: 0 auto 34px; max-width: 700px; }
.section-head .lead { margin: 0 auto; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; transition: transform var(--d2) var(--spring), background var(--d2) var(--ease), color var(--d2) var(--ease); }
.feature .ic svg { width: 22px; height: 22px; }
a.card.feature:hover .ic, .card.lift:hover .ic { transform: rotate(-6deg) scale(1.06); background: var(--brand); color: #fff; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: .9rem; }
.role-card { position: relative; padding-top: 26px; }
.role-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.role-card li { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.role-card li svg { color: var(--ok); width: 16px; height: 16px; }
.level-card { position: relative; overflow: hidden; }
.level-card .n { position: absolute; left: 16px; top: 4px; font-size: 3.6rem; font-weight: 900; color: var(--brand-50); line-height: 1; transition: transform var(--d3) var(--spring), color var(--d3) var(--ease); }
.level-card:hover .n { transform: scale(1.12) rotate(-4deg); color: var(--brand-100); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.timeline::before { content: ''; position: absolute; top: 21px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-100) 0 8px, transparent 8px 14px); }
.timeline .st { counter-increment: s; text-align: center; position: relative; }
.timeline .st::before { content: counter(s, persian); width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; position: relative; z-index: 1; transition: background var(--d2) var(--ease), color var(--d2) var(--ease), transform var(--d2) var(--spring); }
.timeline .st:hover::before { background: var(--brand); color: #fff; transform: scale(1.08); }
.timeline .st b { display: block; margin-bottom: 4px; }
.timeline .st small { display: block; line-height: 1.7; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps > div { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps > div::before { content: counter(s, persian); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); font-weight: 800; display: grid; place-items: center; flex: none; }
.cta-band { background: var(--brand); color: #fff; padding: 46px 24px; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }
footer.site { background: #0b2d35; color: rgba(255, 255, 255, .7); padding: 54px 24px 26px; font-size: .88rem; }
footer.site .inner { max-width: 1180px; margin: 0 auto; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
footer.site h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
footer.site a { color: rgba(255, 255, 255, .7); display: block; padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site .logo { display: inline-flex; padding: 0; margin-bottom: 10px; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

.auth-wrap { min-height: calc(100vh - var(--hdr)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--brand-700); color: #fff; padding: 56px 48px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(58,157,147,.45), transparent 60%); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 1.5rem; margin: 22px 0 10px; }
.auth-side p { color: rgba(255,255,255,.8); }
.auth-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.88); }
.auth-side li svg { color: var(--accent); margin-top: 4px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(480px, 100%); }
.auth-card.wide { width: min(700px, 100%); }
.auth-card h1 { margin-bottom: 4px; }
.pw { position: relative; }
.pw input { padding-left: 42px; }
.pw button { position: absolute; left: 4px; bottom: 4px; width: 34px; height: 32px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw button:hover { background: var(--line-2); color: var(--brand); }
.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.role-pick label { border: 1px solid var(--line); border-radius: 12px; padding: 11px; cursor: pointer; display: flex; gap: 9px; align-items: flex-start; font-weight: 600; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease), transform var(--d1) var(--ease); }
.role-pick label:hover { border-color: #c9d2da; }
.role-pick label:active { transform: scale(.98); }
.role-pick label small { display: block; font-weight: 400; font-size: .74rem; line-height: 1.6; }
.role-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: var(--ring); }
.demo-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.demo-users button { text-align: right; font-family: inherit; border: 1px dashed #c8d1d9; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease), transform var(--d1) var(--ease); }
.demo-users button:hover { border-color: var(--brand); background: var(--brand-50); }
.demo-users button:active { transform: scale(.97); }
.demo-users b { display: block; font-size: .85rem; }
.demo-users small { font-size: .73rem; }

/* درس */
.lesson { max-width: 860px; }
.lesson-body { font-size: 1.02rem; line-height: 2.05; }
.lesson-body h2 { margin-top: 1.6em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lesson-body .table-wrap { margin: 12px 0 18px; }
.equation { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.equation span { background: var(--brand-50); color: var(--brand); padding: 8px 18px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; }
.equation i { font-style: normal; font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.t-accounts { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0; }
.t-accounts .t { flex: 1; min-width: 220px; border-top: 3px solid var(--ink); text-align: center; padding-top: 6px; }
.t-accounts .t > div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 6px; }
.t-accounts .t span { padding: 8px; }
.t-accounts .t span:first-child { border-left: 2px solid var(--ink); color: var(--debit); }
.t-accounts .t span:last-child { color: var(--credit); }
.levels { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.levels > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; display: flex; justify-content: space-between; gap: 10px; }
.levels > div:nth-child(2) { margin-inline-start: 20px; } .levels > div:nth-child(3) { margin-inline-start: 40px; }
.levels > div:nth-child(4) { margin-inline-start: 60px; } .levels > div:nth-child(5) { margin-inline-start: 80px; } .levels > div:nth-child(6) { margin-inline-start: 100px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.flow span { background: var(--brand-50); color: var(--brand); padding: 6px 12px; border-radius: 9px; font-weight: 600; font-size: .9rem; position: relative; }
.flow span:not(:last-child)::after { content: '←'; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.flow span:not(:last-child) { margin-left: 14px; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 14px 0; }
.modules > div { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--surface-2); transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease); }
.modules > div:hover { border-color: var(--brand-100); background: var(--brand-50); }
.modules b { display: block; color: var(--brand); }
.modules small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.75; margin-top: 2px; }

/* تصاویر درس‌ها (طراحی با تم پلتفرم): سند نمونه، مراحل، شکل SVG، فرم کاغذی، نقشه سرفصل */
.vch { margin: 16px 0 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; box-shadow: var(--sh-1); }
.vch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 9px 14px; background: var(--brand-50); border-bottom: 1px solid var(--brand-100); }
.vch-head b { color: var(--brand-700); font-size: .95rem; }
.vch-head .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--ink-2); }
.vch-ev { padding: 10px 14px; font-size: .92rem; line-height: 1.9; background: var(--surface-2); border-bottom: 1px dashed var(--line); }
.vch-ev .tag, .paper .tag { display: inline-block; background: var(--accent-50); color: var(--accent-600); font-size: .74rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; margin-inline-end: 8px; }
.vch-body { overflow-x: auto; }
.vch table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .88rem; line-height: 1.7; }
.vch th { padding: 7px 12px; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 600; text-align: start; border-bottom: 1px solid var(--line); }
.vch th.n { text-align: left; }
.vch td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.vch td.code { font-family: Consolas, 'Courier New', monospace; color: var(--muted); white-space: nowrap; width: 1%; }
.vch td.acc small { display: block; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.vch tr.is-cr td.acc { padding-inline-start: 34px; position: relative; }
.vch tr.is-cr td.acc::before { content: ''; position: absolute; inset-inline-start: 14px; top: 17px; width: 12px; border-top: 1px solid var(--line); }
.vch td.dr, .vch td.cr { white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; width: 1%; }
.vch td.dr { color: var(--debit); } .vch td.cr { color: var(--credit); }
.vch tfoot td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--line); border-bottom: 0; }
.vch-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 14px; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line-2); }
.vch-foot .sign { letter-spacing: .02em; }
.proc { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0 18px; counter-reset: st; }
.proc > div { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); line-height: 1.75; transition: border-color var(--d1) var(--ease), transform var(--d2) var(--ease); }
.proc > div:hover { border-color: var(--brand-100); transform: translateY(-2px); }
.proc > div::before { counter-increment: st; content: counter(st, persian); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 6px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.proc b { display: block; font-size: .92rem; }
.proc small { display: block; color: var(--muted); font-size: .8rem; }
.fig { margin: 16px 0 22px; padding: 14px 12px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.fig-scroll { overflow-x: auto; }
.fig svg { display: block; width: 100%; min-width: 540px; max-width: 760px; height: auto; margin-inline: auto; }
.fig figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; text-align: center; line-height: 1.8; }
.fig text { font-family: var(--font); }
.fig .t-b { font-size: 15px; font-weight: 700; } .fig .t-s { font-size: 12.5px; } .fig .t-xs { font-size: 11px; }
.fig .s-node { fill: var(--surface); stroke: var(--line); }
.fig .s-brand { fill: var(--brand); } .fig .s-brand-50 { fill: var(--brand-50); stroke: var(--brand-100); } .fig .s-brand-t { fill: var(--brand-700); }
.fig .s-accent { fill: var(--accent); } .fig .s-accent-50 { fill: var(--accent-50); stroke: #f1d7a8; }
.fig .s-ok-50 { fill: var(--ok-50); stroke: #b9dfc8; } .fig .s-ok-t { fill: var(--ok); }
.fig .s-danger-50 { fill: var(--danger-50); stroke: #f3c3bd; } .fig .s-danger-t { fill: var(--danger); }
.fig .s-ink { fill: var(--ink); } .fig .s-ink2 { fill: #8796a5; } .fig .s-muted { fill: var(--muted); } .fig .s-white { fill: #fff; }
.fig .s-line { fill: none; stroke: #9aa7b4; stroke-width: 1.6; } .fig .s-grid { stroke: var(--line); stroke-dasharray: 3 4; } .fig .s-axis { stroke: #9aa7b4; }
.paper { margin: 16px 0 22px; border: 1px solid #e3dccb; border-radius: 6px; background: #fffdf7; box-shadow: var(--sh-1); overflow: hidden; }
.paper-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.paper-head b { font-size: 1.05rem; color: var(--ink); } .paper-head .org { font-size: .78rem; color: var(--ink-2); } .paper-head .no { font-size: .78rem; color: var(--muted); text-align: left; }
.paper-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 18px; padding: 8px 14px; }
.paper-fields > div { display: flex; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px dotted #cfc6b1; font-size: .88rem; }
.paper-fields span { color: var(--muted); font-size: .8rem; white-space: nowrap; } .paper-fields b { font-weight: 600; }
.paper table { width: 100%; min-width: 0; border-collapse: collapse; font-size: .86rem; }
.paper th, .paper td { border: 1px solid #e3dccb; padding: 6px 10px; text-align: start; } .paper th { background: #f7f2e6; font-size: .76rem; color: var(--ink-2); }
.paper-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; padding: 22px 14px 12px; }
.paper-signs > div { border-top: 1px solid #b9b09b; padding-top: 4px; text-align: center; font-size: .76rem; color: var(--muted); }
.lesson-body .grid.g2 > .paper { margin: 6px 0; }
.track-map, .link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.track-map a, .link-list a { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; color: var(--ink); background: var(--surface); line-height: 1.7; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease), transform var(--d2) var(--ease); }
.track-map a:hover, .link-list a:hover { border-color: var(--brand-100); background: var(--brand-50); transform: translateY(-2px); }
.track-map b, .link-list b { display: block; color: var(--brand); font-size: .92rem; }
.track-map small, .link-list small { display: block; color: var(--muted); font-size: .8rem; }
.link-list small { direction: ltr; text-align: right; font-family: Consolas, 'Courier New', monospace; }
.learn-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.learn-tabs a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 600; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease), color var(--d1) var(--ease); }
.learn-tabs a:hover { border-color: var(--brand-100); color: var(--brand); }
.learn-tabs a.ops { border-color: #f1d7a8; background: var(--accent-50); color: var(--accent-600); }
.track-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.track-head .badge.accent { background: var(--accent-50); color: var(--accent-600); }
@media (prefers-reduced-motion: reduce) { .proc > div:hover, .track-map a:hover, .link-list a:hover { transform: none; } }
/* انیمیشن ورود اجزای درس هنگام اسکرول (lesson-fx.js کلاس fx و in را می‌گذارد) */
.lesson-body .fx { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.lesson-body .fx.in { opacity: 1; transform: none; }
.lesson-body h2.fx { transform: translateX(14px); }
.lesson-body h2 { position: relative; }
.lesson-body h2::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 72px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease) .15s; }
.lesson-body h2.in::after, .lesson-body h2:not(.fx)::after { transform: scaleX(1); }
.lesson-body .callout.fx { transform: translateX(16px); }
.lesson-body .paper.fx { transform: translateY(22px) rotate(-.8deg); }
.lesson-body .paper.fx.in { transform: none; }
.vch.fx tbody tr, .table-wrap.fx tbody tr { opacity: 0; transform: translateX(22px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 160ms); }
.vch.fx.in tbody tr, .table-wrap.fx.in tbody tr { opacity: 1; transform: none; }
.table-wrap.fx tbody tr { transform: translateY(8px); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.vch.fx tfoot td { transition: background var(--d2) var(--ease); }
.vch.fx.in tfoot tr { animation: totalFlash .9s var(--ease) 1.45s both; }
@keyframes totalFlash { 0%, 100% { background: transparent; } 40% { background: var(--ok-50); } }
.vch.fx .vch-ev .tag { display: inline-block; }
.vch.fx.in .vch-ev .tag { animation: popIn .45s var(--spring) .1s both; }
.proc.fx > div, .modules.fx > div, .track-map.fx > a, .link-list.fx > a, .flow.fx > span, .levels.fx > div, .t-accounts.fx > .t, .equation.fx > * { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--spring), border-color var(--d1) var(--ease), background var(--d1) var(--ease); transition-delay: calc(var(--i, 0) * 85ms + 80ms); }
.proc.fx.in > div, .modules.fx.in > div, .track-map.fx.in > a, .link-list.fx.in > a, .flow.fx.in > span, .levels.fx.in > div, .t-accounts.fx.in > .t, .equation.fx.in > * { opacity: 1; transform: none; }
.proc.fx, .modules.fx, .track-map.fx, .link-list.fx, .flow.fx, .levels.fx, .t-accounts.fx, .equation.fx { opacity: 1; transform: none; }
.proc.fx.in > div::before { animation: popIn .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 85ms + 200ms); }
.proc.fx.in > div:hover, .track-map.fx.in > a:hover, .link-list.fx.in > a:hover { transform: translateY(-2px); transition-delay: 0s; }
.fig.fx .s-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + .35s); }
.fig.fx.in .s-line { stroke-dashoffset: 0; }
.fig.fx rect, .fig.fx circle { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.9); transition: opacity .5s var(--ease), transform .55s var(--spring); transition-delay: calc(var(--i, 0) * 45ms + .1s); }
.fig.fx.in rect, .fig.fx.in circle { opacity: 1; transform: none; }
.fig.fx .fx-bar { transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s var(--ease), opacity .3s; transition-delay: calc(var(--i, 0) * 60ms + .2s); }
.fig.fx.in .fx-bar { transform: scaleY(1); }
.fig.fx text { opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(var(--i, 0) * 25ms + .45s); }
.fig.fx.in text { opacity: 1; }
.read-progress { position: fixed; inset-inline: 0; top: var(--hdr); height: 3px; z-index: 30; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: linear-gradient(to left, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: right; transition: transform .12s linear; }
.q-perfect { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; animation: popIn .5s var(--spring); }
.q-perfect svg { width: 20px; height: 20px; }
.confetti { position: fixed; width: 0; height: 0; z-index: 90; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; left: -4px; top: -6px; animation: confetti 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 120px)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lesson-body .fx, .lesson-body .fx *, .logo-loop .lm-b, .logo-loop .lm-t { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
  .btn .ripple { display: none; }
}
/* سند نمونه در موبایل: هر ردیف به‌صورت کارت فشرده (بدون پیمایش افقی) */
@media (max-width: 600px) {
  .vch table { min-width: 0; }
  .vch thead { display: none; }
  .vch tbody tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "code acc" ". amt"; column-gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
  .vch tbody td { padding: 0; border: 0; width: auto; }
  .vch td.code { grid-area: code; font-size: .8rem; padding-top: 2px; }
  .vch td.acc { grid-area: acc; }
  .vch tr.is-cr td.acc { padding-inline-start: 12px; }
  .vch tr.is-cr td.acc::before { display: none; }
  .vch tbody td.dr, .vch tbody td.cr { grid-area: amt; text-align: start; margin-top: 3px; width: auto; }
  .vch tbody td.dr:empty, .vch tbody td.cr:empty { display: none; }
  .vch tbody td.dr::before { content: 'بدهکار: '; color: var(--muted); font-size: .76rem; }
  .vch tbody td.cr::before { content: 'بستانکار: '; color: var(--muted); font-size: .76rem; }
  .vch tfoot tr { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 9px 12px; background: var(--surface-2); border-top: 2px solid var(--line); }
  .vch tfoot td { padding: 0; border: 0; background: none; width: auto; }
  .vch tfoot td:first-child { display: none; }
  .vch tfoot td:nth-child(2) { flex-basis: 100%; }
  .vch tfoot td.dr, .vch tfoot td.cr { width: auto; text-align: start; }
  .vch tfoot td.dr::before { content: 'بدهکار: '; color: var(--muted); font-size: .76rem; font-weight: 500; }
  .vch tfoot td.cr::before { content: 'بستانکار: '; color: var(--muted); font-size: .76rem; font-weight: 500; }
  .fig svg { min-width: 500px; }
}
.lesson-nav { display: flex; justify-content: space-between; align-items: stretch; gap: 10px; margin-top: 16px; }
.lesson-nav .btn { white-space: normal; min-width: 0; flex: 0 1 auto; max-width: 48%; text-align: start; justify-content: flex-start; gap: 10px; padding: 9px 14px; line-height: 1.6; }
.lesson-nav .btn svg { flex: none; }
.lesson-nav .btn .t { min-width: 0; display: flex; flex-direction: column; }
.lesson-nav .btn small { font-size: .72rem; font-weight: 500; opacity: .75; }
@media (max-width: 600px) { .lesson-nav { flex-direction: column-reverse; } .lesson-nav .btn { max-width: none; } .lesson-nav > span:empty { display: none; } }
.quiz .q { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.quiz .q:last-child { border-bottom: 0; }
.quiz .opts { display: grid; gap: 6px; margin-top: 8px; }
.quiz .opts label { font-weight: 500; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; gap: 9px; align-items: center; cursor: pointer; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease); }
.quiz .opts label:hover { border-color: #c9d2da; }
.quiz .opts label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.quiz .opts label.right, .quiz .opts label.right:has(input:checked) { border-color: var(--ok); background: var(--ok-50); color: var(--ok); animation: popIn var(--d3) var(--spring); }
.quiz .opts label.right::after, .quiz .opts label.wrong::after { margin-inline-start: auto; font-weight: 700; font-size: 1rem; }
.quiz .opts label.right::after { content: '✓'; }
.quiz .opts label.wrong::after { content: '✗'; }
.quiz .opts label.wrong, .quiz .opts label.wrong:has(input:checked) { border-color: var(--danger); background: var(--danger-50); color: var(--danger); animation: shake .32s var(--ease); }
@keyframes shake { 25% { transform: translateX(4px); } 50% { transform: translateX(-4px); } 75% { transform: translateX(2px); } }

/* گفتگو */
.chat { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: calc(100vh - 190px); min-height: 440px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.chat .rooms { border-left: 1px solid var(--line); overflow-y: auto; background: var(--surface-2); padding: 8px; }
.chat .rooms a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); margin-bottom: 2px; transition: background var(--d1) var(--ease); }
.chat .rooms a:hover { background: var(--line-2); }
.chat .rooms a small { display: block; }
.chat .rooms a.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.chat .msgs { display: flex; flex-direction: column; min-height: 0; }
.chat .stream { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fbfcfd; }
.msg { max-width: 72%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 12px; align-self: flex-end; animation: msgIn var(--d3) var(--spring); }
.msg.mine { align-self: flex-start; background: var(--brand-50); border-color: var(--brand-100); border-radius: 14px 14px 4px 14px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg .meta { font-size: .72rem; color: var(--muted); display: flex; gap: 8px; }
.msg .text { white-space: pre-wrap; word-break: break-word; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; min-width: 0; }

/* ---------- نرم‌افزار حسابداری ---------- */
.soft-top {
  position: sticky; top: 0; z-index: 50; height: 56px; background: var(--soft-top); color: #e9f1f3; display: flex; align-items: center; gap: 14px; padding: 0 16px; overflow: hidden;
}
.soft-top .ctx { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.soft-top .chip { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 2px 10px; font-size: .8rem; white-space: nowrap; color: #e9f1f3; display: inline-flex; gap: 5px; align-items: center; transition: background var(--d1) var(--ease); }
a.chip:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.soft-top .chip b { color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soft-top .chip { min-width: 0; flex: 0 1 auto; max-width: 100%; }
.soft-top .chip svg { flex: none; }
.soft-top .chip.keep { max-width: 300px; }
.soft-top select { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); padding: 3px 8px; font-size: .84rem; width: auto; min-height: 32px; border-radius: 8px; }
.soft-top select option { color: var(--ink); }
.soft-top .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.soft-top .btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.soft-top .kbd-search { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); min-width: 170px; }
.soft-top .kbd-search kbd { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.7); }
.soft { --hdr: 56px; }
.soft .shell { grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.soft .sidebar { background: #f8fafb; }
.soft main.view { padding: 22px 24px 72px; }
.nav details { margin-bottom: 2px; }
.nav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; margin: 10px 4px 2px; padding: 4px 8px; font-size: .74rem; color: #7f8b97; font-weight: 700; cursor: pointer; border-radius: 7px; user-select: none; transition: background var(--d1) var(--ease), color var(--d1) var(--ease); }
.nav summary::-webkit-details-marker { display: none; }
.nav summary:hover { background: var(--line-2); color: var(--ink-2); }
.nav summary svg { width: 14px; height: 14px; transition: transform var(--d2) var(--ease); }
.nav details:not([open]) summary svg { transform: rotate(90deg); }
.nav details[open] > div { animation: fadeDown var(--d2) var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } }
.readonly-bar { background: var(--warn-50); color: var(--warn); padding: 7px 16px; font-size: .86rem; border-bottom: 1px solid #f3dfb5; display: flex; gap: 8px; align-items: center; }
.form-win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.form-win > .title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.form-win > .title h2 { margin: 0; font-size: 1.04rem; display: flex; gap: 10px; align-items: center; }
.form-win > .title h2 .tic { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.form-win > .title h2 .tic svg { width: 17px; height: 17px; }
.form-win > .content { padding: 16px 18px; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 18px; background: var(--surface-2); border-top: 1px solid var(--line-2); }
.vhead { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; align-items: end; }
.vgrid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.vgrid th { background: var(--surface-2); color: var(--ink-2); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; font-size: .78rem; position: sticky; top: 0; z-index: 2; }
.vgrid td { border-bottom: 1px solid var(--line-2); padding: 4px; vertical-align: middle; transition: background var(--d1) var(--ease); }
.vgrid tbody tr { animation: fadeIn var(--d2) var(--ease); }
.vgrid td.rn { text-align: center; color: var(--muted); width: 34px; font-size: .8rem; }
.vgrid input { border: 1px solid #edf0f3; border-radius: 7px; padding: 5px 7px; font-size: .9rem; background: #fbfcfd; min-height: 34px; }
.vgrid input:hover { border-color: #dfe5ea; background: #fff; }
.vgrid input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 2px rgba(14, 94, 111, .14); }
.vgrid input.code { direction: ltr; text-align: center; font-variant-numeric: tabular-nums; width: 78px; }
.vgrid input.code.taf { width: 92px; }
.vgrid tr.cur td { background: #f2f9fa; }
.vgrid tr.err td { background: #fff6f5; }
.vgrid .joz-btn { font-family: inherit; border: 1px dashed #c6d0d8; background: #fff; border-radius: 7px; padding: 4px 9px; cursor: pointer; font-size: .78rem; color: var(--muted); white-space: nowrap; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease); }
.vgrid .joz-btn:hover { border-color: var(--brand); }
.vgrid .joz-btn.has { border-style: solid; border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); }
.vgrid .del { border: 0; background: none; color: #b6bfc7; cursor: pointer; padding: 5px; border-radius: 7px; transition: color var(--d1) var(--ease), background var(--d1) var(--ease); }
.vgrid .del:hover { color: var(--danger); background: var(--danger-50); }
.vgrid tfoot td { background: var(--surface-2); font-weight: 800; padding: 9px 10px; border-top: 1px solid var(--line); }
.vgrid tfoot td.diff { color: var(--danger); }
.vgrid tfoot .badge.ok { animation: popIn var(--d3) var(--spring); }
.vgrid .acc-title { font-size: .75rem; color: var(--muted); display: block; padding: 0 7px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vwrap { overflow: auto; max-height: calc(100vh - 380px); min-height: 230px; }
.vside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.titles-box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; font-size: .86rem; }
.titles-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
.titles-box dt { color: var(--muted); }
.titles-box dd { margin: 0; font-weight: 600; }
.approvals { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.approvals label { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color var(--d1) var(--ease), background var(--d1) var(--ease), color var(--d1) var(--ease); }
.approvals label:has(input:checked) { border-color: var(--ok); background: var(--ok-50); color: var(--ok); }
.status-line { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.project-panel { border: 1px solid #f1d7a8; background: #fffaf0; border-radius: 12px; padding: 12px 14px; max-height: 360px; overflow-y: auto; font-size: .86rem; }
.project-panel h4 { margin: 0 0 6px; font-size: .9rem; color: #7a4d00; display: flex; gap: 6px; align-items: center; }
.project-panel ol { margin: 0; padding-inline-start: 20px; }
.project-panel li { margin-bottom: 6px; }
.project-panel li .d { color: var(--muted); font-size: .76rem; display: block; }
.crud .tbl td { padding: 5px 8px; }
.crud .tbl tr.editing td { background: #fffbea; animation: fadeIn var(--d2) var(--ease); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.report-head { text-align: center; margin-bottom: 14px; }
.report-head h2 { margin: 0; }
.report-head .meta { color: var(--muted); font-size: .86rem; }
details.filters-box { border-bottom: 1px solid var(--line-2); }
details.filters-box > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 18px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ink-2); transition: background var(--d1) var(--ease); }
details.filters-box > summary::-webkit-details-marker { display: none; }
details.filters-box > summary:hover { background: var(--surface-2); }
details.filters-box > summary .chev { margin-inline-start: auto; transition: transform var(--d2) var(--ease); }
details.filters-box[open] > summary .chev { transform: rotate(180deg); }
details.filters-box[open] > .filters { animation: fadeDown var(--d2) var(--ease); }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; padding: 12px 18px 16px; background: var(--surface-2); border-top: 1px solid var(--line-2); }
.bs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bs-grid > div + div { border-right: 1px solid var(--line); }
.bs-grid h3 { background: var(--surface-2); margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.op-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.op-card .n { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.fb-ok { color: var(--ok); display: inline-flex; gap: 4px; align-items: center; } .fb-bad { color: var(--danger); } .fb-part { color: var(--warn); }
.fb-ok svg { width: 16px; height: 16px; }

/* ---------- ورود محتوا (حرکت) ---------- */
.anim > .a-i, .anim .a-i { animation: rise var(--d3) var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.count { font-variant-numeric: tabular-nums; }

/* ---------- چاپ ---------- */
.print-head { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  .hdr, .sidebar, .soft-top, .toolbar, .filters, details.filters-box > summary, .no-print, .toasts, .readonly-bar, .btn, .tabs, .bnav, .route-bar { display: none !important; }
  .shell, .soft .shell { display: block; }
  main.view { padding: 0; }
  .card, .form-win, .table-wrap { box-shadow: none; border: 0; }
  .print-head { display: block; text-align: center; margin-bottom: 10px; }
  .tbl th { position: static; }
  .vwrap { max-height: none; overflow: visible; }
  a { color: inherit; }
  .anim .a-i { animation: none !important; }
}

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1600px) { .vside { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .cols { grid-template-columns: repeat(3, 1fr); }
  .kbd-search { min-width: 0; }
  .kbd-search .lbl { display: none; }
}
@media (max-width: 1024px) {
  .pnav, .hdr .desk { display: none !important; }
  .sidebar.pub-drawer { display: flex; }
  .only-mobile { display: inline-grid !important; }
  .shell, .soft .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 86vw); z-index: 70; transform: translateX(105%); transition: transform var(--d3) var(--ease); box-shadow: var(--sh-pop); padding-top: 18px; }
  body.nav-open .sidebar { transform: none; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; right: 0; left: 0; z-index: 45; height: 64px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); border: 0; background: none; font-family: inherit; cursor: pointer; min-height: 44px; position: relative; }
  .bnav a svg, .bnav button svg { width: 22px; height: 22px; transition: transform var(--d2) var(--spring); }
  .bnav .active { color: var(--brand); }
  .bnav .active svg { transform: translateY(-2px); }
  .bnav .active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); animation: popIn var(--d2) var(--spring); }
  body.has-bnav main.view { padding-bottom: 96px; }
  body.has-bnav .toasts { bottom: 80px; }
  .hero-grid, .g2, .g3, .split, .bs-grid, .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .timeline::before { display: none; }
  .bs-grid > div + div { border-right: 0; border-top: 1px solid var(--line); }
  main.view { padding: 20px 16px 50px; }
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
  .chat .rooms { display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .chat .rooms a { white-space: nowrap; }
  .chat .stream { min-height: 360px; }
  .soft-top .ctx .chip:not(.keep) { display: none; }
  .soft-top { gap: 8px; padding: 0 10px; }
  .soft-top .ctx { flex: 1; }
  .soft-top .ctx .chip.keep { max-width: 160px; flex: 1 1 auto; }
  .soft-top .btn .t { display: none; }
  .soft-top .btn.sm { padding: 4px 9px; min-width: 40px; }
  .soft-top .spacer { display: none; }
  .soft-top .ctx { flex: 1 1 auto; }
  .soft-top .ctx select { flex: 0 1 auto; min-width: 0; max-width: 128px; text-overflow: ellipsis; }
  .soft-top .kbd-search { display: none; }
  .hdr { padding: 0 14px; gap: 8px; }
  .user-btn .nm { display: none; }
  .user-btn { padding: 3px; }
  footer.site .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .g4, .row3 { grid-template-columns: minmax(0, 1fr) !important; }
  .page-head { flex-direction: column; align-items: stretch; }
  .wm small { display: none; }
  .soft-top .logo .wm { display: none; }
  .soft-top select { max-width: 112px; }
  .vhead { grid-template-columns: 1fr 1fr; }
  .vhead .field[style] { grid-column: 1 / -1 !important; }
  .btn { min-height: 42px; }
  .btn.sm { min-height: 40px; }
  .btn { min-height: 44px; }
  .hero { padding: 54px 18px 60px; }
  .section { padding: 52px 18px; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .cta-band .inner { flex-direction: column; align-items: stretch; text-align: center; }
  footer.site .cols { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .v { font-size: 1.25rem; }
  .list-item { flex-wrap: wrap; row-gap: 6px; }
  .list-item > div[style*="flex:1"] { flex: 1 1 calc(100% - 60px) !important; }
}

/* احترام به تنظیم «کاهش حرکت» سیستم */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .logo-anim .lm-t { stroke-dashoffset: 0; }
  .logo-anim .lm-b, .mock tbody tr, .mock .verdict { transform: none; opacity: 1; }
}
