/* بازار آهن کاوه — «زردِ صنعتیِ مدرن» (docs/design-language.md)
   پالت: Tailwind Yellow + Stone (جفتِ تمِ زردِ shadcn/ui). زردِ روشن فقط پرکردن با متنِ تیره؛ متنِ زرد روی روشن = yellow-700.
   سبک: Bento + Soft UI + ریزتعامل. قرمز = گران‌تر، سبز = ارزان‌تر. فقط ویژگی‌های منطقی. */

@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("/fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF; }

/* ───── لایه‌ی ۱: پایه ───── */
:root {
  --yellow-50: #FEFCE8; --yellow-100: #FEF9C3; --yellow-200: #FEF08A; --yellow-300: #FDE047; --yellow-400: #FACC15;
  --yellow-500: #EAB308; --yellow-600: #CA8A04; --yellow-700: #A16207; --yellow-800: #854D0E; --yellow-900: #713F12; --yellow-950: #422006;
  --stone-50: #FAFAF9; --stone-100: #F5F5F4; --stone-200: #E7E5E4; --stone-300: #D6D3D1; --stone-400: #A8A29E;
  --stone-500: #78716C; --stone-600: #57534E; --stone-700: #44403C; --stone-800: #292524; --stone-900: #1C1917; --stone-950: #0C0A09;
  --red-50: #FEF2F2; --red-400: #F87171; --red-500: #EF4444; --red-600: #DC2626; --red-700: #B91C1C;
  --green-50: #ECFDF5; --green-400: #34D399; --green-500: #10B981; --green-600: #059669; --green-700: #047857;

  /* ───── لایه‌ی ۲: معنایی (روشن) ───── */
  --bg: var(--stone-50); --card: #FFFFFF; --muted: var(--stone-100); --muted-2: #EFEDEB;
  --border: var(--stone-200); --border-strong: var(--stone-300);
  --fg: var(--stone-900); --fg-2: var(--stone-700); --fg-muted: var(--stone-600);
  --primary: var(--yellow-400); --primary-hover: var(--yellow-300); --on-primary: var(--stone-950);
  --accent-text: var(--yellow-700); --accent-soft: var(--yellow-100); --accent-softer: var(--yellow-50);
  --rise: var(--red-700); --rise-soft: var(--red-50); --fall: var(--green-700); --fall-soft: var(--green-50);
  --ring: color-mix(in srgb, var(--yellow-500) 55%, transparent);
  --ink: var(--stone-950); --ink-2: #171412; --ink-3: var(--stone-800); --ink-line: rgb(255 255 255 / .08); --ink-fg: var(--stone-50); --ink-muted: var(--stone-400);

  /* شکل و عمق */
  --r-sm: 8px; --r: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-full: 999px;
  --e1: 0 1px 2px rgb(28 25 23 / .06), 0 1px 1px rgb(28 25 23 / .04);
  --e2: 0 4px 14px -4px rgb(28 25 23 / .10), 0 2px 4px -2px rgb(28 25 23 / .06);
  --e3: 0 14px 34px -10px rgb(28 25 23 / .18), 0 4px 10px -4px rgb(28 25 23 / .08);
  --e4: 0 30px 70px -20px rgb(28 25 23 / .35);
  --glow: 0 10px 30px -8px rgb(250 204 21 / .55);
  /* پله‌های تیره‌ی گرم: هر سطحِ تیره (هیرو، کارت‌های تیره، باسکول، دستگاه‌ها، تابلوی فلیپ، داک) فقط از همین‌ها */
  --ink-950: #0C0A09; --ink-900: #171412; --ink-850: #1C1917; --ink-800: #221E1B; --ink-700: #2A2623; --ink-600: #3A3532;
  --shadow-ink: 12 10 9;

  --font: Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 32px); --header-h: 68px;
  --ease: cubic-bezier(.23, 1, .32, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --dir: -1;
  color-scheme: light;
}
[dir="ltr"] { --dir: 1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--stone-950); --card: #171412; --muted: var(--stone-800); --muted-2: #221E1B;
    --border: #2A2623; --border-strong: #3A3532;
    --fg: var(--stone-50); --fg-2: var(--stone-300); --fg-muted: var(--stone-400);
    --accent-text: var(--yellow-400); --accent-soft: rgb(250 204 21 / .14); --accent-softer: rgb(250 204 21 / .07);
    --rise: var(--red-400); --rise-soft: rgb(239 68 68 / .14); --fall: var(--green-400); --fall-soft: rgb(16 185 129 / .14);
    --e1: 0 1px 2px rgb(var(--shadow-ink) / .5); --e2: 0 6px 16px -6px rgb(var(--shadow-ink) / .7); --e3: 0 18px 40px -12px rgb(var(--shadow-ink) / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--stone-950); --card: #171412; --muted: var(--stone-800); --muted-2: #221E1B;
  --border: #2A2623; --border-strong: #3A3532;
  --fg: var(--stone-50); --fg-2: var(--stone-300); --fg-muted: var(--stone-400);
  --accent-text: var(--yellow-400); --accent-soft: rgb(250 204 21 / .14); --accent-softer: rgb(250 204 21 / .07);
  --rise: var(--red-400); --rise-soft: rgb(239 68 68 / .14); --fall: var(--green-400); --fall-soft: rgb(16 185 129 / .14);
  --e1: 0 1px 2px rgb(var(--shadow-ink) / .5); --e2: 0 6px 16px -6px rgb(var(--shadow-ink) / .7); --e3: 0 18px 40px -12px rgb(var(--shadow-ink) / .8);
  color-scheme: dark;
}
/* ناحیه‌های تیره (هیرو، نوار، پانویس) همیشه با نشانه‌های تیره */
.on-ink {
  --card: rgb(255 255 255 / .04); --muted: rgb(255 255 255 / .06); --border: var(--ink-line); --border-strong: rgb(255 255 255 / .14);
  --fg: var(--stone-50); --fg-2: var(--stone-300); --fg-muted: var(--stone-400); --accent-text: var(--yellow-400);
  --rise: var(--red-400); --rise-soft: rgb(239 68 68 / .16); --fall: var(--green-400); --fall-soft: rgb(16 185 129 / .16);
  background: var(--ink); color: var(--fg);
}

/* ───── پایه ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h, var(--header-h)) + 20px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.9 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.4; font-weight: 800; text-wrap: balance; color: var(--fg); }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; box-shadow: 0 0 0 4px var(--bg); }
::selection { background: var(--yellow-300); color: var(--stone-950); }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-muted); }
.rise { color: var(--rise); } .fall { color: var(--fall); }
.flipx { transform: scaleX(-1); } [dir="ltr"] .flipx { transform: none; }
.code { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; direction: ltr; unicode-bidi: isolate; }

/* ───── دکمه‌ها ───── */
.btn {
  --b-bg: var(--card); --b-fg: var(--fg); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r); border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s, color .18s, box-shadow .18s, translate .18s var(--ease), scale .15s var(--ease);
  box-shadow: var(--e1);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { translate: 0 -1px; box-shadow: var(--e2); }
.btn:active { translate: 0 0; scale: .97; box-shadow: var(--e1); }
.btn-primary { --b-bg: var(--primary); --b-fg: var(--on-primary); --b-bd: transparent; box-shadow: var(--e1), inset 0 -2px 0 rgb(var(--shadow-ink) / .1); }
.btn-primary:hover { --b-bg: var(--primary-hover); box-shadow: var(--glow); }
.btn-dark { --b-bg: var(--stone-900); --b-fg: var(--stone-50); --b-bd: transparent; }
.btn-dark:hover { --b-bg: var(--stone-800); }
:root[data-theme="dark"] .btn-dark { --b-bg: var(--stone-100); --b-fg: var(--stone-900); }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; }
.btn-ghost:hover { --b-bg: var(--muted); box-shadow: none; }
.on-ink .btn:not(.btn-primary) { --b-bg: rgb(255 255 255 / .06); --b-fg: var(--stone-50); --b-bd: rgb(255 255 255 / .14); box-shadow: none; }
.on-ink .btn:not(.btn-primary):hover { --b-bg: rgb(255 255 255 / .12); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: var(--r-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); color: var(--fg-2); transition: background-color .15s, color .15s, border-color .15s, scale .15s var(--ease); }
.icon-btn:hover { background: var(--muted); color: var(--fg); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: translate .2s var(--ease); }
.link-arrow:hover .icon { translate: calc(var(--dir) * 4px) 0; }

/* ───── نشان‌ها و تغییر ───── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; line-height: 1.6; background: var(--muted); color: var(--fg-2); white-space: nowrap; border: 1px solid var(--border); }

.badge.out { background: var(--rise-soft); color: var(--rise); border-color: transparent; }
.badge.call { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge.offer { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex: none; }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green-500); opacity: .35; animation: ping 1.8s var(--ease) infinite; }
.dot-live.y, .dot-live.y::after { background: var(--yellow-400); }
.dot-live.off, .dot-live.off::after { background: var(--stone-400); animation: none; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.chg { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--r-full); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--muted); color: var(--fg-muted); }
.chg svg { width: 9px; height: 9px; }
.chg.up { background: var(--rise-soft); color: var(--rise); }
.chg.down { background: var(--fall-soft); color: var(--fall); }
/* درصد، بخشِ دومِ تراشه: کپسولِ پررنگ‌ترِ هم‌رنگ در انتهای آن، تا مبلغ و درصد یک عدد خوانده نشوند */
.chg.has-pct { padding-inline-end: 3px; }
.chg .pct { display: inline-flex; align-items: center; margin-inline-start: 5px; padding: 1px 7px; border-radius: var(--r-full);
  background: color-mix(in srgb, currentColor 15%, transparent); font-size: .92em; font-weight: 800; }
