@font-face { font-family: "IRANSans"; src: url("fonts/IRANSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("fonts/IRANSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("fonts/IRANSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("fonts/IRANSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("fonts/IRANSans-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* Layout: trading-terminal storefront — chart hero on a grid-paper field, feature rows, plan tickets with per-month math, account panel with expiry meter. */
:root {
  --bg: #0b1222;
  --panel: #111b31;
  --panel-2: #17233d;
  --ink: #e8edf7;
  --muted: #8d9bb8;
  --line: #22304f;
  --gold: #f2b84b;
  --gold-ink: #1a1205;
  --up: #26c6a6;
  --down: #f0606b;
  --info: #6aa3ff;
  --tg: #2aa3e0;
  --grid: rgba(141, 155, 184, .07);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --f-display: "IRANSans", Tahoma, sans-serif;
  --f-body: "IRANSans", Tahoma, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f5f9; --panel: #ffffff; --panel-2: #eaeef5; --ink: #0d1526; --muted: #56627a; --line: #d9dfea;
    --gold: #c88a12; --gold-ink: #ffffff; --up: #0f9e80; --down: #d63b47; --info: #2f6fdd; --tg: #1f8fcc;
    --grid: rgba(13, 21, 38, .05); --shadow: 0 24px 60px -34px rgba(13, 21, 38, .35); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f5f9; --panel: #ffffff; --panel-2: #eaeef5; --ink: #0d1526; --muted: #56627a; --line: #d9dfea;
  --gold: #c88a12; --gold-ink: #ffffff; --up: #0f9e80; --down: #d63b47; --info: #2f6fdd; --tg: #1f8fcc;
  --grid: rgba(13, 21, 38, .05); --shadow: 0 24px 60px -34px rgba(13, 21, 38, .35); color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--f-body); font-size: 15.5px; line-height: 1.85;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.5; font-family: var(--f-display); }
.mono { font-family: var(--f-mono); direction: ltr; unicode-bidi: isolate; }

.wrap {
  max-width: 1160px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .93rem; }
.nav a:hover { color: var(--ink); }
.top-actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 18px; cursor: pointer; font-weight: 700; text-decoration: none; font-size: .93rem; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 86%, #fff); }
.btn-line { background: transparent; border-color: var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn-block { width: 100%; padding-block: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; font-family: var(--f-mono); font-size: .8rem; direction: ltr; }
.ticker-track { display: flex; gap: 36px; width: max-content; padding-block: 8px; animation: tick 40s linear infinite; }
.ticker-track span { display: inline-flex; gap: 8px; color: var(--muted); }
.ticker-track b { color: var(--ink); font-weight: 500; }
.ticker .u { color: var(--up); } .ticker .d { color: var(--down); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero */
.hero .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; padding-block: 52px 36px; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 20px; } }
.kicker { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: var(--gold); direction: ltr; text-align: right; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 54ch; margin: 14px 0 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.specs { display: flex; gap: 0; flex-wrap: wrap; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); width: fit-content; max-width: 100%; }
.specs div { padding: 10px 18px; border-inline-start: 1px solid var(--line); }
.specs div:first-child { border-inline-start: 0; }
.specs b { display: block; font-family: var(--f-mono); font-size: 1rem; direction: ltr; text-align: right; }
.specs span { color: var(--muted); font-size: .78rem; }

/* chart panel */
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.chart-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .8rem; direction: ltr; }
.chart-bar .sym { font-weight: 700; }
.chart-bar .tf { display: flex; gap: 4px; }
.chart-bar .tf span { padding: 1px 7px; border-radius: 5px; color: var(--muted); }
.chart-bar .tf .on { background: var(--panel-2); color: var(--ink); }
.chart-bar .ind { margin-left: auto; color: var(--gold); }
.chart canvas { display: block; width: 100%; height: 340px; }
@media (max-width: 560px) { .chart canvas { height: 260px; } }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.demo-note { margin-inline-start: auto; }

/* sections */
section { padding-block: 44px; }
.sec-head { margin-bottom: 24px; display: grid; gap: 4px; }
.sec-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; }

.feat-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 700px) { .feat-rows { grid-template-columns: 1fr; } }
.feat { background: var(--panel); padding: 22px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feat .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--gold); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1rem; font-family: var(--f-body); }
.feat p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.plan.best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan .tag { position: absolute; top: -11px; inset-inline-start: 18px; background: var(--gold); color: var(--gold-ink); font-size: .74rem; font-weight: 700; padding: 1px 10px; border-radius: 6px; }
.plan-name { color: var(--muted); font-size: .88rem; font-weight: 700; }
.plan-dur { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.3; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price b { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: .82rem; }
.plan-meta { display: grid; gap: 4px; font-size: .84rem; padding-block: 10px; border-block: 1px dashed var(--line); }
.plan-meta div { display: flex; justify-content: space-between; gap: 8px; }
.plan-meta dt { color: var(--muted); }
.plan-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.save { color: var(--up); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plans-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* faq */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 12px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--f-mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.risk { border: 1px solid var(--line); border-inline-start: 3px solid var(--gold); background: var(--panel); border-radius: 10px; padding: 14px 18px; color: var(--muted); font-size: .86rem; }

footer { border-top: 1px solid var(--line); margin-top: 24px; background: var(--panel); }
footer .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: .86rem; }

/* forms, modals, account */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.input { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 1rem; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.input.ltr { direction: ltr; text-align: right; font-family: var(--f-mono); }
.input.ltr::placeholder { text-align: right; }
.hint { font-size: .82rem; color: var(--muted); }
.err { font-size: .85rem; color: var(--down); min-height: 1.2em; }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 50px; height: 56px; text-align: center; font-size: 1.4rem; font-family: var(--f-mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.otp input:focus { outline: none; border-color: var(--gold); }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 8, 18, .7); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; max-height: calc(100% - 20px); overflow: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h3 { font-size: 1.2rem; }
.x { background: var(--panel-2); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; text-decoration: none; }

.summary { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: .9rem; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.summary .total { border-top: 1px dashed var(--line); padding-top: 8px; font-weight: 700; font-size: 1.02rem; }

.page { padding-block: 34px 50px; }
.page > h1 { font-size: 1.7rem; margin-bottom: 18px; }
.narrow { max-width: 460px; margin-inline: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }

.sub-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-bottom: 18px; }
@media (max-width: 640px) { .sub-card { grid-template-columns: 1fr; } }
.sub-state { display: flex; align-items: center; gap: 10px; }
.sub-days { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1.2; }
.meter { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.sub-info { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; font-size: .86rem; color: var(--muted); }
.sub-info b { color: var(--ink); font-weight: 500; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
th, td { text-align: start; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; }
td.num { font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; border: 1px solid currentColor; }
.chip.active { color: var(--up); }
.chip.waiting { color: var(--gold); }
.chip.expired, .chip.none { color: var(--muted); }
.chip.failed, .chip.pending { color: var(--down); }

.result { text-align: center; display: grid; gap: 10px; justify-items: center; }
.result .ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; border: 1px solid currentColor; }
.result .ico.ok { color: var(--up); }
.result .ico.bad { color: var(--down); }
.result .ico svg { width: 30px; height: 30px; }
.code-box { font-family: var(--f-mono); direction: ltr; background: var(--panel-2); padding: 4px 14px; border-radius: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; border: 1px solid currentColor; }
.flash.error { color: var(--down); }
.flash.ok { color: var(--up); }
@media (max-width: 560px) {
  .specs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .specs div { padding: 10px; min-width: 0; }
  .specs b { font-size: .8rem; white-space: normal; }
}

/* telegram activation box */
.tg-box { width: 100%; text-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; background: var(--panel-2); }
.tg-head { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.tg-head b { display: block; }
.tg-head span { color: var(--muted); font-size: .86rem; }
.tg-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--tg); color: #fff; display: grid; place-items: center; }
.tg-ic svg { width: 20px; height: 20px; margin-inline-start: -2px; }
.tg-rows { margin: 0; display: grid; gap: 8px; }
.tg-rows div { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.tg-rows dt { color: var(--muted); font-size: .86rem; }
.tg-rows dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.copy { background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 1px 10px; font-size: .78rem; cursor: pointer; color: var(--muted); }
.copy:hover { color: var(--ink); border-color: var(--muted); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: color-mix(in srgb, var(--tg) 85%, #fff); }

/* ===================== v2: product, articles ===================== */
.chart-bar .trend-pill { margin-left: auto; font-weight: 700; }

/* engine strip on home */
.engine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
@media (max-width: 820px) { .engine { grid-template-columns: 1fr; } }
.engine-step { padding: 22px; position: relative; display: grid; gap: 6px; align-content: start; }
.engine-step + .engine-step { border-inline-start: 1px solid var(--line); }
@media (max-width: 820px) { .engine-step + .engine-step { border-inline-start: 0; border-top: 1px solid var(--line); } }
.engine-step .tf { font-family: var(--f-mono); font-size: .78rem; color: var(--gold); direction: ltr; text-align: right; letter-spacing: .06em; }
.engine-step h3 { font-size: 1.08rem; }
.engine-step p { margin: 0; color: var(--muted); font-size: .92rem; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--gold); border-radius: 18px; padding: 26px; background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 10%, var(--panel)), var(--panel) 60%); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; }
.cta-band p { margin: 4px 0 0; color: var(--muted); }
.cta-band .btn { padding: 12px 24px; }

/* product page */
.p-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 44px 20px; }
@media (max-width: 940px) { .p-hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 10px; } }
.p-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; margin-top: 10px; }
.p-hero h1 em { font-style: normal; color: var(--gold); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.badges span { font-family: var(--f-mono); font-size: .76rem; direction: ltr; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 2px 10px; color: var(--muted); }

.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .cap { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); direction: ltr; padding: 0 4px 8px; }
.dg-grid { stroke: var(--line); }
.dg-up { stroke: var(--up); } .dg-dn { stroke: var(--down); } .dg-gold { stroke: var(--gold); }
.dg-fill-up { fill: var(--up); } .dg-fill-dn { fill: var(--down); } .dg-fill-gold { fill: var(--gold); }
.dg-text { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.dg-text-ink { fill: var(--ink); font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.dg-text-w { fill: #fff; font-family: var(--f-mono); font-size: 10px; font-weight: 700; }

.pipeline { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.stage { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px; }
.stage + .stage { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .stage { grid-template-columns: 1fr; gap: 6px; } }
.stage-tag { display: grid; gap: 2px; align-content: start; }
.stage-tag b { font-family: var(--f-mono); color: var(--gold); font-size: .8rem; letter-spacing: .06em; direction: ltr; text-align: right; }
.stage-tag span { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.stage h3 { font-size: 1.05rem; font-family: var(--f-body); margin-bottom: 4px; }
.stage p { margin: 0; color: var(--muted); max-width: 72ch; }
.stage code, .prose code { font-family: var(--f-mono); font-size: .86em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; direction: ltr; unicode-bidi: isolate; }

.callout { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--panel); }
.callout .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.callout .ic svg { width: 22px; height: 22px; }
.callout h3 { font-size: 1.02rem; font-family: var(--f-body); }
.callout p { margin: 4px 0 0; color: var(--muted); }

.spec-table { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); border-collapse: separate; border-spacing: 0; }
.spec-table th, .spec-table td { white-space: normal; padding: 12px 16px; font-size: .9rem; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; font-size: .88rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col > * { min-width: 0; }
.mini-h { font-size: 1rem; font-family: var(--f-body); margin-bottom: 10px; }

.after-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: ab; }
@media (max-width: 760px) { .after-buy { grid-template-columns: 1fr; } }
.after-buy div { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 18px; }
.after-buy div::before { counter-increment: ab; content: counter(ab, persian); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--f-display); font-weight: 800; margin-bottom: 8px; }
.after-buy b { display: block; }
.after-buy p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

/* articles */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 20px; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.post-cat { font-size: .78rem; color: var(--gold); font-weight: 700; }
.post-card h3 { font-size: 1.05rem; font-family: var(--f-body); line-height: 1.7; }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.post-meta { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; color: var(--muted); font-size: .8rem; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head-row .sec-head { margin-bottom: 0; }

.article { max-width: 760px; margin-inline: auto; padding-block: 34px 20px; }
.crumbs { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.article h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 800; margin: 14px 0 10px; }
.article .post-meta { padding: 0; margin-bottom: 26px; }
.prose { font-size: 1.04rem; line-height: 2.05; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; font-family: var(--f-body); margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: .35em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose blockquote { margin: 0; border-inline-start: 3px solid var(--gold); padding: 6px 18px; color: var(--muted); background: var(--panel); border-radius: 0 10px 10px 0; }
.prose .note { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 18px; font-size: .96rem; }
.prose .table-wrap table { min-width: 0; }
.prose table td, .prose table th { white-space: normal; }

.article-cta { margin-top: 36px; }
.more-posts { max-width: 760px; margin-inline: auto; padding-bottom: 30px; }

/* footer v2 */
footer .foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding-block: 30px 18px; }
@media (max-width: 760px) { footer .foot { grid-template-columns: 1fr; gap: 20px; } }
footer .foot h4 { margin: 0 0 8px; font-family: var(--f-display); font-size: .95rem; color: var(--ink); }
footer .foot p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 40ch; }
footer .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer .foot a { text-decoration: none; color: var(--muted); font-size: .88rem; }
footer .foot a:hover { color: var(--gold); }
footer .foot-bottom { border-top: 1px solid var(--line); padding-block: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: .84rem; }

/* dashboard mock (mirrors the Pine table) */
.dash-mock { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 8px; overflow: hidden; background: #0b1222; font-family: var(--f-mono); font-size: .8rem; max-width: 380px; }
.dm-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-top: 1px solid #22304f; color: #8d9bb8; }
.dm-row:first-child { border-top: 0; }
.dm-row b { color: #e8edf7; font-weight: 500; text-align: right; }
.dm-row b.u { color: #26c6a6; } .dm-row b.d { color: #f0606b; } .dm-row b.g { color: #f2b84b; }
.dm-head span:first-child { color: #f2b84b; font-weight: 700; }
.dm-head span:last-child { font-size: .72rem; }

/* ===================== v3: images ===================== */
.post-card { padding: 0; overflow: hidden; }
.post-card > :not(.post-img) { margin-inline: 20px; }
.post-card > .post-meta { margin-bottom: 18px; }
.post-img { display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }

.cover { margin: 0 0 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.foot-post { display: grid !important; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.foot-post img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.foot-post span { line-height: 1.6; }

.showcase-band { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 18px; }
@media (max-width: 900px) { .showcase-band { grid-template-columns: 1fr; } }
.showcase-img { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-width: 0; }
.showcase-img img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.showcase-img:hover img { transform: scale(1.02); }
.showcase-text { display: grid; gap: 10px; justify-items: start; padding-inline-end: 8px; }
.showcase-text h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; }
.showcase-text p { margin: 0; color: var(--muted); }

.shot { margin: 0 0 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 12px 18px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); }

.alert-band { display: grid; grid-template-columns: 1fr .8fr; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 26px; overflow: hidden; }
@media (max-width: 860px) { .alert-band { grid-template-columns: 1fr; } }
.alert-text { display: grid; gap: 10px; min-width: 0; }
.alert-text h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; }
.alert-text p { margin: 0; color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--up); font-weight: 700; }
.alert-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 420px; justify-self: center; width: 100%; }
.alert-img img { width: 100%; height: auto; display: block; }

html[dir="rtl"] body, [dir="rtl"] { text-align: right; }

/* trust badges (enamad etc.) */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.trust-badges a, .trust-badges > img { display: inline-grid; place-items: center; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.trust-badges img { max-width: 110px; height: auto; display: block; }

.brand-icon { width: 34px; height: 34px; border-radius: 9px; display: block; flex: none; }

/* ===================== tickets & admin (shared) ===================== */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: .7rem; font-weight: 800; color: #fff; background: var(--hot, var(--down)); vertical-align: 1px; }
.foot-bottom a, .foot2-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover, .foot2-bottom a:hover { color: var(--hot, var(--gold)); }
.tk-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tk-head h1 { margin: 0 0 4px; }
.tk-title { font-size: 1.35rem; margin: 0 0 4px; line-height: 1.6; }
.tk-crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.tk-crumbs a { color: inherit; text-decoration: none; }
.tk-crumbs a:hover { color: var(--hot, var(--gold)); }
.tk-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 20px; }
.tk-list { display: grid; gap: 10px; }
.tk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface, var(--panel)); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.tk-row:hover { border-color: var(--hot, var(--gold)); }
.tk-row.is-new { border-inline-start: 4px solid var(--hot, var(--gold)); }
.tk-id { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.tk-main { display: grid; gap: 2px; min-width: 0; }
.tk-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-chip { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid currentColor; }
.tk-chip.open { color: var(--warn, var(--gold)); }
.tk-chip.answered { color: var(--ok, var(--up)); }
.tk-chip.closed { color: var(--muted); }
@media (max-width: 560px) { .tk-row { grid-template-columns: minmax(0, 1fr) auto; } .tk-id { display: none; } }
.tk-form { display: grid; gap: 12px; margin-top: 10px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: 18px 55%, 12px 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 34px; }
textarea.input { resize: vertical; min-height: 96px; font: inherit; line-height: 1.9; }
.tk-ticket-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.tk-thread { display: grid; gap: 12px; margin-bottom: 16px; }
.tk-msg { max-width: 88%; border-radius: 18px; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface, var(--panel)); }
.tk-msg.me { justify-self: start; border-end-start-radius: 6px; }
.tk-msg.staff { justify-self: end; border-end-end-radius: 6px; background: color-mix(in srgb, var(--hot, var(--gold)) 9%, var(--surface, var(--panel))); border-color: color-mix(in srgb, var(--hot, var(--gold)) 30%, var(--line)); }
.tk-msg-meta { display: flex; gap: 10px; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.tk-msg-meta b { color: var(--ink); }
.tk-msg-body { line-height: 2; overflow-wrap: anywhere; }
.tk-msg-body a { color: var(--hot, var(--gold)); }
.tk-reply { display: grid; gap: 10px; }
.tk-label { font-weight: 700; display: block; margin-bottom: 6px; }
.tk-reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-reply-actions .btn:only-child { margin-inline-start: auto; }
.tk-close { margin-top: 12px; text-align: center; }
/* activation box (rahyab) */
.act-box { width: 100%; text-align: start; border: 1px solid var(--gold, var(--hot)); border-radius: 14px; padding: 16px; display: grid; gap: 12px; background: var(--panel-2, var(--surface-2)); }
.act-box.done { border-color: var(--line); }
.act-head { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.act-head b { display: block; }
.act-head span { color: var(--muted); font-size: .86rem; }
.act-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold, var(--hot)) 18%, transparent); color: var(--gold, var(--hot)); }
.act-ic svg { width: 20px; height: 20px; }
/* admin */
body.adm .adm-top { border-bottom: 1px solid var(--line); background: var(--surface, var(--panel)); }
body.adm .adm-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.adm-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.adm-brand img { border-radius: 8px; }
.adm-nav { display: flex; gap: 16px; align-items: center; font-size: .9rem; }
.adm-nav a { text-decoration: none; color: var(--muted); }
.adm-nav form { margin: 0; }
.adm-nav button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; color: var(--muted); font: inherit; }
.adm-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-tabs a { text-decoration: none; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface, var(--panel)); font-size: .88rem; }
.adm-tabs a.on { border-color: var(--hot, var(--gold)); color: var(--hot, var(--gold)); font-weight: 700; }
.adm-tabs span { opacity: .7; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-side { display: grid; gap: 14px; }
.adm-order { margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.adm-order div { display: grid; gap: 1px; }
.adm-order dt { color: var(--muted); font-size: .8rem; }
.adm-order dd { margin: 0; overflow-wrap: anywhere; }
.adm-order a { color: var(--hot, var(--gold)); }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.adm-actions form { margin: 0; }
.adm-check { display: flex; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); }

/* ---------- کدهای پرداخت (صفحه نتیجه) ---------- */
.pay-ids { margin: 4px 0; display: grid; gap: 8px; width: 100%; }
.pay-ids div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.pay-ids dt { color: var(--muted); font-size: .88rem; }
.pay-ids dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.pay-ids .mono { font-size: 1rem; }
.pay-ids .copy { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 0 9px; font: inherit; font-size: .78rem; cursor: pointer; }
.pay-ids .copy:hover { color: var(--gold); border-color: var(--gold); }
