/* ==========================================================================
   Sharkville Mastery — Home Page Redesign
   Namespaced under .sv-* so it never collides with the legacy stylesheet.
   ========================================================================== */

.sv-home { overflow-x: clip; }
.sv-home .sv-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.sv-home section { position: relative; }
.sv-home ::selection { background: rgba(23, 233, 192,.35); color: #fff; }

/* ---------------- Reveal-on-scroll ---------------- */
.sv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.sv-reveal.sv-in { opacity: 1; transform: translateY(0); }

/* Home header logo intentionally left unstyled here so it inherits the
   single unified .logo-link sizing rule in style.css — the same one used
   by Sign In / Sign Up — instead of fighting it with a competing size. */

/* ---------------- Top market ticker ---------------- */
.sv-home .market-ticker-wrap-top {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #000;
  border-top: 1px solid rgba(148,163,184,.14);
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.sv-home .market-ticker-wrap-top .market-ticker {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  backdrop-filter: none;
}
.sv-home .market-ticker-wrap-top .ticker-label {
  padding: 0 24px;
  background: linear-gradient(90deg, rgba(23, 233, 192,.22), rgba(2,6,15,0));
  border-right-color: rgba(148,163,184,.18);
}
.sv-home .market-ticker-wrap-top .ticker-track {
  min-height: 58px;
}
.sv-home .market-ticker-wrap-top .ticker-content span {
  color: rgba(245,248,255,.88);
}

/* Trending Live Market Prices — pulsing ring on the green dot, same
   expanding-ring technique as the .sonar-ping live-status indicator
   elsewhere in the app, just scoped to this ticker's dot. */
.sv-home .market-ticker-wrap-top .ticker-label .live-dot {
  position: relative;
}
.sv-home .market-ticker-wrap-top .ticker-label .live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: sv-ticker-dot-pulse 1.8s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes sv-ticker-dot-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-home .market-ticker-wrap-top .ticker-label .live-dot::before { animation: none; }
}

/* On mobile, keep only the scrolling prices — drop the "Trending Live
   Market Prices" label side of the ticker so the strip is just numbers. */
@media (max-width: 640px) {
  .sv-home .market-ticker-wrap-top .ticker-label {
    display: none;
  }
}

/* Ticker pill shimmer — shown for any symbol index.php didn't have a
   cached price for yet (cold cache: index.php now reads cache-only and
   never blocks the page render on a live Twelve Data/Finnhub/CoinGecko
   fetch, see index.php). Each pill shimmers in place of its price/change
   text until the first api/markets/ticker.php poll resolves and
   renderTicker() (home-redesign.js) strips this class off. Normally this
   is invisible — most visits land on a warm cache and the real values
   are already server-rendered — it only shows on a genuinely cold cache
   (fresh deploy, or right after a cache file is cleared). */
.sv-home .market-ticker-wrap-top [data-ticker-symbol].sv-pill-loading {
  display: inline-flex;
  align-items: center;
  height: 22px;
  width: 104px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.06) 25%,
    rgba(255,255,255,.15) 37%,
    rgba(255,255,255,.06) 63%
  );
  background-size: 400% 100%;
  animation: sv-pill-shimmer 1.4s ease-in-out infinite;
}
.sv-home .market-ticker-wrap-top [data-ticker-symbol].sv-pill-loading > * {
  visibility: hidden;
}
@keyframes sv-pill-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-home .market-ticker-wrap-top [data-ticker-symbol].sv-pill-loading {
    animation: none;
    background: rgba(255,255,255,.08);
  }
}