.on-ink .chg .pct { background: color-mix(in srgb, currentColor 22%, transparent); }
/* در جدول‌ها (۱۴ آبان ۱۴۰۵): همه‌ی تراشه‌ها هم‌عرض و سه‌خانه‌ای‌اند — فلش، مبلغ، درصد — تا ستونِ «تغییر» مثلِ ستونِ قیمت
   مرتب باشد: فلش‌ها زیرِ هم، رقمِ یکانِ مبلغ‌ها زیرِ هم، کپسولِ درصد‌ها هم‌اندازه و زیرِ هم */
td .chg { min-inline-size: 11em; justify-content: center; }
td .chg.has-pct { display: inline-grid; grid-template-columns: 9px minmax(0, 1fr) 4.7em; gap: 0 6px; padding-inline: 9px 3px; }
td .chg.has-pct .amt { text-align: end; }
td .chg.has-pct .pct { justify-content: center; margin-inline-start: 0; padding-inline: 0; }
@media (max-width: 600px) {
  table.px-table td .chg { min-inline-size: 0; }
  table.px-table td .chg.has-pct { grid-template-columns: 9px auto; padding-inline: 8px; }
}
/* روی زمینه‌ی تیره کپسولِ قرمز و سبز گل‌آلود می‌شود: فقط رنگِ متن و فلش */
.on-ink .chg.up, .on-ink .chg.down { background: transparent; padding-inline: 2px; }

/* ───── نوارِ بالا و سربرگِ شیشه‌ای ───── */
.topstrip { font-size: 13px; }
.topstrip .wrap { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.topstrip .item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); white-space: nowrap; }
.topstrip b { color: var(--stone-50); font-weight: 600; }
.topstrip .clock { color: var(--yellow-400); font-variant-numeric: tabular-nums; }
.topstrip a { color: var(--stone-200); text-decoration: none; }
.topstrip a:hover { color: var(--yellow-400); }
.topstrip .push { margin-inline-start: auto; }

.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); view-transition-name: site-header; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.logo-white { display: none; }
:root[data-theme="dark"] .logo-ink { display: none; } :root[data-theme="dark"] .logo-white { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-ink { display: none; } :root:not([data-theme="light"]) .logo-white { display: block; } }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--fg-2); font-weight: 600; font-size: 15px; background: none; border: 0; transition: background-color .15s, color .15s; }
.nav a:hover, .nav button:hover { background: var(--muted); color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--muted); }
.nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-400); margin-inline-end: 4px; }
.nav button .icon { width: 14px; height: 14px; rotate: -90deg; transition: rotate .2s; }
body:has(.mega:popover-open) .nav button .icon { rotate: 90deg; }

.menu-btn { display: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.scroll-meter { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(to left, var(--yellow-300), var(--yellow-500)); transform-origin: 100% 50%; scale: 0 1; pointer-events: none; }
[dir="ltr"] .scroll-meter { transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  .scroll-meter { animation: meter linear both; animation-timeline: scroll(root); }
  @keyframes meter { to { scale: 1 1; } }
}
/* منوی محصولات (Popover API) — تمام‌عرض زیرِ سربرگ */
.mega { position: fixed; inset-block-start: var(--mega-top, calc(var(--header-h) + 44px)); inset-inline: 0; margin: 0 auto; width: min(1080px, calc(100vw - 24px)); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); color: var(--fg); padding: 18px; box-shadow: var(--e4); }
.mega:popover-open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; animation: pop-in .2s var(--ease); }
@keyframes pop-in { from { opacity: 0; translate: 0 -8px; } }
.mega a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px; border-radius: var(--r-md); text-decoration: none; transition: background-color .15s; }
.mega a:hover { background: var(--muted); }
.mega .m-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.mega .m-ic svg { width: 22px; height: 22px; }
.mega b { font-weight: 700; }
.mega small { color: var(--fg-muted); font-size: 13px; }
.mega small strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.mega .m-all { grid-column: 1 / -1; display: flex; justify-content: space-between; background: var(--muted); }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: calc(var(--header-h) + 36px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px var(--gutter) 18px; display: none; box-shadow: var(--e3); }
  .nav.open { display: flex; animation: pop-in .2s var(--ease); }
  .nav a, .nav button { padding: 12px; font-size: 16px; }
  .mega:popover-open { grid-template-columns: 1fr 1fr; inset-block-start: 110px; max-height: calc(100dvh - 130px); overflow: auto; }
}
@media (max-width: 720px) {  .brand img { height: 40px; } .site-header .wrap { gap: 10px; } .mega:popover-open { grid-template-columns: 1fr; } }

/* ───── نوارِ قیمتِ لحظه‌ای ───── */
.tape { position: relative; display: flex; align-items: center; gap: 0; overflow: hidden; border-bottom: 1px solid var(--ink-line); }
.tape-label { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-inline: var(--gutter) 6px; padding: 4px 12px; border-radius: var(--r-full); background: rgb(250 204 21 / .12); color: var(--yellow-400); font-weight: 700; font-size: 13px; }
.tape-track { flex: 1; overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 5%, #000 95%, transparent); }
.tape-run { display: flex; width: max-content; animation: tape 80s linear infinite; }
.tape:hover .tape-run, .tape:focus-within .tape-run, .tape.paused .tape-run { animation-play-state: paused; }
@keyframes tape { from { translate: 0; } to { translate: calc(var(--dir) * -50%); } }
.tape-set { display: flex; }
.tape-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; white-space: nowrap; text-decoration: none; color: var(--stone-300); font-size: 14.5px; position: relative; }
.tape-item::after { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--stone-700); translate: 0 -50%; }
.tape-item:hover { color: var(--stone-50); }
.tape-item .t-price { color: var(--stone-50); font-weight: 700; font-variant-numeric: tabular-nums; }
.tape-pause { flex: none; width: 40px; height: 40px; margin-inline: 6px var(--gutter); border-radius: 50%; border: 1px solid var(--ink-line); background: none; color: var(--stone-400); display: grid; place-items: center; }
.tape-pause:hover, .tape-pause[aria-pressed="true"] { color: var(--yellow-400); border-color: rgb(250 204 21 / .4); }
.tape-pause .icon { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .tape-run { animation: none; } .tape-track { overflow-x: auto; } .tape-run .dup { display: none; } }

/* ───── هیرو ───── */
.hero { position: relative; overflow: hidden; isolation: isolate; }

.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; }

.announce { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; padding-inline: 6px 14px; border-radius: var(--r-full); border: 1px solid var(--border-strong); background: rgb(255 255 255 / .05); color: var(--stone-200); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.announce:hover { border-color: rgb(250 204 21 / .5); background: rgb(250 204 21 / .08); }

.announce .icon { width: 14px; height: 14px; }
.announce b { color: var(--yellow-300); font-weight: 700; }

.slide.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, var(--stone-950) 8%, rgb(12 10 9 / .85) 42%, rgb(12 10 9 / .2) 80%); }
[dir="ltr"] .slide.photo::before { background: linear-gradient(to right, var(--stone-950) 8%, rgb(12 10 9 / .85) 42%, rgb(12 10 9 / .2) 80%); }

.pills { display: flex; gap: 8px; align-items: center; }
.pills button { position: relative; width: 34px; height: 8px; border-radius: var(--r-full); border: 0; padding: 0; background: rgb(255 255 255 / .18); overflow: hidden; transition: width .3s var(--ease); }
.pills button[aria-current="true"] { width: 64px; }
.pills button::after { content: ""; position: absolute; inset: 0; background: var(--yellow-400); transform-origin: 100% 50%; scale: var(--p, 0) 1; border-radius: inherit; }
[dir="ltr"] .pills button::after { transform-origin: 0 50%; }
.hero-ctrl { display: flex; gap: 8px; }
.hero-ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .16); background: rgb(255 255 255 / .06); backdrop-filter: blur(8px); color: var(--stone-100); display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.hero-ctrl button:hover { background: var(--yellow-400); color: var(--stone-950); border-color: var(--yellow-400); }
.hero-ctrl .icon { width: 18px; height: 18px; }
@media (max-width: 960px) {
  
  
  .slide.photo::before { background: linear-gradient(to top, var(--stone-950) 25%, rgb(12 10 9 / .7) 65%, rgb(12 10 9 / .3)); }
}

/* ───── کارتِ قیمتِ زنده (شیشه‌ای) ───── */
.live-card { position: relative; border-radius: var(--r-xl); border: 1px solid rgb(255 255 255 / .1); background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .06); color: var(--stone-50); overflow: hidden; min-width: 0; }
.live-card::before { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgb(250 204 21 / .25), transparent 70%); pointer-events: none; }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgb(255 255 255 / .07); }
.lc-head .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--stone-300); font-weight: 600; }
.lc-head .idx { color: var(--stone-400); font-family: var(--mono); font-size: 12px; }
.lc-body { padding: 18px 20px 6px; display: grid; gap: 12px; }
.lc-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lc-name h2 { margin: 0; font-size: clamp(19px, 2vw, 24px); color: var(--stone-50); }
.lc-name a { color: inherit; text-decoration: none; }
.lc-name a:hover { color: var(--yellow-300); }
.lc-price { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.lc-unit { display: grid; gap: 4px; color: var(--stone-400); font-size: 13.5px; padding-bottom: 4px; }
.lc-chart { height: 88px; margin-inline: -4px; }
.lc-chart svg { width: 100%; height: 100%; overflow: visible; }
.lc-axis { display: flex; justify-content: space-between; color: var(--stone-400); font-size: 11.5px; padding: 0 20px 10px; }
.lc-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .07); }
.lc-stats div { padding: 12px 20px; border-inline-start: 1px solid rgb(255 255 255 / .07); display: grid; gap: 2px; min-width: 0; }
.lc-stats div:first-child { border-inline-start: 0; }
.lc-stats small { color: var(--stone-400); font-size: 13px; }
.lc-stats b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-stats .rise { color: var(--red-400); } .lc-stats .fall { color: var(--green-400); }
.lc-list { border-top: 1px solid rgb(255 255 255 / .07); padding: 6px 8px 8px; display: grid; }
.lc-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--r); text-decoration: none; color: var(--stone-300); font-size: 14px; transition: background-color .15s; }
.lc-list a:hover, .lc-list a[aria-current="true"] { background: rgb(255 255 255 / .06); color: var(--stone-50); }
.lc-list a[aria-current="true"] { box-shadow: inset calc(var(--dir) * -2px) 0 0 var(--yellow-400); }
.lc-list b { color: var(--stone-50); font-weight: 700; font-variant-numeric: tabular-nums; }

