/* شکارزن — UI 1.2.1 (بر پایه 1.0.1)
   زبان طراحی: «بورس نیمه‌شب» — سطح‌های شیشه‌ای روی زمینه جوهری با هاله‌های رنگی آرام، یک رنگ برند قابل انتخاب،
   عددهای درشت و خوانا، فاصله‌های سخاوتمند. تم روشن: کاغذ گرم با کارت‌های سفید.
   چیدمان: سربرگ شیشه‌ای + نوار کناری دسته‌بندی‌شده؛ در گوشی نوار پایین شناور با دکمه میز عملیات. */

:root {
  --bg: #f5f3ee; --bg-2: #ece9e1; --surface: #ffffff; --surface-2: #f8f6f1; --surface-3: #f1eee7;
  --line: rgba(32, 28, 18, .09); --line-2: rgba(32, 28, 18, .16); --glass: rgba(255, 255, 255, .78);
  --text: #15130e; --text-2: #403b30; --muted: #807a6c;
  --up: #0c9a6a; --up-soft: #dff5ec; --down: #df3d4c; --down-soft: #fde8ea; --warn: #b86e00; --warn-soft: #fff1d6;
  --info: #2a72e8; --info-soft: #e5efff; --violet: #6a55f0; --violet-soft: #ece8ff;
  --shadow: 0 1px 1px rgba(30, 25, 10, .04), 0 10px 30px -14px rgba(30, 25, 10, .18);
  --shadow-lg: 0 30px 80px -24px rgba(30, 25, 10, .38);
  --aura-1: rgba(231, 176, 74, .14); --aura-2: rgba(106, 85, 240, .08);
  --r: 22px; --r-md: 16px; --r-sm: 12px;
  --font: "Estedad", "Vazirmatn", Tahoma, system-ui, sans-serif;
  --display: "Lalezar", "Estedad", Tahoma, sans-serif;
  --side-w: 268px; --head-h: 64px;
  color-scheme: light;
  /* رنگ برند (پیش‌فرض طلایی) */
  --ac: #c8870b; --ac-2: #f0b444; --ac-soft: #fbefd5; --ac-ink: #6a4300; --on-ac: #2a1900;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090f; --bg-2: #0b0e16; --surface: #10141e; --surface-2: #151a26; --surface-3: #1a2030;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13); --glass: rgba(14, 18, 27, .74);
    --text: #eef1f8; --text-2: #c2c8d6; --muted: #858da2;
    --up: #2fd6a2; --up-soft: rgba(47, 214, 162, .12); --down: #ff6b78; --down-soft: rgba(255, 107, 120, .13);
    --warn: #f6b13f; --warn-soft: rgba(246, 177, 63, .13); --info: #6ba6ff; --info-soft: rgba(107, 166, 255, .13);
    --violet: #9d8fff; --violet-soft: rgba(157, 143, 255, .14);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 16px 40px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .9);
    --aura-1: rgba(240, 180, 68, .10); --aura-2: rgba(110, 90, 255, .10);
    --ac: #f0b444; --ac-2: #ffd785; --ac-soft: rgba(240, 180, 68, .13); --ac-ink: #ffd88f; --on-ac: #2a1900;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07090f; --bg-2: #0b0e16; --surface: #10141e; --surface-2: #151a26; --surface-3: #1a2030;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13); --glass: rgba(14, 18, 27, .74);
  --text: #eef1f8; --text-2: #c2c8d6; --muted: #858da2;
  --up: #2fd6a2; --up-soft: rgba(47, 214, 162, .12); --down: #ff6b78; --down-soft: rgba(255, 107, 120, .13);
  --warn: #f6b13f; --warn-soft: rgba(246, 177, 63, .13); --info: #6ba6ff; --info-soft: rgba(107, 166, 255, .13);
  --violet: #9d8fff; --violet-soft: rgba(157, 143, 255, .14);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 16px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .9);
  --aura-1: rgba(240, 180, 68, .10); --aura-2: rgba(110, 90, 255, .10);
  --ac: #f0b444; --ac-2: #ffd785; --ac-soft: rgba(240, 180, 68, .13); --ac-ink: #ffd88f; --on-ac: #2a1900;
  color-scheme: dark;
}
/* رنگ‌های برند دیگر */
body[data-accent="emerald"] { --ac: #0c9a6a; --ac-2: #2fd6a2; --ac-soft: color-mix(in srgb, #2fd6a2 14%, transparent); --ac-ink: #0d7a55; --on-ac: #032417; --aura-1: rgba(47, 214, 162, .11); }
body[data-accent="violet"] { --ac: #6a55f0; --ac-2: #a597ff; --ac-soft: color-mix(in srgb, #8b7cff 15%, transparent); --ac-ink: #5240d0; --on-ac: #fff; --aura-1: rgba(139, 124, 255, .13); }
body[data-accent="blue"] { --ac: #2a72e8; --ac-2: #6ba6ff; --ac-soft: color-mix(in srgb, #4c9dff 15%, transparent); --ac-ink: #1d5cc4; --on-ac: #fff; --aura-1: rgba(76, 157, 255, .12); }
body[data-accent="rose"] { --ac: #e0457a; --ac-2: #ff86ac; --ac-soft: color-mix(in srgb, #ff6f91 15%, transparent); --ac-ink: #b8325f; --on-ac: #fff; --aura-1: rgba(255, 111, 145, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-accent] { --ac-ink: var(--ac-2); } }
:root[data-theme="dark"] body[data-accent] { --ac-ink: var(--ac-2); }
/* سازگاری با نام‌های قدیمی */
:root, body { --gold: var(--ac); --gold-2: var(--ac-2); --gold-soft: var(--ac-soft); --gold-ink: var(--ac-ink); }

/* ---------- پایه ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; direction: rtl; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 100% -10%, var(--aura-1), transparent 60%), radial-gradient(700px 500px at -10% 110%, var(--aura-2), transparent 60%); }
a { color: var(--ac-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.up { color: var(--up); } .down { color: var(--down); } .gold { color: var(--ac); } .violet { color: var(--violet); } .warn-t { color: var(--warn); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--ac-soft); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ltr { direction: ltr; text-align: left; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* ---------- پوسته ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 16px 14px 14px;
  border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.logo { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--on-ac); flex: none;
  background: conic-gradient(from 220deg, var(--ac-2), var(--ac), color-mix(in srgb, var(--ac) 70%, #000), var(--ac-2));
  box-shadow: 0 10px 24px -10px var(--ac), inset 0 1px 0 rgba(255, 255, 255, .35); }
.logo svg { width: 22px; height: 22px; stroke: var(--on-ac); }
.brand b { font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: .2px; line-height: 1; display: block; }
.brand span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 11px; color: var(--muted); padding: 14px 12px 6px; letter-spacing: .4px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nav-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 13px; color: var(--text-2);
  font-weight: 500; transition: background .15s, color .15s, transform .15s; text-decoration: none; position: relative; }
.nav a svg.i { width: 19px; height: 19px; opacity: .85; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, transparent, var(--ac-soft)); color: var(--text); font-weight: 700; }
.nav a.active svg.i { color: var(--ac); opacity: 1; }
.nav a.active::before { content: ""; position: absolute; right: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--ac); box-shadow: 0 0 12px var(--ac); }
.nav a .badge { margin-inline-start: auto; }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ver { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.ver b { color: var(--text); font-weight: 700; }
.ver .pill { font-size: 10.5px; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { display: flex; align-items: center; gap: 8px; min-height: var(--head-h);
  padding: 8px max(24px, env(safe-area-inset-right, 0px)) 8px max(24px, env(safe-area-inset-left, 0px)); }
.m-brand { display: none; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.m-brand .logo { width: 34px; height: 34px; border-radius: 11px; } .m-brand .logo svg { width: 19px; height: 19px; }
.m-brand b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1; }
.cmdk-btn { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 360px; height: 40px; padding: 0 12px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; text-align: right; }
.cmdk-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-btn kbd { font-size: 10.5px; }
.cmdk-btn:hover { border-color: var(--line-2); color: var(--text-2); }
.spacer { flex: 1; }
.ticker { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 10px max(24px, env(safe-area-inset-left, 0px));
  mask-image: linear-gradient(to left, #000 94%, transparent); -webkit-mask-image: linear-gradient(to left, #000 94%, transparent); }
.ticker::-webkit-scrollbar { display: none; }
.tick { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.tick .k { color: var(--muted); } .tick b { font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; padding: 0 11px; height: 36px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.live.on { color: var(--up); } .live.on i { background: var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex: none; position: relative; transition: border-color .15s, color .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg.i { width: 18px; height: 18px; }
.icon-btn .badge { position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; font-size: 10px; }
.snd-btn.on { color: var(--up); }
.mode-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; height: 36px; padding: 0 13px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mode-btn:hover { border-color: var(--ac); color: var(--text); }
.me-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 3px 3px 12px;
  cursor: pointer; color: var(--text); max-width: 180px; }
.me-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--ac-2), var(--ac)); color: var(--on-ac); flex: none; }
.avatar.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--up); }
.avatar.bale { background: linear-gradient(135deg, #17b26a, #0d8a52); color: #fff; } .avatar.tg { background: linear-gradient(135deg, #3aa0e8, #2577c4); color: #fff; }
.avatar svg.i { width: 18px; height: 18px; }

/* منوی بازشو (اعلان‌ها و حساب) */
.pop { position: fixed; z-index: 80; width: min(400px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 90px)); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-lg); animation: rise .16s ease-out; }
.pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pop-h b { font-size: 15px; }
.pop .feed li { padding: 12px 16px; }
.pop .feed li.unread { background: var(--ac-soft); }
.menu-list { display: flex; flex-direction: column; padding: 8px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 0; background: none;
  cursor: pointer; color: var(--text-2); text-align: right; text-decoration: none; font-size: 14px; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); color: var(--text); }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-list .danger { color: var(--down); }
.swatches { display: flex; gap: 8px; padding: 6px 12px 10px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatches button.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }

.announce { margin: 14px max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }
.main { padding-block: 22px 90px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px));
  max-width: 1480px; width: 100%; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.page-head .crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.2px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ---------- کارت‌ها ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; position: relative; }
.card::before { content: ""; position: absolute; inset: 0 24px auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ac) 40%, transparent), transparent); opacity: .7; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-h h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.card-h h2 svg.i { color: var(--ac); width: 19px; height: 19px; }
.card-b { padding: 14px 20px 20px; }
.card-b.flush { padding: 0 0 6px; }
.card .hint { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .lbl svg.i { width: 16px; height: 16px; color: var(--ac); }
.kpi .val { font-size: 26px; font-weight: 800; letter-spacing: -.4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi .spark { display: block; width: 100%; height: 42px; margin-top: 8px; pointer-events: none; }
.kpi .val .u { font-size: 12px; font-weight: 500; color: var(--muted); }

.hero { padding: 22px; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent, var(--ac)) 16%, transparent), transparent 70%), var(--surface); }
.hero.usdt { --accent: var(--violet); }
.hero .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent, var(--ac)); }
.hero h3 { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.35; }
.hero .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero .pair > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.hero .pair .k { font-size: 12px; color: var(--muted); }
.hero .pair b { display: block; font-size: 15px; } .hero .pair .num { font-size: 18px; font-weight: 800; }
.hero .why { font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 14px; padding: 11px 13px; border: 1px dashed var(--line-2); }

