/* ============================================================
   Neural Sniper — Main Stylesheet
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds — deep navy matching the logo's dark field */
  --bg:           #060810;
  --bg-2:         #09101e;
  --bg-card:      #0d1526;
  --bg-card-2:    #111b30;

  --border:       rgba(255,255,255,0.07);
  --border-gold:  rgba(212,154,30,0.38);
  --border-blue:  rgba(26,155,255,0.32);

  /* Logo gold — warm, rich, matches the crosshair ring */
  --gold:         #d49a1e;
  --gold-light:   #f0c040;
  --gold-glow:    rgba(212,154,30,0.18);

  /* Logo blue — electric cyan-blue, matches brain nodes & "SNIPER" text */
  --blue:         #1a9bff;
  --blue-light:   #60c0ff;
  --blue-glow:    rgba(26,155,255,0.15);

  /* Teal — pulled from the pricing "Free Trial" tier so the pops match */
  --teal:         #14b8a6;
  --teal-light:   #2dd4bf;
  --teal-glow:    rgba(20,184,166,0.15);
  --border-teal:  rgba(20,184,166,0.34);

  /* Trading signal colors (industry standard — unchanged) */
  --green:        #10b981;
  --green-light:  #34d399;
  --green-glow:   rgba(16,185,129,0.14);
  --border-green: rgba(16,185,129,0.34);
  --red:          #ef4444;

  --text:         #f1f5f9;
  --text-muted:   #8892aa;
  --text-dim:     #4b5772;

  --radius:       10px;
  --radius-lg:    18px;
  --radius-xl:    28px;

  --nav-h:        68px;
  --section-gap:  96px;

  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --shadow-gold:  0 0 40px rgba(212,154,30,0.14);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  /* Royal-blue gradient: lighter at the top of the page, darkening as you
     scroll down. Spans the full document height (no fixed attachment). */
  background: linear-gradient(180deg,
    #0a1322 0%,
    #081020 24%,
    #070c1a 46%,
    #060a15 66%,
    #04070f 84%,
    #03050b 100%);
  background-color: #03050b;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Ambient background (FluxCharts-style orbs) ----------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
}

.bg-orbs .orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(65,105,225,0.12) 0%, transparent 70%);
  top: -200px; right: 5%;
  filter: blur(60px);
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.bg-orbs .orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(65,105,225,0.08) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  filter: blur(70px);
  animation: orb-drift 22s ease-in-out infinite alternate-reverse;
}

.bg-orbs .orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(65,105,225,0.07) 0%, transparent 70%);
  top: 40%; right: -60px;
  filter: blur(80px);
  animation: orb-drift 16s ease-in-out infinite alternate;
  animation-delay: -6s;
}

.bg-orbs .orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(65,105,225,0.06) 0%, transparent 70%);
  top: 65%; left: 30%;
  filter: blur(60px);
  animation: orb-drift 20s ease-in-out infinite alternate-reverse;
  animation-delay: -10s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(0.96); }
}

/* Respect reduced-motion: stop the looping orb drift and snap transitions.
   Also lets headless tools capture a stable frame instead of waiting forever. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dot-grid overlay */
