/* RavandFX — MT5 Trade Manager page
   Layout concept: a trading desk at night. Sections are introduced by MT5-style
   line labels (blue entry, red stop, green target, gold automation) and the
   product simulation is the hero. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/vazirmatn-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/vazirmatn-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  /* color */
  --bg: #0a0e14;
  --bg-2: #0d121a;
  --surface: #121821;
  --surface-2: #19202b;
  --line: #222b38;
  --line-2: #2d3746;
  --fg: #e8edf4;
  --fg-2: #a6b1c1;
  --fg-3: #6f7b8e;
  --blue: #3a86f0;
  --blue-soft: #12233a;
  --tp: #2fbf7f;
  --sl: #ef5b5b;
  --gold: #e2b23c;
  --gold-soft: #2a2110;
  --safe: #2ea865;
  --rf: #8d7ef5;
  /* type */
  --f-display: "Chakra Petch", "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.7rem);
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1200px;
  --r: 10px;
}
html[lang="fa"] {
  --f-display: "Vazirmatn", "Chakra Petch", Tahoma, sans-serif;
  --f-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --step-4: clamp(2rem, 1.3rem + 3vw, 3.2rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
html[lang="fa"] body { line-height: 1.95; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
bdi, .ltr { unicode-bidi: isolate; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .92em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { inset-inline-start: 12px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { font-weight: 800; letter-spacing: 0; }
h2 { font-size: var(--step-3); line-height: 1.12; }
html[lang="fa"] h2 { line-height: 1.4; }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; }
.lead { color: var(--fg-2); font-size: var(--step-1); line-height: 1.55; max-width: 62ch; }
html[lang="fa"] .lead { line-height: 1.9; }

/* ---------- header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 "Chakra Petch", var(--f-display); letter-spacing: .02em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand small { font: 500 .7rem/1 var(--f-mono); color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--fg-2); font-size: var(--step--1); padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: var(--fg); background: var(--surface); }
.top-act { display: flex; align-items: center; gap: 10px; }
.lang { font: 500 .78rem/1 var(--f-mono); color: var(--fg-2); text-decoration: none; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 6px; }
.lang:hover { color: var(--fg); border-color: var(--fg-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font: 600 var(--step--1)/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-p { background: var(--blue); color: #fff; }
.btn-p:hover { background: #4a92f5; }
.btn-g { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-g:hover { border-color: var(--fg-3); background: var(--surface); }
.top .btn { min-height: 38px; padding: 0 14px; }
@media (max-width: 920px) { .nav { display: none; } .top-act { margin-inline-start: auto; } }
@media (max-width: 420px) { .brand small { display: none; } .top .btn-p { display: none; } }

/* ---------- eyebrow as an MT5 line label */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--blue)); margin-bottom: 18px; }
html[lang="fa"] .eyebrow { font-family: var(--f-body); font-weight: 700; letter-spacing: 0; font-size: .88rem; }
.eyebrow::after { content: ""; flex: 1; border-top: 1.5px dashed currentColor; opacity: .55; }
.eyebrow b { font-weight: 500; padding: 5px 8px; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
html[lang="fa"] .eyebrow b { font-weight: 700; }
.c-blue { --c: var(--blue); } .c-tp { --c: var(--tp); } .c-sl { --c: var(--sl); } .c-gold { --c: var(--gold); } .c-mute { --c: var(--fg-3); }

/* ---------- sections */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }

/* ---------- hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 75% 0%, rgba(58, 134, 240, .14), transparent 70%), radial-gradient(40% 40% at 10% 30%, rgba(226, 178, 60, .06), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.hero-top > * { min-width: 0; }
.kicker { display: block; font: 500 .82rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
html[lang="fa"] .kicker { font: 700 1rem/1.6 var(--f-body); letter-spacing: 0; text-transform: none; }
.hero h1 { font-size: var(--step-4); line-height: 1.04; }
html[lang="fa"] .hero h1 { line-height: 1.35; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-side { display: grid; gap: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font: 500 .8rem/1.4 var(--f-mono); color: var(--fg-3); }
html[lang="fa"] .facts { font-family: var(--f-body); font-size: .9rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--c, var(--tp)); }
@media (max-width: 860px) { .hero-top { grid-template-columns: 1fr; align-items: start; } }

/* ---------- simulation stage */
.rfx-stage { display: grid; gap: 12px; }
.rfx-vp { position: relative; overflow: hidden; aspect-ratio: 1120 / 680; border-radius: var(--r); border: 1px solid var(--line-2); background: #0b0f15; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset; max-width: 100%; }
.rfx-poster { width: 100%; height: 100%; object-fit: cover; }
.rfx-world { position: absolute; left: 0; top: 0; width: 1120px; height: 680px; transform-origin: 0 0; will-change: transform; }
.rfx-chart { position: absolute; left: 0; top: 0; width: 1120px; height: 680px; display: block; user-select: none; -webkit-user-select: none; }
.rfx-stage[data-rfx="auto"] .rfx-world { pointer-events: none; }
.rfx-stage.is-stack .rfx-vp { aspect-ratio: auto; height: auto; overflow: visible; border: 0; background: none; box-shadow: none; padding-bottom: 0; }
.rfx-stage.is-stack .rfx-world { position: static; width: auto; height: auto; transform: none !important; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rfx-stage.is-stack .pnl { position: relative; left: auto; top: auto; order: -1; }
.rfx-stage.is-stack .rfx-chart { position: relative; width: 100%; height: auto; aspect-ratio: 560 / 680; border: 1px solid var(--line-2); border-radius: 10px; }
.rfx-stage.is-stack .rfx-badge { display: none; }
.rfx-stage.is-stack .rfx-world { position: relative; }
.rfx-stage.is-stack .rfx-res { left: 50%; top: auto; bottom: 26%; }
.rfx-res { position: absolute; left: 720px; top: 220px; transform: translateX(-50%); z-index: 5; min-width: 230px; padding: 16px 24px 14px; border-radius: 12px; background: rgba(8, 11, 16, .93); border: 1.5px solid var(--line-2); text-align: center; pointer-events: none; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); display: grid; gap: 6px; }
.rfx-res b { font: 600 34px/1.1 "JetBrains Mono", ui-monospace, monospace; }
.rfx-res span { font: 500 14px/1.4 var(--f-body); color: var(--fg-2); }
.rfx-res.big b { font-size: 42px; }
.rfx-res.pos { border-color: rgba(47, 191, 127, .6); } .rfx-res.pos b { color: #4cd18f; }
.rfx-res.neg { border-color: rgba(239, 91, 91, .6); } .rfx-res.neg b { color: #ff6b6b; }
.rfx-res.is-in { animation: respop .5s cubic-bezier(.2, .8, .2, 1.2); }
@keyframes respop { from { opacity: 0; transform: translate(-50%, 14px) scale(.9); } }
.rfx-stage.is-stack .rfx-cap { position: relative; left: auto; bottom: auto; transform: none; width: 100%; margin-top: 12px; }
.rfx-stage.is-stack .rfx-cap.is-in { animation: none; }
.rfx-cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(600px, calc(100% - 24px)); display: flex; gap: 12px; align-items: baseline; background: rgba(8, 11, 16, .9); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 15px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.rfx-cap p { font: 500 .98rem/1.5 var(--f-body); color: var(--fg); flex: 1; min-width: 0; }
.rfx-cap p[dir="rtl"] { text-align: right; font-family: "Vazirmatn", Tahoma, sans-serif; line-height: 1.8; }
.rfx-cap-n { font: 500 .72rem/1 var(--f-mono); color: var(--gold); flex: none; }
.rfx-cap-n:empty { display: none; }
.rfx-cap.is-in { animation: capin .45s cubic-bezier(.2, .7, .1, 1); }
@keyframes capin { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (max-width: 700px) { .rfx-cap { bottom: 8px; padding: 9px 12px; } .rfx-cap p { font-size: .88rem; } }
.rfx-badge { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 7px; font: 500 .68rem/1 var(--f-mono); color: var(--fg-2); background: rgba(8, 11, 16, .78); border: 1px solid var(--line-2); padding: 6px 9px; border-radius: 999px; letter-spacing: .04em; }
.rfx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sl); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rfx-ctl { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.rfx-ctl:empty { display: none; }
.ctl-g { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ctl-l { font: 500 .72rem/1 var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; margin-inline-end: 4px; }
html[lang="fa"] .ctl-l { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.ctl-b { font: 500 .85rem/1 var(--f-body); color: var(--fg-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 36px; }
html[lang="fa"] .ctl-b { font-family: "Vazirmatn", Tahoma, sans-serif; }
.ctl-b:hover { color: var(--fg); border-color: var(--fg-3); }
.ctl-b[aria-pressed="true"] { color: var(--fg); border-color: var(--blue); background: var(--blue-soft); }
.ctl-main { color: #fff; background: var(--blue); border-color: var(--blue); }
.ctl-main[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line-2); color: var(--fg); }
.ctl-s { font-family: var(--f-mono); font-size: .78rem; }
.stage-note { font-size: var(--step--1); color: var(--fg-3); }

/* chart */
.ch-bg { fill: #0b0f15; }
.ch-axisbg { fill: #0e131b; }
.ch-grid line { stroke: rgba(160, 180, 210, .055); stroke-width: 1; }
.ch-axis text, .ch-time text { fill: #66748a; font: 500 11px "JetBrains Mono", ui-monospace, monospace; }
.ch-wick { stroke: #7e8a9c; stroke-width: 1; fill: none; }
.ch-bull { fill: #0b0f15; stroke: #cdd6e1; stroke-width: 1; }
.ch-bear { fill: #6c7a8e; stroke: #8794a6; stroke-width: 1; }
.ch-price { stroke: #8794a6; stroke-dasharray: 2 3; opacity: .55; }
.ch-tag rect { fill: #8794a6; }
.ch-tag text { fill: #0b0f15; font: 600 11px "JetBrains Mono", ui-monospace, monospace; }
.ch-cd { fill: #e7c84a; font: 500 20px "JetBrains Mono", ui-monospace, monospace; }
.ch-sym { fill: #66748a; font: 600 12px "Segoe UI", system-ui, sans-serif; }
.ch-lvl line { stroke: #c79a3a; stroke-dasharray: 3 4; opacity: .75; }
.ch-lvl text { fill: #c79a3a; font: 600 10.5px "Segoe UI", system-ui, sans-serif; }
.z-tp { fill: rgba(47, 191, 127, .17); }
.z-sl { fill: rgba(239, 91, 91, .17); }
.z-lock { fill: rgba(226, 178, 60, .2); }
.z-soft { opacity: .42; }
.l-en { stroke: var(--blue); stroke-width: 2; }
.l-pend { stroke-dasharray: 7 4; }
.l-tp { stroke: var(--tp); stroke-width: 1.5; stroke-dasharray: 6 4; }
.l-sl { stroke: var(--sl); stroke-width: 1.5; stroke-dasharray: 6 4; }
.l-prot { stroke: var(--gold); stroke-dasharray: none; stroke-width: 1.8; }
.l-add { stroke: var(--safe); stroke-width: 2.4; }
.s-line { stroke-width: 2; }
.rfx-chart text.t-en, .rfx-chart text.t-tp, .rfx-chart text.t-sl { font: 600 11.5px "Segoe UI", system-ui, sans-serif; paint-order: stroke; stroke: #0b0f15; stroke-width: 3px; stroke-linejoin: round; }
.t-en { fill: #6aa8ff; } .t-tp { fill: #4cd18f; } .t-sl { fill: #ff7575; } .t-prot { fill: var(--gold) !important; }
.rfx-chart text.t-strong { font-size: 12.5px; }
.mk-en { fill: var(--blue); } .mk-add { fill: var(--safe); }
.ch-h { cursor: ns-resize; touch-action: none; outline: none; }
.ch-hit { fill: transparent; }
.ch-knob { fill: #0b0f15; stroke-width: 2; }
.ch-h-tp .ch-knob { stroke: var(--tp); } .ch-h-entry .ch-knob { stroke: var(--blue); } .ch-h-sl .ch-knob { stroke: var(--sl); }
.ch-h:hover .ch-knob, .ch-h:focus-visible .ch-knob, .ch-h.is-drag .ch-knob { fill: currentColor; stroke-width: 3; }
.ch-h-tp { color: var(--tp); } .ch-h-entry { color: var(--blue); } .ch-h-sl { color: var(--sl); }
.ch-h:focus-visible .ch-hit { fill: rgba(58, 134, 240, .08); }

/* ---------- MT5 panel replica (stays English, as in the product) */
.pnl { position: absolute; left: 16px; top: 12px; width: 316px; background: #12161d; border: 1px solid #2a313c; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); color: #c9d1db; font: 400 12.5px/1.2 "Segoe UI", system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; direction: ltr; text-align: left; }
.pnl-title { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 8px; background: #0e1217; border-bottom: 1px solid #222832; font-size: 11.5px; color: #dfe6ee; }
.pnl-ico { width: 13px; height: 11px; background: linear-gradient(135deg, #5aa2ff, #2f6fd8); clip-path: polygon(50% 0, 100% 35%, 50% 70%, 0 35%); }
.pnl-wctl { margin-left: auto; display: flex; gap: 12px; color: #9aa6b8; font-style: normal; }
.pnl-wctl i { font-style: normal; }
.pnl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 8px 8px 7px; }
.tile { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; background: #171c24; border: 1px solid #262e3a; border-radius: 3px; font: inherit; color: inherit; }
button.tile { cursor: pointer; }
button.tile:disabled { cursor: default; }
.tile span { font-size: 11.5px; color: #a7b1be; }
.tile b { font-weight: 400; font-size: 12.5px; color: #e8edf3; white-space: nowrap; }
.tile .t-risk { color: #f07d48; } .tile .t-profit { color: #7d8896; } .tile .t-loss { color: #ff4d4d; }
.pnl-row { display: grid; grid-template-columns: 1fr .5fr 1fr; gap: 7px; padding: 2px 8px 7px; }
.pnl-act { grid-template-columns: 1fr 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid #222832; }
.pb { font: inherit; height: 30px; border: 1px solid #2a313c; border-radius: 2px; background: #1c222b; color: #e3e9f0; cursor: pointer; padding: 0 4px; transition: filter .15s, background-color .2s, color .2s, border-color .2s; }
.pb:hover:not(:disabled) { filter: brightness(1.18); }
.pb:disabled { background: #171b22; border-color: #222832; color: #4c5664; cursor: default; }
.pb.is-press { animation: press .42s ease-out; }
@keyframes press { 0% { transform: scale(.92); filter: brightness(1.7); box-shadow: 0 0 0 0 rgba(90, 162, 255, .7); } 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(90, 162, 255, 0); } }
.pb-buy { background: #1c4627; border-color: #2c6339; color: #eaf7ec; font-size: 13.5px; }
.pb-sell { background: #4d1c25; border-color: #6e2c37; color: #fbe9ec; font-size: 13.5px; }
.pb-buy:disabled { background: #152019; border-color: #1f2c22; color: #46564a; }
.pb-sell:disabled { background: #22161a; border-color: #2f1e23; color: #5c464b; }
.pb-buy.is-sel, .pb-sell.is-sel { border-color: #d8c55a; box-shadow: inset 0 0 0 1px #d8c55a; }
.pb-x2 { color: #aab4c1; }
.pb-x2.is-on { background: #13243b; border-color: #3a86f0; color: #9cc5ff; box-shadow: inset 0 0 0 1px #3a86f0; }
.pb-add:not(:disabled) { background: #26303d; border-color: #3a4656; }
.pb-set:not(:disabled) { background: #6a5310; border-color: #a8831c; color: #ffd76a; }
.pnl-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 6px 7px 4px; }
.pc { margin: 0; padding: 2px 4px 5px; border: 1px solid #2a313c; border-radius: 2px; min-width: 0; display: grid; gap: 5px; }
.pc legend { font-size: 11.5px; color: #a7b1be; padding: 0 3px; }
.pc-in { border: 1px solid #232a35; border-radius: 2px; padding: 4px 6px 5px; background: #141920; }
.pc-vol { text-align: right; margin-bottom: 3px; white-space: nowrap; }
.pc-vol b { font-weight: 400; font-size: 16.5px; color: #fff; }
.pc-vol small { font-size: 8.5px; color: #7f8a98; margin-left: 3px; }
.pc-row { display: flex; justify-content: space-between; font-size: 11px; line-height: 1.3; }
.pc-row span { color: #a7b1be; }
.pc-row i { font-style: normal; }
.c-ltp { color: #5aa2ff; } .c-tp { color: #46d08c; } .c-sl { color: #ff6464; }
.pc-box { height: 26px; display: grid; place-items: center; border: 1px solid #2f4f7a; background: #142033; border-radius: 2px; font-size: 11.5px; color: #8fa3bd; white-space: nowrap; overflow: hidden; }
.pc-box.pos { color: #4cd18f; } .pc-box.neg { color: #ff6b6b; } .pc-box.is-tag { color: #ffd76a; font-size: 10px; letter-spacing: .02em; }
.pc hr { border: 0; border-top: 1px solid #262e3a; margin: 1px 0; }
.pc .pb { height: 28px; font-size: 12px; width: 100%; }
.pb-rf:not(:disabled) { background: #2d2563; border-color: #5446b8; color: #ddd6ff; }
.pb-rf:disabled { background: #1a1730; border-color: #282444; color: #4f4a70; }
.pb-ltp:not(:disabled) { background: #163a68; border-color: #2e64ad; color: #d3e5ff; }
.pb-ltp:disabled { background: #121c2b; border-color: #1d2c43; color: #435470; }
.pb-half:not(:disabled) { background: #5e3f0e; border-color: #94661a; color: #ffd38a; }
.pb-half:disabled { background: #251c0f; border-color: #382a14; color: #6b5634; }
.pb-close:not(:disabled) { background: #3b414b; border-color: #59616d; color: #fff; }
.pnl-auto { display: grid; grid-template-columns: .82fr 2fr; gap: 8px; padding: 8px 8px 6px; border-top: 1px solid #222832; margin-top: 4px; align-items: start; }
.pnl-lvl { padding-top: 10px; }
.pnl-lvl .pb { width: 100%; font-size: 11.5px; }
.pnl-ai { margin: 0; padding: 2px 6px 6px; border: 1px solid #2a313c; border-radius: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 0; }
.pnl-ai legend { font-size: 12px; color: #a7b1be; padding: 0 3px; }
.ai-btns { display: grid; gap: 6px; }
.ai-btns .pb { height: 29px; font-size: 12.5px; }
.pb-fp.is-on { background: #7a5a10; border-color: #e0b237; color: #ffe08a; box-shadow: inset 0 0 0 1px #e0b237; }
.pb-st:not(:disabled) { background: #1e2a22; border-color: #2c5a3a; color: #bfe9cc; }
.pb-st.is-on { background: #1d6b3c; border-color: #33b56a; color: #e3ffec; box-shadow: inset 0 0 0 1px #33b56a; }
.ai-box { display: grid; place-content: center; text-align: center; gap: 3px; border: 1px solid #2f4f7a; background: #142033; border-radius: 2px; }
.ai-box b { font-weight: 600; font-size: 19px; color: #6f7f94; }
.ai-box b.pos { color: #4cd18f; } .ai-box b.neg { color: #ff6b6b; }
.ai-box span { font-size: 10.5px; color: #7f8a98; }
.ai-box.is-on { border-color: #3c6aa8; }
.pnl-timers { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 8px 6px; border: 1px solid #232a35; background: #151a22; border-radius: 2px; }
.tmr { display: grid; gap: 5px; justify-items: center; padding: 8px 2px 7px; font: inherit; background: none; border: 0; color: #c9d1db; cursor: pointer; }
.tmr:hover { background: #1a212b; }
.tmr span { font-size: 12px; }
.tmr b { font-weight: 400; font-size: 12.5px; color: #4f9bff; font-family: "JetBrains Mono", ui-monospace, monospace; }
.pnl-notice { margin: 0 8px 6px; min-height: 22px; border: 1px solid #232a35; border-radius: 2px; padding: 4px 7px; font-size: 11px; color: #8d99a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnl-notice.n-ok { color: #4cd18f; } .pnl-notice.n-warn { color: #ff8a6b; } .pnl-notice.n-gold { color: #ffd76a; }
.pnl-status { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; background: #0e1217; border-top: 1px solid #222832; font-size: 11.5px; color: #4cd18f; }

/* ---------- workflow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; counter-reset: s; }
.flow li { list-style: none; background: var(--surface); padding: 26px 22px 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.flow-n { font: 500 .78rem/1 var(--f-mono); color: var(--c, var(--blue)); display: flex; align-items: center; gap: 10px; }
.flow-n::after { content: ""; flex: 1; border-top: 1.5px dashed currentColor; opacity: .5; }
.flow h3 { font-size: 1.3rem; }
.flow p { color: var(--fg-2); font-size: .98rem; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .chips { justify-content: flex-end; }
.chip { font: 400 12.5px/1 "Segoe UI", system-ui, sans-serif; padding: 8px 11px; border-radius: 2px; border: 1px solid; white-space: nowrap; }
.chip-buy { background: #1c4627; border-color: #2c6339; color: #eaf7ec; }
.chip-sell { background: #4d1c25; border-color: #6e2c37; color: #fbe9ec; }
.chip-x2 { background: #13243b; border-color: #3a86f0; color: #9cc5ff; }
.chip-n { background: #26303d; border-color: #3a4656; color: #e3e9f0; }
.chip-set { background: #6a5310; border-color: #a8831c; color: #ffd76a; }
.chip-rf { background: #2d2563; border-color: #5446b8; color: #ddd6ff; }
.chip-ltp { background: #163a68; border-color: #2e64ad; color: #d3e5ff; }
.chip-half { background: #5e3f0e; border-color: #94661a; color: #ffd38a; }
.chip-close { background: #3b414b; border-color: #59616d; color: #fff; }
.chip-fp { background: #7a5a10; border-color: #e0b237; color: #ffe08a; }
.chip-st { background: #1d6b3c; border-color: #33b56a; color: #e3ffec; }

/* ---------- split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; color: var(--fg-2); max-width: 62ch; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose h3 { color: var(--fg); margin-top: 10px; }
.formula { font: 500 .95rem/1.7 var(--f-mono); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--sl); padding: 14px 16px; border-radius: 6px; direction: ltr; text-align: left; overflow-x: auto; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: start; padding: 14px 16px 4px; color: var(--fg-3); font-size: var(--step--1); caption-side: top; }
th, td { padding: 11px 16px; text-align: start; border-top: 1px solid var(--line); white-space: nowrap; }
th { font: 500 .75rem/1.3 var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; }
html[lang="fa"] th { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .85rem; }
td { font-variant-numeric: tabular-nums; }
td.v { font-family: var(--f-mono); color: var(--fg); direction: ltr; unicode-bidi: isolate; text-align: left; }
html[dir="rtl"] td.v { text-align: right; }
td.hl { color: var(--tp); }
@media (max-width: 600px) { th, td { padding: 10px 10px; } table { font-size: .88rem; } }
.stack { display: grid; gap: 22px; }
.orders { display: grid; grid-template-columns: auto 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); font-size: .95rem; }
.orders > div { padding: 12px 14px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.orders > div:nth-child(-n+3) { border-top: 0; }
.orders > div:nth-child(3n+1) { border-inline-start: 0; color: var(--fg-3); font-size: var(--step--1); }
.orders .oh { font: 500 .75rem/1.3 var(--f-mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; }
html[lang="fa"] .orders .oh { font-family: var(--f-body); text-transform: none; letter-spacing: 0; }
.orders b { display: block; font: 600 .95rem/1.3 "Segoe UI", system-ui, sans-serif; color: var(--fg); direction: ltr; unicode-bidi: isolate; text-align: left; }
html[dir="rtl"] .orders b { text-align: right; }
.orders small { color: var(--fg-3); }

/* ---------- control explainer */
.ctrls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .ctrls { grid-template-columns: 1fr; } }
.ctrl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); align-items: start; }
.ctrl .chip { grid-row: span 2; min-width: 96px; text-align: center; }
.ctrl h3 { font-size: 1.12rem; }
.ctrl p { color: var(--fg-2); font-size: .97rem; grid-column: 2; }
.x2box { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: center; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.x2box > * { min-width: 0; }
.x2bar { display: flex; height: 40px; border-radius: 4px; overflow: hidden; font: 500 .82rem/1 var(--f-mono); direction: ltr; min-width: 240px; }
.x2bar span { flex: 1; display: grid; place-items: center; color: #fff; }
.x2bar span:first-child { background: #1c4627; } .x2bar span:last-child { background: #13243b; border-left: 2px solid var(--bg); }
@media (max-width: 700px) { .x2box { grid-template-columns: 1fr; } .x2bar { min-width: 0; } }

/* ---------- AIAuto */
.ai-sec { background: linear-gradient(180deg, #0c0f14, #0f0d08 60%, #0c0f14); border-block: 1px solid #2a2414; position: relative; overflow: hidden; }
.ai-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, rgba(226, 178, 60, .11), transparent 70%); pointer-events: none; }
.ai-sec .wrap { position: relative; }
.ai-sec h2 em { font-style: normal; color: var(--gold); }
.ai-grid { display: grid; gap: 18px; }
.ai-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-modes .stage-note { grid-column: 1 / -1; }
@media (max-width: 720px) { .ai-modes { grid-template-columns: 1fr; } }
.ai-mode { padding: 20px 22px; border: 1px solid #2a2414; border-radius: var(--r); background: rgba(20, 16, 8, .6); display: grid; gap: 10px; }
.ai-mode h3 { font-size: 1.12rem; color: #ffe08a; }
.ai-mode.st { border-color: rgba(46, 168, 101, .35); background: rgba(10, 30, 18, .55); }
.ai-mode.st h3 { color: #9ff0bf; }
.ai-mode p { color: var(--fg-2); font-size: .97rem; }

/* ---------- tools grid */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tools > div { background: var(--surface); padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.tools h3 { font-size: 1.08rem; }
.tools p { color: var(--fg-2); font-size: .96rem; }
.tools .k { font: 500 .78rem/1.4 var(--f-mono); color: var(--fg-3); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

/* ---------- screenshots */
.shots { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.shots figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shots figure:first-child { grid-row: span 2; }
.shot-btn { padding: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; display: block; width: 100%; }
.shot-btn img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.shots figcaption { font-size: var(--step--1); color: var(--fg-3); }
@media (max-width: 800px) { .shots { grid-template-columns: 1fr; } .shots figure:first-child { grid-row: auto; } }
.lightbox { padding: 0; border: 1px solid var(--line-2); background: #000; max-width: min(96vw, 1600px); border-radius: 8px; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox form { position: absolute; top: 8px; right: 8px; }
.lightbox button { background: rgba(0, 0, 0, .7); color: #fff; border: 1px solid #444; border-radius: 6px; padding: 8px 12px; font: 500 .85rem/1 var(--f-body); cursor: pointer; }

/* ---------- install */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-inline-start: 1.5px dashed var(--line-2); }
.steps li { position: relative; padding: 0 0 26px; padding-inline-start: 30px; display: grid; gap: 6px; }
.steps li::before { counter-increment: st; content: counter(st); position: absolute; inset-inline-start: -15px; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font: 500 .78rem/1 var(--f-mono); }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--fg-2); font-size: .97rem; }
.steps code, .prose code { font: 500 .88em/1.4 var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--fg); direction: ltr; unicode-bidi: isolate; }
.req { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 14px; }
.req ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.req li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--fg-2); font-size: .97rem; }
.req li::before { content: ""; width: 10px; height: 10px; margin-top: .55em; border: 1.5px solid var(--tp); border-radius: 2px; }

/* ---------- offer */
.offer { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.offer > * { min-width: 0; }
.offer-main { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.offer-name { font: 600 var(--step-2)/1.2 var(--f-display); }
.offer-price { font: 600 var(--step-1)/1.3 var(--f-body); color: var(--gold); }
.offer-side { padding: clamp(24px, 4vw, 40px); background: var(--surface-2); border-inline-start: 1px solid var(--line); }
.offer-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer-side li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--fg-2); }
.offer-side li::before { content: ""; width: 8px; height: 8px; margin-top: .6em; background: var(--tp); border-radius: 1px; }
.fine { font-size: var(--step--1); color: var(--fg-3); }
@media (max-width: 800px) { .offer { grid-template-columns: 1fr; } .offer-side { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* ---------- faq */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; gap: 14px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font: 500 1rem/1 var(--f-mono); color: var(--blue); flex: none; width: 12px; }
.faq details[open] summary::before { content: "−"; }
.faq .a { padding: 0 20px 18px; padding-inline-start: 46px; color: var(--fg-2); display: grid; gap: 10px; }

/* ---------- final + footer */
.final { text-align: start; display: grid; gap: 22px; justify-items: start; }
.risk { border-top: 1px solid var(--line); padding-block: 28px; color: var(--fg-3); font-size: var(--step--1); max-width: 90ch; }
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--fg-2); text-decoration: none; font-size: var(--step--1); }
.foot a:hover { color: var(--fg); }
.foot p { color: var(--fg-3); font-size: var(--step--1); }

html[lang="fa"] .brand { font: 800 1.08rem/1 var(--f-body); letter-spacing: 0; }
html[lang="fa"] .brand small { font: 500 .8rem/1 var(--f-body); letter-spacing: 0; text-transform: none; }

/* ---------- AIAuto walk-away points */
.ai-points { list-style: none; margin: 0 0 clamp(22px, 3vw, 32px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2a2414; border: 1px solid #2a2414; border-radius: var(--r); overflow: hidden; }
.ai-points li { background: rgba(16, 13, 7, .92); padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.ai-points b { color: #ffe08a; font-weight: 600; font-size: 1rem; }
.ai-points span { color: var(--fg-2); font-size: .93rem; }
@media (max-width: 760px) { .ai-points { grid-template-columns: 1fr; } }

/* ---------- money-management rules */
.rule-tag { justify-self: start; display: inline-block; font: 600 .72rem/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--c); border: 1px solid currentColor; border-radius: 3px; padding: 6px 8px; direction: ltr; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rule { display: grid; gap: 10px; align-content: start; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.rule h3 { font-size: 1.1rem; }
.rule p { color: var(--fg-2); font-size: .96rem; }
@media (max-width: 1040px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rules { grid-template-columns: 1fr; } }
.news-warn { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: start; padding: 22px 24px; border: 1px solid rgba(226, 178, 60, .45); background: rgba(42, 33, 16, .55); border-radius: var(--r); }
.news-warn h3 { font-size: 1.1rem; color: #ffe08a; margin-bottom: 6px; }
.news-warn p { color: var(--fg-2); font-size: .98rem; max-width: 90ch; }
@media (max-width: 600px) { .news-warn { grid-template-columns: 1fr; } }

/* ---------- FastScalp */
.fast { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 40px; align-items: center; padding: clamp(22px, 3vw, 34px); margin-bottom: 16px; border: 1px solid #2f4f7a; background: linear-gradient(135deg, #101b2b, var(--surface) 70%); border-radius: var(--r); }
.fast > * { min-width: 0; }
.fast-txt { display: grid; gap: 12px; }
.fast-txt h3 { font-size: var(--step-2); line-height: 1.25; }
.fast-txt p { color: var(--fg-2); max-width: 56ch; }
.keys { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.key-g { display: grid; justify-items: center; gap: 10px; }
.key-g span { font-size: .88rem; color: var(--fg-2); }
.key { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 12px; font: 600 1.9rem/1 var(--f-mono); color: var(--fg); background: linear-gradient(#232b37, #171d26); border: 1px solid #3a4656; box-shadow: 0 5px 0 #0b0f15, 0 6px 14px rgba(0, 0, 0, .5); }
.key.k-buy { color: #6fe39b; border-color: #2c6339; }
.key.k-sell { color: #ff8c95; border-color: #6e2c37; }
.key.k-close { color: #ffd76a; border-color: #94661a; }
@media (max-width: 800px) { .fast { grid-template-columns: 1fr; } .key { width: 64px; height: 64px; font-size: 1.6rem; } }
.tools { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

/* ---------- pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.tier { position: relative; display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto auto 1fr auto; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; min-width: 0; }
.tier h3 { font-size: 1.15rem; color: var(--fg-2); }
.tier-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier-price b { font: 600 clamp(2.2rem, 1.6rem + 1.8vw, 2.9rem)/1 var(--f-mono); color: var(--fg); }
.tier-price span { color: var(--fg-3); font-size: .95rem; }
.tier-sub { color: var(--fg-2); font-size: .95rem; }
.tier .btn { width: 100%; }
.tier.is-best { border-color: var(--gold); background: linear-gradient(180deg, rgba(226, 178, 60, .09), var(--surface) 55%); box-shadow: 0 20px 50px -25px rgba(226, 178, 60, .45); }
.tier.is-best .tier-price b { color: var(--gold); }
.tier-badge { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--gold); color: #1a1405; font: 700 .78rem/1 var(--f-body); padding: 7px 10px; border-radius: 999px; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }
.tier-all { margin-top: 20px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 14px; }
.tier-all-h { font-weight: 600; color: var(--fg); }
.tier-all ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tier-all li { display: flex; gap: 8px; align-items: baseline; color: var(--fg-2); font-size: .95rem; }
.tier-all li::before { content: ""; width: 7px; height: 7px; background: var(--tp); border-radius: 1px; flex: none; transform: translateY(-1px); }
.req li span strong { color: var(--fg); font-weight: 600; }

/* ---------- panel dims while AIAuto manages */
.pnl .pnl-tiles, .pnl .pnl-row, .pnl .pnl-cols, .pnl .pnl-lvl, .pnl .pnl-notice { transition: opacity .35s, filter .35s; }
.pnl.is-auto .pnl-tiles, .pnl.is-auto .pnl-row, .pnl.is-auto .pnl-cols, .pnl.is-auto .pnl-lvl, .pnl.is-auto .pnl-notice { opacity: .38; filter: grayscale(1); }
.pnl.is-auto .pb-x2.is-on { box-shadow: none; border-color: #2a313c; background: #1c222b; color: #aab4c1; }

/* ---------- tour cursor */
.rfx-cursor { position: absolute; left: 0; top: 0; z-index: 8; width: 26px; height: 26px; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.rfx-cursor svg { width: 26px; height: 26px; display: block; transition: transform .15s; }
.rfx-cursor path { fill: #fff; stroke: #0b0f15; stroke-width: 1.4; stroke-linejoin: round; }
.rfx-cursor i { position: absolute; left: 3px; top: 1px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #5aa2ff; opacity: 0; }
.rfx-cursor.is-click i { animation: curclick .55s ease-out; }
.rfx-cursor.is-click svg { animation: curpress .3s ease-out; }
.rfx-cursor.is-grab svg { transform: scale(.88); }
.rfx-cursor.is-grab path { fill: #ffe08a; }
@keyframes curclick { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes curpress { 50% { transform: scale(.82); } }

/* ---------- chart overlays (positioned over the chart area by script) */
.rfx-over { position: absolute; top: 0; bottom: 0; left: 30%; right: 6%; pointer-events: none; z-index: 4; }
.rfx-hud { position: absolute; top: 44px; left: 12px; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 0; background: rgba(8, 11, 16, .92); border: 1px solid #2f4f7a; border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); overflow: hidden; }
.rfx-hud .hud-t { grid-column: 1 / -1; font: 600 .7rem/1 var(--f-body); color: var(--blue); padding: 8px 14px 2px; letter-spacing: .03em; }
.rfx-hud > div { display: grid; gap: 3px; padding: 4px 16px 10px; border-inline-start: 1px solid var(--line); }
.rfx-hud > div:nth-child(2) { border-inline-start: 0; }
.rfx-hud em { font: 500 .72rem/1.2 var(--f-body); font-style: normal; color: var(--fg-3); white-space: nowrap; }
.rfx-hud b { font: 600 1.35rem/1.1 "JetBrains Mono", ui-monospace, monospace; color: var(--fg); direction: ltr; unicode-bidi: isolate; }
.rfx-hud b.pos { color: #4cd18f; } .rfx-hud b.neg { color: #ff6b6b; }
.rfx-hud b.fl { animation: hudfl .6s ease-out; }
@keyframes hudfl { 0% { text-shadow: 0 0 14px currentColor; transform: scale(1.08); } 100% { text-shadow: none; transform: none; } }
.rfx-chart.is-drag text.t-en, .rfx-chart.is-drag text.t-tp, .rfx-chart.is-drag text.t-sl { font-size: 14px; font-weight: 700; }
.rfx-away { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(42, 33, 16, .92); border: 1px solid rgba(226, 178, 60, .55); color: #ffe08a; font: 600 .82rem/1 var(--f-body); }
.rfx-away-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.4s infinite; }
.rfx-toast { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: grid; gap: 4px; text-align: center; padding: 12px 18px; border-radius: 10px; background: rgba(8, 11, 16, .94); border: 1px solid rgba(226, 178, 60, .6); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); white-space: nowrap; }
.rfx-toast b { font: 600 .95rem/1.3 var(--f-body); color: #ffe08a; }
.rfx-toast span { font: 600 1.05rem/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--fg); direction: ltr; }
.rfx-toast.is-in { animation: respop .45s cubic-bezier(.2, .8, .2, 1.2); }
.rfx-chart.sl-flash .l-sl { animation: slflash 1s ease-in-out 2; }
@keyframes slflash { 50% { stroke-width: 5; stroke: #ffe08a; } }
.rfx-scene { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 92%); display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 26px 24px; border-radius: 14px; background: rgba(10, 13, 19, .96); border: 1px solid rgba(226, 178, 60, .5); box-shadow: 0 24px 60px rgba(0, 0, 0, .65); }
.rfx-scene svg { width: 44px; height: 44px; }
.rfx-scene circle, .rfx-scene path { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; }
.rfx-scene h3 { font: 700 1.3rem/1.4 var(--f-display); color: var(--fg); }
html[lang="fa"] .rfx-scene h3 { font-family: var(--f-body); font-weight: 800; }
.rfx-scene p { font: 400 .98rem/1.75 var(--f-body); color: var(--fg-2); }
.rfx-scene.is-in { animation: scenein .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes scenein { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.96); } }
@media (max-width: 700px) {
  .rfx-hud { grid-template-columns: repeat(2, auto); top: 8px; left: 8px; }
  .rfx-hud > div:nth-child(4) { border-inline-start: 0; }
  .rfx-hud b { font-size: 1.1rem; }
  .rfx-scene { padding: 18px; } .rfx-scene h3 { font-size: 1.1rem; } .rfx-scene p { font-size: .9rem; }
}

/* ---------- three adjustable rules */
.more-h { margin: clamp(32px, 4vw, 44px) 0 16px; font-size: var(--step-2); line-height: 1.35; max-width: 30ch; }
.rules3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule3 { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px 22px 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-radius: 14px; min-width: 0; overflow: hidden; }
.rule3 .rule-tag { color: var(--c); }
.rule3 h3 { font-size: 1.18rem; line-height: 1.35; }
.rule3 p { color: var(--fg-2); font-size: .97rem; }
.rule3-vis { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); }
.rule3-vis b { font: 600 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1 var(--f-mono); color: var(--c); white-space: nowrap; }
.rule3-vis span { font: 500 .8rem/1 var(--f-body); color: var(--fg-3); }
@media (max-width: 900px) { .rules3 { grid-template-columns: 1fr; } }

.tier-price s { font: 500 1.05rem/1 var(--f-mono); color: var(--fg-3); }
.tier-per { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; }
.tier-per span { color: var(--fg-3); font-size: .93rem; }
.tier-per em { font-style: normal; font: 700 .78rem/1 var(--f-body); color: #0b2a18; background: var(--tp); padding: 5px 8px; border-radius: 999px; }
.tier-price b { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); }

/* ---------- risk disclaimer */
.disc-sec { padding-block: clamp(40px, 6vw, 72px); }
.disc { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border: 1.5px solid rgba(239, 91, 91, .65); border-radius: 14px; background: linear-gradient(180deg, rgba(239, 91, 91, .12), rgba(239, 91, 91, .04)); }
.disc-head { display: flex; align-items: center; gap: 12px; }
.disc-head svg { width: 30px; height: 30px; flex: none; }
.disc-head path { fill: none; stroke: var(--sl); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.disc-head .rule-tag { color: var(--sl); }
.disc h2 { font-size: var(--step-2); color: #ffb3b3; }
.disc-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.disc-body p { color: var(--fg-2); font-size: .97rem; }
@media (max-width: 900px) { .disc-body { grid-template-columns: 1fr; } }

/* ---------- locked rules (style follows the rules wizard on my.ravandfx.com) */
.lock-sec { background: radial-gradient(60% 70% at 85% 10%, rgba(226, 178, 60, .08), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
html[lang="fa"] .lock-card { margin: 0; display: grid; gap: 16px; padding: clamp(18px, 3vw, 26px); background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line-2)); border-radius: 14px; box-shadow: 0 24px 60px -30px rgba(226, 178, 60, .4); position: relative; overflow: hidden; min-width: 0; }
.lock-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.lock-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lock-head b { font-size: 1.1rem; color: var(--fg); }
.lock-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--gold); background: rgba(226, 178, 60, .14); border: 1px solid rgba(226, 178, 60, .4); flex: none; }
.lock-ic svg { width: 20px; height: 20px; }
.lock-pill { margin-inline-start: auto; padding: 6px 11px; border: 1px solid rgba(226, 178, 60, .45); background: rgba(42, 33, 16, .55); color: #ffe08a; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.lock-sum { margin: 0; }
.lock-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.lock-sum div:first-child { border-top: 0; }
.lock-sum dt { color: var(--fg-3); }
.lock-sum dd { margin: 0; font-weight: 700; color: var(--fg); text-align: end; font-variant-numeric: tabular-nums; }
.lock-card .fine { line-height: 1.7; }
/* pricing links and single screenshot */
.tier-all .fine a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.tier-all .fine a:hover { color: var(--fg); }
.shots.one { grid-template-columns: 1fr; max-width: 920px; }
.shots.one figure:first-child { grid-row: auto; }
.steps p a, .faq .a a { color: #9cc5ff; text-decoration: underline; text-underline-offset: 3px; }
.steps p a:hover, .faq .a a:hover { color: #cfe2ff; }
.steps code { overflow-wrap: anywhere; }

/* discipline section: what the assistant stops */
.lock-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.guards-h { font-size: 1.1rem; margin-bottom: 14px; }
.guards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guards li { display: grid; gap: 8px; align-content: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.g-bad { display: flex; gap: 10px; align-items: baseline; color: #ff8a8a; font-weight: 600; font-size: .98rem; }
.g-bad i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font: 700 .7rem/1 var(--f-mono); font-style: normal; color: #fff; background: var(--sl); transform: translateY(3px); }
.g-bad s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(239, 91, 91, .7); }
.guards p { color: var(--fg-2); font-size: .95rem; }
.lock-row { display: grid; gap: 8px; }
.lock-row-l { font-size: .82rem; color: var(--fg-3); }
.lock-row img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
@media (max-width: 1000px) { .lock-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .guards { grid-template-columns: 1fr; } }
/* screenshots: one per row, large enough to read the panel */
.shots.three { grid-template-columns: 1fr; max-width: 1040px; gap: 28px; }
.shots.three figure:first-child { grid-row: auto; }

/* link to the full simulator under the hero demo */
.sim-open { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border: 1px solid #2f4f7a; border-radius: var(--r); background: linear-gradient(135deg, rgba(58, 134, 240, .12), var(--surface) 60%); }
.sim-open p { margin: 0; color: var(--fg-2); max-width: 70ch; }
.sim-open b { color: var(--fg); }
.nav .nav-sim { color: #9cc5ff; }

/* trust: what we never do */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-i { display: grid; gap: 10px; align-content: start; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.trust-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--tp); background: rgba(47, 191, 127, .12); border: 1px solid rgba(47, 191, 127, .4); }
.trust-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-i h3 { font-size: 1.1rem; }
.trust-i p { color: var(--fg-2); font-size: .96rem; }
@media (max-width: 1000px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .trust { grid-template-columns: 1fr; } }

/* walkthrough: the button being explained pulses */
.pnl .pb.tour-pulse { position: relative; z-index: 1; animation: tpulse 1s ease-in-out infinite; }
@keyframes tpulse { 0%, 100% { box-shadow: 0 0 0 2px #ffe08a, 0 0 6px 2px rgba(255, 224, 138, .35); } 50% { box-shadow: 0 0 0 3px #ffe08a, 0 0 22px 8px rgba(255, 224, 138, .6); } }

/* learn: free tools and guides */
.learn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.learn-i { display: grid; gap: 8px; align-content: start; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.learn-i:hover { border-color: var(--blue); transform: translateY(-2px); }
.learn-i small { font: 600 .74rem/1 var(--f-mono); color: var(--blue); letter-spacing: .05em; text-transform: uppercase; }
html[lang="fa"] .learn-i small { font-family: var(--f-body); letter-spacing: 0; text-transform: none; }
.learn-i h3 { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.learn-i p { margin: 0; color: var(--fg-2); font-size: .93rem; }
.learn-i.is-tool { border-color: rgba(47, 191, 127, .45); background: linear-gradient(160deg, rgba(47, 191, 127, .08), var(--surface) 60%); }
.learn-i.is-tool small { color: var(--tp); }
.learn-all { margin: 18px 0 0; }
.learn-all a { color: #9cc5ff; font-weight: 600; }
@media (max-width: 900px) { .learn { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .learn { grid-template-columns: 1fr; } }

/* strategy tester: manual backtesting */
.tester-sec { background: radial-gradient(55% 60% at 15% 10%, rgba(58, 134, 240, .1), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.tester { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.tester-steps { display: grid; gap: 14px; padding: clamp(18px, 3vw, 26px); border-radius: 14px; border: 1px solid #2f4f7a; background: var(--surface); }
.tester-steps h3 { margin: 0; font-size: 1.1rem; }
.tester-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ts; display: grid; gap: 14px; }
.tester-steps li { counter-increment: ts; display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; }
.tester-steps li::before { content: counter(ts); grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 700 .9rem/1 var(--f-mono); color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(58, 134, 240, .5); }
html[lang="fa"] .tester-steps li::before { content: counter(ts, persian); font-family: var(--f-body); }
.tester-steps li b { color: var(--fg); }
.tester-steps li p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.tester-steps .btn { justify-self: start; white-space: normal; text-align: start; line-height: 1.45; padding-block: 10px; }
.tester-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tester-i { display: grid; gap: 8px; align-content: start; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tester-i h3 { margin: 0; font-size: 1.05rem; }
.tester-i p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.tester-i.is-free { border-color: rgba(47, 191, 127, .5); background: linear-gradient(160deg, rgba(47, 191, 127, .1), var(--surface) 60%); }
.tester-i.is-free h3 { color: #6ee7a8; }
@media (max-width: 960px) { .tester { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tester-items { grid-template-columns: 1fr; } }

.rfx-stage.is-stack .pnl { transform: none !important; }