/* ---------- برچسب‌ها ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.9; }
.pill.buy, .pill.good { background: var(--up-soft); color: var(--up); } .pill.sell { background: var(--warn-soft); color: var(--warn); }
.pill.normal, .pill.mute { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.learning { background: var(--info-soft); color: var(--info); } .pill.bad { background: var(--down-soft); color: var(--down); }
.pill.gold { background: var(--ac-soft); color: var(--ac-ink); } .pill.violet { background: var(--violet-soft); color: var(--violet); }
.pill.stale { font-family: ui-monospace, monospace; letter-spacing: .02em; direction: ltr; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--down); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tg { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); line-height: 1.7; border: 1px solid var(--line); }
.tg svg.i { width: 13px; height: 13px; flex: none; }
.tg.live, .tg.good { background: var(--up-soft); color: var(--up); border-color: transparent; } .tg.good { font-weight: 600; }
.tg.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tg.bad { background: var(--down-soft); color: var(--down); font-weight: 700; border-color: transparent; }
.tg.mute { color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-inline-end: 2px; background: var(--muted); flex: none; }
.hd.green { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.hd.yellow { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.hd.red { background: var(--down); box-shadow: 0 0 0 3px var(--down-soft); animation: hdp 1.4s infinite; }
.hd.manual { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
@keyframes hdp { 50% { opacity: .35; } }
.star { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px; display: inline-grid; place-items: center; border-radius: 8px; }
.star svg.i { width: 17px; height: 17px; } .star.on { color: var(--ac); } .star.on svg.i { fill: currentColor; }

/* ---------- جدول ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .2px; }
tbody tr { transition: background .15s; } tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: left; }
.name-cell { display: flex; align-items: center; gap: 11px; }
.mono-av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none;
  background: var(--ac-soft); color: var(--ac-ink); }
.mono-av.v { background: var(--violet-soft); color: var(--violet); }
.price-b { font-weight: 800; font-size: 15.5px; }
.flash-up { animation: fup .9s ease-out; } .flash-down { animation: fdown .9s ease-out; }
@keyframes fup { 0% { color: var(--up); } 100% { color: inherit; } }
@keyframes fdown { 0% { color: var(--down); } 100% { color: inherit; } }
table.matrix { border-collapse: separate; border-spacing: 5px; }
table.matrix th, table.matrix td { border: 0; padding: 8px 10px; }
table.matrix td.cell { text-align: center; border-radius: 14px; background: var(--surface-2); min-width: 108px; position: relative; }
table.matrix td.cell .g { font-weight: 800; font-size: 14px; display: block; }
table.matrix td.cell .p { font-size: 11.5px; }
table.matrix td.cell .lt { display: block; font-size: 10.5px; opacity: .8; margin-top: 2px; }
table.matrix th .tiny { display: block; margin-top: 2px; }
td.cell.win { background: var(--up-soft); color: var(--up); } td.cell.raw { background: var(--warn-soft); color: var(--warn); }
td.cell.lose { color: var(--muted); } td.cell.self { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
table.matrix tbody th { text-align: right; } table.matrix thead th { text-align: center; }
.exdot { position: absolute; top: 6px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; padding: 4px 20px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw.win { background: var(--up-soft); border: 1px solid var(--up); } .sw.raw { background: var(--warn-soft); border: 1px solid var(--warn); }
.sw.lose { background: var(--surface-2); border: 1px solid var(--line-2); }

/* ---------- فرصت‌ها و فهرست سیگنال ---------- */
.opp { display: flex; gap: 14px; align-items: flex-start; padding: 15px 20px; border-top: 1px solid var(--line); }
.opp:first-child { border-top: 0; }
.opp .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--ac-soft); color: var(--ac-ink); }
.opp .ic.v { background: var(--violet-soft); color: var(--violet); }
.opp .txt { flex: 1; min-width: 0; } .opp .txt > b { display: block; font-size: 14.5px; }
.opp .amt { text-align: left; flex: none; } .opp .amt b { font-size: 17px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.feed .body { flex: 1; min-width: 0; white-space: pre-line; font-size: 13.5px; overflow-wrap: anywhere; }
.feed .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--text-2); transition: .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.wide { display: flex; width: 100%; overflow-x: auto; } .seg.wide button { flex: 1; white-space: nowrap; justify-content: center; }
.seg .cdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- فرم ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface);
  padding: 9px 16px; border-radius: 13px; cursor: pointer; font-weight: 700; white-space: nowrap; color: var(--text); transition: transform .08s, background .15s, filter .15s; text-decoration: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--ac-2), var(--ac)); color: var(--on-ac); border-color: transparent; box-shadow: 0 10px 24px -12px var(--ac); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.violet { background: var(--violet); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; } .btn.danger { color: var(--down); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 11px; }
.btn.xs { padding: 3px 10px; font-size: 12px; border-radius: 10px; gap: 4px; }
.btn.xs svg.i { width: 14px; height: 14px; }
.btn.big { padding: 14px 20px; font-size: 15.5px; border-radius: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.loading { opacity: .7; pointer-events: none; }
.btn svg.i { width: 17px; height: 17px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px 16px; }
.form.one { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.field .help { font-size: 11.5px; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=range]), .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 13px; padding: 10px 13px; width: 100%; transition: border-color .15s, box-shadow .15s; min-height: 44px; }
.input.sm { padding: 6px 10px; font-size: 13px; min-height: 0; width: 100%; max-width: 170px; }
select.input.sm { max-width: 200px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac) 18%, transparent); }
.field textarea { min-height: 84px; font-family: ui-monospace, monospace; font-size: 12px; direction: ltr; }
.rtl-ta { font-family: var(--font) !important; direction: rtl !important; font-size: 14px !important; min-height: 110px; }
input[type=range] { accent-color: var(--ac); width: 100%; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked { background: var(--up); } .switch input:checked::after { transform: translateX(-18px); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--ac); width: 18px; height: 18px; }
.input-row { display: flex; gap: 8px; align-items: stretch; } .input-row input { flex: 1; min-width: 0; } .input-row .btn { flex: none; }
.input-ic { position: relative; display: flex; align-items: center; }
.input-ic > svg.i { position: absolute; right: 14px; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.field .input-ic input:not([type=checkbox]):not([type=range]) { padding-right: 44px; padding-left: 50px; height: 52px; }
.eye { position: absolute; left: 6px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--text); background: var(--surface-2); }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.field summary { font-weight: 700; color: var(--text-2); padding: 6px 0; }
details.field .form .help.wide { grid-column: 1 / -1; }
.capf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.capf label { color: var(--muted); }
.capf input { width: 150px; padding: 6px 10px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; }

