:root {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --line: #282828;
  --line-soft: #1f1f1f;
  --text: #f7f7f7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --gold: #f59e0b;
  --gold-2: #facc15;
  --green: #10b981;
  --red: #ef4444;
  --blue: #38bdf8;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(245, 158, 11, 0.14), transparent 30%),
    radial-gradient(circle at 100% 8%, rgba(16, 185, 129, 0.08), transparent 28%),
    linear-gradient(180deg, #050505 0%, #070707 50%, #050505 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.brand span {
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a,
.header-actions a,
.header-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  transition: color 150ms ease, background 150ms ease, border 150ms ease;
}

.nav a:hover,
.nav a.active,
.header-actions a:hover,
.header-actions a.active,
.header-actions button:hover {
  color: var(--text);
  background: #171717;
}

.nav a.active {
  color: var(--gold-2);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .admin-link {
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.main {
  flex: 1;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.compact {
  padding: 42px 0;
}

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

.section-head.center {
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.h1,
.h2,
.h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.02;
  letter-spacing: 0;
}

.h1 {
  max-width: 850px;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 900;
}

.h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 850;
}

.h3 {
  font-size: 22px;
  font-weight: 800;
}

.lead {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.gold-text {
  color: var(--gold-2);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050505;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.72) 45%, rgba(5, 5, 5, 0.44)),
    linear-gradient(0deg, rgba(5, 5, 5, 1), rgba(5, 5, 5, 0) 38%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 780px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ticker {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  border-bottom: 1px solid rgba(245, 158, 11, 0.08);
  background: rgba(10, 10, 10, 0.78);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 28px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.ticker-item strong {
  color: var(--text);
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  background: #18181b;
  font-weight: 750;
  transition: transform 150ms ease, border 150ms ease, background 150ms ease, color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.primary {
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.18);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn.danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(10, 10, 10, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card.pad {
  padding: 22px;
}

.product-card {
  min-height: 394px;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.36);
}

.product-card .badge {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.product-card .body {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-top span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-subtitle {
  margin: 6px 0 10px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

.icon-box.gold {
  color: #111;
  background: var(--gold);
}

.icon-box.blue {
  color: #03131c;
  background: var(--blue);
}

.icon-box.green {
  color: #03130e;
  background: var(--green);
}

.icon-box.red {
  color: #240808;
  background: #fb7185;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.price {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
}

.price span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow);
}

.metric-strip div {
  min-height: 112px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 22px;
  background: rgba(10, 10, 10, 0.94);
}

.metric-strip strong {
  color: var(--gold-2);
  font-size: 32px;
  line-height: 1;
}

.metric-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.academy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 42%),
    #0d0d0d;
  box-shadow: var(--shadow);
}

.discord-panel,
.discord-hero,
.bundle-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #0d0d0d;
  box-shadow: var(--shadow);
}

.discord-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.bundle-callout {
  margin-bottom: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.discord-mini {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(88, 101, 242, 0.24);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: rgba(88, 101, 242, 0.08);
}

.process-list {
  display: grid;
  gap: 10px;
}

.process-list div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.process-list strong {
  color: var(--gold-2);
  font-size: 14px;
}

.process-list span {
  color: var(--text);
  font-weight: 750;
}

.course-card {
  cursor: pointer;
  transition: transform 150ms ease, border 150ms ease;
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.34);
}

.course-body {
  padding: 22px;
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--faint);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #0d0d0d;
  background-size: 32px 32px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: #101010;
  font-size: 14px;
}

.pill.active,
.pill:hover {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.signal-card {
  display: grid;
  gap: 14px;
}

.signal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.direction.buy {
  color: #b7f7dc;
  background: rgba(16, 185, 129, 0.16);
}

.direction.sell {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
}

.kv {
  display: grid;
  gap: 8px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.kv strong {
  color: var(--text);
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
}

.legal-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(16, 16, 16, 0.9);
  font-size: 14px;
  font-weight: 750;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.legal-doc {
  padding: 34px;
}

.legal-doc .lead {
  max-width: 820px;
}

.legal-doc section {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.legal-doc h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
}

.legal-doc p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 28px;
  align-items: center;
}

.book-cover {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #101010;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-fallback {
  width: 78%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  text-align: center;
  background: #090909;
}

.book-cover-fallback strong {
  font-size: 28px;
}

.book-cover-fallback span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.admin-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.admin-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #101010;
  text-align: left;
  padding: 0 12px;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #0b0b0b;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(245, 158, 11, 0.55);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.status.ok {
  color: var(--green);
}

.status.err {
  color: #fecaca;
}

.table-list {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0d0d0d;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #0d0d0d;
}

.stat strong {
  display: block;
  font-size: 30px;
  color: var(--text);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.scanner-shell {
  display: grid;
  gap: 18px;
}

.scanner-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(120deg, rgba(245, 158, 11, 0.15), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #090909;
  box-shadow: var(--shadow);
}

.scanner-status-card {
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.14), transparent),
    #101010;
}

.scanner-status-card span,
.scanner-status-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.scanner-status-card strong {
  color: var(--gold-2);
  font-size: 58px;
  line-height: 1;
}

.exchange-strip,
.provider-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.exchange-chip,
.provider-chip {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0d0d0d;
}

.exchange-chip strong,
.provider-chip strong {
  color: var(--text);
  font-size: 14px;
}

.exchange-chip span,
.provider-chip span {
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
}

.exchange-chip.online,
.provider-chip.online {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.08);
}

.exchange-chip.error {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.08);
}