/* کاشی‌های فلیپ (امضای برند، پیوند با گجت) */
.flap { --fw: 52px; display: flex; align-items: flex-end; gap: calc(var(--fw) * .1); direction: ltr; perspective: 600px; }
.flap-tile { position: relative; display: grid; place-items: center; width: var(--fw); height: calc(var(--fw) * 1.3); border-radius: calc(var(--fw) * .16); background: linear-gradient(to bottom, #2A2623 0 50%, #1F1B19 50% 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 6px 14px -6px rgb(0 0 0 / .7); overflow: hidden; }
.flap-tile b { display: block; font: 800 calc(var(--fw) * .86)/1 var(--font); color: var(--yellow-400); font-variant-numeric: tabular-nums; translate: 0 calc(var(--fw) * .05); }
.flap-tile::after { content: ""; position: absolute; inset-inline: 0; top: calc(50% - .5px); height: 1px; background: rgb(0 0 0 / .65); box-shadow: 0 1px 0 rgb(255 255 255 / .04); z-index: 3; }
.flap-sep { display: grid; align-items: end; width: calc(var(--fw) * .26); height: calc(var(--fw) * 1.3); }
.flap-sep b { font: 800 calc(var(--fw) * .7)/1 var(--font); color: var(--yellow-400); text-align: center; }
.flap-tile.flip::before { content: ""; position: absolute; inset: 0 0 50% 0; background: #2A2623; transform-origin: 50% 100%; z-index: 2; animation: flap-fall .34s cubic-bezier(.5, 0, .9, .5) var(--d, 0ms) both; }
.flap-tile.flip b { animation: flap-in .5s ease-out var(--d, 0ms) both; }
@keyframes flap-fall { from { transform: rotateX(0); filter: brightness(1.4); } to { transform: rotateX(-90deg); filter: brightness(.6); } }
@keyframes flap-in { 0%, 40% { transform: rotateX(80deg); opacity: .2; } 100% { transform: rotateX(0); opacity: 1; } }
.flap-text { font: 800 calc(var(--fw) * .55)/1.3 var(--font); color: var(--yellow-400); padding-bottom: 6px; }

/* نمودارِ خطیِ کوچک */
.spark { width: 100%; height: auto; display: block; overflow: visible; color: var(--fg-muted); }
.spark .a { fill: var(--fg-muted); opacity: .08; }
.spark .l { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark.up { color: var(--rise); } .spark.down { color: var(--fall); }
.spark.y { color: var(--yellow-400); }
.spark.y .a { fill: var(--yellow-400); opacity: .22; }

/* ───── بخش‌ها ───── */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section.tight { padding-block: clamp(36px, 5vw, 64px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 40px); margin: 10px 0 0; font-weight: 800; }
.sec-head p { color: var(--fg-muted); margin: 10px 0 0; max-width: 44em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--accent-text); font-size: 13.5px; font-weight: 700; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-400); box-shadow: 0 0 0 3px var(--accent-softer); }
.on-ink .eyebrow { color: var(--yellow-400); }
.on-ink .eyebrow::before { box-shadow: 0 0 0 3px rgb(250 204 21 / .14); }

/* ───── شاخص‌های بازار (بنتو) ───── */

.tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--e1); min-width: 0; overflow: hidden; transition: box-shadow .2s var(--ease), translate .2s var(--ease), border-color .2s; }
.tile:hover { box-shadow: var(--e2); }
.tile small { display: flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 13.5px; font-weight: 600; }
.tile .big { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.3; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .sub { color: var(--fg-muted); font-size: 13.5px; }
.tile .ic { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: var(--muted); color: var(--fg-2); position: absolute; inset-block-start: 18px; inset-inline-end: 18px; }
.tile .ic svg { width: 20px; height: 20px; }
.tile.up .ic { background: var(--rise-soft); color: var(--rise); } .tile.up .big { color: var(--rise); }
.tile.down .ic { background: var(--fall-soft); color: var(--fall); } .tile.down .big { color: var(--fall); }
.tile.heat { grid-row: span 2; display: grid; align-content: space-between; gap: 10px; }
.tile.mover { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.gauge { width: 100%; max-width: 280px; margin-inline: auto; }
.gauge .track { fill: none; stroke: var(--muted); stroke-width: 16; stroke-linecap: round; }
.gauge .arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge .needle { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; transition: transform .8s var(--spring); transform-origin: 100px 100px; }
.gauge .hub { fill: var(--fg); }

@media (max-width: 980px) {  .tile.heat { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 520px) { .tile.mover { grid-template-columns: 1fr; } }

/* ───── تابلوی قیمت ───── */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-md); background: var(--muted); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: var(--r); background: none; color: var(--fg-muted); font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: color .2s; }
.seg button .icon { width: 17px; height: 17px; }
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"], .seg button[aria-checked="true"] { color: var(--fg); }
.seg .thumb { position: absolute; z-index: 0; inset-block: 4px; left: 0; width: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--e2); transition: translate .2s var(--ease), width .2s var(--ease); pointer-events: none; }
.seg .thumb.instant { transition: none; }
.seg:not(.js) button[aria-selected="true"], .seg:not(.js) button[aria-pressed="true"], .seg:not(.js) button[aria-checked="true"] { background: var(--card); box-shadow: var(--e1); }
.board { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e1); overflow: hidden; }
.board + .board { margin-top: 18px; }
.board-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.board-head .cat-ic { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.board-head .cat-ic svg { width: 22px; height: 22px; }
.board-head h3, .board-head h2 { margin: 0; font-size: 18px; }
.board-head .sub { color: var(--fg-muted); font-size: 13px; }
.board-head .meta { margin-inline-start: auto; color: var(--fg-muted); font-size: 13px; text-align: end; }
table.ptable { width: 100%; border-collapse: collapse; }
table.ptable th { text-align: start; font-size: 13px; font-weight: 600; color: var(--fg-muted); padding: 10px 20px; background: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.ptable td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.ptable tbody tr { cursor: pointer; transition: background-color .15s; }
table.ptable tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) { table.ptable tbody tr:hover { background: var(--accent-softer); } }
table.ptable .p-name a { text-decoration: none; font-weight: 700; font-size: 15.5px; color: var(--fg); }
table.ptable .p-name a:hover { color: var(--accent-text); }
table.ptable .p-name .spec { display: block; color: var(--fg-muted); font-size: 13px; line-height: 1.6; }
table.ptable .col-price { text-align: end; white-space: nowrap; }
table.ptable .p-price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
table.ptable .col-chg { text-align: end; width: 150px; white-space: nowrap; }
table.ptable .col-spark { width: 140px; }
table.ptable .col-spark .spark { height: 32px; }
table.ptable .col-go { width: 48px; }
table.ptable .go { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--fg-muted); transition: background-color .15s, color .15s; }
table.ptable tr:hover .go { background: var(--primary); color: var(--on-primary); }
table.ptable .go svg { width: 16px; height: 16px; }
tr.flash { animation: row-flash 2.4s var(--ease); }
@keyframes row-flash { from { background: var(--accent-soft); } }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--muted); font-size: 13px; color: var(--fg-muted); }
@media (max-width: 760px) {
  table.ptable thead { display: none; }
  table.ptable, table.ptable tbody { display: block; }
  table.ptable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  table.ptable tbody tr:last-child { border-bottom: 0; }
  table.ptable td { display: block; padding: 0; border: 0; }
  table.ptable .col-price { grid-column: 2; grid-row: 1; }
  table.ptable .col-chg { grid-column: 2; grid-row: 2; width: auto; }
  table.ptable .col-spark { display: none; }
  table.ptable .col-go { display: block; grid-column: 1; grid-row: 2; justify-self: start; }
}

