@font-face{font-family:"Estedad";src:url("../fonts/Estedad-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Estedad";src:url("../fonts/Estedad-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Estedad";src:url("../fonts/Estedad-700.woff2") format("woff2");font-weight:700 900;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("../fonts/Vazirmatn-Variable.woff2") format("woff2");font-weight:100 900;font-display:swap}
/* Radmand design tokens v2 — yellow + graphite.
   Single source for the brandbook, the website and the app (lib/design/tokens.dart mirrors it).
   v1 (navy/teal/gold) lives in brand/source-v1 for reference only. */

:root {
  /* Yellow — energy, access, the «aha» moment. Fill colour; never body text on white. */
  --y-50: #FFF9E6; --y-100: #FFF0BF; --y-200: #FFE38A; --y-300: #FFD84D; --y-400: #FFCA26;
  --y-500: #FFBE0B; --y-600: #E5A600; --y-700: #B88600; --y-800: #8A6500; --y-900: #5C4300;

  /* Graphite — warm neutral gray that sits well next to yellow. */
  --g-0: #FFFFFF; --g-25: #FAF8F2; --g-50: #F4F3EF; --g-100: #E9E7E1; --g-200: #D5D2CA; --g-300: #B4B0A6;
  --g-400: #8E8A80; --g-500: #6B6B67; --g-600: #4F4E4A; --g-700: #3A3936; --g-800: #2E2E2C; --g-900: #1F1F1E; --g-950: #141413;

  /* Function. Warning is orange, never brand yellow, so a warning is never mistaken for the brand. */
  --ok: #187A4C; --ok-soft: #E3F4EA;
  --warn: #B04D14; --warn-soft: #FCEBDF;
  --bad: #C8343F; --bad-soft: #FBE7E8;
  --info: #2F6FD6; --info-soft: #E6EEFB;
  --ai: #7A4CC2; --ai-soft: #F1EAFB;

  /* Semantic (light) */
  --bg: var(--g-25); --surface: var(--g-0); --surface-2: var(--g-50); --surface-3: var(--g-100);
  --line: var(--g-100); --line-strong: var(--g-200);
  --text: var(--g-900); --text-2: var(--g-600); --text-3: var(--g-500);
  --brand: var(--y-500); --brand-ink: var(--g-900); --brand-soft: var(--y-50); --brand-text: var(--y-800);
  --accent-dark: var(--g-900);

  /* Type */
  --font-display: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", "Estedad", Tahoma, sans-serif;
  --fs-display: clamp(34px, 5.2vw, 60px); --fs-h1: clamp(28px, 3.6vw, 40px); --fs-h2: 26px; --fs-h3: 20px;
  --fs-body: 16px; --fs-small: 14px; --fs-caption: 12.5px;

  /* Space (4-based), radius, elevation, motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --h-control: 44px; --h-control-sm: 36px;
  --sh-1: 0 1px 2px rgba(31,31,30,.06), 0 1px 1px rgba(31,31,30,.04);
  --sh-2: 0 8px 24px rgba(31,31,30,.08), 0 2px 6px rgba(31,31,30,.05);
  --sh-3: 0 24px 60px rgba(31,31,30,.16), 0 6px 16px rgba(31,31,30,.08);
  --sh-glow: 0 10px 30px rgba(255,190,11,.35);
  --ease-out: cubic-bezier(.2,.8,.2,1); --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 600ms;
}

[data-theme="dark"] {
  --bg: var(--g-950); --surface: var(--g-900); --surface-2: #262624; --surface-3: #31302D;
  --line: #2F2E2B; --line-strong: #3D3C38;
  --text: #F3F1EA; --text-2: #BDB9AE; --text-3: #8E8A80;
  --brand-soft: #2E2611; --brand-text: var(--y-300);
  --ok: #4CC88C; --ok-soft: #10301F; --warn: #F08A4B; --warn-soft: #3A2010;
  --bad: #FF6B74; --bad-soft: #3A1517; --info: #6EA3FF; --info-soft: #132643; --ai: #B592F2; --ai-soft: #2A1E40;
  --sh-1: 0 1px 2px rgba(0,0,0,.5); --sh-2: 0 10px 28px rgba(0,0,0,.5); --sh-3: 0 26px 60px rgba(0,0,0,.65);
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* Radmand components v2. Needs tokens.css first. RTL-first: logical properties everywhere. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.85 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.45; margin: 0 0 .4em; letter-spacing: -.2px; }
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--y-300); color: var(--g-900); }
:focus-visible { outline: 3px solid var(--y-400); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-control); line-height: var(--h-control); padding: 0 20px; border-radius: var(--r-md); border: 1.5px solid transparent; font: 600 15px/var(--h-control) var(--font-display); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform var(--dur-1) var(--ease-out), background var(--dur-2), box-shadow var(--dur-2), border-color var(--dur-2); }
.rd-btn:active { transform: scale(.97); }
.rd-btn svg { width: 18px; height: 18px; flex: none; }
.rd-btn--primary { background: var(--y-500); color: var(--g-900); box-shadow: 0 6px 18px rgba(255,190,11,.28); }
.rd-btn--primary:hover { background: var(--y-400); box-shadow: var(--sh-glow); }
.rd-btn--dark { background: var(--g-900); color: var(--g-0); }
[data-theme="dark"] .rd-btn--dark { background: var(--g-0); color: var(--g-900); }
.rd-btn--dark:hover { background: var(--g-800); }
.rd-btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.rd-btn--ghost:hover { border-color: var(--text-3); background: var(--surface-2); }
.rd-btn--link { background: none; padding: 0 4px; color: var(--brand-text); height: auto; line-height: 1.6; }
.rd-btn--sm { height: var(--h-control-sm); line-height: var(--h-control-sm); padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.rd-btn--lg { height: 54px; line-height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: var(--r-lg); }
.rd-btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- inputs ---------- */
.rd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rd-input { display: flex; align-items: center; gap: 8px; height: var(--h-control); padding: 0 14px; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.rd-input input, .rd-input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); height: 100%; }
.rd-input select { appearance: none; cursor: pointer; }
.rd-input:focus-within { border-color: var(--y-500); box-shadow: 0 0 0 4px rgba(255,190,11,.22); }
.rd-input .unit { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.rd-field.is-error .rd-input { border-color: var(--bad); }
.rd-field .hint { font-size: 12px; color: var(--text-3); }
.rd-field.is-error .hint { color: var(--bad); }

.rd-switch { position: relative; width: 48px; height: 28px; flex: none; }
.rd-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.rd-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background var(--dur-2); }
.rd-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: inset-inline-start var(--dur-2) var(--ease-spring); }
.rd-switch input:checked + span { background: var(--y-500); }
.rd-switch input:checked + span::after { inset-inline-start: 23px; }

/* ---------- chips & badges ---------- */
.rd-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; line-height: 32px; padding: 0 14px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; border: 1.5px solid transparent; white-space: nowrap; }
.rd-chip.is-on { background: var(--g-900); color: var(--y-400); }
[data-theme="dark"] .rd-chip.is-on { background: var(--y-500); color: var(--g-900); }
.rd-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; line-height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rd-badge--brand { background: var(--brand-soft); color: var(--brand-text); }
.rd-badge--ok { background: var(--ok-soft); color: var(--ok); }
.rd-badge--warn { background: var(--warn-soft); color: var(--warn); }
.rd-badge--bad { background: var(--bad-soft); color: var(--bad); }
.rd-badge--info { background: var(--info-soft); color: var(--info); }
.rd-badge--ai { background: var(--ai-soft); color: var(--ai); }
.rd-badge--dark { background: var(--g-900); color: var(--y-400); }

