/* شکارزن — UI 3.0
   زبان طراحی «لیمو و جوهر»: سطح‌های صاف بدون لبه، گوشه‌های گرد بزرگ، دکمه‌های کپسولی، یک رنگ تأکید لیمویی
   که فقط برای کار اصلی هر صفحه به کار می‌رود. سبز = سود، قرمز = زیان، کهربایی = احتیاط.
   فونت: استعداد برای همه متن‌ها و عددها، لاله‌زار فقط برای نام برند.
   این فایل آخر از همه بارگذاری می‌شود و style.css و ui2.css را بازنویسی می‌کند. */

:root {
  --bg: #eef0f4; --bg-2: #e6e9ef; --surface: #ffffff; --surface-2: #f4f5f8; --surface-3: #eaecf1;
  --line: rgba(13, 16, 32, .07); --line-2: rgba(13, 16, 32, .13); --glass: rgba(238, 240, 244, .86);
  --text: #0d1020; --text-2: #454a5c; --muted: #868b9c;
  --up: #0c9455; --up-soft: #e1f5e9; --down: #e0434b; --down-soft: #fde9ea; --warn: #b86e00; --warn-soft: #fdf0d9;
  --info: #2563eb; --info-soft: #e5edff; --violet: #6a4ff0; --violet-soft: #eeeaff; --teal: #0d9488;
  --shadow: 0 1px 2px rgba(13, 16, 32, .04); --shadow-lg: 0 30px 70px -28px rgba(13, 16, 32, .35);
  --shadow-pop: 0 18px 50px -18px rgba(13, 16, 32, .3), 0 0 0 1px rgba(13, 16, 32, .05);
  --aura-1: transparent; --aura-2: transparent;
  --r: 24px; --r-md: 18px; --r-sm: 14px;
  --font: "Estedad", "Vazirmatn", Tahoma, system-ui, sans-serif;
  --display: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --brandf: "Lalezar", "Estedad", Tahoma, sans-serif;
  --lime: #c8f25a; --lime-2: #b5e33c; --ink: #0d1020; --ink-2: #1b1f33;
  --ac: #5c8a00; --ac-2: #c8f25a; --ac-soft: #eef9d3; --ac-ink: #3d5e00; --on-ac: #0d1020;
  --grad-ac: linear-gradient(180deg, #d4f76f, #c1ec4b); --grad-up: linear-gradient(135deg, #34d399, #0c9455);
  --edge: none; --top-h: 64px; --sub-h: 48px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090a0f; --bg-2: #0e1016; --surface: #12141b; --surface-2: #191c25; --surface-3: #20242f;
    --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .12); --glass: rgba(9, 10, 15, .84);
    --text: #f1f2f6; --text-2: #bfc3cf; --muted: #777e90;
    --up: #3ddc84; --up-soft: rgba(61, 220, 132, .12); --down: #ff5c66; --down-soft: rgba(255, 92, 102, .12);
    --warn: #f7b548; --warn-soft: rgba(247, 181, 72, .12); --info: #6aa8ff; --info-soft: rgba(106, 168, 255, .12);
    --violet: #a594ff; --violet-soft: rgba(165, 148, 255, .13); --teal: #3fd6c6;
    --shadow: none; --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .95);
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
    --ac: #c8f25a; --ac-2: #c8f25a; --ac-soft: rgba(200, 242, 90, .12); --ac-ink: #d6f784; --on-ac: #0d1020;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090a0f; --bg-2: #0e1016; --surface: #12141b; --surface-2: #191c25; --surface-3: #20242f;
  --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .12); --glass: rgba(9, 10, 15, .84);
  --text: #f1f2f6; --text-2: #bfc3cf; --muted: #777e90;
  --up: #3ddc84; --up-soft: rgba(61, 220, 132, .12); --down: #ff5c66; --down-soft: rgba(255, 92, 102, .12);
  --warn: #f7b548; --warn-soft: rgba(247, 181, 72, .12); --info: #6aa8ff; --info-soft: rgba(106, 168, 255, .12);
  --violet: #a594ff; --violet-soft: rgba(165, 148, 255, .13); --teal: #3fd6c6;
  --shadow: none; --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .95);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
  --ac: #c8f25a; --ac-2: #c8f25a; --ac-soft: rgba(200, 242, 90, .12); --ac-ink: #d6f784; --on-ac: #0d1020;
  color-scheme: dark;
}
/* رنگ تأکید دیگر (انتخاب کاربر) */
body[data-accent="emerald"] { --ac: #0c9455; --ac-2: #34d399; --ac-soft: color-mix(in srgb, #34d399 14%, transparent); --ac-ink: #0c7a47; --on-ac: #032417; --lime: #34d399; --grad-ac: linear-gradient(180deg, #5ee3b0, #2cc58c); }
body[data-accent="violet"] { --ac: #6a4ff0; --ac-2: #a594ff; --ac-soft: color-mix(in srgb, #8b7cff 15%, transparent); --ac-ink: #5240d0; --on-ac: #fff; --lime: #8b7cff; --grad-ac: linear-gradient(180deg, #9d8fff, #7461f2); }
body[data-accent="blue"] { --ac: #2563eb; --ac-2: #6aa8ff; --ac-soft: color-mix(in srgb, #4c9dff 15%, transparent); --ac-ink: #1d4fc4; --on-ac: #fff; --lime: #4c9dff; --grad-ac: linear-gradient(180deg, #6aa8ff, #3b82f6); }
body[data-accent="rose"] { --ac: #e0457a; --ac-2: #ff86ac; --ac-soft: color-mix(in srgb, #ff6f91 15%, transparent); --ac-ink: #b8325f; --on-ac: #fff; --lime: #ff6f91; --grad-ac: linear-gradient(180deg, #ff8fb0, #ec5b8a); }
body[data-accent="amber"] { --ac: #c27c0e; --ac-2: #f5b942; --ac-soft: color-mix(in srgb, #f5b942 15%, transparent); --ac-ink: #8a5600; --on-ac: #1d1300; --lime: #f5b942; --grad-ac: linear-gradient(180deg, #ffd27a, #f0aa2c); }

/* ---------- پایه ---------- */
body, body.pub { background: var(--bg); font-family: var(--font); font-size: 14.5px; line-height: 1.75; }
body::after { display: none; }
::selection { background: color-mix(in srgb, var(--lime) 55%, transparent); color: var(--ink); }
a { color: var(--ac-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 10px; }
.page-head h1, .v4-head h1, .h2-title, .psec-h h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.5px; }
.page-head h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.page-head .crumb { display: none; }
.num { font-feature-settings: normal; font-variant-numeric: normal; }
.up { color: var(--up); } .down { color: var(--down); }
hr { border: 0; border-top: 1px solid var(--line); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 9px; border: 3px solid var(--bg); }

/* ---------- سطح‌ها ---------- */
.card, .rcard, .prime, .mk, .cmini, .tile, .stat, .plan-card, .botc, .ptier, .bt { box-shadow: none; }
.card { background: var(--surface); border: 0; border-radius: var(--r); }
:root:not([data-theme="dark"]) .card { box-shadow: 0 1px 0 rgba(13, 16, 32, .03); }
.card-h { padding: 18px 20px 0; }
.card-h h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.card-h h2 svg.i { color: var(--text-2); }
.card-b { padding: 14px 20px 20px; }
.kpi .val { font-weight: 800; letter-spacing: -.5px; }
.kpi .lbl svg.i { color: var(--text-2); }

/* ---------- دکمه‌ها ---------- */
.btn { border-radius: 999px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-weight: 600; padding: 10px 18px;
  transition: background .15s, transform .12s, box-shadow .15s, color .15s; box-shadow: none; line-height: 1.5; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad-ac); color: var(--on-ac); border-color: transparent; box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--lime) 80%, transparent); }
.btn.primary:hover { filter: brightness(1.04); background: var(--grad-ac); }
.btn.dark { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .btn.dark { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--down); background: var(--down-soft); }
.btn.violet { background: var(--violet); color: #fff; }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.btn.xs { padding: 4px 11px; font-size: 12px; border-radius: 999px; }
.btn.big { padding: 13px 24px; font-size: 15px; border-radius: 999px; }
.btn.xl { padding: 15px 28px; font-size: 16px; border-radius: 999px; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid currentColor; border-color: var(--text) transparent var(--text) transparent; animation: x-spin .7s linear infinite; }
.btn.primary.loading::after { border-color: var(--on-ac) transparent var(--on-ac) transparent; }
@keyframes x-spin { to { transform: rotate(360deg); } }
.btn.go { padding-inline-end: 6px; gap: 12px; }
.btn.go > .gi { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.btn.go > .gi svg.i { width: 16px; height: 16px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text-2); display: inline-grid; place-items: center; position: relative; cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg.i { width: 19px; height: 19px; }
.icon-btn .badge { top: -2px; left: -2px; border: 2px solid var(--bg); }
.badge { background: var(--down); font-weight: 700; }
.badge.crit { animation: x-pulse 1.4s infinite; }
@keyframes x-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--down) 25%, transparent); } }