/* ---------------- Intro video modal (fullscreen, ad-style) ---------------- */
.sv-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 0;
  background: #000;
}
.sv-video-modal.sv-video-modal-open {
  display: flex;
}
.sv-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #000;
}
.sv-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
}
.sv-video-modal-topbar {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.sv-video-modal-frame {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-video-modal-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
/* Best-effort UI deterrent against saving the file — the source itself
   should also be protected/served with the appropriate headers server-side
   if download prevention needs to be strictly enforced. */
.sv-video-modal-frame video::-internal-media-controls-download-button {
  display: none;
}
.sv-video-modal-frame video::-webkit-media-controls-enclosure {
  overflow: hidden;
}
.sv-video-modal-close {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.sv-video-modal-close svg { flex: 0 0 auto; }
.sv-video-modal-close:hover {
  background: rgba(0,0,0,.8);
  border-color: rgba(255,255,255,.65);
}

/* ---------------- Hero ---------------- */
.sv-hero {
  position: relative;
  padding: 46px 0 64px;
  background: #fff;
}
.sv-hero h1 { color: #0a121b; }

/* The homepage hero previously had no photo wired up at all (a leftover
   .home-hero rule in style.css pointed at hero.jpg, but the markup here
   uses .sv-hero, not .home-hero, so it never rendered). This gives the
   actual hero section a real background, with the same dark overlay
   treatment as the About/Contact/Academy/Help heroes so text stays
   legible over a busy background, and flips the text colors to match
   since they default to dark-on-white above.

   The background is now a silent, looping <video class="sv-hero-video">
   (see markup) instead of a static photo. Stacking, back to front:
   1) .sv-hero's own background (dark fallback color, shows before/if
      the video loads), 2) the video itself (z-index 0), 3) the ::before
      gradient overlay (z-index 1) so text stays legible over a busy
      video, 4) the actual copy/media grid (z-index 2). */
.sv-home .sv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050b16;
}
.sv-home .sv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(2, 6, 15, .84) 0%, rgba(2, 6, 15, .62) 42%, rgba(2, 6, 15, .38) 100%);
  pointer-events: none;
}
.sv-home .sv-hero h1 { color: #fff; }
.sv-home .sv-hero-sub { color: rgba(245, 248, 255, .82); }
.sv-home .sv-proof-text { color: rgba(245, 248, 255, .68); }
.sv-home .sv-eyebrow { background: rgba(4, 12, 24, .55); }

.sv-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  pointer-events: none;
}

.sv-hero-grid { position: relative; z-index: 2; }

.sv-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.sv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  color: var(--blue-light);
  margin-bottom: 20px;
}
.sv-eyebrow .sv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 214, 138,.6);
  animation: sv-pulse 1.8s infinite;
}
@keyframes sv-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 214, 138,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 214, 138,0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 214, 138,0); }
}
.sv-hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 20px;
  font-weight: 800;
}
.sv-hero h1 .sv-accent {
  background: linear-gradient(120deg, #5ff5d9, #22c55e 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sv-hero-sub {
  font-size: 17px; line-height: 1.65; color: #4b5a66;
  max-width: 520px; margin: 0 0 30px;
}
.sv-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.sv-hero-cta .btn { padding: 15px 26px; font-size: 15.5px; }
.sv-play-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); margin-left: 2px;
}

.sv-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sv-avatars { display: flex; }
.sv-avatars img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--bg); margin-left: -10px; object-fit: cover;
}
.sv-avatars img:first-child { margin-left: 0; }
.sv-proof-stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.sv-proof-text { font-size: 13.5px; color: #4b5a66; display: block; }

/* ---------------- Hero terminal widget ---------------- */
.sv-terminal {
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.sv-terminal::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 100% 0%, rgba(23, 233, 192,.14), transparent 70%);
  pointer-events: none;
}
.sv-terminal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 0;
}
.sv-terminal-dots { display: flex; gap: 6px; }
.sv-terminal-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.sv-live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--green);
  letter-spacing: .4px; text-transform: uppercase;
}
.sv-live-tag .sv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: sv-pulse 1.8s infinite; }