/* ---------- cards ---------- */
.rd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--sh-1); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.rd-card.is-lift:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.rd-card--dark { background: var(--g-900); color: var(--g-0); border-color: var(--g-800); }
.rd-card--yellow { background: var(--y-500); color: var(--g-900); border-color: transparent; }

.rd-kpi { display: flex; flex-direction: column; gap: 4px; }
.rd-kpi .label { font-size: 13px; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.rd-kpi .value { font: 700 28px/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.rd-kpi .delta { font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.rd-kpi .delta.up { color: var(--ok); } .rd-kpi .delta.down { color: var(--bad); }

/* «بینش راد»: every AI line shows its source, freshness and confidence. */
.rd-insight { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--y-50), var(--surface) 70%); border: 1px solid var(--y-200); }
[data-theme="dark"] .rd-insight { background: linear-gradient(135deg, #2E2611, var(--surface) 70%); border-color: #4A3B12; }
.rd-insight .who { width: 44px; height: 44px; border-radius: 14px; background: var(--g-900); display: grid; place-items: center; overflow: hidden; }
.rd-insight .who img, .rd-insight .who svg { width: 44px; height: 44px; }
.rd-insight b { font-family: var(--font-display); display: block; margin-bottom: 2px; }
.rd-insight p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.rd-insight .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- table ---------- */
.rd-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rd-table th, .rd-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.rd-table th { background: var(--surface-2); font-weight: 700; font-size: 12.5px; color: var(--text-2); }
.rd-table tr:last-child td { border-bottom: 0; }
.rd-table td.num { text-align: end; }

/* ---------- AI support helper (watches where the user is stuck) ---------- */
.rd-helper { position: absolute; z-index: 5; max-width: 300px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--g-900); color: var(--g-0); box-shadow: var(--sh-3); font-size: 13.5px; line-height: 1.8; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-spring); pointer-events: none; }
.rd-helper.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rd-helper .face { width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--y-500); display: grid; place-items: center; overflow: hidden; }
.rd-helper b { color: var(--y-300); display: block; font-family: var(--font-display); }
.rd-helper .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rd-helper .acts button { height: 30px; line-height: 30px; padding: 0 12px; border-radius: 9px; border: 0; font: 600 12.5px/30px var(--font-display); cursor: pointer; background: var(--y-500); color: var(--g-900); }
.rd-helper .acts button.alt { background: rgba(255,255,255,.12); color: #fff; }
.rd-stuck { animation: rd-shake .45s var(--ease-out) 2; box-shadow: 0 0 0 4px rgba(200,52,63,.18) !important; border-color: var(--bad) !important; }
@keyframes rd-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }
.rd-cursor { position: absolute; z-index: 6; width: 22px; height: 22px; pointer-events: none; transition: left .9s var(--ease-out), top .9s var(--ease-out); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }

/* ---------- status: offline + Sepidar sync ---------- */
.rd-offline { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--g-900); color: var(--g-0); font-size: 13.5px; }
.rd-offline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--y-500); box-shadow: 0 0 0 0 rgba(255,190,11,.6); animation: rd-pulse 1.8s infinite; flex: none; }
@keyframes rd-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,190,11,.55) } 70% { box-shadow: 0 0 0 10px rgba(255,190,11,0) } 100% { box-shadow: 0 0 0 0 rgba(255,190,11,0) } }
.rd-sync { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r-full); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rd-sync svg { width: 16px; height: 16px; }
.rd-sync.is-busy svg { animation: rd-spin 1.2s linear infinite; }
@keyframes rd-spin { to { transform: rotate(360deg) } }

/* ---------- bots (Telegram / Bale) ---------- */
.rd-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.rd-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.8; background: var(--surface); box-shadow: var(--sh-1); }
.rd-msg.me { align-self: flex-end; background: var(--y-100); }
[data-theme="dark"] .rd-msg.me { background: #3A3015; }
.rd-msg time { display: block; font-size: 11px; color: var(--text-3); text-align: end; }
.rd-msg .btns { display: flex; gap: 6px; margin-top: 6px; }
.rd-msg .btns span { flex: 1; text-align: center; padding: 6px; border-radius: 9px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }

/* ---------- code ---------- */
.rd-code { direction: ltr; text-align: left; background: #161615; color: #ECE9DF; border-radius: var(--r-lg); padding: 18px 20px; overflow: auto; font: 500 13px/1.75 ui-monospace, "SFMono-Regular", Menlo, monospace; margin: 0; }
.rd-code .k { color: #FFCA26; } .rd-code .s { color: #9FD99B; } .rd-code .c { color: #8E8A80; } .rd-code .n { color: #8DB8FF; }
.rd-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-md); overflow-x: auto; }
.rd-tabs button { height: 34px; line-height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: 600 13px/34px var(--font-display); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.rd-tabs button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

/* ---------- mascot motion ---------- */
.rad-float { animation: rad-float 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes rad-float { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-8px) rotate(-1deg) } }
.rad-blink #auditors-vision circle { animation: rad-blink 5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rad-blink { 0%,92%,100% { transform: scaleY(1) } 95% { transform: scaleY(.1) } }
.rad-stars #three-pillars path { animation: rad-twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rad-stars #three-pillars path:nth-child(2) { animation-delay: .4s } .rad-stars #three-pillars path:nth-child(3) { animation-delay: .8s }
@keyframes rad-twinkle { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .55; transform: scale(.82) } }
.rad-bars #finance-ledger path:first-child { stroke-dasharray: 60; animation: rad-bars 3.2s var(--ease-out) infinite; }
@keyframes rad-bars { 0% { stroke-dashoffset: 60 } 40%,100% { stroke-dashoffset: 0 } }

/* reveal on scroll */
.rd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rd-reveal.is-in { opacity: 1; transform: none; }

/* ---------- «راد» زنده: سر تکان می‌دهد، نفس می‌کشد، قاب می‌درخشد، چشم‌ها اشاره‌گر را دنبال می‌کنند ---------- */
.rad-alive { cursor: pointer; }
.rad-alive #face, .rad-alive #hair, .rad-alive #sage-beard, .rad-alive #auditors-vision { transform-box: view-box; transform-origin: 200px 350px; animation: rad-nod 6.5s ease-in-out infinite; }
@keyframes rad-nod { 0%,100% { transform: rotate(0) } 18% { transform: rotate(-3.5deg) } 36% { transform: rotate(2.5deg) } 52% { transform: rotate(0) } 70% { transform: rotate(-1.5deg) translateY(-2px) } }
.rad-alive #body-and-shoulders { transform-box: view-box; transform-origin: 200px 470px; animation: rad-breathe 4.2s ease-in-out infinite; }
@keyframes rad-breathe { 50% { transform: scale(1.025, 1.04) } }
.rad-alive #identity-frame { animation: rad-glow 3.4s ease-in-out infinite; }
@keyframes rad-glow { 50% { filter: drop-shadow(0 0 12px rgba(255,190,11,.8)) } }
.rad-alive #three-pillars path { transform-box: fill-box; transform-origin: center; animation: rad-spark 2.4s ease-in-out infinite; }
.rad-alive #three-pillars path:nth-child(2) { animation-delay: .35s } .rad-alive #three-pillars path:nth-child(3) { animation-delay: .7s }
@keyframes rad-spark { 0%,100% { transform: scale(1) rotate(0); opacity: 1 } 45% { transform: scale(1.35) rotate(18deg); opacity: .75 } }
.rad-alive #auditors-vision { translate: var(--ex, 0px) var(--ey, 0px); transition: translate .18s ease-out; }
.rad-alive #auditors-vision circle { transform-box: fill-box; transform-origin: center; animation: rad-blink 4.6s infinite; }
.rad-alive #finance-ledger path { stroke-dasharray: 70; animation: rad-bars 3.4s var(--ease-out) infinite; }
.rad-alive #accessory-success, .rad-alive #accessory-education { transform-box: fill-box; transform-origin: 50% 100%; animation: rad-wiggle 3s ease-in-out infinite; }
@keyframes rad-wiggle { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-6deg) } 50% { transform: rotate(5deg) } 75% { transform: rotate(-2deg) } }
.rad-alive.is-hop { animation: rad-hop .8s var(--ease-spring) !important; }
@keyframes rad-hop { 0% { transform: translateY(0) scale(1) } 30% { transform: translateY(6px) scale(1.04, .94) } 55% { transform: translateY(-26px) scale(.97, 1.04) } 80% { transform: translateY(0) scale(1.02, .98) } 100% { transform: none } }
.rad-wrap { position: relative; }
.rad-say { position: absolute; top: 2%; inset-inline-start: -8%; z-index: 2; max-width: 230px; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--y-500); color: var(--g-900); font: 700 14px/1.7 var(--font-display); box-shadow: var(--sh-2); opacity: 0; transform: translateY(8px) scale(.92); transition: opacity .35s, transform .45s var(--ease-spring); pointer-events: none; }
.rad-say.is-on { opacity: 1; transform: none; }
.rad-burst { position: absolute; inset: 0; pointer-events: none; }
.rad-burst i { position: absolute; left: 50%; top: 40%; width: 10px; height: 10px; border-radius: 3px; background: var(--y-400); animation: rad-burst .9s var(--ease-out) forwards; }
@keyframes rad-burst { from { transform: translate(0,0) rotate(0); opacity: 1 } to { transform: translate(var(--bx), var(--by)) rotate(220deg); opacity: 0 } }