.note { padding: 12px 14px; border-radius: 16px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.note svg.i { margin-top: 2px; flex: none; }
.note.info { background: var(--info-soft); color: var(--text-2); } .note.info svg.i { color: var(--info); }
.note.warn { background: var(--warn-soft); color: var(--text-2); } .note.warn svg.i { color: var(--warn); }
.note.gold { background: var(--ac-soft); color: var(--text-2); } .note.gold svg.i { color: var(--ac); }
.note.good { background: var(--up-soft); color: var(--text-2); } .note.good svg.i { color: var(--up); }
.note.bad { background: var(--down-soft); color: var(--down); } .note.bad b { color: inherit; }
.explain { border-top: 1px solid var(--line); padding: 13px 20px; font-size: 12.5px; color: var(--muted); }
.explain b { color: var(--text-2); }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.result { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-top: 16px; }
.result > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; }
.result .k { font-size: 12px; color: var(--muted); } .result .v { font-weight: 800; font-size: 16px; }
.big-verdict { margin-top: 16px; padding: 16px; border-radius: 18px; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.big-verdict.win { background: var(--up-soft); } .big-verdict.lose { background: var(--down-soft); }
.big-verdict b { font-size: 22px; }
pre.raw { direction: ltr; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; max-height: 240px; overflow: auto; font-size: 11px; white-space: pre-wrap; word-break: break-all; }
.paths { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.paths div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: 12px; align-items: center; }
.paths code { direction: ltr; font-size: 11px; overflow-wrap: anywhere; }
.chartbox { position: relative; height: 380px; }
.codebox { font-family: var(--display); font-size: 34px; letter-spacing: 6px; direction: ltr; text-align: center; padding: 12px; border-radius: 16px; background: var(--ac-soft); color: var(--ac-ink); }
.sigcard { width: 100%; border-radius: 16px; display: block; border: 1px solid var(--line); }
.steps { padding-inline-start: 20px; margin: 12px 0 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.steps.big { display: grid; gap: 10px; padding-inline-start: 22px; margin: 14px 0; line-height: 1.9; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 2px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px; font: 600 11.5px ui-monospace, monospace; text-align: center; background: var(--surface); color: var(--text); }

/* ---------- پنجره، اعلان کوچک و پالت فرمان ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 7, 12, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center;
  padding: max(30px, env(safe-area-inset-top, 0px)) 12px 30px; overflow: auto; z-index: 60; animation: fade .15s; overscroll-behavior: contain; }
.modal { background: var(--surface); border-radius: 26px; width: min(880px, 100%); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: rise .2s ease-out; }
.modal .mh { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .mh b { font-size: 16px; }
.modal .mb { padding: 18px 22px; } .modal .mf { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.modal .mf:empty { display: none; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.toasts { position: fixed; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; white-space: pre-line; font-size: 13.5px; }
.toast.sig { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-inline-start: 4px solid var(--ac); }
.cmdk { width: min(620px, 100%); margin-top: 8vh; }
.cmdk .cin { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmdk .cin input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; min-width: 0; }
.cmdk ul { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 60dvh); overflow: auto; }
.cmdk li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cmdk li .g { margin-inline-start: auto; font-size: 11.5px; color: var(--muted); }
.cmdk li.on, .cmdk li:hover { background: var(--ac-soft); }
.cmdk li svg.i { color: var(--muted); } .cmdk li.on svg.i { color: var(--ac); }
.term { border-bottom: 1.5px dotted currentColor; cursor: help; }
.term-pop { position: absolute; z-index: 96; background: var(--text); color: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.8; box-shadow: var(--shadow-lg); }
.term-pop b { display: block; margin-bottom: 2px; color: var(--ac-2); }

/* ---------- ورود ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--bg); }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 46px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: radial-gradient(700px 440px at 85% 0%, color-mix(in srgb, var(--ac) 60%, transparent), transparent 60%), radial-gradient(620px 520px at 0% 100%, rgba(109, 93, 245, .55), transparent 60%), #06080d; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%); pointer-events: none; }
.art-top, .art-mid, .art-feats { position: relative; }
.art-top { display: flex; align-items: center; gap: 12px; } .art-name { font-family: var(--display); font-size: 30px; font-weight: 400; }
.art-mid h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1.22; margin: 0 0 14px; }
.art-mid h2 span { background: linear-gradient(90deg, #fff1c8, var(--ac-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-mid p { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, .75); font-size: 15px; }
.art-feats { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.art-feats li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.art-feats svg.i { width: 17px; height: 17px; color: var(--ac-2); }
.logo.lg { width: 50px; height: 50px; border-radius: 16px; } .logo.lg svg { width: 28px; height: 28px; }
.login-form { display: grid; place-items: center; padding: 32px 24px; }
.login-form form { width: min(410px, 100%); display: flex; flex-direction: column; gap: 16px; }
.lf-brand { display: none; align-items: center; gap: 10px; }
.lf-brand b { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1; } .lf-brand span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.lf-head h1 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0 0 6px; } .lf-head p { margin: 0; color: var(--muted); font-size: 14px; }
.lerr { min-height: 20px; color: var(--down); font-size: 13px; font-weight: 600; }
.lf-foot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 4px 0 0; flex-wrap: wrap; }
.lf-foot svg.i { width: 14px; height: 14px; }

/* ---------- مدیریت ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 12px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
.stat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.stat .ic.up { background: var(--up-soft); color: var(--up); border-color: transparent; } .stat .ic.down { background: var(--down-soft); color: var(--down); border-color: transparent; }
.stat .ic.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; } .stat div > span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); padding: 9px 15px; border-radius: 13px; cursor: pointer; font-weight: 700; }
.tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs svg.i { width: 17px; height: 17px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search svg.i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search input { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 13px; padding: 9px 38px 9px 12px; min-height: 42px; }
.ulist { display: flex; flex-direction: column; }
.urow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 13px 20px; border: 0; border-top: 1px solid var(--line);
  background: transparent; text-align: right; cursor: pointer; width: 100%; color: inherit; }
.urow:first-child { border-top: 0; } .urow:hover { background: var(--surface-2); } .urow.static { cursor: default; grid-template-columns: auto minmax(0, 1fr) auto auto; }
.u-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.u-name { display: flex; align-items: center; gap: 6px; min-width: 0; } .u-name .pill { flex: none; } .u-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-main .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-sub { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 120px; }
.bar { width: 120px; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ac-2), var(--up)); border-radius: 9px; }
.u-dev { display: flex; flex-direction: column; align-items: center; line-height: 1.3; } .u-dev .num { font-weight: 800; }
.u-go svg.i { color: var(--muted); }
.act { flex-wrap: nowrap; }
.subbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.subbox > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.subbox b { font-size: 17px; } .subbox b.num { font-size: 26px; font-weight: 800; }
.subbox.expired > div:first-child { border-color: var(--down); } .subbox.expiring > div:first-child { border-color: var(--warn); }
.sub-h { font-size: 14px; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.sub-h svg.i { color: var(--ac); width: 18px; height: 18px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin: 16px 0 0; }
.facts div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; min-width: 0; } .facts dt { font-size: 12px; color: var(--muted); } .facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.devlist { display: flex; flex-direction: column; gap: 8px; }
.dev { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.dev .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--text-2); }
.dev .ic.up { color: var(--up); } .dev .ic.down { color: var(--down); }
.dev .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dev .txt b { overflow-wrap: anywhere; }
.mini-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.mini-stats b { color: var(--text); margin-inline-start: 4px; }
.plans { display: grid; gap: 8px; margin-bottom: 8px; }
.plan-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto auto; gap: 8px; align-items: center; }
.meter { height: 8px; border-radius: 9px; background: var(--surface-3); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--up), var(--ac)); }
.svc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.svc b { font-size: 14px; }
.guide { counter-reset: g; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide li { counter-increment: g; position: relative; padding: 14px 16px 14px 16px; padding-inline-start: 58px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.guide li::before { content: counter(g, persian); position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; background: var(--ac-soft); color: var(--ac-ink); }
.guide li b { display: block; margin-bottom: 2px; }
.guide code, .code { direction: ltr; unicode-bidi: isolate; display: inline-block; background: var(--surface-3); padding: 1px 7px; border-radius: 7px; font: 12px ui-monospace, monospace; }
.tpl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.tpl button { text-align: right; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--text); }
.tpl button:hover { border-color: var(--ac); }
.tpl button span { font-size: 12px; color: var(--muted); }

/* ---------- خانه و ابزارها ---------- */
.qa { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.qa-i { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: .15s; box-shadow: var(--shadow); }
.qa-i:hover { border-color: var(--ac); transform: translateY(-2px); text-decoration: none; }
.qa-i svg.i { width: 22px; height: 22px; color: var(--ac); margin-bottom: 4px; }
.qa-i b { font-size: 14px; } .qa-i span { font-size: 12px; color: var(--muted); }
.welcome { border-color: color-mix(in srgb, var(--ac) 50%, transparent); background: radial-gradient(600px 220px at 100% 0%, var(--ac-soft), transparent 70%), var(--surface); }
.favs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.favs::-webkit-scrollbar { display: none; }
.fav { flex: none; min-width: 170px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.fav .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; } .fav b { font-size: 17px; font-weight: 800; }
.coin-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .3px; direction: ltr; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.coin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.coin-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: right; color: var(--text); }
.coin-tile.on { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft), var(--shadow); }
.coin-tile .top { display: flex; align-items: center; gap: 10px; } .coin-tile b { font-size: 15px; } .coin-tile .num { font-size: 17px; font-weight: 800; }
.conv { display: grid; gap: 10px; }
.conv .crow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.conv .crow label { font-weight: 700; font-size: 13px; }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.gloss.one { grid-template-columns: 1fr; gap: 8px; }
.gloss div { display: flex; flex-direction: column; } .gloss.one div { flex-direction: row; gap: 12px; align-items: center; }
.gloss dt { font-weight: 800; } .gloss dd { margin: 0; color: var(--text-2); font-size: 13.5px; }
.gloss.one dt { min-width: 110px; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; } details.faq:first-child { border-top: 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
details.faq p { margin: 8px 0 0; color: var(--text-2); }
details.tri { border-top: 1px solid var(--line); padding: 13px 20px; }
details.tri:first-child { border-top: 0; }
details.tri summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; flex-wrap: wrap; color: var(--text); }
details.tri summary::-webkit-details-marker { display: none; }
details.tri .t { flex: 1; min-width: 200px; font-weight: 600; }
details.tri .amt { display: flex; flex-direction: column; align-items: flex-end; }
.legs { margin: 10px 0 4px; padding-inline-start: 0; list-style: none; display: grid; gap: 6px; }
.legs li { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.install { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.install .logo { width: 46px; height: 46px; }

/* ---------- میز عملیات ---------- */
body.desk-mode .side, body.desk-mode .topbar, body.desk-mode .tabbar, body.desk-mode .announce { display: none !important; }
body.desk-mode .app { grid-template-columns: 1fr; }
body.desk-mode .main { max-width: none; padding: 0; }
.desk { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 16px;
  padding: max(18px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
.dhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dhead .dlist { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.dhead .dlist .chip { flex: none; }
.dbank { background: var(--down-soft); color: var(--down); font-weight: 700; padding: 10px 16px; border-radius: 16px; text-align: center; }
.dmain { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.dcol { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; box-shadow: var(--shadow); }
.dcol.buy { border-top: 6px solid var(--up); } .dcol.sell { border-top: 6px solid var(--ac); }
.dcol .dstep { color: var(--muted); font-weight: 700; }
.dcol h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.2; }
.dprice { font-size: clamp(34px, 4.6vw, 66px); font-weight: 900; line-height: 1.1; }
.dprice small { font-size: 15px; font-weight: 600; color: var(--muted); margin-inline-start: 8px; }
.dcopy { display: flex; flex-wrap: wrap; gap: 8px; }
.dmid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.dprofit { font-size: clamp(44px, 6vw, 86px); font-weight: 900; line-height: 1; direction: ltr; }
.dpt { font-size: 20px; font-weight: 800; }
.dact { display: grid; gap: 10px; width: 100%; margin-top: 8px; }
.dfoot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; color: var(--muted); font-size: 12.5px; }

/* ---------- نمای ساده و فشرده ---------- */
body.simple .adv { display: none !important; }
body.simple table.px th:nth-child(n+5), body.simple table.px td:nth-child(n+5) { display: none !important; }
body.compact { font-size: 13.5px; }
body.compact .card-b { padding: 10px 16px 14px; } body.compact .card-h { padding: 14px 16px 0; }
body.compact th, body.compact td { padding: 9px 12px; }
body.compact .opp, body.compact .feed li { padding-block: 10px; }
body.compact .main { gap: 12px; }

/* ---------- نوار پایین (گوشی) و منوی پایین ---------- */
.tabbar { display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(5, 7, 12, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .15s; display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 88dvh; overflow: auto; background: var(--surface); border-radius: 28px 28px 0 0; border-top: 1px solid var(--line-2);
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); animation: up .22s ease-out; overscroll-behavior: contain; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 2px auto 12px; }
.sheet h4 { margin: 14px 4px 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.sheet .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet .tiles a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; text-align: center; }
.sheet .tiles a svg.i { width: 22px; height: 22px; color: var(--ac); }
.sheet .tiles a.active { border-color: var(--ac); background: var(--ac-soft); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

@media (max-width: 1100px) { :root { --side-w: 236px; } .qa { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form { padding: max(24px, env(safe-area-inset-top, 0px)) 18px 32px; align-items: start; padding-top: 11vh;
    background: radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--ac) 18%, transparent), transparent 70%), radial-gradient(400px 300px at 0% 100%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%); }
  .lf-brand { display: flex; }
  .lf-head h1 { font-size: 30px; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .m-brand { display: flex; }
  .cmdk-btn { flex: 0 0 auto; width: 40px; padding: 0; justify-content: center; } .cmdk-btn span, .cmdk-btn kbd { display: none; }
  .topbar .live, .topbar .mode-btn, .topbar .me-btn > span:first-child, .topbar .theme-btn, .topbar .snd-btn { display: none; }
  .me-btn { padding: 2px; border-radius: 50%; }
  .topbar-in { padding: 8px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px)); min-height: 58px; gap: 6px; }
  .ticker { padding: 0 max(14px, env(safe-area-inset-right, 0px)) 9px max(14px, env(safe-area-inset-left, 0px)); }
  .announce { margin: 12px max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); }
  .main { padding-block: 16px calc(120px + env(safe-area-inset-bottom, 0px)); padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); gap: 14px; }
  .page-head h1 { font-size: 28px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; position: fixed; z-index: 50;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--glass); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--line-2); border-radius: 24px; padding: 6px; box-shadow: var(--shadow-lg); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); padding: 6px 0 4px;
    border: 0; background: none; text-decoration: none; position: relative; border-radius: 16px; font-weight: 600; min-width: 0; }
  .tabbar svg.i { width: 22px; height: 22px; }
  .tabbar .on { color: var(--ac-ink); }
  .tabbar .on::before { content: ""; position: absolute; inset: 2px 10%; border-radius: 14px; background: var(--ac-soft); z-index: -1; }
  .tabbar .fab { margin-top: -26px; }
  .tabbar .fab i { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: var(--on-ac);
    background: linear-gradient(180deg, var(--ac-2), var(--ac)); box-shadow: 0 12px 26px -10px var(--ac), 0 0 0 5px var(--bg); }
  .tabbar .fab.on::before { display: none; }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% - 22px); min-width: 17px; height: 17px; font-size: 10px; }
  .hero .pair { grid-template-columns: 1fr; }
  .kpi .val { font-size: 23px; }
  .opp { flex-wrap: wrap; } .opp .amt { text-align: right; width: 100%; padding-inline-start: 54px; }
  .dmain { grid-template-columns: 1fr; } .dmid { order: -1; } .dfoot { display: none; }
  .dcol { padding: 20px; border-radius: 24px; }
}
@media (min-width: 961px) { .menu-btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  table.rt thead { display: none; }
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  table.rt tbody tr:first-child { border-top: 0; }
  table.rt td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; white-space: normal; text-align: left; min-height: 32px; }
  table.rt td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; flex: none; max-width: 48%; }
  table.rt td:first-child { padding-top: 2px; } table.rt td:first-child::before { display: none; }
  table.rt td:first-child > * { width: 100%; }
  table.rt td[data-label=""]::before { display: none; }
  table.rt td:empty { display: none; }
  table.rt td.n, table.rt td { text-align: left; }
  table.rt td .name-cell { justify-content: flex-start; }
  table.rt td[colspan] { display: block; text-align: right; } table.rt td[colspan]::before { display: none; }
  table.rt td .spark { width: 140px; height: 34px; }
  table.rt td .input.sm { max-width: 60%; font-size: 16px; }
  table.rt td .row.act { flex-wrap: wrap; justify-content: flex-end; }
  .card { border-radius: 20px; }
  .card-h { padding: 15px 16px 0; } .card-b { padding: 12px 16px 16px; }
  .urow { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
  .urow .u-sub { grid-column: 2 / 4; grid-row: 2; flex-direction: row; align-items: center; min-width: 0; }
  .urow .u-dev { grid-column: 3; grid-row: 1; } .urow .u-go { display: none; }
  .urow.static { grid-template-columns: auto minmax(0, 1fr); } .urow.static .u-sub { grid-column: 2; } .urow.static .act { grid-column: 1 / 3; justify-content: flex-end; }
  .bar { width: 80px; }
  .search { max-width: none; width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; } .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .seg { max-width: 100%; overflow-x: auto; } .seg button { white-space: nowrap; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 94dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal .mf { position: sticky; bottom: 0; background: var(--surface); }
  .modal .mf .btn { flex: 1; }
  .cmdk { margin-top: 0; }
  .page-head .row { width: 100%; } .page-head .row .btn { flex: 1; }
  .stat { padding: 12px; } .stat b { font-size: 19px; } .stat .ic { width: 38px; height: 38px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp { padding: 13px 16px; } .opp .amt { padding-inline-start: 54px; }
  .feed li { padding: 12px 16px; }
  .explain { padding: 12px 16px; }
  .field input:not([type=checkbox]):not([type=range]), .field select, .field textarea, .search input, .input, .capf input, .cmdk .cin input { font-size: 16px; }
  .btn { min-height: 42px; } .btn.sm { min-height: 36px; } .btn.xs { min-height: 30px; }
  .check { padding: 12px; }
  .qa { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .qa-i { padding: 12px 10px; align-items: center; text-align: center; border-radius: 16px; } .qa-i span { display: none; } .qa-i b { font-size: 12.5px; }
  .gloss { grid-template-columns: 1fr; }
  .capf { width: 100%; } .capf input { flex: 1; width: auto; min-width: 0; }
  .plan-row { grid-template-columns: minmax(0, 1fr) 90px auto; } .plan-row .tiny { display: none; }
  .conv .crow { grid-template-columns: minmax(0, 1fr) 120px; }
  .pop { right: 12px !important; left: 12px !important; width: auto; top: calc(66px + env(safe-area-inset-top, 0px)) !important; }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sheet .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* نسخه نصب‌شده (PWA): فاصله از لبه‌های گوشی */
@media (display-mode: standalone) { .topbar { padding-top: env(safe-area-inset-top, 0px); } }
.coin-tile .ltr-inline { margin-inline-start: 4px; }
@media (max-width: 760px) {
  .coin-tiles { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 2px; scroll-snap-type: x proximity; }
  .coin-tiles::-webkit-scrollbar { display: none; }
  .coin-tile { flex: none; width: 168px; padding: 12px 14px; scroll-snap-align: start; }
  .coin-tile .num { font-size: 15px; }
}


/* =====================================================================
   UI 1.1
   ===================================================================== */
.pill.info { background: var(--info-soft); color: var(--info); }
.violet-t { color: var(--violet); font-weight: 700; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.sec-h h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; } .sec-h h2 svg.i { color: var(--ac); }

/* ---------- اعلان کوتاه با دکمه بستن ---------- */
.toast { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 14px 14px; overflow: hidden;
  transition: transform .2s ease, opacity .2s ease; touch-action: pan-y; }
.toast .t-body { flex: 1; min-width: 0; line-height: 1.75; }
.toast .t-title { display: block; font-size: 13px; margin-bottom: 2px; }
.toast .t-x { flex: none; width: 28px; height: 28px; margin: -3px -2px 0 0; border-radius: 9px; border: 0; display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; cursor: pointer; opacity: .75; }
.toast .t-x:hover { opacity: 1; } .toast .t-x svg.i { width: 15px; height: 15px; }
.toast .t-bar { position: absolute; inset: auto 0 0 0; height: 3px; background: color-mix(in srgb, currentColor 30%, transparent);
  transform-origin: right; animation: t-shrink linear forwards; }
.toast.sig .t-bar { background: var(--ac); }
.toast.hold .t-bar { animation-play-state: paused; }
.toast.out { opacity: 0; transform: translateY(8px) scale(.97); }
@keyframes t-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- داشبورد ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.home > * { min-width: 0; }
.pulse { padding: 22px 22px 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, var(--ac-soft), transparent 55%), var(--surface); }
.pulse-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pulse-h h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.pulse-h p { margin: 4px 0 0; font-size: 13.5px; }
.pulse-meta { display: flex; align-items: center; gap: 8px; }
.pulse-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pulse-i { background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px 0;
  display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.pulse-i .lbl { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.pulse-i .lbl svg.i { width: 15px; height: 15px; color: var(--ac); }
.pulse-i .val { font-size: 21px; font-weight: 800; display: flex; align-items: baseline; gap: 4px; letter-spacing: -.3px; }
.pulse-i .val small { font-size: 11px; color: var(--muted); font-weight: 500; }
.pulse-i .sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-i .spark { display: block; width: calc(100% + 28px); margin: 6px -14px 0; height: 34px; pointer-events: none; }

.spot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; overflow: hidden; }
.spot-b { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.spot-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.spot-k svg.i { color: var(--ac); width: 17px; height: 17px; }
.spot-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.spot-route > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 0; }
.spot-route .k { font-size: 11.5px; color: var(--muted); } .spot-route b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-route .num { font-size: 15px; font-weight: 700; color: var(--text-2); }
.spot-arr { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-soft); color: var(--ac-ink); }
.spot-p { min-width: 210px; padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
  border-inline-start: 1px solid var(--line); background: var(--surface-2); }
.spot.win .spot-p { background: linear-gradient(160deg, var(--up-soft), transparent 90%); }
.spot-p .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.spot-p > b { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.6px; line-height: 1.1; }
.spot-p.up > b { color: var(--up); } .spot-p.down > b { color: var(--down); }
.spot-p .btn { margin-top: 8px; }

.qa { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; grid-template-columns: none; }
.qa::-webkit-scrollbar { display: none; }
.qa-i { flex: none; flex-direction: row; align-items: center; gap: 8px; padding: 10px 16px 10px 18px; border-radius: 999px; box-shadow: none; }
.qa-i svg.i { width: 18px; height: 18px; margin: 0; } .qa-i b { font-size: 13px; white-space: nowrap; }
.qa-i:hover { transform: none; background: var(--ac-soft); }

/* ---------- کارت سیگنال ---------- */
.sg { --tone: var(--info); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; min-width: 0; }
.sg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tone); opacity: .85; }
.sg-win { --tone: var(--up); } .sg-lose { --tone: var(--down); } .sg-alert { --tone: var(--down); } .sg-buy { --tone: var(--up); } .sg-sell { --tone: var(--warn); }
.sg header { display: flex; align-items: center; gap: 10px; }
.sg-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 17px;
  background: color-mix(in srgb, var(--tone) 14%, transparent); }