/* ---------- برچسب‌ها ---------- */
.pill, .tg, .badge2 { border-radius: 999px; font-weight: 600; }
.tg { border: 0; background: var(--surface-2); }
.pill.gold, .tg.gold { background: var(--ac-soft); color: var(--ac-ink); }
.chip { border: 0; background: var(--surface); padding: 8px 15px; font-weight: 500; color: var(--text-2); border-radius: 999px; }
.chip:hover { background: var(--surface-3); }
.chip.on { background: var(--ink); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .chip.on { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.on { background: var(--lime); color: var(--ink); } }

/* ---------- زبانه و انتخاب ---------- */
.seg { background: var(--surface-2); border: 0; border-radius: 999px; padding: 4px; }
.seg button, .seg a { border-radius: 999px; padding: 7px 15px; font-weight: 600; }
.seg button.on, .seg a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(13, 16, 32, .1); }
:root[data-theme="dark"] .seg button.on { background: var(--surface-3); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: var(--surface-3); box-shadow: none; } }
.tabs { border: 0; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; display: inline-flex; flex-wrap: wrap; }
.tabs button { border-radius: 999px; border: 0; }
.tabs button.on, .ib-tabs button.on { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .tabs button.on, :root[data-theme="dark"] .ib-tabs button.on { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button.on, :root:not([data-theme="light"]) .ib-tabs button.on { background: var(--lime); color: var(--ink); } }

/* ---------- فرم ---------- */
.field > label { font-weight: 600; }
.field input, .field select, .field textarea, .input, input.input, select.input {
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 11px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input:hover, .field select:hover, .input:hover { background: var(--surface-3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { background: var(--surface); border-color: var(--ac-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 28%, transparent); }
.switch input { background: var(--surface-3); }
.switch input:checked { background: var(--up); }
input[type=range] { accent-color: var(--ac-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }

/* ---------- جدول ---------- */
th { font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); background: transparent; }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
table.matrix td.cell { border-radius: 14px; }

/* ---------- یادداشت ---------- */
.note { border-radius: var(--r-md); border: 0; }
.empty { color: var(--muted); }

/* ---------- پنجره و برگه ---------- */
.modal-bg { background: rgba(9, 10, 15, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal { border-radius: 28px; border: 0; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal .mh { border-bottom: 1px solid var(--line); }
.sheet { border-radius: 28px 28px 0 0; background: var(--surface); border: 0; }
.sheet .grab { background: var(--surface-3); }
.pop { border-radius: 22px; border: 0; background: var(--surface); box-shadow: var(--shadow-pop); }
.menu-list a, .menu-list button { border-radius: 12px; }

/* اسکلت بارگذاری */
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; border-radius: var(--r); }

/* =====================================================================
   چارچوب تازه: سربرگ + زبانه بخش‌ها + زیرمنوی بخش؛ گوشی: نوار پایین شناور
   ===================================================================== */
.x-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.x-top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.x-top-in { display: flex; align-items: center; gap: 10px; height: var(--top-h); padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); max-width: 1560px; margin: 0 auto; }
.x-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.x-brand .lg { width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
:root[data-theme="dark"] .x-brand .lg { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-brand .lg { background: var(--lime); color: var(--ink); } }
.x-brand .lg svg.i { width: 21px; height: 21px; }
.x-brand b { font-family: var(--brandf); font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: 0; }
.x-nav { display: flex; gap: 2px; background: var(--surface); padding: 4px; border-radius: 999px; margin-inline-start: 14px; }
.x-nav a { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; position: relative; }
.x-nav a svg.i { width: 17px; height: 17px; }
.x-nav a:hover { color: var(--text); background: var(--surface-2); }
.x-nav a.on { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .x-nav a.on { background: var(--surface-3); color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-nav a.on { background: var(--surface-3); color: var(--text); } }
.x-nav a .badge { position: static; min-width: 18px; height: 18px; font-size: 10.5px; }
.x-sp { flex: 1; }
.x-mode { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; flex: none; }
.x-mode button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.x-mode button.on { background: var(--lime); color: var(--ink); }
.x-mode button.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.x-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 0; border-radius: 999px; padding: 0 14px; height: 42px; width: 230px; color: var(--muted); cursor: pointer; font-size: 13px; flex: none; }
.x-search svg.i { width: 17px; height: 17px; }
.x-search kbd { margin-inline-start: auto; font-family: inherit; font-size: 11px; background: var(--surface-2); border-radius: 6px; padding: 0 7px; color: var(--text-2); }
.x-live { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 6px; flex: none; }
.x-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.x-live.on { color: var(--up); } .x-live.on i { background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 18%, transparent); animation: x-blink 2s infinite; }
@keyframes x-blink { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--up) 5%, transparent); } }
.x-av { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 16px; cursor: pointer; flex: none; display: grid; place-items: center; }
.x-sub { max-width: 1560px; margin: 0 auto; width: 100%; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); display: flex; gap: 6px; align-items: center; height: var(--sub-h); overflow-x: auto; scrollbar-width: none; }
.x-sub::-webkit-scrollbar { display: none; }
.x-sub:empty { display: none; }
.x-sub a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.x-sub a svg.i { width: 15px; height: 15px; }
.x-sub a:hover { color: var(--text); background: var(--surface); }
.x-sub a.on { color: var(--text); background: var(--surface); }
.x-sub a.on::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac-2); }
.x-sub .x-sub-t { font-size: 12px; color: var(--muted); padding-inline-end: 6px; white-space: nowrap; }
.x-tape { max-width: 1560px; margin: 0 auto; width: 100%; padding: 0 max(24px, env(safe-area-inset-right)) 6px max(24px, env(safe-area-inset-left)); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.x-tape::-webkit-scrollbar { display: none; }
.x-tape:empty { display: none; }
.x-tape .tk { background: var(--surface); border-radius: 14px; padding: 7px 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.x-tape .tk span { color: var(--muted); } .x-tape .tk b { font-weight: 700; font-size: 13.5px; } .x-tape .tk em { font-style: normal; font-weight: 600; font-size: 11.5px; }
.x-tape .tk svg.spark { width: 48px; height: 18px; }
body.simple .x-tape { display: none; }
.x-main { flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; padding: 14px max(24px, env(safe-area-inset-right)) 60px max(24px, env(safe-area-inset-left)); min-width: 0; }
.x-main > .announce, #announce { margin-bottom: 12px; }
.x-foot { max-width: 1560px; margin: 0 auto; width: 100%; padding: 10px 24px 26px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.x-foot b { color: var(--text-2); font-weight: 600; }
.x-tab { display: none; }

/* منوی همه بخش‌ها (برگه) */
.x-menu h4 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 16px 4px 8px; }
.x-menu .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.x-menu .grid a, .x-menu .grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 600; text-decoration: none !important; border: 0; cursor: pointer; text-align: center; line-height: 1.4; }
.x-menu .grid a svg.i, .x-menu .grid button svg.i { width: 22px; height: 22px; color: var(--text-2); }
.x-menu .grid a.on { background: var(--lime); color: var(--ink); } .x-menu .grid a.on svg.i { color: var(--ink); }
.x-menu .me { display: flex; align-items: center; gap: 12px; padding: 6px 4px 4px; }
.x-menu .me .x-av { width: 48px; height: 48px; }
.x-menu .me b { font-size: 16px; } .x-menu .me small { display: block; color: var(--muted); font-size: 12px; }

/* منوی حساب */
.x-me { width: 300px; padding: 10px; }
.x-me .hd { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.x-me .hd b { display: block; font-size: 15px; } .x-me .hd small { color: var(--muted); font-size: 12px; }
.x-me a, .x-me button.it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 14px; color: var(--text); text-decoration: none !important; border: 0; background: transparent; cursor: pointer; font-size: 13.5px; text-align: right; }
.x-me a:hover, .x-me button.it:hover { background: var(--surface-2); }
.x-me a svg.i, .x-me button.it svg.i { width: 18px; height: 18px; color: var(--text-2); }
.x-me .it em { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.x-me .it.danger, .x-me .it.danger svg.i { color: var(--down); }
.x-me .sws { display: flex; gap: 8px; padding: 6px 10px 10px; }
.x-me .sws button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; }
.x-me .sws button.on { box-shadow: 0 0 0 2px var(--text); }
.x-me .lbl { font-size: 11.5px; color: var(--muted); padding: 8px 10px 2px; }
.x-me .thm { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin: 4px 6px 8px; }
.x-me .thm button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; gap: 5px; align-items: center; justify-content: center; }
.x-me .thm button svg.i { width: 15px; height: 15px; }
.x-me .thm button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* عنوان صفحه */
.v4-head, .page-head { margin-bottom: 16px; }
.v4-head h1 .hic { background: var(--surface); color: var(--text); border-radius: 14px; }
.v4-head p, .page-head p { color: var(--muted); }