/* ---------- همکارانِ ما ---------- */
.friends { display: grid; gap: 22px; }
.friends-grp b.grp { display: block; font: 800 13px/1 var(--font-display); color: var(--text-3); margin-bottom: 10px; }
.friends-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.friend { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-3); }
.friend:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--sh-2); border-color: var(--y-300); }
.friend .logo { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; font: 800 18px/1 var(--font-display); color: #fff; position: relative; overflow: hidden; }
.friend .logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 60%); }
.friend b { font-family: var(--font-display); font-size: 15px; display: block; }
.friend span { font-size: 12.5px; color: var(--text-2); line-height: 1.6; display: block; }
.friend.you { border-style: dashed; border-color: var(--y-400); background: var(--brand-soft); }
.friend.you .logo { background: var(--y-500); color: var(--g-900); }
.friends-note { font-size: 12.5px; color: var(--text-3); }

/* ---------- داستانِ حرف‌ها ---------- */
.letters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .letters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.letter { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 14px 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); opacity: 0; transform: translateY(26px) scale(.94); transition: opacity .6s var(--ease-out), transform .7s var(--ease-spring), box-shadow var(--dur-3), border-color var(--dur-3); }
.letters.is-in .letter { opacity: 1; transform: none; }
.letters.is-in .letter:nth-child(2) { transition-delay: .12s } .letters.is-in .letter:nth-child(3) { transition-delay: .24s } .letters.is-in .letter:nth-child(4) { transition-delay: .36s } .letters.is-in .letter:nth-child(5) { transition-delay: .48s } .letters.is-in .letter:nth-child(6) { transition-delay: .6s }
.letter:hover, .letter.is-lit { border-color: var(--y-400); box-shadow: 0 14px 34px rgba(255,190,11,.22); }
.letter .ch { font: 900 64px/1 var(--font-display); color: var(--text); transition: color var(--dur-3), transform var(--dur-3) var(--ease-spring); }
.letter.is-lit .ch { color: var(--y-600); transform: scale(1.12); }
[data-theme="dark"] .letter.is-lit .ch { color: var(--y-400); }
.letter .photo { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px dashed var(--line-strong); color: var(--text-3); overflow: hidden; }
.letter .photo svg { width: 30px; height: 30px; }
.letter .photo img { width: 100%; height: 100%; object-fit: cover; }
.letter.you .photo { border-color: var(--y-400); background: var(--brand-soft); color: var(--brand-text); }
.letter b { font: 800 15.5px/1.5 var(--font-display); }
.letter .role { font-size: 12.5px; color: var(--brand-text); font-weight: 700; }
.letter p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.word { display: flex; justify-content: center; gap: 2px; font: 900 clamp(56px, 11vw, 132px)/1.2 var(--font-display); }
.word span { display: inline-block; transition: color .4s, transform .5s var(--ease-spring); }
.word span.is-lit { color: var(--y-500); transform: translateY(-10px); }