.bg-orbs::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Ensure all page content sits above the orbs */
.nav, .hero, section, .proof-bar, .divider, footer, .page-hero, .nav-mobile {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* --- Layout ----------------------------------------------- */
.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: 64px; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-header p {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  /* Gradient lives off-screen to the right; slides in on hover */
  background: linear-gradient(to right, #d49a1e 0%, #d49a1e 50%, #f0c040 75%, #60c0ff 100%);
  background-size: 200% 100%;
  background-position: left center;
  color: #07090f;
  transition: background-position 0.5s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212,154,30,0.3);
}

.btn-ghost {
  background: var(--bg-card-2);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.22);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: #0a1322;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

/* Stretch container to full nav height so align-items: center works */
.nav > .container { height: 100%; }

.nav.scrolled {
  background: #0a1322;
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-bar {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: screen;
  filter: contrast(1.3) brightness(1.05) saturate(0.75); /* removes JPEG black bg while keeping original logo colors */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-inline: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta { margin-left: -24px; padding: 9px 22px; font-size: 0.88rem; }

.nav-telegram { margin-left: 12px; padding: 9px 18px; font-size: 0.88rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,19,34,0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}

.nav-mobile a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: 8px; }
/* keep button label colors correct (override the muted .nav-mobile a rule) */
.nav-mobile .btn-primary { color: #07090f; }
.nav-mobile .btn-primary:hover { color: #07090f; background: none; }
.nav-mobile .btn-telegram { color: #fff; }
.nav-mobile .btn-telegram:hover { color: #fff; }

/* --- Hero Section ----------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 104px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 28%, rgba(65,105,225,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-logo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-logo-bg img {
  width: 42%;
  max-width: 460px;
  min-width: 240px;
  opacity: 0.32;
  filter: brightness(1.4) saturate(1.2);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
  /* Square, scope-centered PNG — centers cleanly via the flex parent */
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.12;
  max-width: 880px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
  margin-inline: auto;
  color: #cfd7e6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  justify-content: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
/* Color-code the four hero stats (teal · gold · blue · green) */
.hero-stats > div:nth-child(1) .hero-stat-value { color: var(--teal-light); }
.hero-stats > div:nth-child(2) .hero-stat-value { color: var(--gold-light); }
.hero-stats > div:nth-child(3) .hero-stat-value { color: var(--blue-light); }
.hero-stats > div:nth-child(4) .hero-stat-value { color: var(--green-light); }

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- Proof Bar -------------------------------------------- */
.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(4,6,13,0.28);
  padding: 28px 0;
}

.proof-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7d0e2;
  font-size: 0.85rem;
  font-weight: 500;
}

.proof-item svg { color: var(--gold); flex-shrink: 0; }

/* --- Features Grid ---------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  /* per-card accent (overridden by :nth-child below) */
  --accent:        var(--gold);
  --accent-glow:   var(--gold-glow);
  --accent-border: var(--border-gold);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p { font-size: 0.9rem; line-height: 1.65; }

/* Color-code the four feature cards (teal · gold · blue · green) */
.feature-card:nth-child(1) { --accent: var(--teal-light); --accent-glow: var(--teal-glow); --accent-border: var(--border-teal); }
.feature-card:nth-child(2) { --accent: var(--gold-light); --accent-glow: var(--gold-glow); --accent-border: var(--border-gold); }
.feature-card:nth-child(3) { --accent: var(--blue-light); --accent-glow: var(--blue-glow); --accent-border: var(--border-blue); }
.feature-card:nth-child(4) { --accent: var(--green-light); --accent-glow: var(--green-glow); --accent-border: var(--border-green); }

/* --- How It Works ----------------------------------------- */
.how-it-works { background: rgba(4,6,13,0.28); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), var(--border), var(--border-gold));
}

.step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
  background: var(--bg-2);
}

/* Color-code the three steps (teal · gold · blue) */
.step:nth-child(1) .step-num { border-color: var(--border-teal); color: var(--teal-light); }
.step:nth-child(2) .step-num { border-color: var(--border-gold); color: var(--gold-light); }
.step:nth-child(3) .step-num { border-color: var(--border-blue); color: var(--blue-light); }

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; }

/* --- CTA Banner ------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(245,166,35,0.1) 0%, rgba(16,185,129,0.06) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p  { margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .btn { padding: 15px 36px; font-size: 1rem; }

/* --- Pricing Page ----------------------------------------- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.pricing-card.featured {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex: 1;  /* grow so the CTA sits flush at the bottom of every card */
}

.plan-cta { margin-top: auto; }