.sg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .sg-t b { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sg-pct { font-weight: 900; font-size: 17px; direction: ltr; padding: 2px 10px; border-radius: 10px; background: var(--surface-2); }
.sg-pct.up { color: var(--up); background: var(--up-soft); } .sg-pct.down { color: var(--down); background: var(--down-soft); }
.sg-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.sg-route.single { grid-template-columns: 1fr; }
.sg-route .leg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sg-route .leg.buy { border-top: 3px solid var(--up); } .sg-route .leg.sell { border-top: 3px solid var(--ac); }
.sg-route .k { font-size: 11px; color: var(--muted); font-weight: 700; }
.sg-route .leg > b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-route .pr { font-size: 17px; font-weight: 800; }
.sg-arr { align-self: center; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sg-arr svg.i { width: 16px; height: 16px; }
.vol { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 1px; }
.vol .k { font-size: 10.5px; } .vol b { font-size: 14px; } .vol b small { font-size: 11px; color: var(--muted); font-weight: 500; }
.vol.none { font-size: 11px; color: var(--muted); }
.sg-pair { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; } .sg-pair b { color: var(--text); font-size: 15px; }
.sg-vols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-legs { margin: 0; padding: 0 18px 0 0; display: grid; gap: 6px; font-size: 13px; }
.sg-legs li { display: flex; justify-content: space-between; gap: 10px; } .sg-legs small { color: var(--muted); }
.sg-text { margin: 0; white-space: pre-line; font-size: 13px; color: var(--text-2); }
.sg-profit { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.sg-profit .pm { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--tone) 8%, var(--surface-2)); }
.sg-profit .k { font-size: 11px; color: var(--muted); font-weight: 700; }
.sg-profit b { font-size: 18px; font-weight: 900; } .sg-profit b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.sg-msg summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.sg-msg div { white-space: pre-line; font-size: 12.5px; color: var(--text-2); margin-top: 6px; background: var(--surface-2); padding: 10px 12px; border-radius: 12px; }
.sg .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sg.mini { padding: 12px 14px; gap: 9px; box-shadow: none; background: var(--surface-2); border-radius: 18px; }
.sg.mini .leg { background: var(--surface); padding: 8px 10px; } .sg.mini .pr { font-size: 14.5px; } .sg.mini .sg-ic { width: 32px; height: 32px; font-size: 15px; }
.sg.mini .sg-profit .pm { background: var(--surface); padding: 8px 10px; } .sg.mini .sg-profit b { font-size: 15.5px; } .sg.mini .sg-pct { font-size: 14px; }
.sg-mini { display: grid; gap: 10px; padding-top: 12px; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 14px; align-items: start; }
.sg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sgs-i { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); }
.sgs-i span { font-size: 12px; color: var(--muted); } .sgs-i b { font-size: 22px; font-weight: 900; } .sgs-i small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sg-bar .seg { flex: 1 1 380px; } .sg-q { flex: 1 1 220px; }
details.card > summary { list-style: none; cursor: pointer; padding-bottom: 16px; } details.card > summary::-webkit-details-marker { display: none; }