/* Radmand website. Sits on tokens.css + components.css (merged into assets/radmand.css by build.py). */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* width/height attributes only reserve the aspect ratio; the box decides the size */
img { height: auto; }
body { direction: rtl; overflow-x: hidden; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .small { font-size: var(--fs-small); }
.center { text-align: center; }
.y-mark { background: linear-gradient(transparent 62%, var(--y-300) 62%, var(--y-300) 92%, transparent 92%); padding-inline: 4px; border-radius: 4px; }
[data-theme="dark"] .y-mark { background: linear-gradient(transparent 62%, rgba(255,190,11,.45) 62%, rgba(255,190,11,.45) 92%, transparent 92%); }
ul.clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-inline-start: 30px; }
ul.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 20px; height: 20px; border-radius: 7px; background: var(--y-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1F1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- preview ribbon ---------- */
.ribbon { background: var(--g-900); color: var(--g-100); font-size: 12.5px; text-align: center; padding: 6px 16px; line-height: 1.7; }
.ribbon b { color: var(--y-400); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur-3), box-shadow var(--dur-3); }
.hd.is-scrolled { border-color: var(--line); box-shadow: var(--sh-1); }
.hd .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand b { font: 800 21px/1 var(--font-display); }
.brand span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-inline-start: 12px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 10px; font: 600 14px/1.4 var(--font-display); white-space: nowrap; color: var(--text-2); transition: background var(--dur-2), color var(--dur-2); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.is-on { color: var(--text); background: var(--brand-soft); }
.hd-end { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; }
.burger { display: none; }
@media (max-width: 1220px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all var(--dur-3) var(--ease-out); }
  .nav a { padding: 12px; font-size: 16px; }
  .hd.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: grid; }
}
@media (max-width: 560px) { .hd-end .rd-btn { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- sections ---------- */
.sec { padding: 92px 0; position: relative; }
.sec--tight { padding: 64px 0; }
.sec--alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec--dark { background: var(--g-900); color: var(--g-0); }
.sec--dark .muted { color: var(--g-200); } .sec--dark .faint { color: var(--g-300); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--font-display); color: var(--brand-text); background: var(--brand-soft); border-radius: 99px; padding: 8px 14px; margin-bottom: 16px; }
.sec--dark .kicker { background: rgba(255,190,11,.14); color: var(--y-300); }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--y-500); }
.h1 { font-size: var(--fs-display); line-height: 1.32; margin-bottom: 18px; }
.h2 { font-size: var(--fs-h1); line-height: 1.4; max-width: 780px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 720px; margin: 0 0 28px; }
.sec--dark .lead { color: var(--g-200); }
.sec-head { margin-bottom: 40px; }
.sec-head.center { display: flex; flex-direction: column; align-items: center; }
.sec-head.center .lead { margin-inline: auto; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .sec { padding: 68px 0; } .lead { font-size: 16.5px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }
.feat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 14px; }
.feat-ico svg { width: 24px; height: 24px; }
.rd-card h3 { font-size: 18px; margin-bottom: 6px; }
.rd-card p { margin: 0; }
.soon { font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 2px 7px; margin-inline-start: 6px; vertical-align: middle; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero .split { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; width: 720px; height: 720px; inset-inline-end: -180px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,11,.34), rgba(255,190,11,0)); animation: blob 14s ease-in-out infinite; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%); }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-40px,30px) scale(1.08) } }
.typed { display: inline; }
.typed::after { content: ""; display: inline-block; width: 3px; height: .9em; background: var(--y-500); margin-inline-start: 4px; vertical-align: -0.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0 } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-2); }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust svg { width: 17px; height: 17px; color: var(--ok); }
.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { position: relative; width: 290px; aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px; background: #161615; box-shadow: var(--sh-3), inset 0 0 0 2px #3A3936; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; border-radius: 99px; background: #161615; transform: translateX(-50%); z-index: 2; }
.phone img, .phone iframe { width: 100%; height: 100%; display: block; border-radius: 35px; border: 0; object-fit: cover; object-position: top; background: var(--g-25); }
.stage .phone { animation: phone-in 1s var(--ease-out) both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(30px) rotate(-3deg) } to { opacity: 1; transform: none } }
.float { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2); padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; animation: floaty 6s ease-in-out infinite; }
.float b { font-family: var(--font-display); display: block; font-size: 13.5px; }
.float .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float .ic svg { width: 18px; height: 18px; }
.f1 { inset-inline-start: -10px; top: 70px; animation-delay: -1s; }
.f2 { inset-inline-end: -20px; top: 170px; animation-delay: -3s; }
.f3 { inset-inline-start: 0; bottom: 70px; animation-delay: -4.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.stage .rad { position: absolute; inset-inline-end: -12px; bottom: -6px; width: 150px; z-index: 4; filter: drop-shadow(0 16px 24px rgba(31,31,30,.22)); }
@media (max-width: 900px) { .stage { min-height: 520px; } .f2 { inset-inline-end: 0; } }
@media (max-width: 480px) { .phone { width: 240px; } .stage { min-height: 470px; } .float { font-size: 12px; padding: 8px 10px; } .stage .rad { width: 110px; } .f1 { top: 30px; } }

/* ---------- logo strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; }
.strip-track { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span { font: 700 16px/1 var(--font-display); color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.strip-track span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--y-500); }
@keyframes marquee { to { transform: translateX(50%) } }

/* ---------- SaaS diagram ---------- */
.saas { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.saas-node { text-align: center; padding: 22px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.saas-node.cloud { background: var(--g-900); color: #fff; border-color: var(--g-800); }
.saas-node .feat-ico { margin: 0 auto 10px; }
.saas-node.cloud .feat-ico { background: var(--y-500); color: var(--g-900); }
.saas-node b { font-family: var(--font-display); display: block; }
.saas-wire { position: relative; width: 70px; height: 4px; border-radius: 9px; background: var(--line-strong); overflow: hidden; }
.saas-wire::after { content: ""; position: absolute; inset-block: 0; width: 24px; border-radius: 9px; background: var(--y-500); animation: wire 1.8s linear infinite; }
.saas-wire.back::after { animation-direction: reverse; animation-delay: -.9s; }
@keyframes wire { from { inset-inline-start: -24px } to { inset-inline-start: 100% } }
@media (max-width: 760px) { .saas { grid-template-columns: 1fr; } .saas-wire { width: 4px; height: 44px; margin: auto; } .saas-wire::after { width: 100%; height: 16px; inset-inline: 0; animation-name: wire-v; } @keyframes wire-v { from { top: -16px } to { top: 100% } } }

/* ---------- tabs (audience, gallery, code) ---------- */
.tabs-host [data-pane] { display: none; }
.tabs-host [data-pane].is-on { display: block; animation: pane-in .45s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; font: 700 14.5px/40px var(--font-display); color: var(--text-2); cursor: pointer; transition: background var(--dur-2), color var(--dur-2); white-space: nowrap; }
.seg button.is-on { background: var(--y-500); color: var(--g-900); box-shadow: 0 4px 14px rgba(255,190,11,.3); }

/* ---------- human + agents ---------- */
.day { display: grid; gap: 10px; }
.day-row { display: grid; grid-template-columns: 120px 1fr 74px; gap: 12px; align-items: center; font-size: 14px; }
.day-bar { position: relative; height: 14px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.day-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: var(--g-400); width: 0; transition: width 1.2s var(--ease-out); }
.day-bar i.ai { background: var(--y-500); }
.is-in .day-bar i { width: var(--w); }
.agent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.agent .feat-ico { margin: 0; width: 40px; height: 40px; flex: none; }
.agent b { font-family: var(--font-display); display: block; font-size: 15px; }
.agent span { font-size: 13.5px; color: var(--text-2); }
.agent .rd-badge { margin-top: 6px; }

/* ---------- AI helper (same scenario as the brandbook) ---------- */
.hp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .hp { grid-template-columns: 1fr; } }
.hp-win { position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-3); overflow: hidden; color: var(--text); }
.hp-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr; }
.hp-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.hp-bar span { flex: 1; text-align: center; font-size: 12.5px; color: var(--text-2); direction: rtl; }
.hp-body { position: relative; padding: 22px; display: grid; gap: 14px; min-height: 330px; }
.hp-body .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .hp-body .row { grid-template-columns: 1fr; } }
.hp-steps { display: flex; flex-direction: column; gap: 8px; }
.hp-step { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); opacity: .45; transition: opacity var(--dur-3), border-color var(--dur-3), transform var(--dur-3) var(--ease-out); color: var(--text); }
.hp-step.is-on { opacity: 1; border-color: var(--y-400); transform: translateX(-4px); }
.hp-step.is-done { opacity: 1; }
.hp-step i { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; font: 700 12px/1 var(--font-display); background: var(--surface-3); font-style: normal; }
.hp-step.is-on i { background: var(--y-500); color: var(--g-900); }
.hp-step.is-done i { background: var(--ok); color: #fff; }
.hp-step b { font-size: 14px; display: block; }
.hp-step span { font-size: 12.5px; color: var(--text-2); }
.hp-toast { position: absolute; inset-inline: 22px; bottom: 18px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--ok); color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all var(--dur-3) var(--ease-out); }
.hp-toast.is-on { opacity: 1; transform: none; }
.hp-fixed { animation: hp-fixed .9s var(--ease-out); }
@keyframes hp-fixed { 0% { box-shadow: 0 0 0 0 rgba(24,122,76,.55) } 100% { box-shadow: 0 0 0 14px rgba(24,122,76,0) } }
.rd-helper .face svg, .rd-helper .face img { width: 36px; height: 36px; }