.sv-symbol-tabs {
  display: flex; gap: 6px; padding: 16px 18px 0; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.sv-symbol-tab {
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-muted); font-size: 12.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 8px; transition: all .15s ease;
}
.sv-symbol-tab:hover { border-color: var(--border-strong); color: var(--text); }
.sv-symbol-tab.active { background: var(--grad-blue); color: #052018; border-color: transparent; }

.sv-terminal-quote {
  padding: 18px 18px 0; position: relative; z-index: 1;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.sv-terminal-price { font-size: 30px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.sv-terminal-delta { font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.sv-terminal-delta.up { color: var(--green); background: rgba(34, 214, 138,.12); }
.sv-terminal-delta.down { color: var(--red); background: rgba(255, 92, 92,.12); }

.sv-terminal-chart { padding: 6px 6px 0; position: relative; z-index: 1; }
.sv-terminal-chart svg { width: 100%; height: 160px; display: block; }
.sv-chart-line { transition: d .4s ease; }

.sv-terminal-ticket {
  margin: 14px 18px 18px; padding: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sv-terminal-ticket .sv-tk {
  font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px;
}
.sv-terminal-ticket .sv-tv { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv-terminal-ticket .sv-tv.sv-sl { color: var(--red); }
.sv-terminal-ticket .sv-tv.sv-tp { color: var(--green); }
.sv-ticket-side {
  grid-column: span 3;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px dashed var(--border);
}
.sv-side-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.sv-side-badge.buy { background: rgba(34, 214, 138,.15); color: var(--green); }
.sv-side-badge.sell { background: rgba(255, 92, 92,.15); color: var(--red); }
.sv-conf { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); }
.sv-conf-bar { width: 60px; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.sv-conf-bar i { display: block; height: 100%; background: var(--grad-blue); border-radius: 3px; }

@media (max-width: 980px) {
  .sv-hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------- Stats strip ---------------- */
.sv-stats-section {
  position: relative;
  background: #000;
  border-top: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}
.sv-stats-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(680px 220px at 50% 0%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.sv-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 0;
}
.sv-stat {
  position: relative;
  overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .2s ease, border-color .2s ease;
}
.sv-stat::before {
  content: "";
  position: absolute; top: 0; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
.sv-stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.sv-stat .sv-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 233, 192,.12); color: var(--blue-light);
}
.sv-stat .sv-num { font-size: 21px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: #fff; }
.sv-stat .sv-cap { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 980px) { .sv-stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) {
  .sv-stats { display: flex; flex-direction: column; gap: 10px; }
  .sv-stat { width: 100%; padding: 12px 10px; gap: 8px; }
  .sv-stat .sv-icon { width: 30px; height: 30px; border-radius: 8px; }
  .sv-stat .sv-icon svg { width: 15px; height: 15px; }
  .sv-stat .sv-num { font-size: 16px; }
  .sv-stat .sv-cap { font-size: 10.5px; }
}
@media (max-width: 360px) {
  .sv-stat { padding: 10px 8px; gap: 6px; }
  .sv-stat .sv-icon { width: 26px; height: 26px; }
}

/* ---------------- Section shell ---------------- */
.sv-section { padding: 88px 0; }
.sv-section-head { max-width: 640px; margin: 0 0 46px; }
.sv-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px;
}
.sv-section-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; margin: 0 0 14px; letter-spacing: -.5px; }
.sv-section-head h2 span { color: var(--blue-light); }
.sv-section-head p { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin: 0; }
.sv-section-head.sv-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Trading image marquee ---------------- */
.sv-marquee-section {
  overflow: hidden;
  background: #000;
  border-top: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(148,163,184,.12);
  padding-top: 84px;
  padding-bottom: 76px;
}
.sv-marquee-head {
  max-width: 760px;
}
.sv-trading-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* The rail holds two identical copies of the track back-to-back; JS
   (home-redesign.js) continuously translates it left and snaps the
   offset back by exactly one track's width once it scrolls past, so the
   loop is seamless and infinite regardless of how wide the cards render
   at any breakpoint (a fixed CSS keyframe's -100% only lines up if both
   copies are pixel-identical, which broke on some viewports). */
.sv-marquee-rail {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}
.sv-marquee-track {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  min-width: max-content;
}
.sv-marquee-card {
  position: relative;
  width: clamp(280px, 34vw, 430px);
  aspect-ratio: 1.2;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.sv-marquee-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04);
}
.sv-marquee-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,6,15,.08) 0%, rgba(2,6,15,.26) 38%, rgba(2,6,15,.9) 100%),
    linear-gradient(90deg, rgba(2,6,15,.76), rgba(2,6,15,.18));
  pointer-events: none;
}
.sv-marquee-card::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.sv-marquee-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 24px;
}
.sv-marquee-topline {
  position: absolute;
  inset: 24px 24px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sv-marquee-topline span,
.sv-marquee-topline em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sv-marquee-topline span {
  color: #cdf6ec;
  background: rgba(15,23,42,.62);
  border: 1px solid rgba(23,233,192,.2);
  backdrop-filter: blur(12px);
}
.sv-marquee-topline em {
  font-style: normal;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.14);
}
.sv-marquee-topline em.up { color: var(--green); }
.sv-marquee-topline em.down { color: var(--red); }
.sv-marquee-topline em.neutral { color: var(--gold); }
.sv-marquee-overlay h3 {
  margin: 0 0 8px;
  max-width: 320px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}