/* ---------- اشتراک‌ها ---------- */
.tier { display: inline-flex; align-items: center; gap: 5px; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.9;
  --t: #7C6CF2; color: color-mix(in srgb, var(--t) 70%, var(--text)); background: color-mix(in srgb, var(--t) 16%, transparent); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); }
.t-gold { --t: #E8B33C; } .t-silver { --t: #A9B4C2; } .t-bronze { --t: #C8814A; } .t-custom { --t: #7C6CF2; }
.urow .tier { flex: none; }
.plan-card { border-radius: 18px; padding: 14px 16px; margin-top: 14px; border: 1px solid color-mix(in srgb, var(--t) 35%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--t) 14%, transparent), transparent 70%); }
.pc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pu { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pu span { font-size: 11.5px; color: var(--muted); } .pu b { font-size: 14px; }
.meter { display: block; height: 6px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.meter s { display: block; height: 100%; background: var(--up); border-radius: inherit; text-decoration: none; transition: width .3s; }
.meter.warn s { background: var(--warn); } .meter.full s { background: var(--down); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.plan-ed { overflow: hidden; border-top: 5px solid var(--t); }
.pe-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t) 14%, transparent), transparent); }
.pe-medal { font-size: 30px; line-height: 1; }
.pe-name { border: 0; background: transparent; font: inherit; font-size: 19px; font-weight: 900; color: var(--text); width: 100%; padding: 2px 0; border-bottom: 1px dashed transparent; }
.pe-name:focus { outline: 0; border-bottom-color: var(--ac); }
.pe-h select { width: auto; }
.pe-sub { font-size: 13px; margin: 18px 0 8px; display: flex; gap: 6px; align-items: center; } .pe-sub svg.i { color: var(--ac); width: 16px; height: 16px; }
.pe-secs { display: flex; flex-wrap: wrap; gap: 6px; }
.tgl { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; }
.pe-secs .tgl { padding: 5px 11px 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.pe-secs .tgl:has(input:checked) { border-color: color-mix(in srgb, var(--t) 60%, var(--line)); background: color-mix(in srgb, var(--t) 14%, var(--surface)); }
.tgl input { width: 16px; height: 16px; accent-color: var(--ac); margin: 0; }
.pe-lim { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pe-lim label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pe-lim input { text-align: center; font-weight: 800; }

/* ---------- افزودن سریع منبع ---------- */
.qadd-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; width: 100%; text-align: inherit; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(120deg, var(--ac-soft), transparent 70%), var(--surface); }
.qadd-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.qadd-banner:hover { border-color: var(--ac); }
.qb-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--ac); color: var(--on-ac); flex: none; }
.qa-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.qa-steps span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 6px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.qa-steps span.on { background: var(--ac-soft); color: var(--ac-ink); }
.kpick { display: flex; flex-wrap: wrap; gap: 6px; }
.kpick label { cursor: pointer; } .kpick input { position: absolute; opacity: 0; pointer-events: none; }
.kpick span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.kpick span svg.i { width: 16px; height: 16px; color: var(--ac); }
.kpick input:checked + span { border-color: var(--ac); background: var(--ac-soft); color: var(--ac-ink); font-weight: 700; }
.kpick input:focus-visible + span { outline: 2px solid var(--ac); }
.qres { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.qprice { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.qprice > div { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.qprice .k { font-size: 11.5px; color: var(--muted); } .qprice b { font-size: 18px; font-weight: 900; }
.qnotes { margin: 12px 0; padding: 0 18px 0 0; font-size: 12.5px; color: var(--text-2); display: grid; gap: 3px; }
.qpaths { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow: auto; }
pre.raw { direction: ltr; text-align: left; font-size: 11px; max-height: 160px; overflow: auto; background: var(--surface-2); padding: 8px; border-radius: 10px; margin: 8px 0 0; white-space: pre-wrap; word-break: break-all; }

/* ---------- میز عملیات: انتخاب مسیر ---------- */
.dpick { display: none; align-items: stretch; gap: 8px; }
.dpick .icon-btn { width: 48px; height: auto; min-height: 56px; border-radius: 16px; flex: none; }
.dpick .icon-btn.flip svg { transform: scaleX(-1); }
.dpick .icon-btn:disabled { opacity: .35; }
.dpick-b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 12px; border-radius: 16px;
  border: 1px solid var(--ac); background: var(--ac-soft); color: var(--text); font: inherit; cursor: pointer; }
.dpick-b b { font-size: 14.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpick-b .num { font-weight: 900; font-size: 13px; direction: ltr; }
.sheet-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 10px; }
.sheet-h b { display: flex; align-items: center; gap: 6px; }
.dp-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dp-f label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.dp-list { display: grid; gap: 6px; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.dp-i { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface-2); font: inherit; color: var(--text); text-align: inherit; cursor: pointer; }
.dp-i.on { border-color: var(--ac); background: var(--ac-soft); }
.dp-n { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; font-size: 13.5px; } .dp-n svg.i { width: 14px; height: 14px; color: var(--muted); }
.dp-v { display: flex; flex-direction: column; align-items: flex-end; flex: none; } .dp-v b { direction: ltr; font-size: 15px; }

/* ---------- گوشی ---------- */
@media (max-width: 960px) {
  .pulse-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home { gap: 14px; }
  .pulse { padding: 16px 16px 14px; border-radius: 22px; }
  .pulse-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; gap: 8px; }
  .pulse-row::-webkit-scrollbar { display: none; }
  .pulse-i { flex: none; width: 46%; min-width: 150px; scroll-snap-align: start; }
  .pulse-i .val { font-size: 18px; }
  .spot { grid-template-columns: 1fr; }
  .spot-b { padding: 16px; } .spot-p { padding: 14px 16px; border-inline-start: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: baseline; min-width: 0; gap: 4px 10px; }
  .spot-p .btn { margin: 0 auto 0 0; }
  .spot-route { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .spot-route > div { padding: 8px 10px; } .spot-route b { font-size: 14px; } .spot-route .num { font-size: 13.5px; }
  .spot-arr { width: 26px; height: 26px; } .spot-arr svg.i { width: 14px; height: 14px; }
  .qa { margin: 0; padding: 2px; }
  .sg { padding: 14px; border-radius: 20px; }
  .sg-route { gap: 6px; } .sg-route .leg { padding: 9px 10px; } .sg-route .pr { font-size: 15px; } .sg-arr { width: 24px; height: 24px; } .sg-arr svg.i { width: 13px; height: 13px; }
  .sg-vols { grid-template-columns: 1fr; }
  .sgs-i b { font-size: 18px; }
  /* میز عملیات */
  .dhead { gap: 8px; flex-wrap: nowrap; }
  .dhead .dlist, .dhead .live, .dexit span, .kb { display: none !important; }
  .dhead .seg { flex: 1; } .dhead .seg button { flex: 1; justify-content: center; min-height: 40px; }
  .dexit { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .dpick { display: flex; }
  .dact .btn { min-height: 50px; }
  /* سبک‌تر برای پردازنده و باتری گوشی */
  .card, .sg, .kpi, .qa-i { box-shadow: none; }
  .modal-bg, .sheet-bg { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sg-grid > .sg:nth-child(n+9) { content-visibility: auto; contain-intrinsic-size: auto 320px; }
  .toasts { left: 12px; right: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.sg-q input { padding-right: 42px; }
@media (max-width: 760px) {
  .sg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .sgs-i { padding: 8px 9px; border-radius: 14px; box-shadow: none; }
  .sgs-i span { font-size: 10px; line-height: 1.5; } .sgs-i b { font-size: 15px; } .sgs-i small { display: none; }
  .sg-bar .seg button { padding: 6px 10px; }
}
.sg-profit .tiny b { font-size: inherit; font-weight: 800; }

/* =====================================================================
   UI 1.1.1 — صفحه اصلی عمومی، ورود و ثبت‌نام، کاربران
   ===================================================================== */
body.pub { background: var(--bg); }
.btn.xl { padding: 16px 26px; font-size: 16.5px; border-radius: 18px; font-weight: 800; }
.btn.xl svg.i { width: 20px; height: 20px; }
.btn.ghost-2 { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.light { background: #fff; color: #1a1408; border-color: transparent; }
.btn.ghost-w { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); } .btn.ghost-w:hover { background: rgba(255, 255, 255, .1); }
.logo.xl { width: 74px; height: 74px; border-radius: 24px; } .logo.xl svg { width: 40px; height: 40px; }
.form.two { grid-template-columns: 1fr 1fr; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; }

/* ---------- نوار بالای صفحه اصلی ---------- */
.landing { overflow-x: clip; }
.pnav { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.pnav-in { max-width: 1200px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 22px; }
.pbrand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; } .pbrand:hover { text-decoration: none; }
.pbrand b { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1; }
.plinks { display: flex; gap: 4px; flex: 1; } .plinks a { color: var(--text-2); padding: 8px 12px; border-radius: 10px; font-size: 14px; text-decoration: none; }
.plinks a:hover { background: var(--surface-2); color: var(--text); }
.pact { display: flex; gap: 8px; align-items: center; }

/* ---------- قهرمان ---------- */
.hero2 { position: relative; padding: clamp(40px, 7vw, 96px) 22px clamp(50px, 7vw, 90px); }
.h2-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb.o1 { width: 520px; height: 520px; background: var(--ac); top: -180px; right: -120px; opacity: .28; }
.orb.o2 { width: 460px; height: 460px; background: var(--violet); bottom: -200px; left: -120px; opacity: .22; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.h2-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.h2-in { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ac-ink); background: var(--ac-soft);
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); padding: 7px 14px; border-radius: 999px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 25%, transparent); animation: pulse 2s infinite; }
.h2-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.2vw, 82px); line-height: 1.16; margin: 22px 0 18px; letter-spacing: -.5px; }
.h2-title em { font-style: normal; background: linear-gradient(100deg, var(--ac), var(--ac-2) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2-sub { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-2); line-height: 2; max-width: 56ch; margin: 0 0 30px; }
.h2-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.h2-stats { list-style: none; margin: 34px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.h2-stats li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.h2-stats svg.i { width: 18px; height: 18px; color: var(--ac); } .h2-stats b { font-size: 19px; font-weight: 900; } .h2-stats span { font-size: 12.5px; color: var(--muted); }

.h2-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.radar { position: absolute; inset: 0; display: grid; place-items: center; }
.radar i { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ac) 40%, transparent); animation: ring 4.5s ease-out infinite; opacity: 0; }
.radar i:nth-child(2) { animation-delay: 1.5s; } .radar i:nth-child(3) { animation-delay: 3s; }
@keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.radar .logo { position: absolute; top: 2%; left: 4%; box-shadow: 0 20px 50px -14px var(--ac); transform: rotate(-8deg); }
.device { position: relative; width: min(310px, 78vw); border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #2a2f3b, #0b0e15);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(3deg); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(3deg) translateY(-12px); } }
.dev-top { height: 24px; display: grid; place-items: center; } .dev-top span { width: 90px; height: 22px; border-radius: 14px; background: #000; }
.dev-screen { border-radius: 32px; background: var(--bg); padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 430px; color: var(--text); overflow: hidden; }
.dv-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; } .dv-h .live { height: 26px; padding: 0 8px; font-size: 11px; }
.dv-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.dv-route > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; }
.dv-route small { font-size: 10.5px; color: var(--muted); } .dv-route b { font-size: 13px; } .dv-route .num { font-size: 13.5px; font-weight: 800; }
.dv-arr { width: 26px; height: 26px; border-radius: 50%; background: var(--ac-soft); color: var(--ac-ink); display: grid; place-items: center; } .dv-arr svg { width: 14px; height: 14px; }
.dv-profit { background: linear-gradient(150deg, var(--up-soft), transparent); border: 1px solid color-mix(in srgb, var(--up) 30%, transparent); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.dv-profit small { font-size: 11px; color: var(--muted); } .dv-profit b { font-size: 28px; font-weight: 900; color: var(--up); } .dv-profit b small { color: var(--muted); font-weight: 500; }
.dv-profit .num { color: var(--up); font-weight: 800; }
.dv-bars { flex: 1; min-height: 110px; display: flex; align-items: flex-end; gap: 7px; padding: 0 4px; }
.dv-bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--ac-2), color-mix(in srgb, var(--ac) 40%, transparent)); animation: grow 2.4s ease-in-out infinite alternate; transform-origin: bottom; }
.dv-bars i:nth-child(odd) { animation-delay: -1.2s; }
@keyframes grow { from { transform: scaleY(.75); } }
.dv-note { text-align: center; font-size: 10.5px; color: var(--muted); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 12px; animation: bob2 6s ease-in-out infinite; max-width: 240px; }
.float svg.i { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--ac-soft); color: var(--ac-ink); flex: none; }
.float span { display: flex; flex-direction: column; } .float b { font-size: 13px; } .float small { color: var(--muted); }
.float.f1 { top: 6%; right: -8%; } .float.f2 { bottom: 16%; left: -6%; animation-delay: -2s; } .float.f3 { bottom: 2%; right: 6%; animation-delay: -4s; flex-direction: column; align-items: flex-start; gap: 4px; }
@keyframes bob2 { 50% { transform: translateY(-10px); } }

