/* صفحه‌ی اصلی (طرح نسخه ۱۰)؛ فقط در همین صفحه import می‌شود. همه‌ی انتخاب‌گرها زیر .home هستند تا به صفحه‌های دیگر نشت نکنند. */
html:has(.home) { scroll-behavior: smooth; }
.home::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 900px; z-index: -1; pointer-events: none; background-image: linear-gradient(#16335a44 1px, transparent 1px), linear-gradient(90deg, #16335a44 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 70%); }
.home button { cursor: pointer; }
:where(.home main svg) { display: block; width: 100%; height: auto; }
.home h1 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.5; margin: 14px 0; font-weight: 800; text-wrap: balance; }
.home h1 .br { display: block; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.3; background: linear-gradient(90deg, var(--cy2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px #22d3ee55); }
.home h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 6px; line-height: 1.5; text-wrap: balance; }
.home h2 em, .wi h3 em { font-style: normal; color: var(--cyan); }
.home section { padding: 42px 0; }
.home .sub { color: var(--mute); margin: 0 0 24px; }
.ctr { text-align: center; }
.ctr .sub { margin-bottom: 30px; max-width: 760px; margin-inline: auto; }
.ctr h2.mt12 { margin-top: 12px; }
.note { font-size: 12px; color: var(--mute); margin: 6px 0 0; }
.note a { display: inline-block; padding: 12px 4px; margin: -12px 0; color: var(--cyan); }

/* ---------- هیرو ---------- */
.hero { display: grid; grid-template-columns: .9fr 1.4fr; gap: 34px; align-items: center; padding: 48px 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 0 14px 0 12px; font-size: 12.5px; color: var(--mute); background: #0a1b3388; }
.chips span::before { content: "✓"; color: var(--ok); margin-left: 8px; }
.chart { position: relative; background: #071427; border: 1px solid var(--line); border-radius: 16px; padding: 12px; direction: ltr; box-shadow: 0 0 60px #0e5a9a33; }
.ct { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.ct b { color: var(--text); }
.ct i { color: var(--ok); font-style: normal; }
.art { position: relative; min-height: 360px; direction: ltr; }
.hc { position: absolute; top: 0; left: 0; width: 98%; z-index: 2; }
.c3d { transform: perspective(1200px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transform-style: preserve-3d; background: linear-gradient(160deg, #0b2347, #050f20); border: 2px solid #2a6fd6; box-shadow: 0 30px 60px #000a, 0 0 70px #1d6bff44, inset 0 0 40px #1d6bff22; }
.c3d::before { content: ""; position: absolute; inset: -8px; border-radius: 22px; background: radial-gradient(65% 65% at 50% 55%, #1d6bff66, transparent 72%); filter: blur(16px); transform: translateZ(-50px) scale(1.043); pointer-events: none; }
.c3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 22%) var(--gy, 0%), #ffffff2e, transparent 58%); transform: translateZ(40px) scale(.9667); }
.c3d .ct { transform: translateZ(36px) scale(.97); }
.c3d svg { transform: translateZ(18px) scale(.985); }
.hero .c3d { will-change: transform; }
.mc { position: absolute; z-index: 2; background: #0a1b33dd; border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; font-size: 12px; direction: rtl; animation: fl 5s ease-in-out infinite; transform: translate3d(calc(var(--mx, 0) * 24px), calc(var(--my, 0) * 16px), 70px); }
.mc .i { margin-left: 6px; color: var(--cyan); }
.mc.m1 { right: 0; top: 6%; animation-delay: -3s; }
.mc.m2 { left: 2%; bottom: 34%; }
@keyframes fl { 50% { translate: 0 -8px; } }

.stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 34px 0 6px; }
.stats div { padding: 20px; border-left: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.stats div:last-child { border: 0; }
.stats b { display: block; font-size: 30px; color: var(--text); line-height: 1.4; }

/* ---------- کارت‌های سه‌تایی ---------- */
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gc { border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px 0; text-align: center; overflow: hidden; background: radial-gradient(#16335a 1px, transparent 1px) 0 0/14px 14px, linear-gradient(180deg, #0a1f3d, #061226); }
.gc h2, .gc h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.9; }
.gc p { margin: 0 auto 6px; color: var(--mute); font-size: 13.5px; max-width: 300px; }
.gc svg { margin-top: 6px; }
#discounts .gc { padding-bottom: 20px; }
.fl { animation: fl 4.5s ease-in-out infinite; }
.fl.d1 { animation-delay: -1.5s; }
.fl.d2 { animation-delay: -3s; }
.rp { fill: none; stroke: #22d3ee; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: rp 3s ease-out infinite; }
.rp.d1 { animation-delay: 1s; }
.rp.d2 { animation-delay: 2s; }
@keyframes rp { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.pu { animation: pu 2.4s ease-in-out infinite; }
@keyframes pu { 50% { opacity: .35; } }
.gold-chart-anim { display: block; width: 100%; height: 210px; max-width: 340px; margin: 12px auto 0; padding: 8px; overflow: visible; border: 1px solid #f5c45c35; border-radius: 16px; background: radial-gradient(ellipse at 50% 90%, #d69e2b18, transparent 68%), linear-gradient(145deg, #0b1c35, #071226); filter: drop-shadow(0 0 10px #d9a44118); transition: border-color .24s, filter .24s; }
.gc:hover .gold-chart-anim { border-color: #f5c45c99; filter: drop-shadow(0 0 14px #f5c45c55); }
.gold-candles { transform-origin: center; animation: candleGlow 2.2s ease-in-out infinite alternate; }
.gold-trend { animation: drawTrend 3.2s cubic-bezier(.4, 0, .2, 1) infinite; }
.gold-pulse { transform-origin: 255px 90px; animation: signalPulse 1.35s ease-in-out infinite; }
@keyframes drawTrend { 0%, 10% { stroke-dashoffset: 240; opacity: .3; } 65%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes candleGlow { to { filter: drop-shadow(0 0 5px #f5c45c); opacity: 1; } }
@keyframes signalPulse { 50% { opacity: .35; r: 10; } }

/* ---------- روش معامله و تلگرام ---------- */
.flow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 24px; font-size: 14px; }
.flow span { border: 1px solid var(--line); background: #0a1b33cc; border-radius: 999px; padding: 3px 16px; }
.flow i { font-style: normal; color: var(--cyan); align-self: center; }
.mt { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mcd { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.mcd.mt18 { margin-top: 18px; }
.mh { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.mh h3 { font-size: 20px; margin: 0; line-height: 1.9; }
.mh span { color: var(--mute); font-size: 13px; }
.mh .buy { color: var(--ok); }
.mh .sell { color: #fb7185; }
.mcd ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: m; }
.mcd li { counter-increment: m; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #c4d4ec; line-height: 1.8; }
.mcd li::before { content: counter(m, persian); flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: #0e3a73; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
#mb, #ms { transition: opacity .4s ease; }
.en.bl { animation: blk .39s ease-in-out 5; }
@keyframes blk { 0%, 100% { opacity: 1; } 50% { opacity: .06; } }
.pulse { fill: none; stroke: #f5b942; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pls 1.7s ease-out infinite; }
@keyframes pls { from { transform: scale(1); opacity: .9; } to { transform: scale(2.8); opacity: 0; } }
.tgm { background: #0e2a52; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; direction: rtl; max-width: 420px; }
.tgm b { color: var(--cyan); }
.tgm p { margin: 4px 0; color: #c4d4ec; }
.tgm small { color: var(--mute); display: block; text-align: left; font-size: 12px; }
.vid { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, #0b2347, #050f20); display: grid; place-items: center; overflow: hidden; direction: ltr; }
.vid svg { position: absolute; inset: 0; height: 100%; }
.vid .pb { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--cyan); color: #03202c; display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 30px #22d3ee66; }
.vid small { position: absolute; bottom: 8px; color: var(--mute); direction: rtl; font-size: 12px; }
.dr { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.dr .ok { color: var(--ok); }
.dr .no { color: #fb7185; }
.dr .nu, .dr .d { color: var(--mute); }
.tgc { margin-top: 22px; }

/* ---------- گوشی با سیگنال زنده (#live، اسکریپت phone-signal-v4.js) ---------- */
.ps-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.ps-txt .sub { margin-bottom: 18px; }
.ps-txt h2 { margin-top: 12px; }
.ps-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; counter-reset: s; }
.ps-steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--mute); transition: border-color .4s, color .4s, box-shadow .4s; }
.ps-steps li::before { content: counter(s, persian); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-weight: 800; transition: background-color .4s, border-color .4s, color .4s; }
.ps-steps li.on { color: var(--text); border-color: #22d3ee88; box-shadow: 0 0 18px #22d3ee1f; }
.ps-steps li.on::before { background: var(--cyan); border-color: var(--cyan); color: #03202c; }
.ps-stage { position: relative; height: 640px; margin-bottom: 56px; perspective: 1500px; display: grid; place-items: center; }
.ps-stage::before { content: ""; position: absolute; width: 420px; max-width: 100%; height: 420px; border-radius: 50%; background: radial-gradient(circle, #22d3ee2e, #2a8bff14 45%, transparent 70%); filter: blur(10px); }
.ps-float { transform-style: preserve-3d; animation: psFloat 6s ease-in-out infinite; }
@keyframes psFloat { 50% { transform: translateY(-10px); } }
.ps-phone { position: relative; transform-style: preserve-3d; }
.ps-body { position: relative; z-index: 1; width: 272px; aspect-ratio: 9/19.3; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #3a4a63, #121a28 40%, #2a3850 75%, #0b111c); box-shadow: inset 0 0 0 1.5px #5b6f8f66, inset 0 0 0 3px #0a0f18, 0 34px 60px #000c, 0 0 60px #22d3ee22; }
.ps-body::before, .ps-body::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: #2b3a52; }
.ps-body::before { top: 110px; height: 44px; }
.ps-body::after { top: 168px; height: 70px; }
.ps-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #050d1a radial-gradient(260px 180px at 80% 0, #0b3a6655, transparent 70%); direction: ltr; display: flex; flex-direction: column; }
.ps-island { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; z-index: 3; }
.ps-status { display: flex; justify-content: space-between; padding: 10px 24px 0; height: 36px; font-size: 12px; font-weight: 700; color: #dbe7f7; }
.ps-sig { display: flex; align-items: flex-end; gap: 2px; }
.ps-sig i { width: 3px; background: #dbe7f7; border-radius: 1px; }
.ps-sig i:nth-child(1) { height: 4px; } .ps-sig i:nth-child(2) { height: 6px; } .ps-sig i:nth-child(3) { height: 8px; } .ps-sig i:nth-child(4) { height: 10px; }
.ps-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 2px; font-size: 12px; color: var(--mute); }
.ps-top b { color: var(--text); }
.ps-px b { font-size: 13px; }
.ps-px i { font-style: normal; font-size: 12px; }
.ps-ind { display: flex; align-items: center; gap: 6px; margin: 4px 14px 0; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--cyan); }
.ps-ind span { border: 1px solid #22d3ee55; border-radius: 6px; padding: 0 6px; }
.ps-ind i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pu 1.6s ease-in-out infinite; }
.ps-screen canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.ps-toast { position: absolute; top: 44px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 10px; align-items: center; direction: rtl; padding: 9px 11px; border-radius: 16px; background: #0f2442ee; border: 1px solid #22d3ee55; box-shadow: 0 10px 30px #000a; backdrop-filter: blur(10px); transform: translateY(-140%); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), opacity .4s; }
.ps-toast.on { transform: none; opacity: 1; }
.ps-toast em { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--cy2), var(--cyan)); color: #03202c; font-style: normal; font-weight: 900; }
.ps-toast b { display: block; font-size: 12px; line-height: 1.6; }
.ps-toast span { display: block; font-size: 12px; color: var(--mute); line-height: 1.6; }
.ps-bar { display: flex; justify-content: space-around; direction: rtl; padding: 8px 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: #6f87aa; background: #07142a; }
.ps-bar .on { color: var(--cyan); }
.ps-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, #ffffff12 45%, transparent 58%); background-size: 250% 100%; animation: psGlare 7s ease-in-out infinite; }
@keyframes psGlare { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.ps-shadow { position: absolute; bottom: 10px; left: 50%; width: 220px; height: 26px; margin-left: -110px; border-radius: 50%; background: radial-gradient(#000c, transparent 70%); }
.ps-card { position: absolute; left: 50%; bottom: -54px; width: max-content; max-width: 92%; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 18px; background: linear-gradient(135deg, #22d3ee, #34d399); color: #03202c; box-shadow: 0 18px 40px #0009; transform: translateX(-50%) rotate(-2deg); }
.ps-card small { display: block; font-size: 12px; opacity: .8; }
.ps-card b { display: block; font-size: 14.5px; line-height: 1.6; }
.ps-bell { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #03202c; color: var(--cyan); }
.ps-bell svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .ps-wrap { grid-template-columns: 1fr; gap: 10px; }
  .ps-stage { height: 560px; }
  .ps-body { width: 222px; }
  .ps-card { bottom: -58px; }
  .ps-stage::before { width: 320px; height: 320px; }
}

/* ---------- مقایسه‌ی قبل/بعد ---------- */
.cmp { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); direction: ltr; user-select: none; touch-action: pan-y; }
.cmp:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cmp .chart { border: 0; border-radius: 0; box-shadow: none; }
.cmp .top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.hd { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); pointer-events: none; }
.hd::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--cyan); color: #03202c; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.lb { position: absolute; top: 12px; z-index: 2; background: #050d1acc; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 12px; direction: rtl; pointer-events: none; }
.lb.r { right: 12px; } .lb.l { left: 12px; }

/* ---------- «چرا مک سیگنال» (اسکرول چسبان + صحنه‌ی سه‌بعدی) ---------- */
.hw2 { height: 700vh; }
.wy { position: sticky; top: 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; min-height: calc(100vh - 110px); }
@supports (height: 100dvh) { .wy { min-height: calc(100dvh - 110px); } }
.wl { display: grid; gap: 6px; }
.wi { position: relative; opacity: .28; cursor: pointer; padding: 6px 10px; border: 1px solid transparent; border-radius: 12px; transition: opacity .35s, transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease; }
.wi.on { opacity: 1; border-color: #238cf0; box-shadow: inset -3px 0 #238cf0, 0 8px 24px #0875df20; }
.wi:hover, .wi:focus-visible { transform: translateX(-4px); border-color: #27a9e8; box-shadow: 0 10px 28px #0799d522; background-color: #0b2542; }
.wi:focus-visible { outline: 2px solid #36c8ff; outline-offset: 4px; }
.wi small { display: flex; align-items: center; gap: 8px; color: var(--cy2); font-size: 12px; }
.wi small::before { content: ""; width: 60px; height: 1px; background: var(--cy2); }
.wi h3 { margin: 0; font-size: clamp(20px, 2.6vw, 27px); }
.wi p { margin: 6px 0 0; color: var(--mute); font-size: 14.5px; max-width: 440px; }
.wi:not(.on) p, .st:not(.on) span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.fr { position: relative; aspect-ratio: 3/4; max-height: 68vh; margin: 0 auto; width: min(100%, 430px); border: 2px solid #4f9bff; border-radius: 34px; background: radial-gradient(circle at 62% 38%, #cfe6ff44, #0a2a63 45%, #040d1f); box-shadow: 0 0 90px #1d6bff66; direction: ltr; }
.fr::before { content: ""; position: absolute; inset: -60px; border: 1px dashed #1d4f93; border-radius: 50%; pointer-events: none; }
.fr canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.big { position: absolute; top: -36px; right: -34px; font-size: 84px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px #2a4a7a; z-index: 2; }
.ic { position: absolute; inset: 0; display: grid; place-items: center; }
.ic .i { width: 92px; height: 92px; stroke: var(--cyan); stroke-width: 1.4; }
.pg { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; gap: 6px; justify-content: center; }
.pg i { width: 34px; height: 3px; border-radius: 3px; background: #16335a; transition: background-color .3s; }
.pg i.on { background: var(--cy2); }

/* ---------- کالبدشکافی یک معامله ---------- */
.hw { height: 430vh; }
.how { display: grid; grid-template-columns: 1fr 1.75fr; gap: 24px; align-items: center; }
.hw .how { position: sticky; top: 84px; min-height: 60vh; }
.sts { display: grid; gap: 10px; }
.st { position: relative; text-align: right; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; cursor: pointer; transition: transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease, filter .28s ease; }
.st b { display: block; }
.st span { color: var(--mute); font-size: 13px; display: block; }
.st:hover, .st:focus-visible, .st.on { transform: translateX(-5px) scale(1.015); border-color: #279cff; background-color: #0d2c50; box-shadow: 0 0 0 1px #1689f755, 0 12px 28px #0875df24, inset -3px 0 #269bff; filter: brightness(1.12); }
.st:focus-visible { outline: 2px solid #36c8ff; outline-offset: 4px; }

/* ---------- جدول مقایسه ---------- */
#cmp { position: relative; isolation: isolate; }
#cmp .tbw { margin: 30px auto 0; max-width: 1120px; overflow-x: auto; padding: 0 8px 12px; scrollbar-color: #2466a7 #071326; }
#tb { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; text-align: center; table-layout: fixed; color: #dceaff; }
#tb th, #tb td { padding: 17px 13px; border-bottom: 1px solid #203b5b; background: rgba(4, 14, 29, .62); font-size: 14px; vertical-align: middle; transition: background-color .24s; }
#tb thead th { height: 92px; color: #b9cde7; font-size: 15px; font-weight: 800; border-bottom: 1px solid #294665; }
#tb th:first-child, #tb td:first-child { text-align: right; width: 25%; font-weight: 750; color: #dceaff; }
#tb .me { background: linear-gradient(180deg, rgba(9, 48, 91, .66), rgba(4, 28, 57, .72)); border-left: 1px solid #1474c9; border-right: 1px solid #1474c9; color: #e8f4ff; font-weight: 800; animation: gl 3.2s ease-in-out infinite; }
#tb thead th.me { border-top: 1px solid #1685ed; border-radius: 22px 22px 0 0; }
#tb tbody tr:last-child td.me { border-bottom: 1px solid #1685ed; border-radius: 0 0 22px 22px; }
@keyframes gl { 50% { box-shadow: inset 0 0 40px #22d3ee44; } }
#tb .bdg { display: inline-flex; align-items: center; justify-content: center; padding: 4px 14px; border-radius: 30px; background: linear-gradient(90deg, #0876ed, #269bff); color: #fff; font-size: 12px; margin-bottom: 6px; box-shadow: 0 5px 18px #0876ed55; }
#tb i.y, #tb i.n { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-style: normal; }
#tb i.y { background: #1689f7; box-shadow: 0 0 18px #1689f744; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * .2s); }
#tb i.y::after { content: "✓"; color: #fff; font-size: 19px; font-weight: 900; line-height: 1; }
#tb i.n { border: 1px solid #344c68; background: #071426; }
#tb i.n::after { content: "×"; color: #8196b2; font-size: 18px; line-height: 1; }
.js-on #tb:not(.in) i.y { transform: scale(0); }
#tb .sc { font-variant-numeric: tabular-nums; font-size: 24px; color: #62b9ff; }
#tb .sc.m { color: var(--mute); }
#tb .sc + span { color: var(--mute); }
#tb tbody tr:hover td:not(.me) { background: rgba(20, 55, 91, .42); }
#tb tbody tr:hover td.me { background: linear-gradient(180deg, rgba(10, 69, 126, .8), rgba(4, 37, 73, .86)); }

/* ---------- قدم‌های شروع ---------- */
.stp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.stp li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; counter-increment: s; display: flex; gap: 12px; align-items: center; }
.stp li::before { content: counter(s, persian); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); color: #03202c; display: grid; place-items: center; font-weight: 800; }

/* ---------- پلن‌ها ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plans.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.plan.hot { border-color: var(--gold); box-shadow: 0 0 40px #f5b94222; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .old { color: var(--mute); font-size: 13px; text-decoration: line-through; }
.pr { font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 800; color: var(--gold); background: linear-gradient(110deg, #f5b942 0%, #f5b942 38%, #fff3c4 50%, #f5b942 62%, #f5b942 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: priceGlow 1.8s ease-in-out infinite, priceShine 3.2s linear infinite; }
.pr small { font-size: 13px; font-weight: 400; -webkit-text-fill-color: var(--mute); color: var(--mute); }
.plan:nth-child(2) .pr { animation-delay: .3s, .4s; }
.plan:nth-child(3) .pr { animation-delay: .6s, .8s; }
.plan:nth-child(4) .pr { animation-delay: .9s, 1.2s; }
.plan.hot .pr { font-size: 31px; animation-duration: 1.4s, 2.6s; }
@keyframes priceGlow { 0%, 100% { filter: drop-shadow(0 0 4px #f5b94299) brightness(1.08); } 50% { filter: drop-shadow(0 0 10px #ffd27a) drop-shadow(0 0 22px #f5b942aa) brightness(1.35); } }
@keyframes priceShine { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.plan ul { flex: 1 1 auto; list-style: none; padding: 0; margin: 12px 0 20px; color: var(--mute); font-size: 14px; }
.plan li::before { content: "✓ "; color: var(--cyan); }
.plan li.sv { color: var(--text); }
.plan .btn { width: 100%; margin-top: auto; }

/* ---------- ثبت‌نام ---------- */
.sf { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.sf .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.fd { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fd label { font-size: 14px; }
.fd label i { color: var(--mute); font-style: normal; font-size: 12px; }
.sf .inp { font: inherit; color: var(--text); background: #07142a; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; width: 100%; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.sf .inp:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px #22d3ee22; }
.sf .inp[dir="ltr"] { text-align: left; }
.fd.bad .inp { border-color: var(--bad); }
.er { color: var(--bad); font-size: 12.5px; line-height: 1.7; }
.er:empty { display: none; }
.ck { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 6px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.ck input { margin: 3px 0 0; width: 22px; height: 22px; accent-color: var(--cyan); flex: none; }
.sf button[type="submit"] { width: 100%; margin-top: 14px; padding: 13px 26px; }
.sf button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sf-st { margin: 12px 0 0; min-height: 1.6em; font-size: 14px; text-align: center; }
.sf-st.err { color: var(--bad); }
.sf-st.ok { color: var(--ok); }
.sf-in { text-align: center; margin-top: 14px; }

/* ---------- نظرها ---------- */
.mq { overflow: hidden; direction: ltr; }
.tr { display: flex; gap: 16px; width: max-content; animation: mq 60s linear infinite; }
.mq:hover .tr, .mq:focus-within .tr, .mq.stopped .tr { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.rv { width: 300px; padding: 18px; direction: rtl; font-size: 14px; flex: none; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.rv p { margin: 0; }
.rv figcaption { display: block; color: var(--mute); font-size: 12px; margin-top: 6px; }
.rv figcaption b { color: var(--text); font-size: 12.5px; }
.mq-ctl { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- وبلاگ ---------- */
.bhd { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.bhd .en-l { letter-spacing: .6em; font-size: 12px; direction: ltr; display: block; color: var(--mute); }
.bl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.post .cv { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #061a3a; }
.post .cv img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .cv img { transform: scale(1.045); }
.post .bd { padding: 16px 18px; }
.post h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.7; }
.post p { margin: 0 0 6px; color: var(--mute); font-size: 13px; }
.post time, .post .rt { font-size: 12px; color: var(--cy2); }

/* ---------- سؤال‌ها و پایان ---------- */
#faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 7px 20px; margin-bottom: 10px; }
#faq summary { cursor: pointer; font-weight: 700; padding: 7px 0; min-height: 44px; display: flex; align-items: center; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary { list-style: none; }
#faq summary::before { content: "+"; flex: none; width: 22px; color: var(--cyan); font-weight: 800; transition: transform .2s; }
#faq details[open] summary::before { transform: rotate(45deg); }
#faq details p { margin: 2px 0 10px; color: var(--mute); white-space: pre-line; }
.fin { text-align: center; background: linear-gradient(160deg, #0b3a66, var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 44px 20px; margin: 20px 0 40px; }
.fin p { color: var(--mute); }

/* ---------- تعامل شناور یکپارچه ---------- */
:where(.home) :where(.gc, .plan, .mcd, .post, .fin, .stp li, .stats > div, .chips > span, details, .mc, .flow span, .tgm, .cta .btn) {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease, filter .24s ease, color .24s ease;
}
@media (hover: hover) and (pointer: fine) {
  :where(.home) :where(.gc, .plan, .mcd, .post, .fin, .stp li, .stats > div, .chips > span, details, .flow span, .tgm, .cta .btn):hover {
    transform: translateY(-5px); border-color: #22d3eeaa; box-shadow: 0 14px 34px #02081788, 0 0 0 1px #22d3ee22, 0 0 22px #22d3ee20; filter: brightness(1.08);
  }
  .home .gc:hover, .home .plan:hover, .home .mcd:hover { background-color: #0c2342; }
  .home .gc:hover svg { filter: drop-shadow(0 0 8px #22d3ee55); }
  .home .gc:hover .gold-chart-anim { filter: drop-shadow(0 0 14px #f5c45c55); }
  #method .mcd ol li { transition: transform .24s ease, color .24s ease; }
  #method .mcd ol li:hover { transform: translateX(-4px); color: #fff; }
}
@media (hover: none) {
  :where(.home) :where(.gc, .plan, .mcd, .post, .stp li, .stats > div, details):active { transform: scale(.985); border-color: #22d3ee; }
}

/* ---------- ورود نرم بخش‌ها هنگام اسکرول (هیرو همیشه بدون انیمیشن ورود) ---------- */
.home { --rb: 9px; }
.reveal { opacity: 0; }
.reveal.in-view { opacity: 1; animation: rvUp 1.05s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: var(--rd, 0s); }
.reveal.r-r.in-view { animation-name: rvR; }
.reveal.r-l.in-view { animation-name: rvL; }
.reveal.r-z.in-view { animation-name: rvZ; }
@keyframes rvUp { from { opacity: 0; transform: translateY(80px) scale(.93); filter: blur(var(--rb)); } }
@keyframes rvR { from { opacity: 0; transform: translateX(110px) scale(.94); filter: blur(var(--rb)); } }
@keyframes rvL { from { opacity: 0; transform: translateX(-110px) scale(.94); filter: blur(var(--rb)); } }
@keyframes rvZ { from { opacity: 0; transform: scale(.8) translateY(40px); filter: blur(var(--rb)); } }

/* بخش‌های بیرون از دید تا نزدیک شدن کاربر چیده و رسم نمی‌شوند (سرعت بار اول، به‌ویژه موبایل).
   بخش‌های اسکرول‌محور چسبان (#features و #how) مستثنا هستند چون اندازه‌شان را اسکریپت می‌خواند. */
.home section:not(#features):not(#how) { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* بخش‌های بیرون از دید: توقف همه‌ی انیمیشن‌های CSS (کلاس با IntersectionObserver) */
.anim-off, .anim-off * { animation-play-state: paused !important; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1100px) { .plans, .plans.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .c3d { transform: none !important; }
  .hero .c3d { will-change: auto; }
  .mt, .hero, .how, .g3, .stp, .bl, .wy { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { border-left: 0; border-bottom: 1px solid var(--line); }
  .art { min-height: 0; }
  .hc { position: relative; width: 100%; }
  .mc { display: none; }
  .hw .chart, .fr { order: -1; }
  .hw { height: 480vh; }
  .fr { max-height: 36vh; aspect-ratio: auto; height: 36vh; width: 70%; }
  .big { font-size: 52px; top: -20px; }
  .hw2 { height: 620vh; }
  .wy { gap: 40px; top: 76px; }
  .pg { bottom: -26px; }
}
@media (max-width: 700px) {
  .home { --rb: 0px; }
  #tb th, #tb td { padding: 13px 9px; font-size: 12px; }
  #tb thead th { height: 80px; }
}
@media (max-width: 640px) { .sf { padding: 20px 16px; } .sf .g2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .plans, .plans.n3 { grid-template-columns: 1fr; } }

/* ---------- موبایل و لمسی: حذف جلوه‌های پرهزینه‌ی رسم (سایه و محوی متحرک) برای سرعت ---------- */
@media (max-width: 900px), (pointer: coarse) {
  .home svg [filter] { filter: none; }
  .gold-candles { animation: none; opacity: 1; }
  .gold-chart-anim, .c3d::before, .ps-stage::before { filter: none; }
  .pr { animation: priceShine 3.2s linear infinite; filter: none; }
  #tb .me { animation: none; box-shadow: inset 0 0 30px #22d3ee33; }
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
  html:has(.home) { scroll-behavior: auto; }
  .tr, .fl, .rp, .pu, .mc, .gold-trend, .gold-candles, .gold-pulse, .pr, #tb .me, .ps-float, .ps-glare, .ps-ind i, .pulse, .en.bl { animation: none !important; }
  .gold-trend { stroke-dashoffset: 0; }
  .pr { filter: drop-shadow(0 0 8px #f5b94288); }
  .mc { transform: none; }
  .reveal, .reveal.in-view { opacity: 1; transform: none; animation: none !important; }
  .st, .wi, .ps-toast, #mb, #ms, #tb i.y, .post .cv img { transition: none; }
  :where(.home) :where(.gc, .plan, .mcd, .post, .fin, .stp li, .stats > div, .chips > span, details, .mc, .flow span, .tgm, .cta .btn) { transition: none; }
}