/* Hidden placeholder — reserves height so rows align across pricing cards */
.ph { visibility: hidden; }

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-feature .check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature .cross {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature.disabled { opacity: 0.45; }

.plan-cta { width: 100%; justify-content: center; }

/* --- FAQ Page --------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--border-gold); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 600;
  font-family: var(--font);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.25s;
}

.faq-item.open .faq-icon {
  background: var(--gold-glow);
  border-color: var(--border-gold);
  color: var(--gold);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.faq-item.open .faq-answer { max-height: 500px; }

/* --- Contact / Sign Up Form ------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 14px; }
.contact-info p  { margin-bottom: 32px; font-size: 0.95rem; }

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-point-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-point-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.contact-point-value {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Form styles */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-card .form-intro {
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field label .required { color: var(--gold); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
}

.form-control::placeholder { color: var(--text-dim); }

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  width: 60px;
  height: 60px;
  background: rgba(26,155,255,0.12);
  border: 1px solid rgba(26,155,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.form-success h3 { margin-bottom: 10px; }
.form-success p  { font-size: 0.9rem; }

/* --- Footer ----------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  background: rgba(4,6,13,0.4);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-muted); }

/* --- Divider ---------------------------------------------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* --- Scroll animations ------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Page hero (inner pages) ------------------------------ */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 45%, rgba(65,105,225,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(65,105,225,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero p  { font-size: 1.05rem; max-width: 560px; margin-inline: auto; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-top        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .steps         { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 56px;
    --nav-h: 60px;
  }

  /* Nav — hide desktop links & CTA, show hamburger */
  .nav-links    { display: none; }
  .nav-cta      { display: none; }        /* lives in mobile dropdown instead */
  .nav-telegram { display: none; }        /* lives in mobile dropdown instead */
  .nav-hamburger { display: flex; }

  /* Smaller logo bar on mobile */
  .nav-logo-bar { height: 28px; }

  /* Hero — less top padding, remove full-height lock on small screens */
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 56px;
  }

  .page-hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 40px;
  }

  /* Hero content */
  .hero-desc    { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    padding-top: 24px;
    margin-top: 28px;
  }
  .hero-stat-value { font-size: 1.2rem; }
  .hero-stat-label { font-size: 0.72rem; }

  /* Grids → single column */
  .features-grid     { grid-template-columns: 1fr; }
  .footer-top        { grid-template-columns: 1fr; gap: 28px; }
  .form-row          { grid-template-columns: 1fr; }

  /* Misc */
  .cta-banner  { padding: 36px 20px; }
  .proof-bar-inner { gap: 20px; flex-direction: column; align-items: flex-start; }
  .form-card   { padding: 24px 16px; }
  .section-header { margin-bottom: 40px; }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .container { width: calc(100% - 32px); }
}

/* --- Built Different ---------------------------------------- */
.built-different-block {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.built-different-block h2 {
  margin-bottom: 12px;
}

.built-different-block > p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.built-different-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.built-different-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.built-different-item .bd-check {
  color: var(--green);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .built-different-block { padding: 32px 20px; }
  .built-different-grid { grid-template-columns: 1fr; }
}

/* --- Built For ---------------------------------------------- */
.built-for-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin-inline: auto;
}

.built-for-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color 0.22s, transform 0.22s;
}

.built-for-card {
  --accent-glow:   var(--gold-glow);
  --accent-border: var(--border-gold);
}
.built-for-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}
/* Color-code the four cards (teal · gold · blue · green) */
.built-for-card:nth-child(1) { --accent-glow: var(--teal-glow); --accent-border: var(--border-teal); }
.built-for-card:nth-child(2) { --accent-glow: var(--gold-glow); --accent-border: var(--border-gold); }
.built-for-card:nth-child(3) { --accent-glow: var(--blue-glow); --accent-border: var(--border-blue); }
.built-for-card:nth-child(4) { --accent-glow: var(--green-glow); --accent-border: var(--border-green); }

.built-for-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
}

.built-for-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.built-for-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .built-for-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADDITIONS — Developer Change Document (June 2026)
   ============================================================ */

/* --- Telegram button --------------------------------------- */
.btn-telegram {
  background: #229ed9;
  color: #fff;
  border: 1.5px solid #229ed9;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-telegram:hover {
  background: #1c8dc2;
  border-color: #1c8dc2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,158,217,0.32);
}
.btn-telegram svg { flex-shrink: 0; }

/* Telegram community card (contact page) */
.telegram-card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(34,158,217,0.12), rgba(34,158,217,0.04));
  border: 1px solid rgba(34,158,217,0.35);
  border-radius: var(--radius-lg);
}
.telegram-card .tg-text { flex: 1; min-width: 180px; }
.telegram-card .tg-text strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: 3px; }
.telegram-card .tg-text span { font-size: 0.86rem; color: var(--text-muted); }

/* --- Hero: View on TradingView link ------------------------ */
.hero-tv-link {
  margin-top: 18px;
}
.hero-tv-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.hero-tv-link a:hover { color: var(--gold-light); }
.hero-tv-link svg { color: var(--gold); }

/* --- Language selector (visual only — translation not wired) */
.lang-select { position: relative; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-gold); }
.lang-toggle svg:first-child { color: var(--gold); }
.lang-caret { transition: transform 0.25s; }
.lang-select.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 120;
}
.lang-select.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang-menu button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.lang-menu button.active { color: var(--gold-light); }

/* --- Demo video placeholder -------------------------------- */
.demo-video {
  max-width: 880px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(212,154,30,0.08), transparent 70%),
    var(--bg-card);
  overflow: hidden;
  position: relative;
}
.demo-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
}
.demo-play {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212,154,30,0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  margin-bottom: 10px;
}
.demo-video-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.demo-video-sub { font-size: 0.85rem; color: var(--text-dim); max-width: 360px; }

/* --- What AI-Powered Means --------------------------------- */
.ai-explainer {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}
.ai-explainer h2 { margin-bottom: 14px; }
.ai-explainer p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
}

