/* ==========================================================================
   SignalPro — public site
   Colors are driven by --primary / --accent (set from admin settings).
   ========================================================================== */
:root {
  --bg: #06080b;
  --bg-2: #0a0d12;
  --surface: #0e1218;
  --surface-2: #131923;
  --line: #1c2430;
  --line-2: #273141;
  --text: #e8edf3;
  --muted: #8e9aab;
  --dim: #5c6878;
  --primary: #22c55e;
  --accent: #f43f5e;
  --info: #60a5fa;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: #04140a; box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #fff); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Announcement + header ---------- */
.announce { background: color-mix(in srgb, var(--primary) 12%, var(--bg)); color: var(--text); border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; padding: 8px 16px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { height: 32px; width: auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); display: grid; place-items: center; color: #04140a; }
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px; }
.lang-switch:hover { color: var(--text); border-color: var(--muted); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .menu-btn { display: grid; }
  .mobile-menu { display: block; position: fixed; inset: 68px 0 auto 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s var(--ease); z-index: 49; }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
  .mobile-menu .btn { margin-top: 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section + .section { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--font); font-size: 13.5px; font-weight: 600; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; inset-inline-end: -160px; top: -200px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 65%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; line-height: 1.15; }
.hero h1 .hl { color: var(--primary); }
.hero-sub { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 36px; padding: 0; list-style: none; max-width: 520px; }
.hero-badges li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14.5px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.hero-visual { position: relative; }
.hero-visual .chart-card { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
[dir="rtl"] .hero-visual .chart-card { transform: perspective(1400px) rotateY(4deg) rotateX(2deg); }
.hero-img { border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 48px; }
  .hero-visual .chart-card, [dir="rtl"] .hero-visual .chart-card { transform: none; }
}
@media (max-width: 520px) { .hero-badges { grid-template-columns: 1fr; } .hero-ctas .btn { flex: 1 1 100%; } }

/* ---------- Chart card ---------- */
.chart-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 14px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); direction: ltr; }
.chart-top .dots { display: flex; gap: 6px; }
.chart-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.chart-top .sym { color: var(--text); }
.chart-svg { width: 100%; height: auto; display: block; direction: ltr; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 6px 4px; direction: ltr; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--muted); }
.chip.tp { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.chip.sl { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.chip.en { color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { padding: 22px; display: flex; gap: 14px; align-items: center; }
.trust-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); border: 1px solid var(--line-2); flex: none; }
.trust-item h3 { font-size: 15.5px; font-weight: 600; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Examples ---------- */
.examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.example { padding: 14px; overflow: hidden; }
.example-body { padding: 18px 8px 8px; }
.example-body h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.example-body p { color: var(--muted); margin-top: 6px; }
.dir-pill { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.dir-pill.buy { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.dir-pill.sell { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.example img { border-radius: 12px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.example .chart-card { box-shadow: none; padding: 10px; }
@media (max-width: 860px) { .examples-grid { grid-template-columns: 1fr; } }

/* ---------- Scroller (testimonials / backtest) ---------- */
.scroller-wrap { position: relative; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (max-width: 960px) { .scroller { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 620px) { .scroller { grid-auto-columns: 86%; } }
.scroller-nav { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.scroller-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.scroller-nav button:hover { border-color: var(--muted); }
.scroller-nav svg { width: 18px; height: 18px; }
[dir="rtl"] .scroller-nav svg { transform: scaleX(-1); }

.testimonial { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }
.testimonial blockquote { margin: 0; font-size: 16.5px; line-height: 1.75; flex: 1; }
.t-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-author strong { display: block; font-size: 15px; }
.t-author span { color: var(--muted); font-size: 13.5px; }

/* ---------- Features ---------- */
.features-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); color: var(--primary); font-size: 19px; flex: none; }
.feature h3 { font-size: 16px; font-weight: 600; }
.feature .tag { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 3px; display: block; direction: ltr; text-align: start; }

.ladder { padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.ladder-title { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.rung { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 11px; font-family: var(--mono); font-size: 13.5px; border: 1px dashed; direction: ltr; }
.rung b { font-weight: 600; }
.rung.tp { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.rung.tp.t2 { opacity: .85; } .rung.tp.t1 { opacity: .7; }
.rung.en { color: var(--info); border-style: solid; border-color: color-mix(in srgb, var(--info) 45%, transparent); background: color-mix(in srgb, var(--info) 8%, transparent); }
.rung.sl { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
@media (max-width: 960px) { .features-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit { padding: 30px; position: relative; overflow: hidden; }
.benefit .tag { font-family: var(--mono); font-size: 12px; color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); padding: 3px 9px; border-radius: 7px; display: inline-block; direction: ltr; }
.benefit h3 { font-size: 21px; margin-top: 16px; }
.benefit p { color: var(--muted); margin-top: 8px; }
.benefit .num { position: absolute; inset-inline-end: 22px; top: 18px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.tech-note { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; display: flex; gap: 12px; }
.tech-note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--info); }
@media (max-width: 760px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---------- No repaint ---------- */
.norepaint-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.norepaint-text { padding: 44px; }
.norepaint-text h2 { font-size: clamp(26px, 3.4vw, 36px); }
.norepaint-text h3 { font-size: 19px; margin-top: 22px; color: var(--primary); }
.norepaint-text p { color: var(--muted); margin-top: 10px; }
.norepaint-text .disclaimer { margin-top: 22px; font-size: 14px; color: var(--dim); border-inline-start: 2px solid var(--line-2); padding-inline-start: 14px; }
.norepaint-visual { background: var(--bg-2); border-inline-start: 1px solid var(--line); display: grid; place-items: center; padding: 30px; }
.norepaint-visual svg { width: 100%; max-width: 380px; direction: ltr; }
@media (max-width: 860px) { .norepaint-card { grid-template-columns: 1fr; } .norepaint-visual { border-inline-start: 0; border-top: 1px solid var(--line); } .norepaint-text { padding: 30px 24px; } }

/* ---------- Backtest ---------- */
.bt-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bt-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 0; direction: ltr; }
.bt-head strong { font-family: var(--mono); font-size: 17px; }
.bt-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bt-card img { border-radius: 12px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16/10; object-fit: cover; cursor: zoom-in; }
.bt-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bt-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bt-stat span { display: block; font-size: 12px; color: var(--muted); }
.bt-stat b { font-family: var(--mono); font-size: 16px; }
.bt-stat b.pos { color: var(--primary); } .bt-stat b.neg { color: var(--accent); }
.bt-period { font-size: 13px; color: var(--dim); padding: 0 6px; }
.note { max-width: 820px; margin: 32px auto 0; text-align: center; color: var(--dim); font-size: 14px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { padding: 30px; position: relative; }
.step-num { font-family: var(--mono); font-size: 14px; color: var(--primary); width: 46px; height: 46px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); background: color-mix(in srgb, var(--primary) 8%, transparent); display: grid; place-items: center; margin-bottom: 20px; font-weight: 600; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin-top: 8px; }
.callout { margin: 28px auto 0; max-width: 820px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); font-size: 15px; }
.callout svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 3px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
.plan { padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: color-mix(in srgb, var(--primary) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface) 55%); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--primary) 60%, transparent); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--primary); color: #04140a; font-size: 12.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
[dir="rtl"] .plan-badge { transform: translateX(50%); }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--mono); font-size: 46px; font-weight: 700; color: var(--text); letter-spacing: -.03em; direction: ltr; }
.plan-price .suffix { color: var(--muted); font-size: 15px; }
.plan-price del { color: var(--dim); font-family: var(--mono); font-size: 15px; direction: ltr; }
.plan-sub { color: var(--primary); font-size: 14px; margin-top: 4px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 4px; }
@media (max-width: 920px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; } .plan.featured { order: -1; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease); }
.faq-item summary .pm svg { width: 14px; height: 14px; }
.faq-item[open] summary .pm { transform: rotate(45deg); color: var(--primary); }
.faq-answer { padding: 0 22px 22px; color: var(--muted); }
.faq-answer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 56px 40px; text-align: center; position: relative; overflow: hidden; border-color: var(--line-2); }
.final-cta::before { content: ""; position: absolute; inset: auto 0 -60% 0; height: 120%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 25%, transparent), transparent 60%); pointer-events: none; }
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(28px, 4vw, 44px); }
.final-cta p { color: var(--muted); max-width: 620px; margin: 14px auto 28px; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.footer-grid ul a { color: var(--text); opacity: .85; }
.footer-grid ul a:hover { opacity: 1; color: var(--primary); }
.footer-tagline { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 360px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--text); border-color: var(--muted); }
.socials svg { width: 17px; height: 17px; }
.footer-disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--dim); font-size: 13.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Page / checkout ---------- */
.page-wrap { padding: 64px 0 40px; }
.prose { max-width: 780px; margin-inline: auto; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-inline-start: 22px; }
.prose a { color: var(--primary); }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; max-width: 1000px; margin-inline: auto; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { order: -1; } }
.panel { padding: 30px; }
.panel h1 { font-size: 26px; margin-bottom: 6px; }
.panel .lead { color: var(--muted); margin-bottom: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--dim); }
.input { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.input.ltr { direction: ltr; text-align: start; }
[dir="rtl"] .input.ltr { text-align: right; }
.error { color: var(--accent); font-size: 13.5px; }
.methods { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.method:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.method input { accent-color: var(--primary); width: 18px; height: 18px; }
.method .m-ico { margin-inline-start: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 6px 0 22px; }
.check input { accent-color: var(--primary); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.check a { color: var(--primary); }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-total { font-family: var(--mono); font-size: 28px; font-weight: 700; direction: ltr; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; margin-top: 16px; justify-content: center; }
.secure svg { width: 15px; height: 15px; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 15px; border: 1px solid; }
.alert-error { color: #fecdd3; background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.alert-success { color: #bbf7d0; background: color-mix(in srgb, var(--primary) 12%, transparent); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.alert-info { color: #bfdbfe; background: color-mix(in srgb, var(--info) 10%, transparent); border-color: color-mix(in srgb, var(--info) 30%, transparent); }

.status-hero { text-align: center; padding: 10px 0 24px; }
.status-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; }
.status-icon svg { width: 30px; height: 30px; }
.status-icon.ok { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.status-icon.wait { background: color-mix(in srgb, #fbbf24 14%, transparent); color: #fbbf24; }
.status-icon.bad { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 24px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.order-meta div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.order-meta span { display: block; font-size: 12.5px; color: var(--dim); }
.order-meta b { font-size: 15px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; place-items: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 90vh; border-radius: 12px; }

/* modal (video) */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.8); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-inner { width: min(960px, 100%); position: relative; }
.modal-close { position: absolute; top: -48px; inset-inline-end: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.chart-svg text { font-family: var(--mono); }