/* نقشه‌ی حرارتی */
.heatmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.hm { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--fg); min-width: 0; transition: translate .2s var(--ease), box-shadow .2s; }
.hm:hover { translate: 0 -2px; box-shadow: var(--e2); }
.hm b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm span { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hm small { font-size: 13px; font-weight: 700; color: var(--fg-muted); }
.hm.up { background: color-mix(in srgb, var(--red-500) calc(var(--i, .3) * 22%), var(--card)); border-color: color-mix(in srgb, var(--red-500) calc(var(--i, .3) * 40%), var(--border)); }
.hm.down { background: color-mix(in srgb, var(--green-500) calc(var(--i, .3) * 22%), var(--card)); border-color: color-mix(in srgb, var(--green-500) calc(var(--i, .3) * 40%), var(--border)); }
.hm.up small { color: var(--rise); } .hm.down small { color: var(--fall); }

/* ───── گروه‌ها ───── */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; min-height: 200px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--e1); text-decoration: none; color: var(--fg); transition: translate .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.cat::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgb(250 204 21 / .18), transparent 70%); opacity: 0; transition: opacity .3s; }
.cat:hover { translate: 0 -3px; box-shadow: var(--e3); border-color: color-mix(in srgb, var(--yellow-400) 60%, var(--border)); }
.cat:hover::after { opacity: 1; }
.cat .cat-ic { width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--muted); color: var(--fg-2); transition: background-color .25s, color .25s; }
.cat:hover .cat-ic { background: var(--primary); color: var(--on-primary); }
.cat .cat-ic svg { width: 26px; height: 26px; }
.cat strong { font-size: 19px; font-weight: 800; }
.cat p { color: var(--fg-muted); font-size: 14px; line-height: 1.85; margin: 0; }
.cat .from { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: baseline; color: var(--fg-muted); font-size: 13px; }
.cat .from b { color: var(--fg); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ───── کارت‌ها ───── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--e1); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.grid-2.wide-end { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .grid-2, .grid-2.even, .grid-2.wide-end { grid-template-columns: 1fr; } }
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.list-rows li:last-child { border-bottom: 0; }
.list-rows .when { color: var(--fg-muted); font-size: 13px; }
.prose { max-width: 44em; font-size: 17px; }
.prose p { line-height: 2.05; color: var(--fg-2); }

/* ───── نوارِ تیره‌ی ویژه (خاموت، هم‌گامی) ───── */
.feature-ink { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; padding: clamp(26px, 4vw, 48px); }
.feature-ink::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; inset-block-start: -220px; inset-inline-start: -140px; border-radius: 50%; background: radial-gradient(circle, rgb(250 204 21 / .16), transparent 70%); }
.feature-ink::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.khamoot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.khamoot h2 { font-size: clamp(26px, 3.2vw, 42px); }
.khamoot p { color: var(--stone-300); }
.shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.shapes figure { margin: 0; display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: var(--r-md); background: rgb(255 255 255 / .04); border: 1px solid var(--ink-line); color: var(--stone-300); font-size: 13px; font-weight: 600; transition: border-color .2s, background-color .2s; }
.shapes figure:hover { border-color: rgb(250 204 21 / .4); background: rgb(250 204 21 / .06); }
/* نقشه‌های خودِ خاموت (shapes.js ِ خاموت، با tools/khamoot-brand/shapes.mjs): میلگردِ زرد، اندازه‌ها کم‌رنگ */
.shapes .shape-svg { width: 100%; max-width: 132px; height: auto; overflow: visible; }
.shapes .shape-bar { fill: none; stroke: var(--yellow-400); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.shapes .shape-dim { fill: var(--stone-400); font: 700 11px var(--font); }
.mini-board { border-radius: var(--r-lg); border: 1px solid var(--ink-line); background: rgb(255 255 255 / .03); overflow: hidden; }
.mini-board .mb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); color: var(--stone-300); font-size: 13.5px; font-weight: 600; }
.mini-board a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--ink-line); text-decoration: none; color: var(--stone-100); transition: background-color .15s; }
.mini-board a:last-child { border-bottom: 0; }
.mini-board a:hover { background: rgb(255 255 255 / .05); }
.mini-board b { color: var(--yellow-400); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .khamoot { grid-template-columns: 1fr; } .shapes { grid-template-columns: repeat(2, 1fr); } .shapes figure:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ───── مراحل ───── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; position: relative; }
.step { position: relative; padding: 24px 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--e1); }
.step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-850); color: var(--yellow-400); font-weight: 800; font-size: 17px; margin-bottom: 16px; box-shadow: 0 0 0 5px var(--muted); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--fg-muted); font-size: 15px; margin: 0; line-height: 1.9; }
.step .icon { position: absolute; inset-block-start: 26px; inset-inline-end: 22px; width: 24px; height: 24px; color: var(--fg-muted); }
@media (min-width: 901px) { .step:not(:last-child)::after { content: ""; position: absolute; inset-block-start: 44px; inset-inline-end: -14px; width: 14px; border-top: 2px dashed var(--border-strong); } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ───── عددهای اعتماد ───── */

.stat { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--e1); }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat span { color: var(--fg-muted); font-size: 14px; }

/* ───── پرسش‌ها ───── */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); box-shadow: var(--e1); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--yellow-400) 55%, var(--border)); box-shadow: var(--e2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--muted); flex: none; transition: rotate .25s var(--ease), background-color .2s; }
.faq summary .pm::before { content: "+"; font: 600 18px/1 var(--mono); color: var(--fg-2); }
.faq details[open] summary .pm { rotate: 45deg; background: var(--primary); }
.faq details[open] summary .pm::before { color: var(--on-primary); }
.faq .ans { padding: 0 20px 18px; color: var(--fg-2); }
.faq .ans p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ───── کارتِ اقدام (استعلامِ سریع) ───── */
.cta { position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--yellow-300), var(--yellow-400) 60%); color: var(--stone-950); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: center; box-shadow: var(--glow); }
.cta::before { content: none; background-image: linear-gradient(rgb(0 0 0 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(0 0 0 / .06) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%); }
.cta h2 { font-size: clamp(24px, 2.8vw, 36px); margin: 0 0 8px; color: var(--stone-950); }
.cta p { margin: 0; font-weight: 600; color: var(--stone-800); }
.cta p a { color: var(--stone-950); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.quick { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 8px; }
.quick input { height: 50px; border: 1px solid rgb(var(--shadow-ink) / .14); border-radius: var(--r); padding: 0 14px; background: var(--stone-50); color: var(--stone-900); min-width: 0; box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset; }
.quick input::placeholder { color: var(--stone-600); }
.quick input:focus { outline: 2px solid var(--stone-900); outline-offset: 1px; }
.quick button { border: 0; border-radius: var(--r); background: var(--stone-950); color: var(--yellow-300); font-weight: 800; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; transition: background-color .15s; }
.quick button:hover { background: var(--stone-800); }
.cta .ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; background: var(--stone-950); color: var(--yellow-300); padding: 12px 18px; border-radius: var(--r); }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; } .quick { grid-template-columns: 1fr 1fr; } .quick button { grid-column: 1 / -1; } }

/* ───── صفحه‌های داخلی ───── */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 90% at 70% 0%, #000, transparent 75%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; inset-block-start: -300px; inset-inline-start: 10%; border-radius: 50%; background: radial-gradient(circle, rgb(250 204 21 / .2), transparent 70%); }
.page-hero .wrap { padding-block: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 14px 0 8px; color: var(--stone-50); }
.page-hero p { color: var(--stone-300); margin: 0; max-width: 44em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--stone-400); font-size: 13.5px; }
.crumbs a { color: inherit; text-decoration: none; } .crumbs a:hover { color: var(--yellow-400); }
.crumbs .sep { opacity: .5; }
.head-side { display: grid; gap: 8px; justify-items: end; color: var(--stone-400); font-size: 13.5px; }
@media (max-width: 760px) { .page-hero .wrap { grid-template-columns: 1fr; } .head-side { justify-items: start; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 240px; }
.search input { width: 100%; height: 48px; padding-inline: 44px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card); font-size: 15.5px; box-shadow: var(--e1); }
.search input:focus { outline: 2px solid var(--ring); outline-offset: 0; border-color: var(--yellow-500); }
.search .icon { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--fg-muted); }

/* نمودارِ صفحه‌ی کالا */
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--e1); overflow: hidden; }
.chart-card .ch-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chart-card .ch-top h2 { margin: 0; font-size: 17px; }
.range { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--muted); }
.range a { padding: 5px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--fg-muted); font-size: 13.5px; font-weight: 700; }
.range a[aria-current="true"] { background: var(--card); color: var(--fg); box-shadow: var(--e1); }
.chart-wrap { position: relative; padding: 14px 8px 6px; outline: none; }
.chart-wrap:focus-visible { box-shadow: inset 0 0 0 2px var(--ring); }
.chart { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .gl { stroke: var(--border); }
.chart .ax { fill: var(--fg-muted); font: 500 13px var(--font); }
.chart .ln { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--fg-muted); stroke-width: 1; }
.chart .pt { fill: currentColor; stroke: var(--card); stroke-width: 3; }
.chart-tip { position: absolute; top: 10px; pointer-events: none; background: var(--stone-900); color: var(--stone-50); padding: 5px 12px; border-radius: var(--r); font-size: 13px; white-space: nowrap; translate: -50% 0; box-shadow: var(--e3); }
.chart-tip b { color: var(--yellow-300); font-variant-numeric: tabular-nums; }
.ch-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.ch-stats div { padding: 14px 20px; border-inline-start: 1px solid var(--border); display: grid; gap: 2px; }
.ch-stats div:first-child { border-inline-start: 0; }
.ch-stats small { color: var(--fg-muted); font-size: 13px; }
.ch-stats b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ch-stats { grid-template-columns: 1fr 1fr; } .ch-stats div:nth-child(3) { border-inline-start: 0; } .ch-stats div:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ───── فرم ───── */
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--fg-2); }
.field .req { color: var(--rise); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--card); box-shadow: var(--e1); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--yellow-500); box-shadow: 0 0 0 4px var(--ring); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rise); background: var(--rise-soft); }
.field .err { display: none; color: var(--rise); font-size: 13px; margin-top: 4px; font-weight: 600; }
.field input:user-invalid ~ .err, .field textarea:user-invalid ~ .err { display: block; }
.field .hint { display: block; color: var(--fg-muted); font-size: 13px; margin-top: 4px; }
.kind-pick { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--muted); border: 1px solid var(--border); }
.kind-pick label { margin: 0; cursor: pointer; position: relative; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: block; padding: 8px 16px; border-radius: var(--r); font-weight: 700; color: var(--fg-muted); transition: background-color .15s, color .15s; }
.kind-pick input:checked + span { background: var(--card); color: var(--fg); box-shadow: var(--e1); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--yellow-500); }
.hp { position: absolute; inset-inline-start: -9999px; }
.alert-ok { padding: 14px 16px; border-radius: var(--r); background: var(--fall-soft); color: var(--fall); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.alert-err { padding: 14px 16px; border-radius: var(--r); background: var(--rise-soft); color: var(--rise); font-weight: 700; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.info { padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--e1); display: grid; gap: 6px; align-content: start; }
.info .ic { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 6px; }
.info .ic svg { width: 22px; height: 22px; }
.info small { color: var(--fg-muted); font-weight: 600; }
.info a, .info p { margin: 0; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--fg); }
.info a:hover { color: var(--accent-text); }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channel { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 42px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--card); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--fg); transition: border-color .15s, background-color .15s; }
.channel:hover { border-color: var(--yellow-500); background: var(--accent-softer); }
.channel .icon { width: 18px; height: 18px; color: var(--accent-text); }
.on-ink .channel { background: rgb(255 255 255 / .05); }