/* --- Real Trading Proof (carousel) ------------------------- */
.proof-carousel {
  position: relative;
  max-width: 430px;        /* phone-screenshot width */
  margin-inline: auto;
}
.proof-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 30px rgba(212,154,30,0.14);
}
.proof-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .proof-track { transition: none; }
}
.proof-slide {
  margin: 0;
  flex: 0 0 100%;
  min-width: 0;
  background: #05070f;
}
.proof-slide img { width: 100%; height: auto; display: block; }
.proof-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6,8,16,0.72);
  backdrop-filter: blur(2px);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.proof-prev { left: 8px; }
.proof-next { right: 8px; }
.proof-arrow:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(6,8,16,0.9);
  transform: translateY(-50%) scale(1.06);
}
.proof-arrow:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.proof-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.proof-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.25s;
}
.proof-dot:hover { background: var(--text-dim); }
.proof-dot.active {
  width: 24px;
  border-radius: 5px;
  background: var(--gold);
}
.proof-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.proof-slide figcaption {
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}
.proof-disclaimer {
  max-width: 680px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- Pricing: four-card layout ----------------------------- */
/* --- Pricing: three-tier layout ---------------------------- */
.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin-inline: auto;
  align-items: stretch;
}
.pricing-grid-3 .pricing-card { padding: 32px 26px; }
@media (max-width: 880px) {
  .pricing-grid-3 { grid-template-columns: 1fr; max-width: 440px; }
  .ph { display: none !important; }  /* stacked cards don't need alignment spacers */
}

/* Tier accent borders + top bars */
.pricing-card.tier-trial { border-color: rgba(20,184,166,0.45); }
.pricing-card.tier-trial::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #14b8a6, transparent);
}
.pricing-card.tier-pro { border-color: rgba(79,110,247,0.5); }
.pricing-card.tier-pro::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #4f6ef7, transparent);
}

.plan-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -2px;
  margin-bottom: 18px;
}

/* Price block (vertical stack) */
.plan-price { display: block; }
.plan-amount-old {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.plan-amount-row { display: flex; align-items: baseline; gap: 6px; }

.save-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.save-pill.green { background: rgba(16,185,129,0.14); color: var(--green); border: 1px solid rgba(16,185,129,0.34); }
.save-pill.blue  { background: rgba(79,110,247,0.16); color: #8ea0ff; border: 1px solid rgba(79,110,247,0.42); }

.price-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

/* "First 25 spots only" badge */
.spots-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.13);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}

/* Preset chips */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.preset-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.preset-chip.gold { background: rgba(212,154,30,0.16); color: var(--gold-light); border: 1px solid var(--border-gold); }
.preset-chip.blue { background: rgba(26,155,255,0.14); color: var(--blue-light); border: 1px solid var(--border-blue); }
.chip-or { font-size: 0.78rem; color: var(--text-dim); }

/* Tier buttons */
.btn-teal {
  background: #14b8a6; color: #06231f; border: 1.5px solid #14b8a6;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.btn-teal:hover { background: #10a294; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,184,166,0.3); }
.btn-blue {
  background: #4f6ef7; color: #fff; border: 1.5px solid #4f6ef7;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.btn-blue:hover { background: #3f5de0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,110,247,0.35); }
.risk-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* --- Legal pages ------------------------------------------- */
.legal-content {
  max-width: 760px;
  margin-inline: auto;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 8px; }
.legal-updated {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* --- Responsive for additions ------------------------------ */
.lang-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 6px;
}
.lang-mobile-icon { color: var(--text-dim); flex-shrink: 0; margin-right: 2px; }
.lang-mobile button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-mobile button.active {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: var(--gold-glow);
}

@media (max-width: 640px) {
  .lang-select { display: none; }           /* mobile uses .lang-mobile inside the dropdown */
  .lang-mobile { display: flex; }
  .proof-arrow    { width: 38px; height: 38px; }
  .ai-explainer   { padding: 32px 22px; }
  .demo-video-label { font-size: 1rem; }
  .hero-tv-link a { font-size: 0.82rem; }
}

/* --- Sign-up modal (pricing page) -------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  background: rgba(3,5,11,0.78);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-gold); }
.modal-dialog .form-card { margin: 0; }

@media (max-width: 640px) {
  .modal-overlay { padding: 16px 10px; }
}

/* Read-only selected-plan field in the sign-up modal */
.selected-plan {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-card-2);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.92rem;
}

/* --- Sticky mobile CTA bar --------------------------------- */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 90;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(to right, #d49a1e 0%, #f0c040 100%);
    color: #07090f;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  }
  .sticky-cta svg { flex-shrink: 0; }
  /* keep the bar from covering page-bottom content (only on pages that have it) */
  body:has(.sticky-cta) { padding-bottom: 78px; }
}