.marq { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 14px 0; }
.marq-in { display: flex; gap: 22px; width: max-content; animation: marq 40s linear infinite; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.marq-in i { color: var(--ac); font-style: normal; }
@keyframes marq { to { transform: translateX(50%); } }

/* ---------- بخش‌ها ---------- */
.psec { padding: clamp(56px, 8vw, 104px) 22px; } .psec.alt { background: var(--bg-2); }
.psec > * { max-width: 1200px; margin-inline: auto; }
.psec-h { text-align: center; max-width: 720px; margin-bottom: 44px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; color: var(--ac-ink); background: var(--ac-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.psec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3; margin: 0 0 12px; }
.psec-h p { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.9; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; } .reveal.in { opacity: 1; transform: none; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bt { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.bt:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.bt.wide { grid-column: span 2; }
.bt-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(140deg, var(--ac-soft), transparent); border: 1px solid color-mix(in srgb, var(--ac) 25%, transparent); color: var(--ac-ink); margin-bottom: 6px; }
.bt-ic svg.i { width: 24px; height: 24px; }
.bt h3 { margin: 0; font-size: 17px; } .bt p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.95; }
.bt-art { margin-top: 12px; pointer-events: none; }
.bt-art .sg.mini { background: var(--surface-2); }
.desk-art { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.desk-art > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.desk-art > div:first-child { border-top: 4px solid var(--up); } .desk-art > div:last-child { border-top: 4px solid var(--ac); }
.desk-art small { font-size: 11px; color: var(--muted); } .desk-art b { font-size: 15px; } .desk-art .num { font-weight: 900; font-size: 17px; }
.desk-art i { font-style: normal; font-size: 11px; margin-top: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-2); align-self: flex-start; }
.desk-art .mid { background: transparent; border: 0; justify-content: center; align-items: center; text-align: center; }
.desk-art .mid b { font-size: 26px; color: var(--up); direction: ltr; }
.steps3 { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps3 li { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; position: relative; box-shadow: var(--shadow); }
.st-n { position: absolute; top: 18px; left: 22px; font-family: var(--display); font-size: 54px; line-height: 1; color: color-mix(in srgb, var(--ac) 30%, transparent); }
.st-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ac); color: var(--on-ac); margin-bottom: 16px; }
.st-ic svg.i { width: 26px; height: 26px; }
.steps3 h3 { margin: 0 0 8px; font-size: 19px; } .steps3 p { margin: 0; color: var(--muted); line-height: 1.95; font-size: 14px; }
.sig-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.8; }
.ticks svg.i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--up-soft); color: var(--up); flex: none; margin-top: 2px; }
.sd-card { position: relative; } .sd-card .sg { box-shadow: var(--shadow-lg); }
.sd-tag { position: absolute; top: -12px; left: 18px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ptiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; align-items: stretch; }
.ptier { --t: var(--ac); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); overflow: hidden; }
.ptier::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 22%, transparent), transparent); pointer-events: none; }
.ptier > * { position: relative; }
.ptier.best { border: 2px solid var(--t); transform: translateY(-6px); }
.ribbon { position: absolute; top: 18px; left: 18px; background: var(--t); color: #1d1500; font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.pt-h { display: flex; align-items: center; gap: 10px; } .pt-medal { font-size: 38px; line-height: 1; } .pt-h h3 { margin: 0; font-size: 25px; font-weight: 900; }
.pt-price { font-size: 17px; font-weight: 800; color: color-mix(in srgb, var(--t) 70%, var(--text)); }
.pt-desc { margin: 0; color: var(--muted); font-size: 13.5px; min-height: 2.6em; }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.pt-list li { display: flex; gap: 9px; align-items: center; } .pt-list svg.i { width: 18px; height: 18px; color: color-mix(in srgb, var(--t) 80%, var(--text)); }
.pt-list li.off { color: var(--muted); text-decoration: line-through; } .pt-list li.off svg.i { color: var(--muted); }
.pt-secs { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; align-content: flex-start; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; border: 1px dashed var(--line-2); }
.trust span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ac-ink); } .trust svg.i { width: 21px; height: 21px; }
.trust b { font-size: 15px; } .trust small { color: var(--muted); font-size: 13px; line-height: 1.8; }
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 800; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform .25s; }
.faq details[open] summary span { transform: rotate(45deg); background: var(--ac-soft); color: var(--ac-ink); }
.faq p { margin: 0 0 18px; color: var(--text-2); line-height: 2; }
.cta-band { border-radius: 34px; padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--ac) 75%, transparent), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(106, 85, 240, .7), transparent 70%), #0a0d14; }
.cta-band h2 { color: #fff; margin: 0 0 8px; } .cta-band p { margin: 0; color: rgba(255, 255, 255, .78); }
.pfoot { border-top: 1px solid var(--line); padding: 28px 22px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.pf-in { max-width: 1200px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- ورود و ثبت‌نام ---------- */
.auth2 .login-art { justify-content: flex-start; gap: 34px; }
.auth2 .login-art .orb.o1 { opacity: .35; } .auth2 .login-art .orb.o2 { opacity: .3; }
.auth2 .art-top { color: #fff; text-decoration: none; position: relative; }
.art-card { margin-top: 26px; max-width: 470px; transform: rotate(-1.5deg); }
.art-card .sg { background: rgba(16, 20, 30, .82); border-color: rgba(255, 255, 255, .12); color: #eef1f8; --surface-2: rgba(255, 255, 255, .06); --surface: rgba(255, 255, 255, .04); --line: rgba(255, 255, 255, .1); --muted: #a2a9bb; --text-2: #d0d5e1; backdrop-filter: blur(6px); }
.auth2 .art-feats { margin-top: auto; }
.auth2 .login-form { align-content: start; grid-template-rows: auto 1fr; gap: 10px; padding-top: 22px; }
.af-top { width: min(440px, 100%); justify-self: center; display: flex; justify-content: space-between; align-items: center; }
.auth2 .login-form form { width: min(440px, 100%); align-self: center; padding-bottom: 30px; }
.auth-tabs { display: flex; } .auth-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 10px; color: var(--muted); font-weight: 800; text-decoration: none; }
.auth-tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); } .auth-tabs a svg.i { width: 17px; height: 17px; }
.caps { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warn); margin-top: 6px; } .caps svg.i { width: 15px; height: 15px; }
.lf-alt { text-align: center; font-size: 13px; color: var(--muted); margin: 0; line-height: 1.9; }
.pwm { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.pwm i { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-3); transition: background .2s; }
.pwm span { font-size: 11.5px; color: var(--muted); min-width: 64px; text-align: left; }
.pwm[data-n="1"] i:nth-child(-n+1) { background: var(--down); } .pwm[data-n="2"] i:nth-child(-n+2) { background: var(--warn); }
.pwm[data-n="3"] i:nth-child(-n+3) { background: var(--up); } .pwm[data-n="4"] i { background: var(--up); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.plan-pick label { cursor: pointer; --t: var(--ac); } .plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 800; font-size: 14px; text-align: center; }
.plan-pick small { font-size: 11px; font-weight: 500; color: var(--muted); }
.plan-pick input:checked + span { border: 2px solid var(--t); background: color-mix(in srgb, var(--t) 14%, var(--surface)); }
.plan-pick input:focus-visible + span { outline: 2px solid var(--ac); }
.done-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 24px 0; }
.done-box h1 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0; } .done-box p { margin: 0; color: var(--text-2); line-height: 2; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--up-soft); color: var(--up); animation: pop .4s ease-out; }
.done-ic svg.i { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done-box .btn { width: 100%; }

/* ---------- کاربران ---------- */
.uhero { display: grid; gap: 14px; }
.ust-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ust { --c: var(--ac); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); overflow: hidden; }
.ust::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .08; top: -50px; left: -40px; }
.ust.up { --c: var(--up); } .ust.warn { --c: var(--warn); } .ust.down { --c: var(--down); } .ust.ac { --c: var(--ac); border-color: var(--ac); }
.ust .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); margin-bottom: 8px; }
.ust .ic svg.i { width: 19px; height: 19px; }
.ust b { font-size: 27px; font-weight: 900; line-height: 1.15; } .ust > span:not(.ic) { font-size: 12.5px; color: var(--muted); } .ust small { font-size: 11px; color: color-mix(in srgb, var(--c) 70%, var(--text)); margin-top: 2px; }
.utier { padding: 16px 18px; display: grid; gap: 12px; }
.utier-h { display: flex; justify-content: space-between; align-items: center; } .utier-h b { display: flex; gap: 7px; align-items: center; } .utier-h svg.i { color: var(--ac); width: 18px; height: 18px; }
.tbar { display: flex; height: 14px; border-radius: 9px; overflow: hidden; gap: 3px; background: var(--surface-2); }
.tbar i { display: block; min-width: 6px; background: var(--t); } .tbar i.none { background: var(--surface-3); }
.tleg { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; } .tleg > span { display: inline-flex; align-items: center; gap: 6px; }
.tier.t-none { --t: #8a8f9c; }
.ubar { flex-wrap: wrap; gap: 10px; } .ubar-r { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; } .ubar-r select { width: auto; }
.ucard .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.ulist2 { display: flex; flex-direction: column; }
.urow2 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.urow2:first-child { border-top: 0; } .urow2:hover { background: var(--surface-2); } .urow2.off { opacity: .6; }
.u-open { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; font: inherit; color: inherit; text-align: inherit; cursor: pointer; min-width: 0; padding: 0; }
.u-open .u-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.u-open .u-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .u-open .u-name b { font-size: 15px; }
.avatar2 { --t: #8a8f9c; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; flex: none; font-weight: 900; font-size: 17px; position: relative;
  background: linear-gradient(140deg, color-mix(in srgb, var(--t) 85%, #fff), color-mix(in srgb, var(--t) 60%, #000)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.avatar2.t-admin { --t: var(--ac); }
.avatar2.on::after { content: ""; position: absolute; bottom: -2px; left: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--up); border: 2px solid var(--surface); }
.avatar2.xl { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.u-ring { --p: 100; --c: var(--up); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.u-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.urow2:hover .u-ring::before { background: var(--surface-2); }
.u-ring b, .u-ring small { position: relative; line-height: 1.1; } .u-ring b { font-size: 14px; } .u-ring small { font-size: 9.5px; color: var(--muted); }
.u-acts { display: flex; gap: 6px; align-items: center; }
.uprof { --t: #8a8f9c; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; margin-bottom: 14px;
  background: linear-gradient(130deg, color-mix(in srgb, var(--t) 16%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--t) 30%, var(--line)); }
.uprof > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .uprof b { font-size: 18px; }
.sgn { border: 1px solid color-mix(in srgb, var(--ac) 45%, var(--line)); }
.sgn-list { display: grid; gap: 10px; }
.sgn-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.sgn-i .avatar { width: 40px; height: 40px; background: var(--ac-soft); color: var(--ac-ink); }
.sgn-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .sgn-msg { color: var(--text-2); }
.sgn-a { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .sgn-a select { width: auto; }

@media (max-width: 1100px) {
  .ust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .h2-in { grid-template-columns: 1fr; gap: 20px; }
  .h2-visual { min-height: 470px; }
  .plinks { display: none; }
  .sig-demo { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .pnav-in { padding: 10px 14px; gap: 10px; } .pbrand b { font-size: 21px; } .pbrand .logo { width: 34px; height: 34px; }
  .pact .btn { padding: 8px 12px; font-size: 13px; } .pact .btn.ghost svg { display: none; } .pact .theme-btn { display: none; }
  .hero2 { padding: 30px 16px 44px; } .h2-title { margin: 16px 0 12px; } .h2-sub { line-height: 1.95; margin-bottom: 22px; }
  .h2-cta .btn { flex: 1 1 100%; } .h2-stats { gap: 8px; margin-top: 24px; } .h2-stats li { flex: 1 1 calc(50% - 8px); padding: 9px 12px; }
  .h2-visual { min-height: 440px; } .device { width: 250px; } .dev-screen { min-height: 360px; } .dv-profit b { font-size: 23px; }
  .float { font-size: 11px; padding: 8px 10px; } .float.f1 { right: 0; top: 4%; } .float.f2 { left: 0; bottom: 12%; } .float.f3 { display: none; }
  .radar .logo { display: none; } .radar i { width: 220px; height: 220px; }
  .psec { padding: 52px 16px; } .psec-h { margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr; gap: 12px; } .bt.wide { grid-column: auto; } .bt { padding: 20px; border-radius: 22px; }
  .steps3 { grid-template-columns: 1fr; } .trust { grid-template-columns: 1fr 1fr; } .trust > div { padding: 14px; }
  .ptier.best { transform: none; }
  .cta-band { border-radius: 26px; } .cta-band .h2-cta { width: 100%; }
  .form.two { grid-template-columns: 1fr; }
  .auth2 .login-form { padding: max(14px, env(safe-area-inset-top, 0px)) 18px 30px; }
  .ust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ust { padding: 12px; border-radius: 18px; } .ust b { font-size: 22px; } .ust .ic { width: 32px; height: 32px; margin-bottom: 4px; }
  .urow2 { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .urow2 .u-dev { display: none; } .urow2 .u-acts { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
  .urow2 .u-ring { grid-row: 1; grid-column: 2; width: 48px; height: 48px; }
  .sgn-i { grid-template-columns: auto minmax(0, 1fr); } .sgn-a { grid-column: 1 / -1; }
  .ubar-r { justify-content: stretch; } .ubar-r .search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.plan-pick input, .kpick input { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.ust::after { top: auto; bottom: -70px; left: -50px; width: 130px; height: 130px; }
.ust > * { position: relative; z-index: 1; }
.ust b { align-self: flex-start; }
@media (max-width: 760px) {
  .ust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ust { padding: 10px; border-radius: 16px; } .ust small { display: none; } .ust::after { display: none; }
  .ust .ic { width: 28px; height: 28px; border-radius: 9px; } .ust .ic svg.i { width: 15px; height: 15px; }
  .ust b { font-size: 20px; } .ust > span:not(.ic) { font-size: 11px; line-height: 1.5; }
}
@media (max-width: 760px) {
  .urow2 { grid-template-columns: minmax(0, 1fr) auto auto; }
  .urow2 .u-open { grid-row: 1; grid-column: 1; }
  .urow2 .u-acts { grid-row: 1; grid-column: 2; margin: 0; } .urow2 .u-acts .icon-btn { display: none; }
  .urow2 .u-ring { grid-row: 1; grid-column: 3; }
  .u-open .avatar2 { width: 40px; height: 40px; }
}

/* =====================================================================
   UI 1.1.2 — صفحه صرافی‌ها، ارزهای بیشتر
   ===================================================================== */
.coin-tiles.many { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.coin-tiles.many .coin-tile { padding: 10px 12px; gap: 3px; border-radius: 16px; box-shadow: none; }
.coin-tiles.many .coin-tile .num { font-size: 15px; } .coin-tiles.many .coin-ic { width: 30px; height: 30px; font-size: 8.5px; }
.coin-tile.on { border-color: var(--ac); background: var(--ac-soft); }
.exc-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.exc-sum .sgs-i span { display: flex; align-items: center; gap: 6px; } .exc-sum svg.i { width: 15px; height: 15px; color: var(--ac); }
.exc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.exc { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.exc.down { opacity: .7; }
.exc-h { display: flex; align-items: center; gap: 12px; }
.exc-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: linear-gradient(140deg, var(--ac-2), var(--ac)); color: var(--on-ac); flex: none; }
.exc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .exc-t b { font-size: 16px; }
.exc-usdt { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.exc-usdt .lbl { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; } .exc-usdt svg.i { width: 16px; height: 16px; color: var(--violet); }
.exc-usdt div { display: flex; flex-direction: column; min-width: 0; } .exc-usdt small { font-size: 10.5px; color: var(--muted); } .exc-usdt b { font-size: 14.5px; }
.exc-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.exc-tb th { font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.exc-tb td { padding: 6px; border-bottom: 1px solid var(--line); } .exc-tb tr:last-child td { border-bottom: 0; }
.exc-tb .n { text-align: left; }
.ex-coin { display: inline-flex; align-items: center; gap: 6px; } .ex-coin .coin-ic { width: 24px; height: 24px; font-size: 7.5px; }
.exc details summary { cursor: pointer; color: var(--ac-ink); padding: 4px 6px; }
.exc-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
@media (max-width: 760px) {
  .exc-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .coin-tiles.many { display: flex; overflow-x: auto; scrollbar-width: none; }
  .coin-tiles.many .coin-tile { flex: none; width: 140px; }
  .exc { padding: 14px; }
}
@media (max-width: 760px) {
  .toasts { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto !important; }
  .toast { padding: 9px 10px 11px 12px; font-size: 12.5px; border-radius: 14px; }
  .toast .t-body { line-height: 1.6; } .toast .t-title { font-size: 12.5px; }
}
.exc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.exc, .exc-grid > * { min-width: 0; }
.exc-tb { table-layout: fixed; }
.exc-tb th:first-child, .exc-tb td:first-child { width: 74px; } .exc-tb th:last-child, .exc-tb td:last-child { width: 64px; }
.exc-tb td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .exc-tb .num { font-size: 12.5px; }
.exc-usdt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-tiles.many .coin-tile .top > span:last-child { min-width: 0; } .coin-tiles.many .coin-tile .top b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.coin-tiles.many .coin-tile .top .ltr-inline { margin: 0; }
@media (max-width: 760px) {
  .exc-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .exc-sum .sgs-i { padding: 8px 9px; border-radius: 14px; box-shadow: none; } .exc-sum .sgs-i span { font-size: 10.5px; } .exc-sum .sgs-i b { font-size: 15px; }
  .exc-sum svg.i { display: none; }
}
.exc-tb th:last-child, .exc-tb td:last-child { width: 72px; } .exc-tb td:last-child .num { font-size: 11.5px; }

/* ---------- 1.1.3: انتخاب بازار و سه‌مرحله‌ای ---------- */
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-big { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 20px; text-decoration: none; color: var(--text); border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 168px; }
.mk-big.gold { background: linear-gradient(160deg, color-mix(in srgb, #E8B33C 22%, transparent), var(--surface-2) 70%); border-color: color-mix(in srgb, #E8B33C 40%, var(--line)); }
.mk-big.ex { background: linear-gradient(160deg, var(--violet-soft), var(--surface-2) 70%); border-color: color-mix(in srgb, var(--violet) 40%, var(--line)); }
.mk-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 6px; }
.mk-big.gold .mk-ic { background: #E8B33C; color: #2a1900; } .mk-big.ex .mk-ic { background: var(--violet); color: #fff; }
.mk-ic svg.i { width: 26px; height: 26px; }
.mk-big b { font-size: 18px; font-weight: 900; } .mk-sub { font-size: 12px; color: var(--muted); line-height: 1.7; }
.mk-live { margin-top: auto; font-size: 11.5px; color: var(--text-2); } .mk-live b { font-size: 11.5px; font-weight: 800; }
.mk-more { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-more a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.mk-more svg.i { width: 16px; height: 16px; color: var(--ac); }
.tri-assets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tri-assets::-webkit-scrollbar { display: none; }
.ta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 84px; padding: 10px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.ta b { font-size: 13px; } .ta small { font-size: 11.5px; font-weight: 800; direction: ltr; }
.ta.on { border-color: var(--ac); background: var(--ac-soft); }
.ta .coin-ic { width: 34px; height: 34px; font-size: 9px; }
.coin-ic.gold-ic { background: linear-gradient(140deg, #f3cf6c, #c8870b); } .coin-ic.gold-ic svg.i { width: 18px; height: 18px; color: #2a1900; }
.coin-ic.all-ic { background: var(--surface-3); color: var(--text); } .coin-ic.all-ic svg.i { width: 18px; height: 18px; }
.tri-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 12px; }
.tri2 { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; border-inline-start: 4px solid var(--line-2); }
.tri2.win { border-inline-start-color: var(--up); }
.tri2 header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tri-a { display: flex; align-items: center; gap: 8px; } .tri-a .coin-ic { width: 32px; height: 32px; font-size: 8.5px; } .tri-a b { font-size: 15px; }
.tri-p { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-end; } .tri-p b { font-size: 19px; font-weight: 900; } .tri-p small { font-size: 11.5px; color: var(--muted); }
.tri-p.up b { color: var(--up); } .tri-p.down b { color: var(--down); }
.tri-steps { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tri-steps::-webkit-scrollbar { display: none; }
.ts-end { align-self: center; font-size: 11.5px; font-weight: 800; padding: 6px 9px; border-radius: 10px; background: var(--ac-soft); color: var(--ac-ink); flex: none; }
.ts-arr { align-self: center; color: var(--muted); flex: none; } .ts-arr svg.i { width: 15px; height: 15px; }
.ts { flex: 1 0 120px; min-width: 120px; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.ts.buy { border-top: 3px solid var(--up); } .ts.sell { border-top: 3px solid var(--ac); }
.ts-n { position: absolute; top: 6px; left: 8px; font-size: 10.5px; color: var(--muted); font-weight: 800; }
.ts-v { font-size: 11px; color: var(--muted); font-weight: 700; } .ts b { font-size: 12.5px; } .ts .num { font-size: 13.5px; font-weight: 800; } .ts small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .mk-big { min-height: 150px; padding: 14px 12px; } .mk-big b { font-size: 16px; }
  .tri2 { padding: 12px; } .ts { flex-basis: 108px; min-width: 108px; }
}
/* ---------- به‌روزرسانی ---------- */
.upd-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.upd-ver { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .upd-ver b { font-size: 24px; font-weight: 900; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 18px; border: 2px dashed var(--line-2); border-radius: 20px; cursor: pointer; text-align: center; transition: .15s; background: var(--surface-2); }
.drop svg.i { width: 38px; height: 38px; color: var(--ac); } .drop b { font-size: 15px; } .drop:hover, .drop.over { border-color: var(--ac); background: var(--ac-soft); }
.meter.big { height: 12px; margin-bottom: 8px; } .meter.big s { background: linear-gradient(90deg, var(--ac-2), var(--ac)); }
.upd-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--up-soft); }
.upd-file > div { flex: 1; display: flex; flex-direction: column; } .uf-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--up); color: #fff; flex: none; }
.upd-run { display: flex; gap: 14px; align-items: center; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--ac); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.upd-log { max-height: 340px; margin: 0 16px 16px; font-size: 11.5px; }
@media (max-width: 760px) { .upd-ver b { font-size: 19px; } }

/* ===================== UI 1.2 ===================== */
/* دکمه به‌روزرسانی بالای پنل (برنامه نصب‌شده روی گوشی) */
.ref-btn { position: relative; }
.ref-btn.spin svg { animation: spin360 .8s linear infinite; }
.ref-btn .ref-dot { position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.6s infinite; }
@keyframes spin360 { to { transform: rotate(-360deg); } }

/* صفحه ربات‌ها: نمای کلی */
.bothero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.botc { position: relative; overflow: hidden; border-radius: var(--r); padding: 20px; border: 1px solid var(--line);
  background: linear-gradient(150deg, color-mix(in srgb, var(--bc) 16%, var(--surface)) 0%, var(--surface) 62%); box-shadow: var(--shadow); --bc: #2aa3d9; }
.botc.bale { --bc: #13a37c; }
.botc::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bc) 30%, transparent), transparent); pointer-events: none; }
.botc-h { display: flex; align-items: center; gap: 12px; }
.botc-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--bc), color-mix(in srgb, var(--bc) 60%, #000)); box-shadow: 0 10px 24px -10px var(--bc); }
.botc-ic svg.i { width: 26px; height: 26px; }
.botc-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.botc-t b { font-size: 18px; }
.botc-t a { color: var(--bc); font-weight: 700; font-size: 14px; text-decoration: none; }
.botc .pill i.lp { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-left: 6px; animation: pulse 1.6s infinite; }
.botc-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.botc-n span { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center; }
.botc-n b { font-size: 22px; color: var(--text); }
.botc-n .down b { color: var(--down); }
.botc-err { margin-top: 12px; font-size: 12.5px; color: var(--down); background: var(--down-soft); padding: 8px 12px; border-radius: 10px;
  display: flex; gap: 6px; align-items: flex-start; overflow-wrap: anywhere; }
.botc-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }

.botbars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 6px; direction: ltr; }
.botbars i { flex: 1; height: max(var(--h), 3%); border-radius: 6px 6px 3px 3px; min-width: 3px;
  background: linear-gradient(to top, color-mix(in srgb, var(--ac) 55%, transparent), var(--ac-2)); opacity: .9; transition: opacity .15s; }
.botbars i:hover { opacity: 1; filter: brightness(1.15); }
.botbars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.botkpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.botkpi span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.botkpi span svg.i { width: 17px; height: 17px; color: var(--ac); }
.botkpi b { font-size: 17px; color: var(--text); }

.feats { display: grid; gap: 10px; }
.feat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.feat:hover { border-color: var(--line-2); }
.feat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feat-t { flex: 1; display: grid; gap: 2px; min-width: 0; } .feat-t small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.feat .tgl { width: 42px; height: 24px; flex: none; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.feat .tgl::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.feat input:checked ~ .tgl { background: var(--up); }
.feat input:checked ~ .tgl::after { transform: translateX(-18px); }
.feat input:focus-visible ~ .tgl { outline: 2px solid var(--ac); outline-offset: 2px; }
.feat:has(input:checked) { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); background: color-mix(in srgb, var(--up) 6%, var(--surface-2)); }
.feat-live { padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line-2); display: grid; gap: 2px; }
.feat-live small { color: var(--muted); font-size: 12px; }
.feat-live .form { margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.botpv { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.phone { border-radius: 30px; border: 8px solid color-mix(in srgb, var(--text) 88%, transparent); overflow: hidden; background: #0e1621;
  box-shadow: var(--shadow-lg); max-width: 380px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212b; color: #fff; }
.phone-top small { color: #7f91a4; margin-right: auto; font-size: 12px; }
.phone-chat { padding: 14px 12px 16px; min-height: 360px; max-height: 560px; overflow: auto;
  background: radial-gradient(circle at 20% 10%, rgba(80, 120, 160, .18), transparent 50%), #0e1621; }
.bubble { white-space: pre-wrap; background: #182533; color: #e9eef4; border-radius: 16px 16px 16px 4px; padding: 10px 12px;
  font-size: 13px; line-height: 1.85; max-width: 100%; overflow-wrap: anywhere; }
.ikb { display: grid; gap: 5px; margin-top: 6px; }
.ikb div { display: flex; gap: 5px; }
.ikb span { flex: 1; text-align: center; background: rgba(40, 60, 82, .85); color: #e9eef4; font-size: 12px; padding: 8px 4px; border-radius: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvimg { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.pvimg-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pvimg-h b { display: flex; align-items: center; gap: 6px; }
.pvimg-b { padding: 12px; } .pvimg-b img { display: block; width: 100%; height: auto; border-radius: 12px; }
.skel { display: block; height: 180px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 200% 100%; animation: skel 1.2s infinite linear; }
.skel.tall { height: 340px; }
@keyframes skel { to { background-position: -200% 0; } }
.cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cmds span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.cmds code { direction: ltr; font-family: ui-monospace, monospace; font-size: 12px; background: var(--ac-soft); color: var(--ac-ink);
  padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
@media (max-width: 900px) {
  .bothero, .botpv { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: none; }
}
@media (max-width: 560px) {
  .botc { padding: 16px; }
  .botc-h { flex-wrap: wrap; }
  .botc-n b { font-size: 18px; }
  .feat-live .form { grid-template-columns: minmax(0, 1fr); }
  .botkpi { grid-template-columns: minmax(0, 1fr); }
}
/* تک‌قیمتی (خاموش‌شده خودکار) در صفحه منابع */
.pill.single { background: var(--warn-soft); color: var(--warn); }
.botperks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0 0 14px; }
.botperks span { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.botperks b { display: block; color: var(--text); font-size: 13.5px; }

/* ===================== UI 1.2.1: اعلان‌ها ===================== */
/* اعلان کوتاه غنی: آیکون رنگی، عنوان با برچسب، دکمه‌ها و هاله رنگ متناسب با نوع */
.toast.rich { --tc: var(--ac); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line-2)); border-inline-start: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line-2));
  box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--tc) 55%, transparent), var(--shadow-lg); padding: 12px 12px 14px; gap: 12px;
  animation: t-in .35s cubic-bezier(.2, .9, .3, 1.25); }
.toast.rich::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--tc) 16%, transparent), transparent 60%); }
.toast.tone-win { --tc: var(--up); } .toast.tone-lose { --tc: var(--muted); } .toast.tone-alert, .toast.tone-crit { --tc: var(--down); }
.toast.tone-warn { --tc: var(--warn); } .toast.tone-info { --tc: var(--info); }
.toast .t-ic { position: relative; flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 21px;
  background: color-mix(in srgb, var(--tc) 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); }
.toast.tone-crit .t-ic { animation: crit-ring 1.4s infinite; }
.toast .t-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.toast.rich .t-title { margin: 0; font-size: 13.5px; }
.toast .t-chip { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 99px; direction: ltr; unicode-bidi: isolate;
  background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); }
.toast .t-time { margin-inline-start: auto; font-size: 11px; color: var(--muted); }
.toast.rich .t-text { font-size: 12.8px; color: var(--text-2); line-height: 1.75; }
.toast .t-acts { display: flex; gap: 6px; margin-top: 8px; }
.toast .t-acts button { border: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line)); background: color-mix(in srgb, var(--tc) 10%, transparent);
  color: var(--text); font: inherit; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 10px; cursor: pointer; }
.toast .t-acts button:hover { background: color-mix(in srgb, var(--tc) 20%, transparent); }
.toast.rich .t-bar { background: var(--tc); height: 2.5px; }
.toast.rich .t-x { position: relative; z-index: 1; }
.toast.tone-crit { border-color: color-mix(in srgb, var(--down) 60%, transparent); }
@keyframes t-in { from { transform: translateY(14px) scale(.96); opacity: 0; } }
@keyframes crit-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--down) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.badge.crit { animation: crit-ring 1.4s infinite; }

/* صندوق اعلان‌ها */
.ib-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.ib-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; }
.ib-n { margin-inline-start: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--down-soft); color: var(--down); }
.ib-tabs { display: flex; gap: 6px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ib-tabs button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.ib-tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.ib-tabs button i { font-style: normal; background: var(--down); color: #fff; border-radius: 99px; padding: 0 6px; font-size: 10.5px; margin-inline-start: 4px; }
.ib-list { list-style: none; margin: 0; padding: 6px 8px 10px; }
.ib-day { font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 10px 8px 4px; }
.nt { --tc: var(--info); position: relative; display: flex; gap: 11px; padding: 10px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.nt:hover { background: var(--surface-2); }
.nt.unread { background: color-mix(in srgb, var(--tc) 7%, transparent); }
.nt.unread::after { content: ""; position: absolute; top: 16px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.nt.tone-win { --tc: var(--up); } .nt.tone-lose { --tc: var(--muted); } .nt.tone-alert { --tc: var(--down); } .nt.tone-sell { --tc: var(--warn); } .nt.tone-me { --tc: var(--violet); }
.nt.sys.lv-crit { --tc: var(--down); } .nt.sys.lv-warn { --tc: var(--warn); } .nt.sys.lv-ok { --tc: var(--up); }
.nt.sys { border: 1px solid color-mix(in srgb, var(--tc) 25%, transparent); margin: 4px 0; }
.nt-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--tc) 14%, var(--surface-2)); }
.nt-b { flex: 1; min-width: 0; padding-left: 14px; }
.nt-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nt-h b { font-size: 13px; }
.nt-chip { font-size: 11px; font-weight: 800; padding: 0 7px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 15%, transparent); color: var(--tc); direction: ltr; unicode-bidi: isolate; }
.nt-tag { font-size: 10.5px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.nt-t { margin-inline-start: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.nt-x { font-size: 12.3px; color: var(--text-2); line-height: 1.7; white-space: pre-line; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nt-p { font-size: 12px; font-weight: 800; margin-top: 3px; }
.ib-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 12px; text-align: center; }
.ib-empty span { font-size: 34px; opacity: .6; } .ib-empty small { color: var(--muted); }
.ib-alert { display: grid; gap: 6px; padding: 8px 6px 2px; }
.ib-alert a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.ib-alert a.lv-crit { background: var(--down-soft); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.ib-alert a i { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex: none; animation: crit-ring 1.4s infinite; }
.ib-alert a.lv-crit i { background: var(--down); }
.ib-alert span { display: grid; } .ib-alert small { color: var(--muted); font-size: 11px; }
.sheet .ib-list { padding-bottom: 24px; }

/* نوار هشدار سامانه (فقط مدیر) */
.sysbar { display: flex; align-items: center; gap: 12px; margin: 14px clamp(14px, 3vw, 28px) 0; padding: 10px 12px 10px 10px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: linear-gradient(90deg, var(--warn-soft), color-mix(in srgb, var(--warn) 4%, var(--surface)));
  animation: t-in .35s ease-out; }
.sysbar.crit { border-color: color-mix(in srgb, var(--down) 50%, transparent); background: linear-gradient(90deg, var(--down-soft), color-mix(in srgb, var(--down) 4%, var(--surface))); }
.sysbar .sb-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--surface); }
.sysbar.crit .sb-ic { animation: crit-ring 1.4s infinite; }
.sysbar .sb-t { flex: 1; min-width: 0; display: grid; } .sysbar .sb-t small { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sysbar .t-x { width: 30px; height: 30px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }

/* پایش سرور */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gauge { --gc: var(--up); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); padding: 14px; display: grid; gap: 10px; overflow: hidden; }
.gauge.warn { --gc: var(--warn); } .gauge.bad { --gc: var(--down); } .gauge.net { --gc: var(--info); }
.g-top { display: flex; align-items: center; gap: 12px; }
.ring { --p: 0; width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--surface-2) 76%, transparent 78% 100%), conic-gradient(var(--gc) calc(var(--p) * 1%), var(--line-2) 0); }
.ring b { font-size: 17px; } .ring small { font-size: 11px; color: var(--muted); }
.g-t { display: grid; gap: 1px; min-width: 0; } .g-t span { font-size: 12px; color: var(--muted); } .g-t b { font-size: 15px; } .g-t small { font-size: 11px; color: var(--muted); }
.spk { width: 100%; height: 34px; display: block; }
.spk .ln { fill: none; stroke: var(--gc); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spk .fill { fill: color-mix(in srgb, var(--gc) 14%, transparent); stroke: none; }
.spk.rx { --gc: var(--info); } .spk.tx { --gc: var(--violet); }
.dual { position: relative; height: 34px; } .dual .spk { position: absolute; inset: 0; } .dual .spk.tx .fill { fill: none; }
.netnow { display: grid; gap: 4px; flex: none; }
.netnow span { font-size: 12px; color: var(--muted); white-space: nowrap; } .netnow b { font-size: 14.5px; color: var(--text); }
.netnow .dn b { color: var(--info); } .netnow .upl b { color: var(--violet); }
.traffic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.traffic > div { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line-2); }
.traffic span { font-size: 12px; color: var(--muted); } .traffic b { font-size: 18px; } .traffic b small { font-size: 11px; color: var(--muted); }
.traffic small { font-size: 11px; color: var(--muted); } .traffic .meter { margin-top: 4px; }
.hosts { margin-top: 12px; } .hosts summary { cursor: pointer; font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; padding: 6px 0; }
.mon .pill i.lp { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-left: 6px; animation: pulse 1.6s infinite; }
.okbox { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--up-soft); margin-bottom: 12px; }
.okbox span { font-size: 28px; } .okbox div { display: grid; } .okbox small { color: var(--text-2); }
#hf .form { margin-top: 4px; }
@media (max-width: 1100px) { .gauges, .traffic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .gauges { grid-template-columns: minmax(0, 1fr); } .traffic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sysbar { margin: 10px 12px 0; } .sysbar .btn { display: none; }
}
.cpushare { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); }
.cs-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-h b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cs-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; }
.cs-bar span { min-width: 0; }
.pc-worker { background: var(--ac); } .pc-web { background: var(--info); } .pc-bot { background: var(--violet); } .pc-other { background: var(--muted); } .pc-free { background: transparent; }
.cs-l { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.cs-l i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-left: 5px; vertical-align: middle; }