/* محاسبه‌گر */
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calc-out div { padding: 14px 16px; border-radius: var(--r-md); background: var(--muted); display: grid; gap: 2px; }
.calc-out div:last-child { grid-column: 1 / -1; background: linear-gradient(140deg, var(--stone-900), var(--stone-950)); color: var(--stone-50); padding: 18px 20px; }
.calc-out div:last-child b { font-size: 28px; }
.calc-out small { color: var(--fg-muted); font-size: 13px; }
.calc-out div:last-child small { color: var(--stone-400); }
.calc-out b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-out div:last-child b { color: var(--yellow-400); }
@media (max-width: 560px) { .calc-out { grid-template-columns: 1fr; } }

/* ───── باسکول ───── */
.wb-card { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.wb-controls > * { min-width: 0; }
@media (max-width: 560px) { .wb-size button { padding: 8px 9px; } }
.wb-plate { position: relative; border-radius: var(--r-xl); background: radial-gradient(ellipse at 70% 0%, var(--ink-700), var(--ink-950) 70%); padding: 16px 18px; display: grid; gap: 8px; box-shadow: var(--e3); overflow: hidden; }
.wb-corners, .wb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--stone-400); font-size: 13px; }
.wb-corners .tag { display: inline-flex; align-items: center; gap: 8px; color: var(--stone-300); font-weight: 600; }
.wb-foot { border-top: 1px solid var(--ink-line); padding-top: 10px; }
.wb-readout { color: var(--stone-50); font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.wb-readout b { color: var(--yellow-400); }
.wb-stage { position: relative; aspect-ratio: 640 / 380; outline: none; border-radius: var(--r-md); }
.wb-stage:focus-visible { box-shadow: 0 0 0 2px var(--yellow-500); }
.wb-stage > svg, .wb-stage img { width: 100%; height: auto; display: block; }
.wb-stage .iso-svg {
  --anatomy-paper: #1A1614; --anatomy-face: #231F1C; --anatomy-top: #2E2925;
  --anatomy-shade-0: #0F0D0B; --anatomy-shade-1: #14110F; --anatomy-shade-2: #191513; --anatomy-shade-3: #1F1B18;
  --anatomy-lit-top: #FACC15; --anatomy-lit-shade: #CA8A04; --anatomy-lit: #FACC15;
  --anatomy-hi: #E7E5E4; --anatomy-mid: #8A837D; --anatomy-lo: #4A4440; --anatomy-faint: #2F2A26;
  --anatomy-halo: #000; --anatomy-halo-opacity: .9; --anatomy-dot: #E7E5E4;
}
.wb-stage .iso-solid[data-lit] > .iso-fill { fill: #EAB308; }
.wb-window { fill: #0A0807; stroke: #4A4440; stroke-width: .6; }
/* سرِ باز و تاریکِ قوطی‌ها روی باسکول */
.wb-hole { fill: #0A0807; }
.wb-digits { fill: #FACC15; font-family: Vazirmatn, sans-serif; font-weight: 800; }
.wb-sub { fill: #8A837D; font-family: "JetBrains Mono", monospace; font-weight: 700; }
.wb-led { fill: #10B981; }
.wb-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wb-count { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--muted); border: 1px solid var(--border); }
.wb-count button { width: 38px; height: 38px; border-radius: var(--r); border: 0; background: var(--card); box-shadow: var(--e1); font: 700 18px var(--mono); color: var(--fg); }
.wb-count button:hover { background: var(--primary); color: var(--on-primary); }
.wb-count output { min-width: 96px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.wb-caption { color: var(--fg-muted); font-size: 13.5px; line-height: 1.9; }

/* ───── پنجره‌ها: کشوی نمای سریع و جست‌وجو ───── */
dialog.drawer { position: fixed; inset: 0 auto 0 0; inset-inline-start: auto; inset-inline-end: 0; margin: 0; height: 100dvh; max-height: 100dvh; width: min(480px, 100vw); max-width: 100vw; border: 0; padding: 0; background: var(--bg); color: var(--fg); box-shadow: var(--e4); overflow: auto; }
dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .32s var(--ease); }
@keyframes drawer-in { from { translate: calc(var(--dir) * 100%) 0; } }
dialog.drawer::backdrop, dialog.palette::backdrop { background: rgb(12 10 9 / .55); backdrop-filter: blur(4px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 17px; }
.dlg-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; }
.dlg-close:hover { background: var(--muted); }
.qv-body { padding: 18px 20px; display: grid; gap: 16px; flex: 1; }
.qv-body .live-card { backdrop-filter: none; }
.qv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--bg); }
.qv-actions .btn-primary { grid-column: 1 / -1; }
dialog.palette { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0; width: min(640px, calc(100vw - 24px)); margin-block-start: 12vh; background: var(--card); color: var(--fg); box-shadow: var(--e4); overflow: hidden; }
.palette .pal-in { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.palette .pal-in .icon { color: var(--fg-muted); }
.palette input { flex: 1; height: 60px; border: 0; background: none; font-size: 17px; }
.palette input:focus { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: min(56dvh, 460px); overflow: auto; }
.palette li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--fg); }
.palette li a .pi { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--muted); color: var(--fg-muted); }
.palette li a .pi svg { width: 18px; height: 18px; }
.palette li a small { color: var(--fg-muted); }
.palette li a > span:nth-child(2) { line-height: 1.6; }
.palette li a b { font-weight: 800; font-variant-numeric: tabular-nums; }
.palette li a[aria-selected="true"] { background: var(--accent-soft); }
.palette li a[aria-selected="true"] .pi { background: var(--primary); color: var(--on-primary); }
.palette .pal-foot { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 13px; background: var(--muted); }
.palette .pal-foot kbd { font: 600 11px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--card); border: 1px solid var(--border); }
.palette .none { padding: 26px 18px; color: var(--fg-muted); text-align: center; }
.palette .pal-h { padding: 12px 12px 4px; color: var(--fg-muted); font-size: 12px; font-weight: 700; }
.palette .pal-h:first-child { padding-block-start: 4px; }
.palette li a .pal-go { width: 16px; height: 16px; color: var(--fg-muted); opacity: 0; transition: opacity .15s; }
.palette li a[aria-selected="true"] .pal-go, .palette li a:hover .pal-go { opacity: 1; }

.toast { position: fixed; bottom: 22px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: min(520px, calc(100vw - 32px)); z-index: 90; background: var(--stone-900); color: var(--stone-50); padding: 10px 18px 10px 14px; border-radius: var(--r-full); box-shadow: var(--e3); font-size: 14.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; opacity: 0; translate: 0 12px; scale: .96; transition: opacity .25s var(--ease), translate .25s var(--ease), scale .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; translate: 0 0; scale: 1; }
@media (max-width: 720px) { .toast { bottom: 92px; } }

/* ───── پانویس ───── */
.footer { margin-top: clamp(24px, 3vw, 40px); }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 56px 36px; }
.footer img { height: 54px; width: auto; margin-bottom: 14px; }
.footer p { color: var(--stone-400); }
.footer h3 { color: var(--stone-50); font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--stone-300); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--yellow-400); }
.footer li { color: var(--stone-400); }
.footer .legal { border-top: 1px solid var(--ink-line); }
.footer .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; font-size: 13px; color: var(--stone-400); }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .cols { grid-template-columns: 1fr; } }

/* داکِ گوشی (شناور) */
.dock { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 84px; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: fixed; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; padding: 6px; border-radius: 20px; background: rgb(var(--shadow-ink) / .9); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -12px rgb(var(--shadow-ink) / .7); border: 1px solid rgb(255 255 255 / .08); }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 54px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--stone-400); text-decoration: none; background: none; border: 0; }
  .dock .icon { width: 22px; height: 22px; }
  .dock .primary { background: var(--yellow-400); color: var(--stone-950); }
}

/* ───── جزئیاتِ صفحه‌ها ───── */

.lead { color: var(--fg-muted); font-size: 17px; line-height: 2; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fg-2); }
.checks .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--fall-soft); color: var(--fall); }
.board-tabs { display: flex; margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; }
.side-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.hd-ic { width: 34px; height: 34px; border-radius: var(--r); display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.hd-ic svg { width: 18px; height: 18px; }
.empty { padding: 36px 20px; margin: 0; color: var(--fg-muted); text-align: center; }
.note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-softer); border: 1px solid color-mix(in srgb, var(--yellow-400) 40%, var(--border)); color: var(--fg-2); font-weight: 600; font-size: 14.5px; }
.note .icon { color: var(--accent-text); }