/* ---------- offline ---------- */
.off { border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-2); overflow: hidden; color: var(--text); }
.off-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.off-top b { font-family: var(--font-display); }
.net { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: 13px; font-weight: 700; }
.net .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.off.is-off .net .dot { background: var(--warn); animation: rd-pulse 1.8s infinite; }
.off-body { padding: 18px; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; transition: all var(--dur-3); }
.doc .st { margin-inline-start: auto; }
.doc.is-new { animation: doc-in .5s var(--ease-spring); }
@keyframes doc-in { from { opacity: 0; transform: translateY(-8px) scale(.97) } to { opacity: 1; transform: none } }
.ai-line { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--ai-soft); color: var(--ai); font-size: 13.5px; font-weight: 600; }
.ai-line svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sepidar sync ---------- */
.sync { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 0; }
.sync-node { position: relative; z-index: 1; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); text-align: center; }
.sync-node.rad { background: var(--y-500); color: var(--g-900); border-color: transparent; }
.sync-node b { font: 800 20px/1.4 var(--font-display); display: block; }
.sync-node small { font-size: 12.5px; opacity: .8; }
.sync-node img { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 8px; }
.pipes { position: relative; height: 110px; }
.pipe { position: absolute; inset-inline: -8px; height: 3px; border-radius: 9px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.pipe.a { top: 34px; } .pipe.b { top: 74px; }
.pkt { position: absolute; top: -9px; height: 21px; padding: 0 8px; border-radius: 7px; font: 700 11px/21px var(--font-display); white-space: nowrap; box-shadow: var(--sh-1); }
.pipe.a .pkt { background: var(--g-900); color: var(--y-400); animation: to-left 3.6s linear infinite; }
.pipe.b .pkt { background: var(--y-500); color: var(--g-900); animation: to-right 3.6s linear infinite; }
.pkt:nth-child(2) { animation-delay: -1.2s !important; } .pkt:nth-child(3) { animation-delay: -2.4s !important; }
@keyframes to-left { from { right: 0; opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } to { right: calc(100% - 70px); opacity: 0 } }
@keyframes to-right { from { right: calc(100% - 70px); opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } to { right: 0; opacity: 0 } }
@media (max-width: 760px) { .sync { grid-template-columns: 1fr; } .pipes { height: 120px; width: 110px; margin: auto; } .pipe { inset-inline: auto; inset-block: -8px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); } .pipe.a { top: -8px; right: 30px; } .pipe.b { top: -8px; right: 76px; } .pkt { top: auto; right: -30px; } .pipe.a .pkt { animation-name: to-up; } .pipe.b .pkt { animation-name: to-down; } @keyframes to-up { from { bottom: 0; opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } to { bottom: calc(100% - 21px); opacity: 0 } } @keyframes to-down { from { bottom: calc(100% - 21px); opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } to { bottom: 0; opacity: 0 } } }

/* ---------- bots ---------- */
.tg { width: min(360px, 100%); margin-inline: auto; border-radius: 30px; background: #161615; padding: 10px; box-shadow: var(--sh-3); }
.tg-in { border-radius: 22px; overflow: hidden; background: #E9E3D3; }
[data-theme="dark"] .tg-in { background: #22211F; }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); color: var(--text); }
.tg-top img { width: 38px; height: 38px; border-radius: 50%; }
.tg-top b { font-family: var(--font-display); display: block; font-size: 14.5px; }
.tg-top small { font-size: 11.5px; color: var(--text-3); }
.tg-chat { height: 460px; padding: 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden; }
.tg-chat .rd-msg { opacity: 0; transform: translateY(10px); transition: all .4s var(--ease-out); color: var(--text); }
.tg-chat .rd-msg.is-on { opacity: 1; transform: none; }
.tg-chat .rd-msg.hidden { display: none; }
.call { position: absolute; inset: 10px; border-radius: 22px; background: linear-gradient(180deg, #1F1F1E, #2E2E2C); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .4s; text-align: center; padding: 20px; }
.call.is-on { opacity: 1; }
.call .ring { width: 96px; height: 96px; border-radius: 50%; background: var(--y-500); display: grid; place-items: center; animation: ring 1.2s infinite; }
.call .ring img { width: 70px; height: 70px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,190,11,.6) } 100% { box-shadow: 0 0 0 26px rgba(255,190,11,0) } }
.call b { font: 800 20px/1.4 var(--font-display); }
.call p { margin: 0; font-size: 13.5px; color: var(--g-200); max-width: 260px; }
.call .btns { display: flex; gap: 40px; margin-top: 14px; }
.call .btns span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.call .btns svg { width: 24px; height: 24px; }
.rule { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--line-strong); font-size: 14.5px; font-weight: 600; }
.rule .tok { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.rule .tok.y { background: var(--y-500); color: var(--g-900); border-color: transparent; }
.rule .tok.d { background: var(--g-900); color: var(--y-400); border-color: transparent; }

/* ---------- gallery ---------- */
.gal { display: flex; gap: 22px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.gal .phone { width: 250px; }
.shot-d { width: min(920px, 100%); margin: auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--sh-3); background: var(--surface); }
.shot-d .hp-bar { height: 34px; }
.shot-d img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top right; }
#who .split { align-items: center; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.plan.hot { background: var(--g-900); color: #fff; border-color: var(--g-800); }
.plan.hot .muted { color: var(--g-200); }
.plan .tag { position: absolute; top: -12px; inset-inline-start: 22px; }
.plan h3 { font-size: 20px; margin: 0; }
.price { font: 800 36px/1.1 var(--font-display); display: flex; align-items: baseline; gap: 6px; }
.price small { font: 600 13px/1 var(--font-body); color: var(--text-3); }
.plan.hot .price small { color: var(--g-300); }
.price .old { font-size: 15px; text-decoration: line-through; color: var(--text-3); font-weight: 600; }
.plan ul.ticks { font-size: 14px; }
.plan .rd-btn { margin-top: auto; }
.save-note { font-size: 12.5px; font-weight: 700; color: var(--ok); min-height: 20px; }
.plan.hot .save-note { color: #4CC88C; }
details.faq { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 0 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 700 15.5px/1.6 var(--font-display); display: flex; gap: 10px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-inline-start: auto; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; transition: transform var(--dur-2); flex: none; }
details.faq[open] summary::after { transform: rotate(45deg); background: var(--y-500); color: var(--g-900); }
details.faq p { margin: 0 0 16px; color: var(--text-2); font-size: 14.5px; }
.calc { display: grid; gap: 18px; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.calc input[type=range] { width: 100%; accent-color: var(--y-500); height: 28px; }
.calc .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc .vs div { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.calc .vs div.us { background: var(--y-500); color: var(--g-900); }
.calc .vs b { font: 800 22px/1.4 var(--font-display); display: block; }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }
.table-scroll .rd-table { min-width: 640px; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--text-3); }

/* ---------- developers ---------- */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.docs-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.docs-nav a { text-decoration: none; padding: 7px 12px; border-radius: 9px; color: var(--text-2); border-inline-start: 2px solid transparent; }
.docs-nav a:hover { background: var(--surface-2); }
.docs-nav a.is-on { color: var(--text); background: var(--brand-soft); border-color: var(--y-500); font-weight: 700; }
.docs-nav .grp { font: 800 11.5px/1 var(--font-display); color: var(--text-3); padding: 14px 12px 6px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; } .docs-nav .grp { display: none; } }
.doc-sec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec h2 { font-size: 24px; }
.doc-sec h3 { font-size: 17px; margin-top: 18px; }
.code-box { position: relative; margin: 12px 0; }
.code-box .rd-tabs { margin-bottom: 8px; }
.code-box .copy { position: absolute; top: 10px; left: 10px; z-index: 1; height: 30px; padding: 0 12px; border-radius: 9px; border: 0; background: rgba(255,255,255,.12); color: #fff; font: 600 12px/30px var(--font-display); cursor: pointer; }
.code-box .copy:hover { background: rgba(255,255,255,.22); }
.code-box .rd-tabs + .copy, .code-box .rd-tabs ~ .copy { top: 58px; }
.code-box pre[data-pane] { display: none; } .code-box pre[data-pane].is-on { display: block; }
.endpoint { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font: 600 13.5px/1.6 ui-monospace, Menlo, monospace; direction: ltr; text-align: left; overflow-x: auto; }
.verb { padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 12px; }
.verb.post { background: var(--ok-soft); color: var(--ok); } .verb.get { background: var(--info-soft); color: var(--info); }
.fmt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .fmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fmt { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; cursor: pointer; transition: all var(--dur-2); font-family: inherit; color: inherit; }
.fmt b { font: 800 17px/1.4 var(--font-display); display: block; direction: ltr; }
.fmt span { font-size: 12.5px; color: var(--text-2); }
.fmt.is-on { border-color: var(--y-500); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(255,190,11,.25); }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-row span { direction: ltr; }

/* ---------- accountants ---------- */
.prof { display: flex; flex-direction: column; gap: 10px; }
.prof .top { display: flex; gap: 12px; align-items: center; }
.ava { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 800 20px/1 var(--font-display); background: var(--y-500); color: var(--g-900); flex: none; }
.ava.g { background: var(--g-900); color: var(--y-400); } .ava.s { background: var(--surface-3); color: var(--text); }
.prof .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stars { color: var(--y-600); font-size: 13px; letter-spacing: 1px; }
.search { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: var(--sh-2); }
.search:focus-within { border-color: var(--y-500); box-shadow: 0 0 0 5px rgba(255,190,11,.22); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 16.5px var(--font-body); color: var(--text); min-width: 0; }
.search svg { width: 22px; height: 22px; color: var(--text-3); flex: none; }
.kb { display: grid; gap: 10px; margin-top: 16px; }
.kb-item { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kb-item b { font-family: var(--font-display); display: block; font-size: 15.5px; }
.kb-item p { margin: 4px 0 8px; font-size: 14.5px; color: var(--text-2); }
.kb-item mark { background: var(--y-200); color: var(--g-900); border-radius: 4px; padding: 0 2px; }
.kb-empty { padding: 28px; text-align: center; color: var(--text-2); }
.news { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.news .thumb { height: 140px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.news .thumb svg { width: 56px; height: 56px; }
.earn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .earn { grid-template-columns: 1fr; } }

/* ---------- demo ---------- */
.demo-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .demo-shell { grid-template-columns: 1fr; } }
.demo-side { display: grid; gap: 14px; position: sticky; top: 90px; }
@media (max-width: 900px) { .demo-side { position: static; } }
.demo-pages { display: grid; gap: 4px; }
.demo-pages button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font: 600 14.5px/1 var(--font-display); color: var(--text-2); cursor: pointer; text-align: start; }
.demo-pages button svg { width: 19px; height: 19px; }
.demo-pages button:hover { background: var(--surface-2); }
.demo-pages button.is-on { background: var(--y-500); color: var(--g-900); }
@media (max-width: 900px) { .demo-pages { grid-auto-flow: column; overflow-x: auto; } .demo-pages button { white-space: nowrap; } }
.demo-stage { display: grid; place-items: center; padding: 28px; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line); min-height: 760px; transition: all var(--dur-3); }
.demo-frame { transition: width var(--dur-4) var(--ease-out), height var(--dur-4) var(--ease-out), border-radius var(--dur-4); }
.demo-frame.mobile { width: 360px; height: 740px; }
.demo-frame.tablet { width: 720px; height: 740px; border-radius: 30px; }
.demo-frame.desktop { width: 100%; height: 720px; border-radius: 18px; padding: 0; }
.demo-frame.desktop::before { display: none; }
.demo-frame.desktop iframe { border-radius: 18px; }
@media (max-width: 800px) { .demo-frame.tablet { width: 100%; } .demo-stage { padding: 14px; } }
@media (max-width: 420px) { .demo-frame.mobile { width: 100%; height: 680px; } }
.loading { position: absolute; inset: 10px; border-radius: 35px; display: grid; place-items: center; background: var(--g-25); color: var(--g-600); font-size: 14px; z-index: 1; transition: opacity .4s; }
.loading.is-off { opacity: 0; pointer-events: none; }
.loading img { width: 72px; animation: rd-spin-soft 1.6s ease-in-out infinite; }
@keyframes rd-spin-soft { 50% { transform: scale(.9) rotate(-6deg) } }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; background: var(--y-500); color: var(--g-900); padding: 52px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { font-size: var(--fs-h1); margin: 0 0 8px; }
.cta p { margin: 0 0 20px; font-size: 17px; max-width: 560px; }
.cta img { width: 190px; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; inset-inline-end: -120px; top: -160px; background: rgba(255,255,255,.25); }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } .cta img { width: 130px; justify-self: center; } }
.ft { padding: 64px 0 28px; background: var(--g-950); color: var(--g-200); margin-top: 92px; }
.ft a { color: var(--g-200); text-decoration: none; } .ft a:hover { color: var(--y-400); }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
.ft h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ft .brand b { color: #fff; }
.ft-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--g-800); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; color: var(--g-400); }

