﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;700&display=swap');

:root {
  --bg: #06151f;
  --panel: #0e2635;
  --ink: #e7f2f9;
  --muted: #91a9b8;
  --accent: #00d38d;
  --danger: #ff647c;
  --hold: #ffb347;
  --grid: #163649;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 15% 5%, #0f3045 0%, var(--bg) 45%);
}
.hidden { display: none !important; }

.terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 12, 18, 0.78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 18px;
}
.terms-dialog {
  width: min(760px, 96vw);
  border: 1px solid #28516b;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(14,38,53,.98), rgba(6,20,30,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  padding: 18px 18px 14px;
}
.terms-dialog h2 {
  margin: 0 0 6px;
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
}
.terms-sub {
  margin: 0 0 10px;
  color: #a5bfd0;
  font-size: .92rem;
}
.terms-list {
  margin: 0 0 10px 18px;
  color: #d6e6ef;
  font-size: .9rem;
  line-height: 1.45;
}
.terms-list li { margin-bottom: 4px; }
.terms-dialog input {
  width: 100%;
  background: #0a1f2e;
  color: var(--ink);
  border: 1px solid var(--grid);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: .95rem;
}
.terms-dialog input:focus {
  outline: none;
  border-color: #3f8fb3;
  box-shadow: 0 0 0 3px rgba(63, 143, 179, 0.25);
}
.terms-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.terms-version { color: #95afc0; font-size: .84rem; }
.terms-error {
  min-height: 20px;
  margin-top: 8px;
  color: #ff95a6;
  font-size: .84rem;
}

.landing-body { min-height: 100vh; display: grid; place-items: center; }
.landing-wrap { width: min(920px, 92vw); }
.billing-wrap { width: min(820px, 92vw); }
.guide-wrap { width: min(980px, 94vw); }
.hero-card {
  border: 1px solid var(--grid);
  border-radius: 18px;
  padding: 56px;
  background: linear-gradient(160deg, rgba(14,38,53,.9), rgba(7,19,28,.95));
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  text-align: center;
  align-items: center;
}
.billing-card {
  border: 1px solid var(--grid);
  border-radius: 18px;
  padding: 42px;
  background: linear-gradient(160deg, rgba(14,38,53,.9), rgba(7,19,28,.95));
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.guide-card {
  border: 1px solid var(--grid);
  border-radius: 18px;
  padding: 34px 38px;
  background: linear-gradient(160deg, rgba(14,38,53,.9), rgba(7,19,28,.95));
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.hero-card h1 { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 5vw, 4rem); margin: 8px 0; }
.billing-card h1 { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); margin: 8px 0 6px; }
.guide-card h1 { font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 8px; }
.guide-card h3 {
  margin: 16px 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: 1.03rem;
  color: #ddf0fb;
}
.guide-list {
  margin: 0 0 4px 18px;
  padding: 0;
}
.guide-list li {
  margin-bottom: 6px;
  color: #bed4e2;
  line-height: 1.35;
}
.hero-top { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.hero-card p { color: var(--muted); max-width: 620px; }
.hero-subline { font-size: .95rem; color: #a8c3d4; margin-top: -4px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

.marketing-body {
  min-height: 100vh;
  margin: 0;
}
.marketing-shell {
  width: min(1120px, 94vw);
  margin: 26px auto;
  border: 1px solid #1f475e;
  border-radius: 20px;
  padding: 18px 22px 26px;
  background: linear-gradient(160deg, rgba(14,38,53,.92), rgba(7,19,28,.97));
  box-shadow: 0 34px 70px rgba(0,0,0,.36);
}
.mk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #21465e;
}
.mk-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ecf8ff;
  text-decoration: none;
}
.mk-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.mk-links a {
  color: #b5d0df;
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
}
.mk-links a:hover { color: #ecf8ff; }
.mk-hero {
  padding: 26px 0 10px;
}
.mk-kicker {
  color: #4cc5ff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
}
.mk-hero h1,
.mk-title {
  margin: 10px 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: #eff9ff;
  line-height: 1.15;
}
.mk-hero p,
.mk-block p {
  color: #b9d3e2;
  line-height: 1.5;
  max-width: 860px;
}
.mk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.mk-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.mk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-card {
  border: 1px solid #234b63;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(170deg, rgba(12,34,48,.85), rgba(9,24,35,.95));
}
.mk-card h3 {
  margin: 0 0 7px;
  color: #e6f5ff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
}
.mk-card p {
  margin: 0;
  color: #b7cfde;
  line-height: 1.45;
}
.mk-block {
  margin-top: 18px;
  border-top: 1px solid #20475e;
  padding-top: 16px;
}
.mk-block h2 {
  margin: 0 0 10px;
  color: #ecf7ff;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
}
.mk-list {
  margin: 10px 0 0 18px;
  color: #b8d1e0;
  line-height: 1.45;
}
.mk-list li { margin-bottom: 7px; }
.mk-note {
  margin-top: 18px;
  border: 1px solid #385367;
  border-radius: 12px;
  padding: 12px 13px;
  color: #cfe6f2;
  background: rgba(12, 34, 48, .65);
  line-height: 1.42;
}
.mk-footer {
  margin-top: 18px;
  border-top: 1px solid #1f465d;
  padding-top: 14px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.mk-footer a {
  color: #9fc0d4;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.mk-footer a:hover { color: #eff9ff; }

.mk2-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(22, 97, 211, .32), transparent 42%),
    radial-gradient(circle at 86% 80%, rgba(42, 82, 198, .26), transparent 46%),
    linear-gradient(145deg, #020b15 0%, #04111f 42%, #071a2d 100%);
}
.mk2-shell {
  width: min(1180px, 94vw);
  margin: 22px auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #1b3f5f;
  background: linear-gradient(160deg, rgba(7,26,42,.9), rgba(5,19,33,.95));
  box-shadow: 0 36px 74px rgba(0,0,0,.42);
}
.mk2-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mk2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #eef8ff;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  letter-spacing: .02em;
}
.mk2-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.mk2-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.mk2-links a {
  color: #acc9dd;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.mk2-links a:hover { color: #f1f9ff; }
.mk2-hero {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 14px;
}
.mk2-hero-copy,
.mk2-hero-panel {
  border: 1px solid #225072;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(10,36,55,.84), rgba(7,24,39,.95));
  padding: 20px;
}
.mk2-kicker {
  color: #59cbff;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .74rem;
  font-weight: 700;
}
.mk2-hero h1 {
  margin: 10px 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: #f2fbff;
  line-height: 1.1;
}
.mk2-hero p {
  margin: 0;
  color: #bfd9e8;
  line-height: 1.5;
}
.mk2-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mk2-trust {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mk2-trust span {
  border: 1px solid #295874;
  border-radius: 999px;
  padding: 5px 11px;
  color: #cde4f1;
  font-size: .78rem;
  font-weight: 700;
}
.mk2-panel-head {
  color: #e6f7ff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}
.mk2-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #204862;
  padding: 10px 0;
  color: #d4e8f4;
  font-weight: 600;
}
.mk2-row:first-of-type { border-top: none; }
.mk2-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}
.mk2-buy { color: #42e4aa; background: rgba(33, 171, 127, .18); }
.mk2-sell { color: #ff8ca0; background: rgba(189, 68, 90, .22); }
.mk2-hold { color: #ffd28a; background: rgba(180, 132, 37, .2); }
.mk2-panel-foot {
  margin-top: 8px;
  color: #98b8cd;
  font-size: .82rem;
}
.mk2-feature-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mk2-card {
  border: 1px solid #244f6c;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(172deg, rgba(12,35,52,.78), rgba(8,24,37,.95));
}
.mk2-card h3 {
  margin: 0 0 7px;
  color: #ecf8ff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
}
.mk2-card p {
  margin: 0;
  color: #b9d2e1;
  line-height: 1.45;
}
.mk2-band {
  margin-top: 14px;
  border: 1px solid #2a5e86;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(150deg, rgba(14,63,120,.62), rgba(10,42,79,.68));
}
.mk2-band h2 {
  margin: 0 0 7px;
  font-family: 'Sora', sans-serif;
  color: #eff9ff;
  font-size: 1.35rem;
}
.mk2-band p {
  margin: 0;
  color: #c8e1f0;
  line-height: 1.46;
}
.mk2-note {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #42586b;
  background: rgba(13, 33, 48, .68);
  color: #d5e8f2;
  padding: 12px 13px;
  line-height: 1.42;
}
.mk2-footer {
  margin-top: 14px;
  border-top: 1px solid #234964;
  padding-top: 12px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.mk2-footer a {
  color: #a4c3d8;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.mk2-footer a:hover { color: #eff9ff; }

.mk3-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(33, 112, 244, .32), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(58, 91, 243, .28), transparent 42%),
    linear-gradient(150deg, #020812 0%, #051224 48%, #081b33 100%);
  overflow-x: hidden;
}
.mk3-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.mk3-orb-a {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: rgba(42, 114, 255, .35);
}
.mk3-orb-b {
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: -90px;
  background: rgba(35, 161, 224, .24);
}
.mk3-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 94vw);
  margin: 18px auto 22px;
  border-radius: 22px;
  border: 1px solid #1f4665;
  padding: 18px;
  background: linear-gradient(160deg, rgba(6, 29, 46, .88), rgba(6, 20, 35, .95));
  box-shadow: 0 42px 90px rgba(0,0,0,.42);
}
.mk3-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.mk3-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0f9ff;
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.mk3-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.mk3-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.mk3-links a {
  color: #b2d0e4;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.mk3-links a:hover { color: #f2faff; }
.mk3-hero {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 12px;
}
.mk3-copy,
.mk3-visual {
  border: 1px solid #255474;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(11, 39, 58, .85), rgba(8, 24, 39, .95));
  padding: 18px;
}
.mk3-kicker {
  color: #53c7ff;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .73rem;
  font-weight: 800;
}
.mk3-hero h1 {
  margin: 10px 0 8px;
  color: #f2fbff;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 1.05;
}
.mk3-hero p {
  margin: 0;
  color: #c2d9e8;
  line-height: 1.5;
}
.mk3-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mk3-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d9ecf7;
  font-weight: 700;
  margin-bottom: 10px;
}
.mk3-mini-grid {
  display: grid;
  gap: 7px;
}
.mk3-mini-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #214a65;
  border-radius: 11px;
  padding: 8px 10px;
  color: #dfedf8;
  background: rgba(8, 31, 47, .65);
}
.mk3-mini-card strong { font-size: .93rem; }
.mk3-mini-pill {
  font-size: .71rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
}
.mk3-mini-pill.buy { color: #38e8ad; background: rgba(33, 170, 128, .2); }
.mk3-mini-pill.sell { color: #ff90a5; background: rgba(189, 67, 90, .24); }
.mk3-mini-pill.hold { color: #ffd38d; background: rgba(183, 133, 38, .25); }
.mk3-bars {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: end;
  height: 66px;
}
.mk3-bars span {
  display: block;
  height: var(--h);
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, #2ca9ff, #2168e0);
  animation: mk3Bars 2.8s ease-in-out infinite alternate;
}
.mk3-bars span:nth-child(2n) { animation-delay: .5s; }
@keyframes mk3Bars {
  from { transform: scaleY(.88); opacity: .72; }
  to { transform: scaleY(1.06); opacity: 1; }
}
.mk3-ticker {
  margin-top: 10px;
  border: 1px solid #214a69;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 30, 46, .76);
}
.mk3-ticker-track {
  display: inline-flex;
  gap: 14px;
  white-space: nowrap;
  padding: 10px 14px;
  color: #b9d4e4;
  font-weight: 700;
  animation: mk3Ticker 23s linear infinite;
}
@keyframes mk3Ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-30%); }
}
.mk3-stats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mk3-stat {
  border: 1px solid #24506f;
  border-radius: 12px;
  padding: 12px;
  background: rgba(9, 32, 49, .73);
}
.mk3-stat h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  color: #f1f9ff;
}
.mk3-stat p {
  margin: 4px 0 0;
  color: #abc8da;
  font-size: .86rem;
  font-weight: 700;
}
.mk3-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mk3-card {
  border: 1px solid #24516f;
  border-radius: 13px;
  padding: 13px;
  background: linear-gradient(168deg, rgba(12, 39, 57, .8), rgba(8, 24, 38, .95));
  transition: transform .22s ease, border-color .22s ease;
}
.mk3-card:hover {
  transform: translateY(-3px);
  border-color: #2f75a3;
}
.mk3-card h3 {
  margin: 0 0 6px;
  color: #edf8ff;
  font-size: 1rem;
}
.mk3-card p {
  margin: 0;
  color: #b8d2e2;
  line-height: 1.45;
}
.mk3-cta {
  margin-top: 12px;
  border: 1px solid #2d6288;
  border-radius: 13px;
  padding: 15px;
  background: linear-gradient(150deg, rgba(21, 84, 150, .6), rgba(13, 48, 90, .68));
}
.mk3-cta h2 {
  margin: 0 0 6px;
  color: #f2fbff;
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
}
.mk3-cta p {
  margin: 0;
  color: #d2e8f5;
  line-height: 1.45;
}
.mk3-note {
  margin-top: 10px;
  border: 1px solid #42617a;
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(13, 34, 51, .66);
  color: #d4e8f2;
}
.mk3-footer {
  margin-top: 12px;
  border-top: 1px solid #244b67;
  padding-top: 12px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.mk3-footer a {
  color: #a6c4d8;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.mk3-footer a:hover { color: #f1faff; }
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal-up.in {
  opacity: 1;
  transform: translateY(0);
}
.billing-sub { color: var(--muted); margin: 0 0 18px; }
.price-box {
  border: 1px solid #27506a;
  border-radius: 14px;
  background: rgba(12, 35, 50, .65);
  padding: 18px 20px;
  margin: 6px 0 16px;
}
.price-main {
  font-family: 'Sora', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #e9f8ff;
}
.price-main span {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: #9ec2d9;
  margin-left: 6px;
}
.price-note { margin-top: 4px; color: #b6cfdd; font-size: .9rem; }
.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.btn-primary, .btn-ghost {
  display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600;
  appearance: none; -webkit-appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  font: inherit;
}
.btn-primary { background: var(--accent); color: #032012; border-color: var(--accent); }
.btn-ghost { border: 1px solid var(--grid); color: var(--ink); }
.contact-strip {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.hero-card .contact-strip {
  margin-top: 22px;
}
.contact-strip a {
  text-decoration: none;
  color: #cde3f2;
  background: transparent;
  padding: 2px 4px;
  border: none;
  border-radius: 0;
  font-size: .86rem;
  font-weight: 700;
}
.contact-strip a:hover { color: #eff8ff; text-decoration: underline; }
.contact-sep {
  color: #6e8fa5;
  font-weight: 700;
}
.contact-strip.compact {
  margin-top: 12px;
}
.contact-strip.compact a {
  font-size: .75rem;
  padding: 6px 9px;
}
.bottom-brand-mark {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  opacity: 0.9;
  pointer-events: none;
}
.bottom-brand-mark img {
  width: 102px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.18));
}
.bottom-brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 46px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0) 72%);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--grid);
  background: rgba(6,21,31,.75); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.live-context-popup {
  position: fixed;
  top: 84px;
  right: 16px;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid #28516b;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(14, 38, 53, .96), rgba(7, 20, 30, .98));
  box-shadow: 0 20px 45px rgba(0, 0, 0, .42);
  z-index: 30;
  padding: 10px 11px 9px;
}
.live-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.live-context-kicker {
  color: #87a8bd;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .66rem;
  font-weight: 700;
}
.live-context-title {
  margin-top: 2px;
  font-size: .9rem;
  font-weight: 700;
  color: #eaf4fb;
}
.live-context-close {
  border: 1px solid #2d566d;
  background: rgba(10, 28, 39, .82);
  color: #cfe4f2;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.live-context-close:hover {
  border-color: #3d7391;
}
.live-context-body {
  margin-top: 8px;
  color: #b7cfde;
  font-size: .79rem;
  line-height: 1.38;
}
.live-context-alert {
  margin-top: 8px;
  border: 1px solid #8e6a1d;
  background: rgba(72, 50, 12, .68);
  color: #ffe6b7;
  border-radius: 8px;
  padding: 6px 7px;
  font-size: .74rem;
  font-weight: 700;
}
.live-context-open {
  position: fixed;
  top: 88px;
  right: 16px;
  z-index: 29;
  border: 1px solid #2a5771;
  background: rgba(18, 51, 69, .92);
  color: #d9ecf6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.live-context-open:hover {
  border-color: #3b7493;
}
.brand { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.sub, .user, .meta { color: var(--muted); font-size: .9rem; }
.top-right { display: flex; gap: 12px; align-items: center; }
#accessMeta {
  margin-top: 2px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #244b63;
  border-radius: 10px;
  background: rgba(10, 30, 44, .55);
  font-size: .8rem;
  color: #cde2ef;
}
#accessMeta.trial-alert {
  border-color: #8e6a1d;
  background: linear-gradient(150deg, rgba(72, 50, 12, .68), rgba(44, 28, 5, .72));
  color: #ffe9be;
  box-shadow: 0 0 0 1px rgba(182, 132, 34, 0.25) inset;
}
#accessMeta.access-locked {
  border-color: #7e2a38;
  background: linear-gradient(150deg, rgba(70, 16, 29, .7), rgba(42, 10, 18, .75));
  color: #ffd2da;
  box-shadow: 0 0 0 1px rgba(191, 59, 85, 0.25) inset;
}

.layout {
  padding: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 300px 1fr;
  grid-template-areas:
    "filters signals"
    "filters insights";
}
.panel {
  border: 1px solid var(--grid);
  border-radius: 14px;
  padding: 16px;
  background: rgba(14,38,53,.75);
}
.filters { grid-area: filters; }
.signals { grid-area: signals; }
.insights { grid-area: insights; }
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.insights h3 {
  margin: 0 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: 1.03rem;
  letter-spacing: .01em;
}
.insights .meta {
  margin-bottom: 8px;
  line-height: 1.35;
  font-size: .82rem;
}
.insight-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.rvp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}
.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #2a4f66;
  border-radius: 999px;
  background: rgba(18, 52, 72, .4);
  color: #d8ebf6;
  font-size: .76rem;
  font-weight: 700;
}
.toggle-chip input {
  width: 14px;
  height: 14px;
  accent-color: #2fa4ff;
}
.tracker-meter {
  border: 1px solid #1f435a;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(14, 38, 53, .55);
  margin: 4px 0 10px;
}
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  font-weight: 700;
  color: #dbeef8;
}
.meter-bar {
  margin-top: 7px;
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff647c 0%, #ffb347 50%, #00d38d 100%);
  transition: width .35s ease;
}
.meter-foot {
  margin-top: 6px;
  color: #99b4c5;
  font-size: .76rem;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid var(--grid);
}
.guide-blue { color: #5bb7ff; background: rgba(47, 164, 255, .14); }
.guide-green { color: #46e7b2; background: rgba(0, 211, 141, .12); }
.guide-amber { color: #ffd28a; background: rgba(255, 179, 71, .16); }
.history-wrap {
  margin-top: 10px;
  border: 1px solid #1b3f56;
  border-radius: 12px;
  overflow: hidden;
}
.history-launch {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.history-open-btn {
  border: 1px solid #2a5771;
  background: rgba(18, 51, 69, .85);
  color: #d9ecf6;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.history-open-btn:hover {
  border-color: #3b7493;
  background: rgba(24, 64, 86, .95);
}
.history-modal-card {
  width: min(1080px, 96vw);
  max-height: 86vh;
  border: 1px solid #27516b;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14,38,53,.98), rgba(6,20,30,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.history-title {
  padding: 8px 10px;
  background: rgba(20, 55, 75, .6);
  color: #d9ecf6;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-meta {
  color: #96b3c6;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.history-more-btn {
  border: 1px solid #2a5771;
  background: rgba(18, 51, 69, .8);
  color: #d9ecf6;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}
.history-more-btn:hover {
  border-color: #3b7493;
  background: rgba(24, 64, 86, .9);
}
.history-more-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table-scroll {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: auto;
}
.history-table th,
.history-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #17364a;
  font-size: .8rem;
}
.history-table th {
  color: #9eb5c5;
  font-weight: 700;
  position: sticky;
  top: 0;
  background: rgba(15, 42, 58, 0.98);
  z-index: 1;
}
.history-table tbody tr:last-child td {
  border-bottom: none;
}
.history-dir-hit { color: #38dca2; font-weight: 700; }
.history-dir-miss { color: #ff8fa0; font-weight: 700; }
.history-dir-band { color: #6fd7ff; font-weight: 700; }
.history-dir-out { color: #ffc67f; font-weight: 700; }
.history-pending { color: #ffd28a; font-weight: 700; }

.status-board {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.status-card {
  border: 1px solid #22485f;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(15,41,57,.82), rgba(8,24,35,.9));
  padding: 10px 12px;
}
.status-label {
  color: #87a8bd;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  font-weight: 700;
}
.status-value {
  margin-top: 5px;
  color: #eaf4fb;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.25rem;
}
.engine-line {
  display: block;
}
.engine-line-sub {
  display: block;
  margin-top: 2px;
  font-size: .79rem;
  color: #9cc0d4;
  font-weight: 600;
}
.engine-live-tag {
  color: #ffd28a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.engine-card-updated {
  animation: enginePulse 1.2s ease;
}
@keyframes enginePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,210,138,.45); border-color: #3a6b86; }
  70% { box-shadow: 0 0 0 14px rgba(255,210,138,0); border-color: #6f8ea4; }
  100% { box-shadow: 0 0 0 0 rgba(255,210,138,0); border-color: #22485f; }
}
.eta-urgent {
  color: #ffd28a;
  font-weight: 800;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.chip-open { background: rgba(0, 211, 141, .18); color: #27e3a1; }
.chip-closed { background: rgba(255, 100, 124, .2); color: #ff8094; }
.chip-warm { background: rgba(255, 179, 71, .18); color: #ffcf86; }
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.25); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
select {
  width: 100%;
  background: #0a1f2e;
  color: var(--ink);
  border: 1px solid var(--grid);
  border-radius: 12px;
  padding: 12px 40px 12px 12px;
  min-height: 44px;
  font-size: 0.98rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8db2c8 50%),
    linear-gradient(135deg, #8db2c8 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select:focus {
  outline: none;
  border-color: #3f8fb3;
  box-shadow: 0 0 0 3px rgba(63, 143, 179, 0.25);
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--grid); font-size: .92rem; }
th { color: var(--muted); font-weight: 500; }
.signal-table-wrap {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: auto;
}
#signalTable thead th {
  position: sticky;
  top: 0;
  background: rgba(9, 28, 40, 0.96);
  z-index: 1;
}
.badge { padding: 5px 8px; border-radius: 999px; font-weight: 700; font-size: .78rem; display: inline-block; }
.buy { background: rgba(0, 211, 141, .2); color: var(--accent); }
.sell { background: rgba(255, 100, 124, .2); color: var(--danger); }
.hold { background: rgba(255, 179, 71, .2); color: var(--hold); }

/* Subtle attention effect on live action badges in Signal Board. */
@keyframes signalBadgeBlink {
  0%, 100% { opacity: 1; transform: translateZ(0); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { opacity: .78; transform: translateZ(0); box-shadow: 0 0 10px rgba(255,255,255,.08); }
}
#signalTable .badge.buy,
#signalTable .badge.sell {
  animation: signalBadgeBlink 1.45s ease-in-out infinite;
}
#signalTable .badge.hold {
  animation: signalBadgeBlink 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  #signalTable .badge.buy,
  #signalTable .badge.sell,
  #signalTable .badge.hold {
    animation: none;
  }
}
.target-price { font-weight: 700; color: #dff7ea; }
.cell-sub { font-size: .74rem; color: #87a8bd; margin-top: 2px; }
.delta-pos { color: #2ce4a4; font-weight: 700; }
.delta-neg { color: #ff8094; font-weight: 700; }
.delta-flat { color: #ffcf86; font-weight: 700; }
.signal-row-selected td { background: rgba(26, 72, 98, 0.35); }
.admin-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 140px 130px 140px auto auto;
  gap: 8px;
  margin: 8px 0 10px;
}
.admin-filters-2 {
  grid-template-columns: 1fr auto;
}
.admin-filters-3 {
  grid-template-columns: 1fr 140px auto;
}
.admin-filters input,
.admin-filters select {
  width: 100%;
  background: #0a1f2e;
  color: var(--ink);
  border: 1px solid var(--grid);
  border-radius: 10px;
  padding: 10px 11px;
  min-height: 40px;
  font-size: .88rem;
}
.admin-filters input:focus,
.admin-filters select:focus {
  outline: none;
  border-color: #3f8fb3;
  box-shadow: 0 0 0 3px rgba(63, 143, 179, 0.25);
}
.admin-pager {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 980px) {
  .mk3-hero,
  .mk3-grid,
  .mk3-feature-grid,
  .mk3-stats {
    grid-template-columns: 1fr;
  }
  .mk3-shell {
    margin: 12px auto;
    padding: 12px;
    border-radius: 14px;
  }
  .mk2-hero {
    grid-template-columns: 1fr;
  }
  .mk2-feature-grid {
    grid-template-columns: 1fr;
  }
  .marketing-shell {
    margin: 14px auto;
    padding: 14px;
    border-radius: 14px;
  }
  .mk-grid-2,
  .mk-grid-3 {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "filters" "signals" "insights";
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .admin-filters {
    grid-template-columns: 1fr;
  }
  .signals {
    overflow-x: auto;
  }
  .signal-table-wrap {
    max-height: 320px;
  }
  #signalTable {
    min-width: 760px;
  }
  .history-modal-card {
    width: min(1100px, 98vw);
    max-height: 90vh;
  }
}

@media (max-width: 768px) {
  .mk3-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mk3-links { gap: 10px; }
  .mk3-hero h1 {
    font-size: clamp(1.45rem, 8.5vw, 2.3rem);
  }
  .mk3-actions .btn-primary,
  .mk3-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .mk2-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mk2-links {
    gap: 10px;
  }
  .mk2-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }
  .mk2-actions .btn-primary,
  .mk2-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .mk-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .mk-links {
    gap: 10px;
  }
  .mk-hero h1,
  .mk-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .mk-actions .btn-primary,
  .mk-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .topbar {
    padding: 12px 14px;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .top-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand {
    font-size: 1.02rem;
  }
  .sub, .user, .meta {
    font-size: .82rem;
  }
  .layout {
    padding: 10px;
    gap: 10px;
  }
  .panel {
    padding: 12px;
    border-radius: 12px;
  }
  .hero-card,
  .billing-card,
  .guide-card {
    padding: 18px;
    border-radius: 14px;
    min-height: auto;
  }
  .hero-card h1 {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
  }
  .hero-card p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    text-align: center;
  }
  .price-main {
    font-size: 1.8rem;
  }
  .terms-overlay {
    padding: 10px;
  }
  .terms-dialog {
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    padding: 14px;
  }
  .terms-row {
    flex-direction: column;
    align-items: stretch;
  }
  .status-board {
    grid-template-columns: 1fr;
  }
  .insights h3 {
    font-size: .96rem;
  }
  #insightsPlot {
    height: 270px !important;
  }
  #sessionSignalPlot {
    height: 220px !important;
  }
  #realVsPredPlot {
    height: 300px !important;
  }
  .signal-table-wrap {
    max-height: 280px;
  }
  .history-launch {
    gap: 8px;
  }
  .history-open-btn {
    width: 100%;
    text-align: center;
  }
  .history-modal-card {
    width: 100%;
    max-height: 92vh;
  }
  .history-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .history-table-scroll {
    max-height: 68vh;
  }
  .history-table {
    min-width: 680px;
  }
  .contact-strip {
    gap: 6px;
    margin-top: 16px;
  }
  .contact-strip a {
    font-size: .78rem;
  }
  .bottom-brand-mark {
    bottom: 30px;
  }
  .bottom-brand-mark img {
    width: 82px;
    height: auto;
  }
  .live-context-popup {
    top: auto;
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }
  .live-context-open {
    top: auto;
    right: 10px;
    left: auto;
    bottom: 92px;
  }
}

@media (max-width: 480px) {
  .layout {
    padding: 8px;
    gap: 8px;
  }
  .panel {
    padding: 10px;
  }
  .guide-chip,
  .toggle-chip {
    font-size: .7rem;
    padding: 4px 7px;
  }
  .status-value {
    font-size: .88rem;
  }
  #realVsPredPlot {
    height: 280px !important;
  }
  .history-more-btn {
    font-size: .68rem;
    padding: 4px 8px;
  }
  .signal-table-wrap {
    max-height: 240px;
  }
}