/* کاشی‌های بنتو */
.tile .u { font-size: 15px; font-weight: 600; color: var(--fg-muted); }
.tile.up .u, .tile.down .u { color: inherit; opacity: .7; }
.tile.heat .big { font-size: clamp(30px, 3vw, 40px); }
.tile.mover small { margin-bottom: 4px; }

a.tile { text-decoration: none; color: var(--fg); }
.tile.y { background: linear-gradient(140deg, var(--yellow-300), var(--yellow-400) 60%, var(--yellow-500)); color: var(--on-primary); border-color: transparent; box-shadow: var(--e1), inset 0 -2px 0 rgb(0 0 0 / .06); }
.tile.y:hover { translate: 0 -2px; box-shadow: var(--glow); }
.tile.y small, .tile.y .sub { color: var(--stone-800); }
.tile.y .ic { background: var(--stone-950); color: var(--yellow-300); }

/* صفحه‌های داخلی */
.pulse-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pulse-line b { color: var(--stone-50); }
.price-side { gap: 12px; }
.price-side > span:first-child { color: var(--stone-400); }
.side-chg { display: inline-flex; align-items: center; gap: 8px; color: var(--stone-400); font-size: 13px; }
.error-hero .wrap { grid-template-columns: 1fr; min-height: 56vh; align-content: center; }
table.ptable.log .col-time { width: 84px; }
table.ptable .time { display: inline-block; padding: 2px 10px; border-radius: var(--r-full); background: var(--muted); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.ptable .old { color: var(--fg-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--fg-muted) 50%, transparent); }
table.ptable tr.static { cursor: default; }
@media (max-width: 760px) { table.ptable.log tr { grid-template-columns: auto minmax(0, 1fr) auto; } table.ptable.log .col-time { grid-row: 1 / span 2; } table.ptable.log .col-price { grid-column: 3; } table.ptable.log .col-chg { grid-column: 3; } }
.sib-list { display: grid; margin: 0 -10px; }
.sib-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r); text-decoration: none; color: var(--fg); font-size: 14.5px; font-weight: 600; transition: background-color .15s; }
.sib-list a:hover { background: var(--muted); }
.sib-list b { font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-board .t-chg .chg { font-size: 12px; }
.card.on-ink { background: linear-gradient(160deg, var(--stone-900), var(--stone-950)); border-color: transparent; box-shadow: var(--e3); }
.card.on-ink h3 { color: var(--stone-50); display: flex; align-items: center; gap: 10px; }
.info .addr { font-size: 15px; font-weight: 700; line-height: 1.9; }
.info .btn { font-size: 14px; font-weight: 700; }
.error-hero .flap { justify-content: flex-end; }
[dir="ltr"] .error-hero .flap { justify-content: flex-start; }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.value { padding: 24px 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--e1); transition: translate .25s var(--ease), box-shadow .25s; }
.value:hover { translate: 0 -3px; box-shadow: var(--e3); }
.value .v-ic, .ab-card .v-ic { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--stone-900); color: var(--yellow-400); margin-bottom: 16px; }
:root[data-theme="dark"] .value .v-ic, :root[data-theme="dark"] .ab-card .v-ic { background: var(--accent-soft); }
.value .v-ic svg, .ab-card .v-ic svg { width: 24px; height: 24px; }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { color: var(--fg-muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
/* کارتِ زنده در کشوی نمای سریع (زمینه‌ی روشن) */
.qv-body .live-card { background: linear-gradient(160deg, #221E1B, var(--stone-950)); border-color: transparent; }
.lc-list .t-chg .chg { font-size: 12px; padding: 1px 7px; }
.lc-list a > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── انتقالِ صفحه و ورودِ نرم ───── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
  ::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 10px; } }
  @supports (animation-timeline: view()) {
    
    @keyframes reveal { from { opacity: 0; translate: 0 22px; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topstrip, .site-header, .hero, .tape, .footer, .dock, .toolbar, .seg, .no-print, .col-spark, .col-go, .cta { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .board { break-inside: avoid; box-shadow: none; }
  .page-hero { background: none !important; color: #000; }
}

/* ───── پیگیریِ سفارشِ خاموت و «سفارش‌های من» ───── */
.track { display: grid; gap: 18px; max-width: 780px; }
.track-form { display: grid; gap: 10px; }
.track-form label { font-weight: 700; }
.track-row { display: flex; gap: 10px; }
.track-row input { flex: 1; min-width: 0; min-height: 52px; padding: 10px 14px; font-size: 18px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--card); color: var(--fg); box-shadow: var(--e1); font-variant-numeric: tabular-nums; }
.track-row input:focus { outline: 2px solid transparent; border-color: var(--yellow-500); box-shadow: 0 0 0 4px var(--ring); }
.track-row .btn { flex: none; }
.track-note, .track-alt { color: var(--fg-muted); font-size: 14px; margin: 0; }
.tcode { font-family: var(--mono); font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.track-card .card-head h2 { font-size: 21px; }
.track-badge.pending, .track-badge.queue { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.track-badge.ready { background: var(--fall-soft); color: var(--fall); border-color: transparent; }
.track-badge.shipped { background: var(--ink-850); color: var(--stone-50); border-color: transparent; }
.track-badge.canceled { background: var(--rise-soft); color: var(--rise); border-color: transparent; }
.track-steps { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track-steps li { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding-block-start: 30px; }
.track-steps li::before { content: ""; position: absolute; inset-block-start: 10px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--border); }
.track-steps li:last-child::before { display: none; }
.track-steps li.done::before { background: var(--yellow-400); }
.track-steps .dot { position: absolute; inset-block-start: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--card); border: 3px solid var(--border-strong); }
.track-steps li.done .dot { background: var(--yellow-400); border-color: var(--yellow-400); }
.track-steps li.now .dot { border-color: var(--yellow-500); box-shadow: 0 0 0 5px var(--ring); }
.track-steps strong { font-size: 14.5px; }
.track-steps li.next strong { color: var(--fg-muted); font-weight: 500; }
.track-steps small { color: var(--fg-muted); font-size: 13px; line-height: 1.7; }
.track-steps li.now small { color: var(--accent-text); font-weight: 700; }
.track-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding-block-start: 14px; border-block-start: 1px solid var(--border); }
.track-facts dt { color: var(--fg-muted); font-size: 13px; }
.track-facts dd { margin: 0; font-weight: 700; }
@media (max-width: 560px) {
  .track-row { flex-direction: column; }
  .track-steps { grid-template-columns: 1fr; gap: 14px; }
  .track-steps li { justify-items: start; text-align: start; padding-block-start: 0; padding-inline-start: 34px; }
  .track-steps li::before { inset-block-start: 22px; inset-inline-start: 8px; width: 3px; height: calc(100% - 8px); }
  .track-steps .dot { inset-inline-start: 0; inset-block-start: 3px; }
}
.my-orders { list-style: none; margin: 0; padding: 0; }
.my-orders li + li { border-block-start: 1px solid var(--border); }
.my-orders a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 4px; color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.my-orders a:hover { background: var(--muted); }
.my-orders .proj { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-orders small { grid-column: 1 / -1; color: var(--fg-muted); font-size: 13px; }
.on-ink-link { color: var(--stone-300); }
.hs-links a { color: var(--stone-100); text-underline-offset: 4px; }
.hs-links a:hover { color: var(--yellow-400); }

/* ───── خاموت: پیگیری و ورود (نوارِ زیرِ اسلایدر، سربرگِ صفحه‌ی خاموت) ───── */

.kq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 18px; align-items: end; min-width: 0; }

.kq-track { min-width: 0; }
.kq-track label { display: block; margin-block-end: 6px; color: var(--fg-2); font-size: 13.5px; font-weight: 700; }
.kq-row { display: flex; gap: 8px; }
.kq-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg); font: 600 16px var(--font); font-variant-numeric: tabular-nums; }
.kq-row input::placeholder { color: var(--fg-muted); font-weight: 400; font-size: 14.5px; }
.kq-row input:focus { outline: 2px solid transparent; border-color: var(--yellow-500); box-shadow: 0 0 0 4px var(--ring); }
.kq-row .btn { flex: none; height: 48px; }

.kq-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.kq-login { height: 48px; }
.kq-my { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kq-my:hover { text-decoration: underline; text-underline-offset: 4px; }
.kq-my .icon { width: 16px; height: 16px; }
.on-ink .kq-row input { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .16); color: var(--stone-50); }
.page-hero .kq-side { width: min(520px, 100%); justify-items: stretch; }

@media (max-width: 560px) {
  
  
  
  .kq-links { justify-content: space-between; }
}

/* ───── دستگاه‌های خاموت (شکل‌های ایزومتریک در قابِ هم‌مبدأ) ───── */
.khamoot .shapes { margin-block: 22px; }
.khamoot .btn-row { margin-block-end: 22px; }
.machines { display: grid; gap: 12px; min-width: 0; }
.machines-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.on-ink .seg .thumb { background: rgb(250 204 21 / .16); box-shadow: inset 0 0 0 1px rgb(250 204 21 / .35); }
.on-ink .seg button[aria-selected="true"] { color: var(--yellow-400); }
.fig-frame { display: block; width: 100%; aspect-ratio: 650 / 600; border: 0; border-radius: var(--r-lg); background: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-line); color-scheme: dark; }
.fig-frame.sized { aspect-ratio: auto; }
.machine-cap { margin: 10px 0 0; color: var(--stone-400); font-size: 13.5px; line-height: 1.9; }

/* ───── اصلاح‌های بازبینی ───── */
/* نبضِ بازار در عرضِ کم: کاشی‌ها جای خالی نگذارند و متن زیرِ نشانه‌ی گوشه نرود */

.tile:has(> .ic) > small { padding-inline-end: 46px; }
@media (max-width: 520px) {  .tile .sub { font-size: 13px; } }
/* شکل‌های خاموت: نامِ زیرِ هر شکل */
.shapes figcaption { color: var(--stone-300); font-size: 13px; font-weight: 600; }

/* ───── حالتِ شب: هماهنگی ───── */
/* دکمه‌ی تیره در شبِ خودِ دستگاه هم روشن شود (قاعده‌ی پیشین فقط برای شبی بود که با دکمه انتخاب شده) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-dark { --b-bg: var(--stone-100); --b-fg: var(--stone-900); }
  :root:not([data-theme="light"]) .btn-dark:hover { --b-bg: var(--stone-50); }
}
:root[data-theme="dark"] .btn-dark:hover { --b-bg: var(--stone-50); }
/* کارت‌های تیره روی زمینه‌ی تیره گم نشوند: یک پله روشن‌تر و لبه‌ی نازک */
:root[data-theme="dark"] :is(.feature-ink, .ink-card, .wb-plate) { background-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.feature-ink, .ink-card, .wb-plate) { background-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-line); }
}
/* نوارِ زردِ استعلام در شب کمی پایین‌تر از زردِ روشن، تا در زمینه‌ی تیره نسوزد */
:root[data-theme="dark"] .cta { background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500)); } }
:root[data-theme="dark"] .wb-plate { background-image: radial-gradient(ellipse at 70% 0%, var(--ink-700), var(--ink-900) 70%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wb-plate { background-image: radial-gradient(ellipse at 70% 0%, var(--ink-700), var(--ink-900) 70%); } }

/* ───── مسیریابی: نشان، بلد، گوگل‌مپ (تماس و پانویس) ───── */
.map-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.map-links .btn .icon { width: 15px; height: 15px; }

/* ═════════ حسابِ مشتری، فهرستِ درخواست، سفارشِ خاموت، دستگاهِ قیمت (۱.۶) ═════════ */
.ltr-in { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }
.otp-input { font-size: 22px !important; letter-spacing: .35em; text-align: center !important; }

.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn.danger { color: var(--rise); }
.on-ink .link-btn { color: var(--yellow-400); }

/* سربرگ: دکمه‌ی حساب */
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); color: var(--fg-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.acct-btn:hover, .acct-btn[aria-current="page"] { background: var(--muted); color: var(--fg); }
.acct-btn .icon { width: 18px; height: 18px; }
.acct-btn.in { border-color: color-mix(in srgb, var(--yellow-500) 45%, var(--border)); }
.acct-btn.in .icon { color: var(--accent-text); }
.acct-btn span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
/* زیرِ ۱۲۴۰ فقط آیکون دیده می‌شود؛ متن از دید پنهان است ولی صفحه‌خوان همان را نامِ دکمه می‌خواند (بازبینیِ ۲ آبان) */
@media (max-width: 1240px) { .acct-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .acct-btn { position: relative; width: 42px; padding: 0; justify-content: center; } }

/* «+» ِ ردیف‌های تابلو و دکمه‌ی شناورِ فهرست */
table.ptable .add-btn { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, scale .15s var(--spring); }
table.ptable .add-btn svg { width: 16px; height: 16px; }
table.ptable .add-btn:hover { background: var(--primary); color: var(--on-primary); border-color: transparent; }
table.ptable .add-btn:active { scale: .92; }
table.ptable .add-btn.in-cart { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

.toast a { color: var(--yellow-400); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ورود و پروفایل */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; max-width: 1000px; }

.dev-benefits .ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--muted); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--border); }
.dev-benefits .ic svg { width: 20px; height: 20px; }