/* count-up numbers keep their width */
[data-count] { font-variant-numeric: tabular-nums; }
button.rd-chip { cursor: pointer; font-family: var(--font-display); }
/* grid children may shrink below their content (long code, nowrap chips) */
.split > *, .docs > *, .demo-shell > *, .hp > *, .grid > * { min-width: 0; }
@media (max-width: 900px) { .hero .split { grid-template-columns: 1fr; } }
.demo-side > * { min-width: 0; }
.code-box pre.rd-code { padding-top: 48px; }
#devices { display: flex; flex-wrap: nowrap; } #devices button { flex: 1; padding: 0 8px; }

/* ---------- about: چراغِ شعار ---------- */
.lamp { position: relative; height: 380px; display: grid; place-items: center; }
.lamp-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,11,.55), rgba(255,190,11,0)); animation: lamp-glow 3.2s ease-in-out infinite; }
@keyframes lamp-glow { 50% { transform: scale(1.18); opacity: .8 } }
.lamp-svg { position: relative; width: 170px; animation: rad-float 5s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255,190,11,.5)); }
.lamp-nums { position: absolute; inset: 0; animation: lamp-orbit 26s linear infinite; }
.lamp-nums span { position: absolute; font: 800 15px/1 var(--font-display); color: var(--g-600); padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.04); animation: lamp-lit 4.8s ease-in-out infinite; }
.lamp-nums span:nth-child(1) { top: 6%; right: 18% } .lamp-nums span:nth-child(2) { top: 26%; left: 2%; animation-delay: .8s } .lamp-nums span:nth-child(3) { bottom: 18%; left: 10%; animation-delay: 1.6s }
.lamp-nums span:nth-child(4) { bottom: 4%; right: 30%; animation-delay: 2.4s } .lamp-nums span:nth-child(5) { top: 40%; right: 0; animation-delay: 3.2s } .lamp-nums span:nth-child(6) { top: 4%; left: 30%; animation-delay: 4s }
@keyframes lamp-orbit { to { transform: rotate(360deg) } }
@keyframes lamp-lit { 0%,100% { color: var(--g-600); background: rgba(255,255,255,.04) } 40%,60% { color: var(--g-900); background: var(--y-400) } }