/* =====================================================================
   خانه — حالت ساده
   ===================================================================== */
.sh-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 2px 18px; flex-wrap: wrap; }
.sh-hello h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.8px; line-height: 1.35; }
.sh-hello h1 u { text-decoration: none; background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 4px; }
.sh-hello h1 small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 2px; }
.sh-hello > * { min-width: 0; max-width: 100%; }
.sh-amt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.sh-amt .chip { font-weight: 600; }
.sh-amt .chip.on { background: var(--lime); color: var(--ink); }
.sh-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.sh-hero { background: var(--ink); color: #fff; border-radius: 32px; padding: 30px; position: relative; overflow: hidden; isolation: isolate; min-height: 100%; }
.sh-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 30%, transparent), transparent 65%); left: -110px; top: -140px; z-index: -1; }
:root[data-theme="dark"] .sh-hero { background: #171a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-hero { background: #171a24; } }
.sh-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #d6d9e4; }
.sh-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 22%, transparent); }
.sh-tag.warn i { background: #f7b548; box-shadow: 0 0 0 4px rgba(247, 181, 72, .2); }
.sh-tag.mute i { background: #8a8fa0; box-shadow: none; }
.sh-say { font-size: clamp(20px, 2.2vw, 27px); font-weight: 500; line-height: 1.65; margin: 18px 0 4px; letter-spacing: -.4px; max-width: 560px; }
.sh-say b { font-weight: 700; color: var(--lime); }
.sh-money { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sh-money strong { font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -1.5px; line-height: 1; white-space: nowrap; }
.sh-money strong.neg { color: #ff8a92; }
.sh-money span { font-size: 16px; color: #b9bdcb; }
.sh-safe { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.sh-safe span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; background: rgba(255, 255, 255, .07); padding: 8px 13px; border-radius: 12px; color: #e3e5ec; }
.sh-safe span svg.i { width: 16px; height: 16px; color: var(--lime); }
.sh-safe span.w svg.i { color: #f7b548; }
.sh-steps { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.sh-steps span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c9ccd8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); padding: 7px 12px 7px 14px; border-radius: 14px; }
.sh-steps em { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.sh-steps b { color: #fff; font-weight: 700; }
.sh-hero { display: flex; flex-direction: column; } .sh-hero .sh-go { margin-top: auto; padding-top: 24px; }
.sh-go { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.sh-go .btn.primary { height: 56px; font-size: 16px; padding-inline-start: 26px; }
.sh-go .btn.ol { height: 56px; background: transparent; border: 1.5px solid rgba(255, 255, 255, .18); color: #fff; }
.sh-go .btn.ol:hover { background: rgba(255, 255, 255, .06); }
.sh-side { display: grid; gap: 16px; align-content: start; }
.sh-box { background: var(--surface); border-radius: 28px; padding: 20px; }
.sh-box h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sh-box h3 a { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.sh-op { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 20px; background: var(--surface-2); margin-top: 8px; color: var(--text); text-decoration: none !important; cursor: pointer; border: 0; width: 100%; text-align: right; font: inherit; transition: background .15s; }
.sh-op:hover { background: var(--surface-3); }
.sh-op .cbadge { width: 42px; height: 42px; border-radius: 14px; font-size: 10.5px; flex: none; }
.sh-op b { display: block; font-size: 14.5px; font-weight: 600; } .sh-op small { font-size: 12.5px; color: var(--muted); }
.sh-op .r { margin-inline-start: auto; text-align: left; } .sh-op .r b { font-size: 15px; }
.sh-op .r small { display: inline-flex; align-items: center; gap: 5px; }
.lvd { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lvd.high { background: var(--up); } .lvd.mid { background: var(--warn); } .lvd.low { background: var(--down); }
.sh-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sh-tip { background: var(--surface); border-radius: 28px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; color: var(--text); text-decoration: none !important; }
.sh-tip .e { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.sh-tip .e svg.i { width: 22px; height: 22px; }
.sh-tip small { font-size: 12.5px; color: var(--muted); } .sh-tip p { font-size: 15px; font-weight: 500; line-height: 1.75; margin: 2px 0 0; }
.sh-tip p b { font-weight: 700; }
.e.gold { background: var(--warn-soft); color: var(--warn); } .e.up { background: var(--up-soft); color: var(--up); } .e.vi { background: var(--violet-soft); color: var(--violet); } .e.in { background: var(--info-soft); color: var(--info); }
.sh-how { margin-top: 16px; background: var(--surface); border-radius: 28px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sh-how b { font-size: 14px; } .sh-how ol { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; counter-reset: s; }
.sh-how li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); counter-increment: s; }
.sh-how li::before { content: counter(s, persian); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--text); }

/* =====================================================================
   خانه — حالت حرفه‌ای (ترمینال)
   ===================================================================== */
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.pt-pan { background: var(--surface); border-radius: 24px; padding: 16px; min-width: 0; }
.pt-ph { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pt-ph h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pt-ph small { color: var(--muted); font-size: 12px; }
.pt-fl { display: flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.pt-fl button { font: inherit; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 0; cursor: pointer; font-weight: 500; }
.pt-fl button.on { background: var(--ac-soft); color: var(--ac-ink); font-weight: 600; }
.pt-tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.pt-tbl th { font-size: 11px; font-weight: 500; padding: 6px 8px; border: 0; color: var(--muted); }
.pt-tbl td { padding: 9px 8px; border: 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 13px; cursor: pointer; }
.pt-tbl tr.sel td { background: var(--surface-2); }
.pt-tbl tr.sel td:first-child { border-radius: 0 14px 14px 0; box-shadow: inset -3px 0 0 var(--ac-2); }
.pt-tbl tr.sel td:last-child { border-radius: 14px 0 0 14px; }
.pt-tbl tr.sel + tr td, .pt-tbl tr.sel td { border-top-color: transparent; }
.pt-tbl tbody tr:hover td { background: var(--surface-2); }
.pt-tbl .cc { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pt-tbl .cc .cbadge { width: 26px; height: 26px; border-radius: 8px; font-size: 8px; }
.pt-tbl .mu { color: var(--text-2); font-weight: 400; }
.pt-tbl .pc { font-weight: 800; text-align: left; }
.pt-tbl .st { color: var(--muted); font-size: 11.5px; }
.cfm { display: inline-flex; align-items: center; gap: 6px; } .cfm s { display: inline-block; width: 30px; height: 5px; border-radius: 9px; background: var(--surface-3); overflow: hidden; text-decoration: none; } .cfm s i { display: block; height: 100%; border-radius: 9px; }
.pt-hd { display: flex; align-items: center; gap: 12px; }
.pt-hd .cbadge { width: 48px; height: 48px; border-radius: 15px; font-size: 11px; flex: none; }
.pt-hd b { font-size: 19px; font-weight: 700; display: block; line-height: 1.3; } .pt-hd p { color: var(--text-2); font-size: 12.5px; margin: 2px 0 0; }
.pt-hd .r { margin-inline-start: auto; text-align: left; } .pt-hd .r strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; } .pt-hd .r small { color: var(--text-2); font-size: 12.5px; }
.pt-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pt-k div { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.pt-k span { font-size: 11px; color: var(--muted); display: block; } .pt-k b { display: block; font-size: 14.5px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 6px; align-items: stretch; margin-top: 10px; }
.pt-flow .s { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.pt-flow .s small { font-size: 11px; color: var(--muted); display: block; } .pt-flow .s b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-flow .s span { font-size: 12.5px; font-weight: 600; }
.pt-flow .ar { display: grid; place-items: center; color: var(--muted); } .pt-flow .ar svg.i { width: 16px; height: 16px; }
.pt-flow .s.bad { background: var(--down-soft); }
.pt-books { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pt-bk { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.pt-bk h4 { font-size: 11.5px; font-weight: 500; color: var(--text-2); margin: 0 0 6px; display: flex; justify-content: space-between; gap: 6px; }
.pt-bk h4 em { font-style: normal; color: var(--muted); }
.pt-lv { display: flex; justify-content: space-between; position: relative; padding: 3px 8px; font-size: 12px; font-weight: 600; border-radius: 6px; margin-bottom: 2px; }
.pt-lv i { position: absolute; inset: 0; left: 0; right: auto; border-radius: 6px; z-index: 0; }
.pt-lv span { position: relative; z-index: 1; }
.pt-lv.ok { outline: 1px dashed color-mix(in srgb, var(--ac-2) 70%, transparent); outline-offset: -1px; }
.pt-lv.ask i { background: var(--up-soft); } .pt-lv.bid i { background: var(--down-soft); }
.pt-bk .none { font-size: 12px; color: var(--muted); padding: 8px 0; }
.pt-wf { margin-top: 10px; background: var(--surface-2); border-radius: 16px; padding: 10px 12px; }
.pt-wr { display: grid; grid-template-columns: minmax(96px, 150px) 1fr 96px; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; }
.pt-wr span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-wr .bar { height: 8px; border-radius: 9px; background: var(--surface-3); position: relative; overflow: hidden; } .pt-wr .bar i { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.pt-wr b { text-align: left; font-weight: 700; }
.pt-wr.t { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; } .pt-wr.t span { color: var(--text); font-weight: 700; }
.pt-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pt-acts .btn.primary { flex: 1; min-width: 160px; height: 46px; }
.pt-acts .btn { height: 46px; }
.pt-bt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.pt-hz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-hz a, .pt-hz div { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; color: var(--text); text-decoration: none !important; min-width: 0; }
.pt-hz span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; } .pt-hz span i { width: 7px; height: 7px; border-radius: 50%; }
.pt-hz b { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-2); margin-inline-start: auto; } .pt-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 3px; margin-inline-end: 5px; vertical-align: middle; }
.pt-empty { padding: 30px 10px; text-align: center; color: var(--muted); }
.pt-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.pt-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pt-mini a { background: var(--surface-2); border-radius: 16px; padding: 10px 12px; color: var(--text); text-decoration: none !important; display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-mini a .cbadge { width: 28px; height: 28px; border-radius: 9px; font-size: 8.5px; flex: none; }
.pt-mini a b { font-size: 13px; display: block; } .pt-mini a small { font-size: 11.5px; color: var(--muted); }
.pt-mini a .r { margin-inline-start: auto; text-align: left; font-weight: 700; font-size: 12.5px; }

/* =====================================================================
   اعلان‌ها — پیام کوتاه، مرکز اعلان، تنظیمات
   ===================================================================== */
.toasts { position: fixed; z-index: 105; top: calc(var(--top-h) + 12px); left: 20px; right: auto; bottom: auto; display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 12px; border-radius: 22px; background: var(--surface); color: var(--text); border: 0;
  box-shadow: var(--shadow-pop); overflow: hidden; animation: x-in .32s cubic-bezier(.2, .9, .3, 1.2); transition: transform .22s, opacity .22s; }
.toast.out { opacity: 0; transform: translateX(-30px) scale(.96); }
@keyframes x-in { from { opacity: 0; transform: translateY(-12px) scale(.95); } }
.toast .t-ic { width: 40px; height: 40px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 19px; flex: none; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; flex-wrap: wrap; }
.toast .t-title { font-size: 13.5px; font-weight: 700; }
.toast .t-chip { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.toast .t-time { font-size: 11px; color: var(--muted); margin-inline-start: auto; }
.toast .t-text { font-size: 13px; color: var(--text-2); white-space: pre-line; line-height: 1.7; }
.toast:not(.rich) .t-text { color: var(--text); font-weight: 500; }
.toast .t-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.toast .t-acts button { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; }
.toast .t-acts button:first-child { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .toast .t-acts button:first-child { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast .t-acts button:first-child { background: var(--lime); color: var(--ink); } }
.toast .t-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; margin: -4px -2px 0 0; }
.toast .t-x:hover { background: var(--surface-2); color: var(--text); }
.toast .t-x svg.i { width: 15px; height: 15px; }
.toast .t-bar { position: absolute; bottom: 0; right: 0; left: 0; height: 3px; background: var(--line-2); transform-origin: right; animation: t-bar linear forwards; }
.toast.hold .t-bar { animation-play-state: paused; }
@keyframes t-bar { to { transform: scaleX(0); } }
.toast .t-n { position: absolute; top: 8px; left: 40px; font-size: 10.5px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 6px; }
.toast.tone-win .t-ic { background: var(--up-soft); } .toast.tone-win .t-chip { background: var(--up-soft); color: var(--up); } .toast.tone-win .t-bar { background: var(--up); }
.toast.tone-lose .t-ic { background: var(--surface-2); } .toast.tone-lose .t-chip { color: var(--down); }
.toast.tone-alert .t-ic, .toast.tone-crit .t-ic { background: var(--down-soft); } .toast.tone-alert .t-bar, .toast.tone-crit .t-bar { background: var(--down); }
.toast.tone-crit { box-shadow: var(--shadow-pop), inset 0 0 0 1.5px var(--down); }
.toast.tone-warn .t-ic { background: var(--warn-soft); } .toast.tone-warn .t-bar { background: var(--warn); }
.toast.tone-info .t-ic { background: var(--info-soft); }
.toast.tone-follow .t-ic { background: var(--lime); } .toast.tone-follow .t-bar { background: var(--ac-2); }
.toast.tone-follow { box-shadow: var(--shadow-pop), inset 0 0 0 1.5px color-mix(in srgb, var(--ac-2) 70%, transparent); }

/* مرکز اعلان */
.x-drawer-bg { position: fixed; inset: 0; z-index: 150; background: rgba(9, 10, 15, .35); backdrop-filter: blur(3px); animation: x-fade .2s; }
@keyframes x-fade { from { opacity: 0; } }
.x-drawer { position: fixed; z-index: 151; top: 10px; bottom: 10px; left: 10px; width: min(430px, calc(100vw - 20px)); background: var(--bg); border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: x-slide .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes x-slide { from { transform: translateX(-30px); opacity: 0; } }
.xd-h { padding: 18px 18px 10px; display: flex; align-items: center; gap: 10px; }
.xd-h h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.xd-h h3 em { font-style: normal; font-size: 12px; font-weight: 700; background: var(--down); color: #fff; border-radius: 999px; padding: 1px 9px; }
.xd-h .icon-btn { width: 38px; height: 38px; }
.xd-h .sp { flex: 1; }
.xd-tabs { display: flex; gap: 4px; padding: 0 18px 10px; overflow-x: auto; scrollbar-width: none; }
.xd-tabs button { font: inherit; font-size: 12.5px; font-weight: 600; border: 0; background: var(--surface); color: var(--text-2); padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.xd-tabs button i { font-style: normal; font-size: 10.5px; background: var(--surface-3); padding: 0 6px; border-radius: 999px; }
.xd-tabs button.on { background: var(--ink); color: #fff; } .xd-tabs button.on i { background: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .xd-tabs button.on { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xd-tabs button.on { background: var(--lime); color: var(--ink); } }
.xd-body { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.xd-alert { display: grid; gap: 6px; margin: 0 6px 10px; }
.xd-alert a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--down-soft); color: var(--text); text-decoration: none !important; }
.xd-alert a.lv-warn { background: var(--warn-soft); }
.xd-alert a i { width: 10px; height: 10px; border-radius: 50%; background: var(--down); flex: none; animation: x-pulse 1.4s infinite; }
.xd-alert a.lv-warn i { background: var(--warn); }
.xd-alert b { display: block; font-size: 13px; } .xd-alert small { font-size: 11.5px; color: var(--text-2); }
.xd-day { font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 12px 8px 6px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.xn { display: flex; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); margin-bottom: 6px; cursor: pointer; position: relative; transition: background .15s; }
.xn:hover { background: var(--surface-2); }
.xn .ic { width: 40px; height: 40px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: none; }
.xn.tone-win .ic { background: var(--up-soft); } .xn.tone-alert .ic, .xn.lv-crit .ic { background: var(--down-soft); } .xn.lv-warn .ic { background: var(--warn-soft); } .xn.tone-me .ic { background: var(--violet-soft); } .xn.lv-ok .ic { background: var(--up-soft); }
.xn .b { flex: 1; min-width: 0; }
.xn .h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xn .h b { font-size: 13.5px; font-weight: 700; }
.xn .h .ch { font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--surface-2); }
.xn.tone-win .h .ch { background: var(--up-soft); color: var(--up); } .xn.tone-lose .h .ch { color: var(--down); }
.xn .h .tg2 { font-size: 10.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }
.xn .h .t { margin-inline-start: auto; font-size: 11px; color: var(--muted); }
.xn .x { font-size: 12.5px; color: var(--text-2); white-space: pre-line; line-height: 1.7; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.xn .p { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.xn .rep { font-size: 11px; color: var(--muted); margin-top: 3px; }
.xn.unread::before { content: ""; position: absolute; top: 9px; right: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--info); border: 2px solid var(--surface); z-index: 1; }
.xn .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.xn .acts button, .xn .acts a { font: inherit; font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; text-decoration: none !important; display: inline-flex; gap: 4px; align-items: center; }
.xn .acts svg.i { width: 13px; height: 13px; }
.xd-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.xd-empty .e { width: 64px; height: 64px; border-radius: 22px; background: var(--surface); display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; }
.xd-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.xd-foot { padding: 10px 18px 16px; display: flex; gap: 8px; border-top: 1px solid var(--line); background: var(--bg); }
.xd-foot .btn { flex: 1; }
.xd-set { padding: 0 18px 16px; overflow-y: auto; flex: 1; }
.xd-set .grp { background: var(--surface); border-radius: 22px; padding: 6px 14px; margin-bottom: 10px; }
.xd-set .grp > h5 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 10px 0 2px; }
.xd-set .row2 { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.xd-set .row2:last-child { border-bottom: 0; }
.xd-set .row2 .t { flex: 1; min-width: 0; } .xd-set .row2 .t b { display: block; font-size: 13.5px; font-weight: 600; } .xd-set .row2 .t small { font-size: 11.5px; color: var(--muted); }
.xd-set select, .xd-set input[type=time], .xd-set input[type=number] { font: inherit; font-size: 13px; background: var(--surface-2); border: 0; border-radius: 12px; padding: 7px 10px; color: var(--text); }
.xd-set input[type=number] { width: 80px; }
.xd-set .seg { flex: none; }
.dnd-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); }

/* نوار مشکل سامانه */
.sysbar { border-radius: 20px; border: 0; margin: 0 0 12px; }

/* ستاره دنبال کردن */
.fl-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.fl-btn:hover { background: var(--surface-2); color: var(--text); }
.fl-btn.on { color: #e3a008; }
.fl-btn.on svg.i { fill: currentColor; }
.fl-btn svg.i { width: 17px; height: 17px; }

/* ---------- کارت مسیر v4 با رنگ‌های تازه ---------- */
.rcard { background: var(--surface); border: 0; border-radius: var(--r); }
.rcard.win { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--up) 35%, transparent); }
.prime { background: var(--surface); border: 0; border-radius: 28px; }
.mk { background: var(--surface); border: 0; border-radius: 20px; }
.cmini { border-radius: 16px; }
.cmini:hover { background: var(--surface-2); }

/* ---------- صفحه عمومی و ورود ---------- */
.pbrand b, .lf-brand b, .art-name, .brand b, .m-brand b { font-family: var(--brandf); font-weight: 400; }
.pbrand .logo, .logo { background: var(--ink); color: var(--lime); box-shadow: none; }
:root[data-theme="dark"] .pbrand .logo, :root[data-theme="dark"] .logo { background: var(--lime); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pbrand .logo, :root:not([data-theme="light"]) .logo { background: var(--lime); color: var(--ink); } }
.lx-hero em, .h2-title em { color: inherit; background: linear-gradient(transparent 60%, var(--lime) 60%); font-style: normal; padding: 0 4px; }

/* =====================================================================
   گوشی
   ===================================================================== */
@media (max-width: 1180px) { .x-search { width: 44px; padding: 0; justify-content: center; } .x-search span, .x-search kbd { display: none; } }
@media (max-width: 1020px) { .x-nav a { padding: 8px 12px; } .x-nav a svg.i { display: none; } .x-live span { display: none; } }
@media (max-width: 860px) {
  :root { --top-h: 60px; }
  .x-nav, .x-live { display: none; }
  .x-sub { padding: 0 14px; height: 44px; } .x-sub a { background: var(--surface); padding: 6px 12px; } .x-sub a.on { background: var(--ink); color: #fff; } .x-sub a.on::after { display: none; }
  .x-top-in { padding: 0 14px; gap: 8px; }
  .x-brand b { font-size: 21px; }
  .x-brand .lg { width: 38px; height: 38px; border-radius: 12px; }
  .x-search { width: 40px; height: 40px; background: var(--surface); }
  .icon-btn { width: 40px; height: 40px; }
  .x-av { display: none; }
  .x-mode button { padding: 7px 11px; font-size: 12.5px; }
  .x-tape { padding: 0 14px 6px; }
  .x-main { padding: 10px 14px 120px; }
  .x-foot { display: none; }
  .x-tab { display: flex; position: fixed; z-index: 45; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; right: 14px; background: var(--ink); border-radius: 999px; padding: 7px; gap: 2px; justify-content: space-between; box-shadow: 0 16px 40px -14px rgba(9, 10, 15, .55); }
  :root[data-theme="dark"] .x-tab { background: #1c1f2a; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06); }
  .x-tab a, .x-tab button { flex: 1; height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #8d92a3; font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; position: relative; text-decoration: none !important; transition: flex .25s, background .2s, color .2s; min-width: 0; }
  .x-tab a span, .x-tab button span { display: none; white-space: nowrap; }
  .x-tab .on { background: var(--lime); color: var(--ink); flex: 1.9; }
  .x-tab .on span { display: inline; }
  .x-tab svg.i { width: 21px; height: 21px; flex: none; }
  .x-tab .badge { position: absolute; top: 6px; left: calc(50% - 20px); border: 2px solid var(--ink); }
  .toasts { top: calc(var(--top-h) + 6px + env(safe-area-inset-top, 0px)); bottom: auto !important; left: 10px; right: 10px; width: auto; max-width: none; }
  .toast { padding: 11px 11px 12px 10px; border-radius: 20px; } .toast .t-ic { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; }
  .toast.out { transform: translateY(-16px) scale(.96); }
  .x-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 92vh; height: 92dvh; border-radius: 28px 28px 0 0; animation: x-up .3s cubic-bezier(.2, .9, .3, 1); }
  @keyframes x-up { from { transform: translateY(40px); opacity: .4; } }
  .sh-grid, .sh-row3, .pt-grid, .pt-bt { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sh-row3 { margin-top: 12px; }
  .sh-hello { margin: 6px 2px 14px; gap: 12px; flex-direction: column; align-items: stretch; }
  .sh-amt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sh-amt .chip { white-space: nowrap; padding: 7px 12px; font-size: 12.5px; } .sh-amt > span { white-space: nowrap; }
  .sh-hero { padding: 22px; border-radius: 28px; }
  .sh-money { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sh-money span { font-size: 14px; }
  .sh-safe span { white-space: nowrap; font-size: 12.5px; padding: 7px 11px; } .sh-safe span:nth-child(n+3) { display: none; }
  .sh-steps span:nth-child(2) { display: none; }
  .sh-go { flex-wrap: nowrap; } .sh-go .btn.primary { flex: 1; height: 54px; font-size: 15px; padding-inline-start: 18px; justify-content: space-between; } .sh-go .btn.ol { width: 54px; height: 54px; padding: 0; flex: none; } .sh-go .btn.ol .tx { display: none; }
  .sh-box, .sh-tip { border-radius: 24px; padding: 16px; }
  .sh-how { display: none; }
  .pt-k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-flow { grid-template-columns: minmax(0, 1fr); } .pt-flow .ar { display: none; } .pt-flow .s { display: flex; align-items: center; gap: 10px; } .pt-flow .s b { flex: 1; } .pt-flow .s small { width: 44px; flex: none; }
  .pt-wr { grid-template-columns: 92px 1fr 80px; }
  .pt-hd .r strong { font-size: 26px; }
  .pt-tbl .hm { display: none; } .pt-tbl td, .pt-tbl th { padding: 9px 5px; } .pt-tbl td.mu { font-size: 12px; }
  .pt-fl { margin-inline-start: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .pt-fl button { white-space: nowrap; }
  .pt-hz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { border-radius: 26px; }
}
@media (max-width: 420px) { .x-brand b { display: none; } }
@media print { .x-top, .x-tab, .toasts, .x-foot { display: none !important; } }

/* لوگو و تیتر صفحه عمومی */
.logo svg, .logo svg.i { stroke: currentColor; }
.lx-hero h1 em { -webkit-background-clip: border-box; background-clip: border-box; color: inherit; background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 6px; border-radius: 4px; }
.art-mid h2 span { color: var(--lime); }
.login-art { background: radial-gradient(700px 500px at 0% 0%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 60%), #0d1020; }
:root[data-theme="dark"] .sh-hello h1 u { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-hello h1 u { color: var(--ink); } }

/* ===== UI 3.5: برنامه نصب‌شده روی گوشی — سربرگ زیر نوار وضعیت نمی‌رود ===== */
.x-top { padding-top: env(safe-area-inset-top, 0px); }
@media (display-mode: standalone), (display-mode: fullscreen) {
  .x-top { padding-top: max(env(safe-area-inset-top, 0px), 20px); }
}
@media (max-width: 860px) {
  .x-top-in { height: 62px; }
  .x-mode button { padding: 9px 14px; font-size: 13.5px; }
  .x-search, .icon-btn { width: 44px; height: 44px; }
  .x-sub { height: 50px; gap: 8px; } .x-sub a { padding: 8px 14px; font-size: 13.5px; }
}

/* ===== UI 3.5: کاشی آیکون طراحی‌شده به‌جای ایموجی ===== */
.kic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; font-style: normal; color: #fff;
  background: linear-gradient(145deg, var(--k1), var(--k2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -8px var(--k2); }
.kic svg.i { width: 52%; height: 52%; stroke: currentColor; stroke-width: 2; }
.k-up { --k1: #34d399; --k2: #059669; } .k-dn { --k1: #ff7a85; --k2: #e0434b; } .k-gd { --k1: #fbbf24; --k2: #d97706; }
.k-in { --k1: #60a5fa; --k2: #2563eb; } .k-vi { --k1: #a78bfa; --k2: #6d4ef2; } .k-mu { --k1: #9ca3af; --k2: #6b7280; }
.k-ac { --k1: #d9f99d; --k2: #a3d63a; color: #1a2600; }
.toast .t-ic, .xn .ic, .nt-ic, .sg-ic, .sgn-i { background: transparent !important; padding: 0; overflow: hidden; }
.toast .t-ic { border-radius: 13px; } .xn .ic { border-radius: 14px; }
/* پیام کوتاه سیگنال: جمع‌وجور */
.toast.sig { padding: 10px 10px 10px 8px; gap: 10px; border-radius: 20px; align-items: center; }
.toast.sig .t-ic { width: 36px; height: 36px; border-radius: 12px; align-self: flex-start; }
.toast.sig .t-head { margin: 0; }
.toast.sig .t-title { font-size: 13px; }
.toast.sig .t-text { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.toast.sig .t-acts { margin-top: 6px; }
.toast .t-acts button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; font-size: 12px; border-radius: 999px; transition: transform .12s, filter .15s; }
.toast .t-acts button svg.i { width: 14px; height: 14px; }
.toast .t-acts button:active { transform: scale(.95); }
.toast .t-acts button:first-child { background: var(--grad-ac); color: var(--on-ac); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--lime) 90%, transparent); }
.toast .t-acts button:not(:first-child) { background: var(--surface-2); color: var(--text); }
:root[data-theme="dark"] .toast .t-acts button:first-child { background: var(--grad-ac); color: var(--on-ac); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast .t-acts button:first-child { background: var(--grad-ac); color: var(--on-ac); } }
.toast .t-chip { font-size: 11px; padding: 1px 8px; }
.toast.sig .t-bar { height: 2px; }
.toasts { width: min(360px, calc(100vw - 32px)); }
/* آیکون‌های داخل متن صفحه‌ها (به‌جای ایموجی) */
.wf .r span svg.i, .rt-max svg.i, .rt-why svg.i, .cx-best svg.i { width: 15px; height: 15px; vertical-align: -3px; margin-inline-end: 5px; color: var(--text-2); }
.gv-pt h3 span { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--surface-2); margin-inline-end: 8px; }
.gv-pt h3 span svg.i { width: 18px; height: 18px; }
.gv-verdict .gi svg.i { width: 22px; height: 22px; }
.sg-ic { width: 40px; height: 40px; border-radius: 13px; display: inline-grid; flex: none; }
.feed .ic, li .ic:has(> .kic) { width: 36px; height: 36px; border-radius: 12px; display: inline-grid; overflow: hidden; flex: none; }

/* ===== UI 3.5: کارت اتصال ربات ===== */
.botx { background: var(--surface); border-radius: 28px; overflow: hidden; }
.botx-hero { background: var(--ink); color: #fff; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.botx-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; left: -90px; bottom: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 30%, transparent), transparent 65%); z-index: -1; }
:root[data-theme="dark"] .botx-hero { background: #171a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .botx-hero { background: #171a24; } }
.botx-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d6d9e4; background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; }
.botx-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 22%, transparent); }
.botx h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.45; margin: 12px 0 6px; letter-spacing: -.4px; }
.botx-copy p { color: #b9bdcb; font-size: 13.5px; margin: 0 0 14px; line-height: 1.9; } .botx-copy p b { color: var(--lime); }
.botx-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.botx-feats span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: rgba(255, 255, 255, .07); color: #e3e5ec; padding: 7px 11px; border-radius: 12px; }
.botx-feats svg.i { width: 15px; height: 15px; color: var(--lime); }
.botx-copy .btn.go { height: 52px; font-size: 15px; padding-inline-start: 24px; }
.botx-phone { background: #e9edf2; border-radius: 26px; padding: 10px; color: #111; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); transform: rotate(-2deg); }
.bp-top { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.bp-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; } .bp-av svg.i { width: 16px; height: 16px; }
.bp-top b { font-size: 12.5px; display: block; line-height: 1.2; } .bp-top small { font-size: 10px; color: #6b7280; }
.bp-msg { background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 10.5px; line-height: 1.8; display: grid; }
.bp-msg b { font-size: 11px; } .bp-hr { display: block; height: 1px; background: repeating-linear-gradient(90deg, #cbd2d9 0 4px, transparent 4px 7px); margin: 4px 0; }
.bp-p { font-weight: 700; color: #059669; } .bp-m { color: #4b5563; }
.bp-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; } .bp-kb span { background: rgba(255, 255, 255, .7); border-radius: 10px; font-size: 9.5px; text-align: center; padding: 6px 2px; font-weight: 600; }
.botx-code { margin: 16px 18px 0; background: var(--surface-2); border-radius: 22px; padding: 16px; }
.bc-k { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .bc-k small { color: var(--muted); font-size: 12px; display: block; width: 100%; }
.bc-k b { font-size: 26px; font-weight: 800; letter-spacing: 3px; background: var(--surface); border-radius: 14px; padding: 4px 16px; }
.botx-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.botx-steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.botx-steps li::before { content: counter(s, persian); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.botx-chats { padding: 16px 18px 18px; }
.botx-chats h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; } .botx-chats h3 svg.i { width: 18px; height: 18px; color: var(--text-2); }
.botx-chats .dev { background: var(--surface-2); border: 0; border-radius: 18px; }
.botx-chats .empty, .botx-chats p { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .botx-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .botx-phone { max-width: 260px; justify-self: center; transform: none; }
  .botx-copy .btn.go { width: 100%; justify-content: space-between; }
}

/* ===== برنامه سرمایه ===== */
.pl-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pl-sum div { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.pl-sum small { display: block; font-size: 11.5px; color: var(--muted); } .pl-sum b { font-size: 19px; font-weight: 800; } .pl-sum b i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.pl-list { display: grid; gap: 6px; margin-top: 10px; }
.pl-it { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 18px; padding: 10px 12px; }
.pl-n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.pl-it .cbadge { width: 36px; height: 36px; border-radius: 12px; font-size: 9px; flex: none; }
.pl-t { flex: 1; min-width: 0; } .pl-t b { display: block; font-size: 14px; } .pl-t small { color: var(--muted); font-size: 12px; }
.pl-p { text-align: left; } .pl-p b { display: block; font-size: 14.5px; } .pl-p small { color: var(--muted); font-size: 11.5px; }
.pl-note, .pl-empty { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; margin: 10px 2px 0; }
.pl-note svg.i, .pl-empty svg.i { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.pl-cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pl-cap input { font: inherit; font-size: 13px; width: 150px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; padding: 6px 12px; color: var(--text); }
.pl-cap input:focus { outline: none; border-color: var(--ac-2); }
.pl-top { margin-bottom: 12px; }
.sh-plan { margin-top: 16px; background: var(--surface); border-radius: 28px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.sh-plan .e { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; } .sh-plan .e svg.i { width: 22px; height: 22px; }
.sh-plan .t { flex: 1; min-width: 0; } .sh-plan small { color: var(--muted); font-size: 12.5px; } .sh-plan p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.8; }
@media (max-width: 860px) {
  .pl-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-it { flex-wrap: wrap; } .pl-it .btn { width: 100%; justify-content: center; }
  .sh-plan { flex-wrap: wrap; border-radius: 24px; padding: 16px; } .sh-plan .btn { width: 100%; justify-content: center; }
  .pl-cap input { width: 130px; }
}

/* =====================================================================
   UI 3.5 — یکدست کردن همه صفحه‌ها: آیکون سرتیتر، تیک و رادیو، انتخاب‌گر، یادداشت، جدول موبایل، کاشی‌ها
   ===================================================================== */
.card-h h2 svg.i, .v4-head h1 .hic svg.i { width: 34px; height: 34px; padding: 8px; border-radius: 12px; background: var(--surface-2); color: var(--text); flex: none; }
.v4-head h1 .hic { background: transparent; width: auto; height: auto; }
.v4-head h1 .hic svg.i { width: 44px; height: 44px; padding: 11px; border-radius: 15px; background: var(--surface); }
.card { border-radius: 26px; }
.card-h { padding: 18px 20px 4px; } .card-h h2 { font-size: 15.5px; gap: 10px; }
/* دکمه‌ها: بنفش قدیمی هم دکمه اصلی است؛ دکمه‌های کم‌رنگ داخل کارت‌ها */
.btn.violet { background: var(--grad-ac); color: var(--on-ac); box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--lime) 80%, transparent); }
.btn.violet:hover { background: var(--grad-ac); filter: brightness(1.04); }
.card .btn:not(.primary):not(.violet):not(.danger):not(.dark):not(.ghost) { background: var(--surface-2); }
.card .btn:not(.primary):not(.violet):not(.danger):not(.dark):not(.ghost):hover { background: var(--surface-3); }
.btn svg.i { flex: none; }
.btn.danger.ghost { border-color: transparent; background: var(--down-soft); }
/* تیک و رادیو */
input[type=checkbox]:not(.switch input), input[type=radio] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 2px solid var(--line-2);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, border-color .15s; vertical-align: middle; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:not(.switch input):checked, input[type=radio]:checked { background: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] input[type=checkbox]:not(.switch input):checked, :root[data-theme="dark"] input[type=radio]:checked { background: var(--lime); border-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type=checkbox]:not(.switch input):checked, :root:not([data-theme="light"]) input[type=radio]:checked { background: var(--lime); border-color: var(--lime); } }
input[type=checkbox]:not(.switch input):checked::after { content: ""; width: 10px; height: 6px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
:root[data-theme="dark"] input[type=checkbox]:not(.switch input):checked::after { border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type=checkbox]:not(.switch input):checked::after { border-color: var(--ink); } }
input[type=radio]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.switch input { width: 46px; height: 28px; } .switch input::after { top: 4px; right: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
/* انتخاب‌گر */
.field select, select.input, .xd-set select { appearance: none; -webkit-appearance: none; padding-left: 38px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868b9c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; }
/* جستجو */
.search input, input[type=search], .ubar input, .x-find input { border-radius: 999px !important; background: var(--surface-2) !important; border: 1.5px solid transparent !important; }
/* راهنمای مبلغ زیر فیلدهای تومانی */
.mhint { font-size: 12px; color: var(--ac-ink); font-weight: 600; margin-top: -2px; min-height: 18px; display: flex; align-items: center; gap: 6px; }
.mhint:empty { display: none; }
.mhint em { font-style: normal; color: var(--muted); font-weight: 400; }
.mchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.mchips button { font: inherit; font-size: 11.5px; font-weight: 600; border: 0; background: var(--surface-2); color: var(--text-2); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.mchips button:hover { background: var(--ac-soft); color: var(--ac-ink); }
/* یادداشت‌ها */
.note { padding: 12px 14px; gap: 12px; font-size: 13px; line-height: 1.8; border: 0 !important; border-radius: 18px; }
.note > svg.i { width: 32px; height: 32px; padding: 7px; border-radius: 11px; background: rgba(255, 255, 255, .55); flex: none; }
:root[data-theme="dark"] .note > svg.i { background: rgba(255, 255, 255, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note > svg.i { background: rgba(255, 255, 255, .06); } }
.note.gold { background: var(--ac-soft); color: var(--ac-ink); }
.note.info { background: var(--info-soft); }
.note.warn { background: var(--warn-soft); } .note.bad, .note.err { background: var(--down-soft); } .note.good { background: var(--up-soft); }
/* کاشی انتخاب صرافی و حالت کار */
.mx { border: 0; background: var(--surface-2); border-radius: 18px; padding: 10px 12px; transition: background .15s, box-shadow .15s; }
.mx.on { background: var(--ac-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac-2) 70%, transparent); border-color: transparent; }
.mx input[data-fee] { width: 86px; border: 0 !important; background: var(--surface) !important; border-radius: 999px !important; padding: 7px 10px !important; font-size: 12px; text-align: center; }
.onb-mode label { border: 0 !important; background: var(--surface-2); border-radius: 20px; }
.onb-mode label.on { background: var(--ac-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac-2) 70%, transparent); }
.onb-c { border: 0 !important; background: var(--surface-2) !important; border-radius: 16px !important; }
.onb-c.on { background: var(--ac-soft) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac-2) 70%, transparent); }
/* فهرست‌ها: دستگاه‌ها، گفتگوها، کاربران */
.devlist .dev, .urow, .urow2 { border: 0 !important; background: var(--surface-2); border-radius: 18px; }
.devlist { gap: 8px; } .dev .ic { background: var(--surface) !important; border-radius: 13px; }
.pill.mute, .pill.normal { border: 0; }
.tier { border-radius: 999px; }
/* آمارهای بالای صفحه‌ها */
.kpi, .stat { border-radius: 22px; }
.kpi .val, .stat b { font-weight: 800; letter-spacing: -.4px; }
.stats .stat, .sgs .stat { background: var(--surface); border: 0; }
/* جدول‌ها در گوشی: هر ردیف یک کارت */
@media (max-width: 760px) {
  table.rt tbody tr { background: var(--surface-2); border-radius: 18px; margin: 0 0 8px; padding: 6px 12px; border: 0 !important; display: block; }
  table.rt tbody td { border: 0 !important; padding: 7px 0 !important; }
  table.rt tbody td + td { border-top: 1px dashed var(--line) !important; }
  table.rt tbody tr:hover td { background: transparent; }
}
/* بلوک‌های داخلی قدیمی (ربات، ویژگی‌ها، مراحل) */
.botperks span, .feats .feat, .feat-live, .botkpi > div, .subbox, .tpl, .exc, .coin-tile, .spot, .opp, .tri2, .qa-i, .guide li { border: 0 !important; border-radius: 20px; }
.feats .feat, .feat-live, .botkpi > div, .tpl, .subbox { background: var(--surface-2); }
.exc, .coin-tile, .opp, .spot { background: var(--surface); box-shadow: none; }
.steps li::before, ol.guide li::before { background: var(--ink); color: #fff; border: 0; }
.codebox { border-radius: 16px; border: 0; background: var(--surface-2); }
.sub-h { font-size: 14px; font-weight: 700; }
.empty { border: 0; background: var(--surface-2); border-radius: 18px; }
.help { color: var(--muted); }
/* یادداشت نسخه نمایشی: کوچک و یک‌خطی */
.note.gold:has(> div:only-of-type) { font-size: 12.5px; padding: 8px 12px; }
.note.gold > svg.i { width: 26px; height: 26px; padding: 5px; }
.toast .t-n { top: auto; bottom: 8px; left: 12px; }
.ref-btn .ref-dot { position: absolute; top: 8px; left: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--up); border: 2px solid var(--surface); }
@media (max-width: 420px) { .x-search { display: none; } }

/* ===== نسخه ۵.۶: تجارت بین‌المللی و صرافی‌های خارجی ===== */
.ix-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ix-top .sh-amt { margin-inline-start: auto; }
.ix-path { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 24px; padding: 14px 18px; margin-bottom: 10px; }
.ix-path > div { display: flex; align-items: center; gap: 10px; } .ix-path b { font-size: 14px; display: block; } .ix-path small { color: var(--muted); font-size: 11.5px; margin-inline-start: -4px; }
.ix-path .ln { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); position: relative; }
.ix-i { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.ix-i svg.i { width: 19px; height: 19px; }
.ix-i.b { background: linear-gradient(145deg, #34d399, #059669); } .ix-i.s { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.ix-i.tw { background: linear-gradient(145deg, #3375bb, #0500ff); }
.ix-exp { color: var(--text-2); font-size: 13px; margin: 0 2px 12px; line-height: 1.9; }
.ix-vs { display: inline-flex; gap: 6px; margin-inline-start: 6px; flex-wrap: wrap; }
.ix-v { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; background: var(--surface); padding: 2px 9px; border-radius: 999px; color: var(--muted); }
.ix-v i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); } .ix-v.on { color: var(--text); } .ix-v.on i { background: var(--up); }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.ix-card { background: var(--surface); border-radius: 26px; padding: 16px; display: grid; gap: 12px; }
.ix-card.win { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--up) 35%, transparent); }
.ix-h { display: flex; align-items: center; gap: 12px; } .ix-h .cbadge { width: 44px; height: 44px; border-radius: 14px; font-size: 10.5px; flex: none; }
.ix-t { flex: 1; min-width: 0; } .ix-t b { font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ix-t small { color: var(--muted); font-size: 12.5px; }
.ix-dir { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--info-soft); color: var(--info); }
.ix-dir.fx2ir { background: var(--violet-soft); color: var(--violet); } .ix-dir svg.i { width: 12px; height: 12px; }
.ix-p { text-align: left; } .ix-p b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; } .ix-p small { color: var(--text-2); font-size: 12px; }
.ix-flow { display: grid; gap: 6px; }
.ix-s { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 18px; padding: 10px 12px; }
.ix-s .ix-i { width: 34px; height: 34px; border-radius: 11px; } .ix-s > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ix-s small { width: 100%; color: var(--muted); font-size: 11.5px; } .ix-s b { font-size: 15px; font-weight: 700; } .ix-s span { font-size: 12px; color: var(--text-2); }
.ix-s em { width: 100%; font-style: normal; font-size: 11.5px; color: var(--warn); display: flex; gap: 4px; align-items: center; } .ix-s em svg.i { width: 13px; height: 13px; }
.ix-s.tw { background: color-mix(in srgb, #3375bb 9%, var(--surface-2)); }
.ix-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-2); }
.ix-meta span { display: inline-flex; align-items: center; gap: 5px; } .ix-meta svg.i { width: 14px; height: 14px; color: var(--muted); }
.ix-acts { display: flex; gap: 6px; flex-wrap: wrap; } .ix-acts .btn.primary { flex: 1; }
.fx-vs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fx-v { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 20px; padding: 12px; color: var(--text); text-decoration: none !important; }
.fx-v b { display: block; font-size: 14px; } .fx-v small { color: var(--muted); font-size: 12px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 12px; }
.fx-c { background: var(--surface); border-radius: 24px; padding: 14px; }
.fx-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .fx-h > div { flex: 1; min-width: 0; } .fx-h b { display: block; font-size: 14.5px; } .fx-h small { color: var(--muted); font-size: 11.5px; }
.fx-h .cbadge { width: 38px; height: 38px; border-radius: 12px; font-size: 9.5px; flex: none; }
.fx-c .pt-tbl td { cursor: default; }
@media (max-width: 860px) {
  .ix-path { padding: 12px; gap: 6px; } .ix-path small { display: none; } .ix-path b { font-size: 12px; } .ix-path .ix-i { width: 32px; height: 32px; }
  .ix-top .sh-amt { margin: 0; width: 100%; } .ix-top .seg { overflow-x: auto; max-width: 100%; }
  .ix-p b { font-size: 20px; }
}
details.unl { margin: 10px 20px 0; background: var(--surface-2); border-radius: 16px; padding: 8px 12px; font-size: 12.5px; }
details.unl summary { cursor: pointer; display: flex; gap: 6px; align-items: center; color: var(--text-2); list-style: none; }
details.unl summary svg.i { width: 15px; height: 15px; } .unl-l { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.unl-l span { background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; color: var(--muted); }
.sh-row3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