.scanner-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(13, 13, 13, 0.94);
}

.scanner-checkbox {
  min-height: 44px;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #0b0b0b;
}

.scanner-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #090909;
  box-shadow: var(--shadow);
}

.scanner-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.45fr 0.85fr 0.85fr 0.95fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
}

.scanner-row:first-child {
  border-top: 0;
}

.scanner-row-head {
  min-height: 46px;
  color: var(--faint);
  background: #111;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scanner-row:not(.scanner-row-head):hover {
  background: rgba(255, 255, 255, 0.03);
}

.scanner-row.premium {
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.12), transparent 38%),
    #0b0b0b;
}

.scanner-row.not-profitable {
  opacity: 0.76;
}

.scanner-row span {
  min-width: 0;
}

.scanner-row strong,
.scanner-row small {
  display: block;
  overflow-wrap: anywhere;
}

.scanner-row strong {
  color: var(--text);
  font-size: 14px;
}

.scanner-row small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
}

.risk-low {
  color: var(--green) !important;
}

.risk-medium {
  color: var(--gold-2) !important;
}

.risk-high {
  color: var(--red) !important;
}

.scanner-saas-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #0d0d0d;
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.42);
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.14), transparent 44%),
    #0d0d0d;
}

.pricing-card > span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #111;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-exchanges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-empty {
  padding: 18px;
}

.oauth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.login-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
}

.modal {
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #101010;
}

.modal-body {
  padding: 18px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  background: #070707;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: 26px;
  color: var(--faint);
  font-size: 14px;
}

.footer-brand p {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column strong {
  color: var(--text);
}

.footer-column a,
.footer-column span {
  color: var(--muted);
  line-height: 1.4;
}

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

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: #0b0b0b;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid.products,
  .grid.three,
  .grid.two,
  .stat-grid,
  .metric-strip,
  .scanner-saas-grid,
  .pricing-grid,
  .scanner-filters,
  .provider-grid,
  .exchange-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-layout,
  .admin-layout,
  .academy-panel,
  .discord-panel,
  .discord-hero,
  .bundle-callout,
  .support-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .scanner-hero {
    grid-template-columns: 1fr;
  }

  .scanner-row,
  .scanner-row-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tabs,
  .legal-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section,
  .hero-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    min-height: 720px;
    align-items: start;
    padding-top: 72px;
  }

  .h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .grid.products,
  .grid.three,
  .grid.two,
  .metric-strip,
  .stat-grid,
  .form-grid.two,
  .scanner-saas-grid,
  .pricing-grid,
  .scanner-filters,
  .provider-grid,
  .exchange-strip,
  .admin-exchanges {
    grid-template-columns: 1fr;
  }

  .scanner-hero {
    padding: 22px;
  }

  .scanner-row,
  .scanner-row-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-tabs,
  .legal-nav,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .academy-panel,
  .discord-panel,
  .discord-hero,
  .bundle-callout,
  .legal-doc {
    padding: 22px;
  }

  .discord-mini {
    align-items: stretch;
    flex-direction: column;
  }
}