.sv-marquee-overlay p {
  margin: 0;
  max-width: 340px;
  color: rgba(226,232,240,.84);
  font-size: 14px;
  line-height: 1.55;
}
.sv-marquee-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.sv-marquee-details b,
.sv-marquee-details span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 700;
}
.sv-marquee-details b {
  color: #fff;
  background: var(--grad-blue);
}
.sv-marquee-details span {
  color: rgba(245,248,255,.82);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 900px) {
  .sv-marquee-section {
    padding-bottom: 58px;
  }

  .sv-marquee-card {
    width: min(78vw, 380px);
  }
}

@media (max-width: 560px) {
  .sv-marquee-section {
    padding-bottom: 44px;
  }

  .sv-marquee-head {
    margin-bottom: 30px;
  }

  .sv-trading-marquee {
    padding: 0 14px 8px;
  }

  .sv-marquee-rail,
  .sv-marquee-track {
    gap: 12px;
  }

  .sv-marquee-card {
    width: 84vw;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .sv-marquee-overlay {
    padding: 20px;
  }

  .sv-marquee-topline {
    inset: 20px 20px auto;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
  }

  .sv-marquee-overlay h3 {
    font-size: 20px;
  }

  .sv-marquee-overlay p {
    font-size: 13.5px;
  }
}

/* ---------------- Live signals preview ---------------- */
.sv-signals-section {
  position: relative;
  background: linear-gradient(180deg, #000 0%, var(--bg) 260px, var(--bg) 100%);
}
.sv-signals-section::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 260px;
  background: radial-gradient(600px 200px at 50% 0%, rgba(255,255,255,.05), transparent 75%);
  pointer-events: none;
}
.sv-signals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sv-signal-card {
  position: relative;
  overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform .2s ease, border-color .2s ease;
}
.sv-signal-card::before {
  content: "";
  position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
}
.sv-signal-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.sv-signal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sv-signal-pair { font-weight: 800; font-size: 15.5px; }
.sv-signal-time { font-size: 11.5px; color: var(--text-faint); }
.sv-signal-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.sv-signal-body div span { display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.sv-signal-body div b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sv-signal-foot { display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 980px) { .sv-signals-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .sv-signals-grid { grid-template-columns: 1fr; } }

/* ---------------- How it works ---------------- */
.sv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.sv-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s ease, border-color .2s ease;
}
.sv-step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.sv-step .sv-step-num {
  width: 40px; height: 40px; border-radius: 10px; background: var(--grad-blue); color: #052018;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.sv-step h3 { margin: 0 0 8px; font-size: 17px; }
.sv-step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .sv-steps { grid-template-columns: 1fr; } }

/* ---------------- Testimonials + FAQ (panel cards) ---------------- */
.sv-trust-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sv-panel-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px;
}
.sv-panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.sv-testimonial-id { display: flex; align-items: center; gap: 14px; }
.sv-testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .9), 0 4px 14px rgba(23, 233, 192, .35);
  flex-shrink: 0;
  transition: opacity .35s ease, transform .35s ease;
}
.sv-panel-head h3,
.sv-testimonial-quote,
.sv-testimonial-foot span {
  transition: opacity .35s ease, transform .35s ease;
}
.sv-testimonial-fade-out {
  opacity: 0 !important;
  transform: translateY(6px);
}
.sv-panel-kicker { font-size: 12px; font-weight: 700; color: var(--blue-light); text-transform: uppercase; letter-spacing: .4px; }
.sv-panel-head h3 { margin: 4px 0 0; font-size: 18px; }
.sv-testimonial-controls { display: flex; gap: 8px; }
.sv-testimonial-controls button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 16px;
}
.sv-testimonial-controls button:hover { border-color: var(--blue-light); color: var(--blue-light); }
.sv-testimonial-quote { font-size: 15.5px; line-height: 1.7; color: var(--text); min-height: 96px; }
.sv-testimonial-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.sv-testimonial-foot span { font-size: 13px; color: var(--text-muted); }
.sv-testimonial-dots { display: flex; gap: 6px; }
.sv-testimonial-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); display: block; }
.sv-testimonial-dots i.active { background: var(--blue-light); width: 18px; border-radius: 3px; transition: all .2s ease; }