@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } }

/* پیشخوانِ حساب */

.hs-links { color: var(--stone-400); }
.hs-links a, .hs-links .link-btn { color: var(--stone-200); font-weight: 600; text-decoration: none; }
.hs-links a:hover, .hs-links .link-btn:hover { color: var(--yellow-400); }
.my { display: grid; gap: 22px; }

.my-empty { padding: 18px; border-radius: var(--r-md); background: var(--muted); color: var(--fg-muted); text-align: center; }
.my-empty p { margin: 0; }
.my-note { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-softer); color: var(--fg-2); font-size: 14.5px; }
.my-foot { margin: 12px 0 0; font-size: 14px; }
.my-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
.my-foot .icon { width: 16px; height: 16px; }
.my-off { max-width: 640px; }

/* فهرستِ درخواست */
.req-form { display: grid; gap: 16px; }
.req-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }

.rl-del { width: 42px; height: 44px; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); color: var(--fg-muted); display: grid; place-items: center; cursor: pointer; }
.rl-del:hover { color: var(--rise); border-color: var(--rise); }
.rl-del .icon { width: 16px; height: 16px; }
.rl-price { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--fg-muted); }
.rl-price:empty { display: none; }
.req-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.req-side { display: grid; gap: 14px; position: sticky; top: calc(var(--hdr-h, var(--header-h)) + 16px); }
.req-side h3 { margin: 0; font-size: 17px; }
.req-side .btn-lg { width: 100%; }
.req-side .hint { margin: 0; color: var(--fg-muted); font-size: 13px; }

@media (max-width: 980px) { .req-grid { grid-template-columns: 1fr; } .req-side { position: static; } }
@media (max-width: 560px) {  .rl-product { grid-column: 1 / -1; } }

