:root {
  color-scheme: dark;
  --bg-0: #070a0f;
  --bg-1: #0c1119;
  --bg-2: #111824;
  --bg-3: #172030;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --ink: #f1f5f9;
  --ink-dim: #cbd5e1;
  --muted: #8b9bb0;
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.13);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.14);
  --red: #f43f5e;
  --red-dim: rgba(244, 63, 94, 0.14);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(14, 165, 233, 0.09), transparent 38%),
    radial-gradient(circle at 85% 8%, rgba(16, 185, 129, 0.06), transparent 35%),
    var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none !important;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(145deg, #0d1626, #090d16);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.14);
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: block;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--mono);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}
.bridge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  transition: all 0.15s ease;
  text-decoration: none !important;
}
.btn:hover {
  border-color: var(--cyan);
  background: var(--bg-3);
}
.btn-primary {
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.26);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
}
.btn-amber {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Hero */
.hero {
  padding: 36px 0 26px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11.5px;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
}

.hero-stat-box {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}
.mini-stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.mini-stat strong {
  font-family: var(--mono);
  font-size: 18px;
  color: #fff;
}
.mini-stat strong.pos {
  color: var(--green);
}

/* Sections */
.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Pro / Preview Banner */
.mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 11px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.mode-banner.pro-unlocked {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.13), rgba(14, 165, 233, 0.09));
  border-color: rgba(16, 185, 129, 0.4);
}

/* 18-Pair Impulse & Veto Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}

.pair-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  transition: border-color 0.15s, transform 0.12s;
}
.pair-card.st-BUY {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09), var(--bg-1));
}
.pair-card.st-SELL {
  border-color: rgba(244, 63, 94, 0.45);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.09), var(--bg-1));
}
.pair-card.st-VETO {
  border-color: rgba(245, 158, 11, 0.65);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), var(--bg-1));
}

.pair-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pair-sym {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.pair-grp {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.badge-BUY {
  background: var(--green-dim);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-SELL {
  background: var(--red-dim);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.badge-VETO {
  background: var(--amber-dim);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.badge-CLEAR,
.badge-NEUTRAL {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pair-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  min-height: 16px;
}

.bars {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 11px;
}
.bars i {
  width: 3px;
  background: rgba(148, 163, 184, 0.22);
  border-radius: 1px;
}
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 6px; }
.bars i:nth-child(3) { height: 9px; }
.bars i:nth-child(4) { height: 11px; }
.bars.on-1 i:nth-child(-n+1),
.bars.on-2 i:nth-child(-n+2),
.bars.on-3 i:nth-child(-n+3),
.bars.on-4 i:nth-child(-n+4) {
  background: var(--cyan);
}

/* News Stream Cards */
.radar-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.news-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.news-card:hover,
.news-card.selected {
  border-color: var(--cyan);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.curr-pill {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.news-title {
  font-weight: 650;
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 7px;
}

.afp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
  margin-bottom: 8px;
}

.ai-brief {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.52;
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
}

/* KPI Row & Chart */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
}
.kpi-card small {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 5px;
}
.kpi-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}
.kpi-card span {
  font-size: 11px;
  color: var(--muted);
}

.chart-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.chart-svg-box {
  width: 100%;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-svg-box svg {
  width: 100%;
  height: 230px;
  display: block;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.data-table th,
table.data-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.pos { color: var(--green); }
.neg { color: var(--red); }

/* Pricing & USDT Checkout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.plan-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.plan-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.14);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #0284c7;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
}
.plan-price {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  margin: 10px 0 4px;
}
.plan-price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.plan-per-mo {
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.plan-features li {
  padding: 4px 0;
}

.checkout-box {
  background: var(--bg-1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 22px;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
}

.qr-frame {
  width: 180px;
  height: 180px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}
.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  margin: 6px 0 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  word-break: break-all;
}

/* Inputs & Forms */
.input,
select.input,
textarea.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

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

/* Investor Section */
.investor-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: grid;
}
.modal-card {
  width: min(480px, 100%);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .matrix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .radar-split, .investor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid, .form-grid, .invoice-grid { grid-template-columns: 1fr; }
  .qr-frame { margin: 0 auto; }
}