.sv-faq-list { display: grid; gap: 10px; }
.sv-faq-item {
  width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; cursor: pointer;
}
.sv-faq-item .sv-faq-q { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 14.5px; }
.sv-faq-item .sv-faq-q svg { transition: transform .2s ease; color: var(--text-muted); flex: none; }
.sv-faq-item.open .sv-faq-q svg { transform: rotate(45deg); color: var(--blue-light); }
.sv-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.sv-faq-item.open .sv-faq-a { max-height: 200px; margin-top: 10px; }
@media (max-width: 900px) { .sv-trust-layout { grid-template-columns: 1fr; } }

/* ---------------- Pricing teaser ---------------- */
.sv-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sv-price-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.sv-price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.sv-price-card.sv-popular { border-color: var(--blue); background: linear-gradient(160deg, rgba(23, 233, 192,.10), var(--surface) 55%); position: relative; }
.sv-popular-tag {
  position: absolute; top: -12px; left: 24px; background: var(--grad-blue); color: #052018;
  font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .3px;
}
.sv-price-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin-bottom: 10px; }
.sv-price-amt { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.sv-price-amt span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.sv-price-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.sv-price-feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.sv-price-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.sv-price-feats li svg { color: var(--green); flex: none; margin-top: 2px; }
@media (max-width: 900px) { .sv-pricing-grid { grid-template-columns: 1fr; } }

/* ---------------- Final CTA ---------------- */
.sv-cta {
  margin: 0 24px; max-width: 1280px; margin-left: auto; margin-right: auto;
  border-radius: 28px; padding: 56px 48px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d1a3a 0%, #0a0e1a 60%);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sv-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/40px 40px;
  mask-image: radial-gradient(600px 300px at 30% 50%, #000, transparent 75%);
}
.sv-cta::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 214, 138,.22), transparent 70%);
  right: -80px; top: -120px; pointer-events: none;
}
.sv-cta > * { position: relative; z-index: 1; }
.sv-cta h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 0; letter-spacing: -.5px; }
.sv-cta .btn { padding: 16px 28px; font-size: 15.5px; }
@media (max-width: 700px) { .sv-cta { padding: 40px 28px; text-align: center; justify-content: center; } }