/* فرمِ سفارشِ خاموت */
.kh-main { display: grid; gap: 22px; min-width: 0; }
.kh-lines { display: grid; gap: 10px; }
.kh-line { display: grid; grid-template-columns: 132px minmax(0, 1fr) 42px; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--muted); }
.kh-shape { width: 132px; height: 84px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); display: grid; place-items: center; padding: 4px; }
.kh-shape svg { width: 120px; height: 76px; overflow: visible; }
.kh-shape .shape-bar { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.kh-shape .shape-dim { fill: var(--fg-muted); font: 700 11px var(--font); }
.kh-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 8px 10px; align-items: end; }
.kh-dims { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.kh-fields .field label { font-size: 13px; margin-bottom: 4px; }
.kh-fields .field input, .kh-fields .field select { min-height: 42px; }
.kh-pin { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.kh-pin input { width: 18px; height: 18px; accent-color: var(--stone-900); }
.kh-est { font-weight: 800; color: var(--accent-text); font-size: 14.5px; }
.kh-drop { display: flex !important; align-items: center; gap: 12px; padding: 18px; border-radius: var(--r-md); border: 1.5px dashed var(--border-strong); background: var(--muted); color: var(--fg-2); cursor: pointer; font-weight: 600; }
.kh-drop:hover { border-color: var(--yellow-500); }
.kh-drop .icon { width: 22px; height: 22px; color: var(--fg-muted); }
#k-photos:focus-visible + * { outline: 2px solid var(--yellow-500); }
@media (max-width: 640px) { .kh-line { grid-template-columns: 1fr 42px; } .kh-shape { grid-column: 1 / -1; width: 100%; } .kh-fields { grid-column: 1; } }

/* ───── دستگاهِ قیمت AH-02 (۶ آبان ۱۴۰۵): عکسِ خودِ دستگاه و رابطِ واقعیِ صفحه‌اش ─────
   صفحه ۴۸۰×۳۲۰ پیکسل است و site.js با matrix3d آن را روی صفحه‌ی کج‌شده‌ی عکس می‌گذارد؛ تا آن وقت پنهان است و صفحه‌ی خودِ عکس پیداست. */
.dvp { position: relative; margin: 0 auto; width: min(100%, 620px); }
.dvp.lg { width: min(100%, 680px); }
.dvp-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); }
.dvp-screen { position: absolute; inset: 0 auto auto 0; width: 480px; height: 320px; transform-origin: 0 0; visibility: hidden; overflow: hidden;
    display: grid; grid-template-rows: 28px 24px 32px 84px 64px 58px minmax(0, 1fr); background: #050505; color: #F5F5F4;
    border-top: 4px solid #F5E100; border-left: 4px solid #F5E100; font-family: var(--font); line-height: 1.2; }
.dvp.ready .dvp-screen { visibility: visible; }
.dvp-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, rgb(255 255 255 / .07), transparent 38%), repeating-linear-gradient(0deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 3px); }
.ds-status { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.ds-time { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.ds-date { font-size: 14px; color: #E7E5E4; }
.ds-page { font-family: var(--mono); font-size: 14px; font-weight: 700; color: #FFB300; }
.ds-ic { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.ds-ic svg { width: 17px; height: 17px; color: #F5F5F4; fill: none; stroke: currentColor; }
.ds-ic svg.bell { color: #FFB300; fill: currentColor; stroke: none; }
.ds-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid #1E2A6B; }
.ds-iron { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #FFB300; }
.ds-iron i { width: 6px; height: 6px; background: #2F49C9; }
.ds-iron span { margin-inline-start: 14px; }
.ds-brand img { height: 18px; width: auto; }
.ds-name { padding: 2px 12px 0; font-size: 21px; font-weight: 800; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-digits { display: flex; align-items: center; gap: 6px; padding: 0 12px; direction: ltr; }
.ds-tile { position: relative; display: grid; place-items: center; width: 54px; height: 70px; border-radius: 4px; background: linear-gradient(#1F1F22 0 49%, #000 49% 51%, #17171A 51%);
    color: #FFB300; font-size: 54px; font-weight: 900; line-height: 1; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.ds-tile.flip { animation: ds-flip .45s var(--ease) both; }
.ds-tile.flip:nth-child(2) { animation-delay: 40ms; } .ds-tile.flip:nth-child(3) { animation-delay: 80ms; }
.ds-tile.flip:nth-child(4) { animation-delay: 120ms; } .ds-tile.flip:nth-child(5) { animation-delay: 160ms; } .ds-tile.flip:nth-child(6) { animation-delay: 200ms; }
@keyframes ds-flip { from { transform: perspective(200px) rotateX(-80deg); opacity: .2; } }
.ds-sep { align-self: flex-end; margin: 0 -2px 6px; color: #A8A29E; font-size: 30px; font-style: normal; font-weight: 900; }
.ds-chart { display: block; width: 456px; height: 58px; margin: 1px 12px 0; }
.ds-foot { display: grid; grid-template-columns: 1fr 1.2fr 1fr; border-top: 1px solid #262626; border-bottom: 1px solid #262626; background: #0B0B0C; }
.ds-foot > div { display: grid; align-content: center; gap: 3px; padding: 0 10px; border-inline-end: 1px solid #262626; text-align: right; }
.ds-foot > div:last-child { border: 0; }
.ds-foot small { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #A8A29E; letter-spacing: .06em; text-align: left; }
.ds-foot span { font-size: 14.5px; font-weight: 700; }
.ds-foot .up { color: #F87171; } .ds-foot .down { color: #34D399; }
.ds-tape { position: relative; display: flex; align-items: center; overflow: hidden; }
.ds-tape-run { flex: 1; min-width: 0; color: #FFB300; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; }
/* نوارِ قیمت‌های دیگر آرام از چپ به راست می‌رود (متنِ راست‌به‌چپ از بیرونِ لبه‌ی چپ وارد می‌شود) */
.ds-tape-run span { display: inline-block; padding-inline-start: 100%; animation: ds-tape 26s linear infinite; }
@keyframes ds-tape { to { transform: translateX(100%); } }
.ds-tag { align-self: stretch; display: grid; place-items: center; padding: 0 10px; background: #FFB300; color: #111; font-family: var(--mono); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .ds-tile.flip, .ds-tape-run span { animation: none; } .ds-tape-run span { padding: 0 10px; } }

/* صفحه‌ی دستگاه */
.dev-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dev-hero h1 { font-size: clamp(30px, 3.6vw, 48px); }
.dev-hero .btn-row { margin-top: 24px; }
.dev-facts { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--stone-300); font-size: 14.5px; }
.dev-facts li { display: inline-flex; align-items: center; gap: 8px; }
.dev-facts .icon { width: 18px; height: 18px; color: var(--yellow-400); }
.dev-stage { padding-block: 10px; }
.dev-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dev-benefits article { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--e1); }
.dev-benefits h3 { font-size: 17px; margin: 14px 0 6px; }
.dev-benefits p { margin: 0; color: var(--fg-muted); font-size: 14.5px; line-height: 1.9; }
.dev-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dev-steps li { position: relative; padding: 20px; border-radius: var(--r-lg); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--ink-line); }
.dev-steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow-400); color: var(--stone-950); font-weight: 900; margin-bottom: 12px; }
.dev-steps b { display: block; color: var(--stone-50); font-size: 16.5px; margin-bottom: 6px; }
.dev-steps p { margin: 0; color: var(--stone-300); font-size: 14.5px; }
.dev-order .btn-lg { width: 100%; }
.dev-faq { display: grid; gap: 4px; }
.dev-faq h3 { font-size: 17px; margin-bottom: 8px; }
.dev-faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.dev-faq summary { cursor: pointer; font-weight: 700; }
.dev-faq details p { margin: 8px 0 0; color: var(--fg-muted); font-size: 14.5px; }
.dev-faq .btn { margin-top: 12px; justify-self: start; }
@media (max-width: 980px) { .dev-hero .wrap { grid-template-columns: 1fr; } .dev-benefits { grid-template-columns: 1fr 1fr; } .dev-steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dev-benefits { grid-template-columns: 1fr; } }

/* ═════════ اسلایدرِ صفحه‌ی اول (۱.۶): متن + قابِ پوستر با برچسب‌های قیمتِ همین لحظه، زبانه‌های عنوان‌دار ═════════ */

.slide-art { position: relative; min-width: 0; }
.art-frame { position: relative; isolation: isolate; aspect-ratio: 5 / 4; display: grid; place-items: center; padding: clamp(14px, 2.4vw, 28px); border-radius: var(--r-xl); background:
    radial-gradient(70% 60% at 30% 20%, rgb(250 204 21 / .10), transparent 70%),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
  box-shadow: inset 0 0 0 1px var(--ink-line), 0 40px 90px -30px rgb(0 0 0 / .75); }
.art-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000 40%, transparent 85%); }
/* گوشه‌های برش، مثلِ پوسترِ چاپی */
.art-frame::after { content: ""; position: absolute; inset: 12px; pointer-events: none; border-radius: calc(var(--r-xl) - 10px); background:
    linear-gradient(var(--yellow-400), var(--yellow-400)) top right / 22px 2px no-repeat,
    linear-gradient(var(--yellow-400), var(--yellow-400)) top right / 2px 22px no-repeat,
    linear-gradient(var(--yellow-400), var(--yellow-400)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--yellow-400), var(--yellow-400)) bottom left / 2px 22px no-repeat; opacity: .7; }
.art-frame > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); }
.art-photo .art-frame { padding: 0; overflow: hidden; }
.art-photo .art-frame > img { object-fit: cover; filter: none; }
.art-device .art-frame { aspect-ratio: auto; padding: clamp(22px, 3.6vw, 44px) clamp(16px, 3vw, 36px); }
.art-blueprint { width: 100%; display: grid; gap: 12px; }
.bp-title { direction: ltr; font: 700 11px var(--mono); letter-spacing: .18em; color: var(--stone-500); }
.art-blueprint .shapes { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art-blueprint .shapes figure { background: rgb(255 255 255 / .03); }
.art-chip { position: absolute; z-index: 2; display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; padding: 8px 14px; border-radius: 14px; background: rgb(23 20 18 / .78); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 18px 34px -16px rgb(0 0 0 / .8); color: var(--stone-300); font-size: 13px; text-decoration: none; animation: chip-float 7s ease-in-out infinite; }
.art-chip span { grid-column: 1 / -1; }
.art-chip b { color: var(--stone-50); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.art-chip i { font-style: normal; font-size: 11px; }
.art-chip i.up { color: var(--red-400); } .art-chip i.down { color: var(--green-400); }
.art-chip.c1 { inset-block-start: 7%; inset-inline-start: -4%; }
.art-chip.c2 { inset-block-end: 9%; inset-inline-end: -3%; animation-delay: -2.4s; }
.art-chip.c3 { inset-block-start: 44%; inset-inline-end: -6%; animation-delay: -4.6s; }
@keyframes chip-float { 50% { translate: 0 -8px; } }
.slide:not([inert]) .art-frame { animation: art-in .9s var(--ease) both; }
@keyframes art-in { from { opacity: 0; translate: 0 18px; scale: .97; } }

/* زبانه‌ها: شماره و عنوانِ هر اسلاید، با نوارِ پیشرفتِ پخشِ خودکار */

@media (max-width: 960px) {
  
  .slide-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .art-chip.c1 { inset-inline-start: 2%; } .art-chip.c2 { inset-inline-end: 2%; } .art-chip.c3 { display: none; }
}
@media (max-width: 560px) {
  .art-blueprint .shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-blueprint .shapes figure:nth-child(n+7) { display: none; }
  .art-chip { padding: 6px 10px; font-size: 11.5px; } .art-chip b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .art-chip, .slide:not([inert]) .art-frame { animation: none; } }

.art-blueprint .shapes figcaption { font-size: 12px; text-align: center; line-height: 1.5; }

/* نمادهای ایزومتریکِ گروه‌های کالا (img/products، tools/product-icons): روی کارتِ روشن، بزرگ‌تر از نمادهای خطی */
.picon { display: block; flex: none; }
.board-head .cat-ic, .mega .m-ic { background: var(--card); box-shadow: inset 0 0 0 1px var(--border); color: inherit; }
.board-head .cat-ic .picon, .mega .m-ic .picon { width: 36px; height: 36px; }
.seg button .picon { width: 22px; height: 22px; }

/* پیوندهای کوچکِ درونِ متن روی صفحه‌ی لمسی: ناحیه‌ی لمس تا ۴۴ پیکسل بزرگ می‌شود بی آن‌که چیدمان جابه‌جا شود (padding و margin ِ منفی
   هم‌اندازه)؛ بازبینیِ ۲ آبان: «بلد» ۱۸×۳۰، «درباره» ۲۷×۲۰، «خانه» ۲۳×۲۶، شماره‌تلفن‌ها ۷۶×۲۱ بودند */
@media (pointer: coarse) {
  :is(.map-row, .legal, .crumbs, .wiz-h small, .au-foot, .order-trust) a { display: inline-block; padding: 12px 8px; margin: -12px -8px; }
}

/* وزن و مشخصاتِ هر سایز در صفحه‌ی کالا (سئو، ۱۴ آبان ۱۴۰۵) */
.pf-card { margin-top: 20px; display: grid; gap: 12px; }
.pf-sum { margin: 0; color: var(--fg); line-height: 2; }
.pf-rows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.pf-rows > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md, 12px); background: var(--muted); min-width: 0; }
.pf-rows dt { font-size: 12.5px; color: var(--fg-muted); }
.pf-rows dd { margin: 0; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.pf-more { margin: 0; font-size: 13px; color: var(--fg-muted); line-height: 1.9; }
.kh-price-link { margin: 18px 0 0; color: var(--fg-2); }