/* ---------- vertical steps ---------- */
.steps-v { display: grid; gap: 12px; }
.sv { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.sv i { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; font: 800 14px/1 var(--font-display); font-style: normal; background: var(--y-500); color: var(--g-900); }
.sv b { font-family: var(--font-display); display: block; font-size: 16px; }
.sv span { font-size: 14px; color: var(--text-2); }

/* ---------- قیمت‌های امروز ---------- */
.tick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .tick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tick-item { position: relative; display: grid; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.tick-item b { font: 800 20px/1.4 var(--font-display); font-variant-numeric: tabular-nums; }
.tick-item b small { font: 500 12px var(--font-body); color: var(--text-3); }
.tick-item .src { font-size: 11px; color: var(--text-3); justify-self: start; }
.spark { width: 100%; height: 30px; }
.spark path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; }
.spark.up path { stroke: var(--ok); } .spark.down path { stroke: var(--bad); }
.is-in .spark path { animation: spark-draw 1.6s var(--ease-out) forwards; }
@keyframes spark-draw { to { stroke-dashoffset: 0 } }

/* ---------- پلتفرم‌ها ---------- */
.plat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .plat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform var(--dur-3) var(--ease-spring), box-shadow var(--dur-3); }
.plat-item:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.plat-item svg { width: 34px; height: 34px; color: var(--brand-text); }
.plat-item b { font: 800 15px/1.4 var(--font-display); }
.plat-item span { font-size: 12.5px; color: var(--text-2); }
.plat-item.hot { background: var(--g-900); color: #fff; border-color: var(--g-800); }
.plat-item.hot svg { color: var(--y-400); } .plat-item.hot span { color: var(--g-200); }
.is-in .plat-item { animation: plat-in .6s var(--ease-spring) both; }
.is-in .plat-item:nth-child(2) { animation-delay: .08s } .is-in .plat-item:nth-child(3) { animation-delay: .16s } .is-in .plat-item:nth-child(4) { animation-delay: .24s } .is-in .plat-item:nth-child(5) { animation-delay: .32s } .is-in .plat-item:nth-child(6) { animation-delay: .4s }
@keyframes plat-in { from { opacity: 0; transform: translateY(20px) scale(.9) } to { opacity: 1; transform: none } }

/* ---------- ماشین ---------- */
.car { border-radius: 30px; padding: 14px; background: #0B0B0A; box-shadow: var(--sh-3), inset 0 0 0 2px #2E2E2C; }
.car-screen { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #141413; }
@media (max-width: 520px) { .car-screen { grid-template-columns: 1fr; aspect-ratio: auto; } .car-road { height: 120px; } }
.car-road { position: relative; background: linear-gradient(180deg, #1F2A1F, #262624); overflow: hidden; }
.car-road::before { content: ""; position: absolute; inset: 20% 30% -10% 30%; background: #3A3936; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.car-road i { position: absolute; left: 50%; width: 6px; height: 26px; margin-left: -3px; border-radius: 3px; background: var(--y-400); animation: road 1.6s linear infinite; }
.car-road i:nth-child(2) { animation-delay: -.4s } .car-road i:nth-child(3) { animation-delay: -.8s } .car-road i:nth-child(4) { animation-delay: -1.2s }
@keyframes road { from { top: 18%; transform: scale(.4); opacity: .3 } to { top: 105%; transform: scale(1.6); opacity: 1 } }
.car-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; color: #fff; }
.car-top { display: flex; gap: 8px; align-items: center; }
.car-top img { width: 30px; height: 30px; border-radius: 9px; }
.car-top b { font-family: var(--font-display); }
.wave { display: flex; gap: 4px; align-items: center; height: 34px; }
.wave i { width: 5px; border-radius: 3px; background: var(--y-400); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .8s } .wave i:nth-child(3n) { animation-duration: 1.3s } .wave i:nth-child(4n) { animation-delay: -.3s }
@keyframes wave { 0%,100% { height: 6px } 50% { height: 32px } }
.car-lines p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.8; color: var(--g-100); opacity: 0; transform: translateY(6px); transition: all .5s var(--ease-out); }
.car-lines p.is-on { opacity: 1; transform: none; }
.car-chips { display: flex; gap: 8px; margin-top: auto; }
.car-chips span { padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.1); font: 700 13px/1.6 var(--font-display); }
.car-chips span.y { background: var(--y-500); color: var(--g-900); animation: rd-pulse 1.8s infinite; }
.car-dash { display: flex; justify-content: space-between; padding: 10px 8px 2px; font: 600 12.5px/1 var(--font-display); color: var(--g-300); }

/* ---------- موجودیِ محرمانه ---------- */
.vault { display: grid; gap: 14px; }
.vault-card { position: relative; padding: 22px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #2F6FD6, #1F3F8B); box-shadow: var(--sh-3); overflow: hidden; }
.vault-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -70px; top: -90px; background: rgba(255,255,255,.12); }
.vc-top { display: flex; justify-content: space-between; align-items: center; }
.vc-bal { margin: 24px 0 18px; font: 800 30px/1.3 var(--font-display); }
.vc-bal small { font: 500 13px var(--font-body); opacity: .8; }
.vc-bal .real { display: none; }
.vault.is-open .vc-bal .mask { display: none; } .vault.is-open .vc-bal .real { display: inline; animation: pane-in .4s var(--ease-out); }
.vc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.fp { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; animation: rd-pulse 2s infinite; }
.fp svg { width: 28px; height: 28px; }
.vault.is-open .fp { background: var(--ok); animation: none; }
.vault-ins { opacity: .35; transition: opacity .5s; } .vault.is-open .vault-ins { opacity: 1; }

/* ---------- فرصت‌ها ---------- */
.seasons { display: flex; gap: 10px; align-items: flex-end; height: 130px; margin: 12px 0; }
.seasons div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.seasons i { width: 100%; max-width: 44px; height: 0; border-radius: 10px 10px 4px 4px; background: var(--g-300); transition: height 1.2s var(--ease-out); }
.seasons i.y { background: var(--y-500); }
.is-in .seasons i { height: var(--h); }
.seasons span { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.loans { display: grid; gap: 8px; margin: 12px 0 0; }
.loan { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.loan b { font-family: var(--font-display); font-size: 14.5px; }
.loan span { font-size: 12.5px; color: var(--text-2); grid-column: 1; }
.loan em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand-text); background: var(--brand-soft); padding: 4px 8px; border-radius: 8px; }
.sugg { display: grid; gap: 10px; margin-top: 12px; }
.sugg div { display: flex; gap: 10px; align-items: flex-start; }
.sugg .ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--y-500); color: var(--g-900); font-size: 16px; }
.sugg p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ---------- اینترنتِ اشیا ---------- */
.floor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.room { position: relative; height: 82px; border-radius: 14px; background: #2E2E2C; display: grid; place-items: end start; padding: 8px 10px; transition: background .6s, box-shadow .6s; overflow: hidden; }
.room span { position: relative; font-size: 12px; font-weight: 700; color: var(--g-300); }
.room::before { content: ""; position: absolute; top: 12px; inset-inline-start: 12px; width: 16px; height: 16px; border-radius: 50%; background: #4F4E4A; transition: all .6s; }
.room.on { background: #3A3015; box-shadow: inset 0 0 30px rgba(255,190,11,.35); }
.room.on::before { background: var(--y-400); box-shadow: 0 0 18px 6px rgba(255,190,11,.6); }
.room.on span { color: #fff; }
.iot-bar { display: flex; gap: 10px; align-items: center; margin-top: 12px; font: 700 13px/1 var(--font-display); }
.iot-track { flex: 1; height: 8px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.iot-track i { display: block; height: 100%; width: 0; background: var(--y-500); border-radius: 9px; transition: width .6s linear; }

/* ---------- بازارچه ---------- */
.bz { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); gap: 16px; align-items: center; }
@media (max-width: 860px) { .bz { grid-template-columns: minmax(0, 1fr); } .bz-arrow { transform: rotate(-90deg); justify-self: center; } }
.bz-stock, .bz-shop { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; gap: 10px; }
.bz-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface-2); }
.bz-item .pic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.bz-item div { flex: 1; min-width: 0; } .bz-item b { display: block; font-size: 14px; font-family: var(--font-display); } .bz-item div span { font-size: 12.5px; color: var(--text-2); }
.bz-arrow svg { width: 40px; height: 40px; color: var(--y-600); animation: bz-nudge 1.4s ease-in-out infinite; }
@keyframes bz-nudge { 50% { transform: translateX(-8px) } }
.bz-shop-top { display: flex; justify-content: space-between; align-items: center; }
.bz-shop-top b { font-family: var(--font-display); }
.bz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 170px; }
.bz-card { padding: 10px; border-radius: 16px; border: 1px solid var(--line); text-align: center; display: grid; gap: 4px; animation: bz-in .6s var(--ease-spring) both; }
.bz-card .pic { height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; }
.bz-card b { font-size: 13px; font-family: var(--font-display); } .bz-card span { font-size: 12px; color: var(--text-2); }
.bz-card.out { opacity: .55; filter: grayscale(.6); }
@keyframes bz-in { from { opacity: 0; transform: translateX(60px) scale(.8) rotate(4deg) } to { opacity: 1; transform: none } }
.bz-posts { display: flex; flex-wrap: wrap; gap: 6px; }
.bz-posts span { padding: 5px 11px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; opacity: .3; transition: all .4s; }
.bz-posts span.is-on { opacity: 1; background: var(--g-900); color: var(--y-400); }

/* ---------- دارایی‌ها ---------- */
.assets { display: grid; gap: 10px; }
.assets > div { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; font-size: 13.5px; }

/* ---------- قیمت: جدولِ تیک و ضربدر ---------- */
.x { color: var(--bad); font-weight: 800; }
.matrix td:not(:first-child), .matrix th:not(:first-child) { text-align: center; }
@media (max-width: 900px) { .plans[style] { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- پشتیبانی ---------- */
.code-card { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1.5px dashed var(--y-400); max-width: 420px; }
.code-card b { font: 800 30px/1.3 var(--font-display); letter-spacing: 1px; color: var(--brand-text); }
.chat-box { border-radius: 26px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-3); overflow: hidden; }
.chat-top { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-top b { display: block; font-family: var(--font-display); font-size: 14.5px; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 330px; background: var(--surface-2); justify-content: flex-end; }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s } .typing i:nth-child(3) { animation-delay: .4s }
@keyframes typing { 0%,60%,100% { transform: none; opacity: .4 } 30% { transform: translateY(-5px); opacity: 1 } }
.lvl { position: absolute; top: -14px; inset-inline-end: 22px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font: 900 18px/1 var(--font-display); background: var(--y-500); color: var(--g-900); box-shadow: var(--sh-2); }
.auto-ctx { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--ai-soft); color: var(--ai); }
.auto-ctx span { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--surface); }
.ref { display: grid; gap: 14px; padding: 26px; border-radius: 26px; background: var(--g-800); border: 1px solid var(--g-700); }
.ref-code { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--g-900); border: 1.5px dashed var(--y-500); }
.ref-code b { font: 800 24px/1 var(--font-display); color: var(--y-400); direction: ltr; letter-spacing: 1px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-stats div { padding: 14px; border-radius: 16px; background: var(--g-900); display: grid; }
.ref-stats span { font: 800 28px/1.3 var(--font-display); color: #fff; }
.ref-stats small { font-size: 12.5px; color: var(--g-300); }

/* ---------- آکادمی ---------- */
.path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-top: 34px; }
.path-line { position: absolute; top: 14px; inset-inline: 10%; height: 4px; border-radius: 9px; background: var(--line-strong); }
.path-line i { position: absolute; top: -8px; inset-inline-start: var(--p, 0%); width: 20px; height: 20px; margin-inline-start: -10px; border-radius: 50%; background: var(--y-500); box-shadow: 0 0 0 6px rgba(255,190,11,.25); transition: inset-inline-start 1.2s var(--ease-out); }
.path-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: all .5s; opacity: .55; }
.path-step.is-on { opacity: 1; border-color: var(--y-400); box-shadow: var(--sh-2); }
.path-step span { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font: 800 14px/1 var(--font-display); background: var(--surface-3); }
.path-step.is-on span { background: var(--y-500); color: var(--g-900); }
.path-step b { font-family: var(--font-display); font-size: 15px; }
.path-step small { font-size: 12px; color: var(--text-2); }
@media (max-width: 760px) { .path { grid-template-columns: minmax(0, 1fr); padding-top: 0; } .path-line { display: none; } .path-step { flex-direction: row; text-align: start; gap: 12px; } }
.lms { display: grid; grid-template-columns: 260px minmax(0, 1fr); border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--sh-3); background: var(--surface); }
@media (max-width: 820px) { .lms { grid-template-columns: minmax(0, 1fr); } }
.lms-side { display: grid; gap: 14px; align-content: start; padding: 20px; background: var(--surface-2); border-inline-end: 1px solid var(--line); }
.lms-me { display: flex; gap: 10px; align-items: center; } .lms-me b { font-family: var(--font-display); display: block; }
.mod { display: grid; gap: 6px; } .mod > div:first-child { display: flex; justify-content: space-between; font-size: 13.5px; } .mod b { font-weight: 700; } .mod span { color: var(--text-2); }
.mod .day-bar i { transition: width .8s var(--ease-out); }
.xp { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--g-900); color: var(--g-100); }
.xp b { font: 800 20px/1 var(--font-display); color: var(--y-400); }
.lms-main { display: grid; gap: 14px; padding: 22px; align-content: start; min-height: 420px; }
.lms-head { display: grid; gap: 6px; } .lms-head b { font: 800 17px/1.6 var(--font-display); }
.ledger { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lg-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; min-height: 46px; transition: background .4s; }
.lg-row.lg-h { border-top: 0; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.lg-row.bad { background: var(--bad-soft); } .lg-row.good { background: var(--ok-soft); }
.lg-row .num { text-align: center; font-weight: 700; }
.tutor, .mentor { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; opacity: 0; transform: translateY(8px); transition: all .45s var(--ease-spring); }
.tutor.is-on, .mentor.is-on { opacity: 1; transform: none; }
.tutor { background: var(--g-900); color: #fff; } .tutor img { width: 36px; height: 36px; border-radius: 11px; background: var(--y-500); flex: none; }
.tutor b { display: block; color: var(--y-300); font-family: var(--font-display); font-size: 13.5px; } .tutor span { font-size: 13.5px; line-height: 1.8; }
.mentor { background: var(--ok-soft); align-items: center; } .mentor b { display: block; font-family: var(--font-display); font-size: 13.5px; } .mentor > div:nth-child(2) { flex: 1; } .mentor span:not(.rd-badge) { font-size: 13.5px; color: var(--text-2); }
.lms-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tick > * { min-width: 0; }
@media (max-width: 420px) { .tick-item { padding: 12px; } .tick-item b { font-size: 16px; } .tick-item b small { display: block; } }
.price { flex-wrap: wrap; } @media (max-width: 420px) { .rd-card .price { font-size: 30px; } }

/* ---------- دانلودِ اپ ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: 26px; border-radius: 28px; background: var(--surface); border: 2px solid var(--y-400); box-shadow: 0 18px 40px rgba(255,190,11,.18); }
@media (max-width: 900px) { .dl { grid-template-columns: minmax(0, 1fr); } }
.dl-main { display: flex; gap: 18px; align-items: center; }
.dl-main img { width: 72px; height: 72px; border-radius: 20px; flex: none; animation: rad-float 5s ease-in-out infinite; }
.dl-h { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 6px; }
.dl-btns { display: grid; gap: 10px; }
.dl-btns .rd-btn { width: 100%; }
.dl-size { font: 600 12px/1 var(--font-body); opacity: .7; margin-inline-start: 6px; }
.dl-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 520px) { .dl { padding: 18px; } .dl-main { flex-direction: column; align-items: flex-start; } }