/* ---------------- Mobile homepage fit ---------------- */
@media (max-width: 900px) {
  .sv-home .navbar-inner {
    height: 68px;
    min-height: 68px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .sv-home .nav-burger-mobile-first,
  .sv-home .mobile-header-spacer {
    width: 42px;
    height: 42px;
  }

  .sv-hero {
    padding: 24px 0 38px;
  }

  .sv-hero-grid {
    gap: 28px;
  }

  .sv-eyebrow {
    margin-bottom: 14px;
  }

  .sv-hero h1 {
    font-size: 42px;
    letter-spacing: 0;
    margin-bottom: 16px;
  }

  .sv-hero-sub {
    margin-bottom: 24px;
  }
}

@media (max-width: 620px) {
  .sv-home .sv-container {
    padding: 0 18px;
  }

  .sv-home .navbar-inner {
    height: 64px;
    min-height: 64px;
    padding: 0 10px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .sv-home .nav-burger-mobile-first,
  .sv-home .mobile-header-spacer {
    width: 40px;
    height: 40px;
  }

  .sv-hero {
    padding-top: 14px;
  }

  .sv-hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .sv-hero-sub {
    font-size: 15px;
    line-height: 1.55;
  }

  .sv-hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
  }

  .sv-hero-cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    font-size: 14px;
  }

  .sv-play-dot {
    width: 20px;
    height: 20px;
  }

  .sv-proof {
    gap: 12px;
  }

  .sv-avatars img {
    width: 36px;
    height: 36px;
    margin-left: -9px;
  }

  .sv-terminal-ticket {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sv-ticket-side {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .sv-home .navbar-inner {
    height: 62px;
    min-height: 62px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    padding: 0 8px;
  }

  .sv-home .nav-burger-mobile-first,
  .sv-home .mobile-header-spacer {
    width: 38px;
    height: 38px;
  }

  .sv-home .sv-container {
    padding: 0 14px;
  }

  .sv-eyebrow {
    font-size: 11.5px;
    padding-right: 12px;
  }

  .sv-hero h1 {
    font-size: 31px;
  }

  .sv-hero-cta {
    gap: 8px;
  }

  .sv-hero-cta .btn {
    font-size: 13px;
    padding: 0 8px;
  }
}

/* ---------------- Interactive card effects: cursor spotlight + tilt ---------------- */
.sv-signal-card, .sv-price-card, .sv-panel-card, .sv-stat, .sv-marquee-card {
  will-change: transform;
}
.sv-signal-card, .sv-price-card, .sv-marquee-card {
  transform-style: preserve-3d;
  transition: transform .12s ease, border-color .2s ease;
}
.sv-card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(23, 233, 192, .16), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.sv-signal-card:hover .sv-card-spotlight,
.sv-price-card:hover .sv-card-spotlight,
.sv-panel-card:hover .sv-card-spotlight,
.sv-stat:hover .sv-card-spotlight,
.sv-marquee-card:hover .sv-card-spotlight {
  opacity: 1;
}

/* ---------------- Button ripple + magnetic hero CTAs ---------------- */
.sv-home .btn {
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sv-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  opacity: .55;
  animation: sv-ripple-anim .65s ease-out forwards;
}
@keyframes sv-ripple-anim {
  to { transform: scale(2.8); opacity: 0; }
}
.sv-hero-cta .btn-primary:hover {
  box-shadow: 0 10px 26px rgba(23, 233, 192, .3);
}

@media (prefers-reduced-motion: reduce) {
  .sv-signal-card, .sv-price-card, .sv-marquee-card, .sv-home .btn { transition: none !important; }
  .sv-ripple { animation: none !important; display: none; }
}

/* ---------------- Cookie consent banner ---------------- */
.sv-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 590;
  background: rgba(4, 9, 16, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.sv-cookie-backdrop.show { opacity: 1; pointer-events: auto; }
html.sv-cookie-lock,
body.sv-cookie-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.sv-cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  width: min(400px, calc(100% - 32px));
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .45s ease;
}
.sv-cookie-banner.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.sv-cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: rgba(10, 18, 27, .62);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 26px 60px rgba(2, 6, 15, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.sv-cookie-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sv-cookie-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(15, 184, 154, .16);
  border: 1px solid rgba(15, 184, 154, .35);
  display: flex; align-items: center; justify-content: center;
  color: #5ff5d9;
}
.sv-cookie-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: #f5f8ff; }
.sv-cookie-text { margin: 0; font-size: 13px; line-height: 1.55; color: #a8b8c4; }
.sv-cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: 100%; }
.sv-cookie-actions .btn { flex: 1; }
.sv-cookie-actions .btn-outline { border-color: rgba(255, 255, 255, .22); color: #f5f8ff; }
.sv-cookie-actions .btn-outline:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }

@media (max-width: 640px) {
  .sv-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    transform: translateY(calc(100% + 40px));
  }
  .sv-cookie-banner.show {
    transform: translateY(0);
  }
  .sv-cookie-inner {
    padding: 18px;
  }
  /* Decline + Accept All stay side by side on one row. */
  .sv-cookie-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  .sv-cookie-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    justify-content: center;
  }
}

/* Keep the homepage header aligned with the shared auth/public mobile header. */
@media (max-width: 900px) {
  .sv-home .navbar-inner {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .sv-home .nav-burger-mobile-first,
  .sv-home .mobile-header-spacer {
    justify-self: center;
  }

  .sv-home .nav-burger-mobile-first {
    display: inline-grid;
    place-items: center;
  }

  .sv-home .navbar-actions {
    justify-self: center;
    justify-content: center;
    width: 40px;
  }

  .sv-home .logo-link {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    margin-inline: auto;
    width: min(72vw, 252px);
    height: 62px;
  }
}

@media (max-width: 620px) {
  .sv-home .navbar-inner {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    height: 62px;
    min-height: 62px;
    max-height: 62px;
  }

  .sv-home .logo-link {
    width: min(76vw, 238px);
    height: 60px;
  }
}

@media (max-width: 390px) {
  .sv-home .navbar-inner {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
  }

  .sv-home .logo-link {
    width: min(78vw, 218px);
    height: 58px;
  }

  .sv-home .navbar-actions {
    width: 38px;
  }
}
