:root {
  --bg: #050706;
  --bg-elevated: #0a0d0c;
  --bg-panel: #0d1110;
  --bg-panel-2: #121816;
  --border: #202824;
  --border-strong: #35413b;
  --text: #f1f5f2;
  --text-muted: #87938d;
  --accent: #7cf56b;
  --accent-dim: #52c844;
  --blue: #45cfff;
  --violet: #c0a6ff;
  --warn: #ffbd59;
  --danger: #ff6376;
  --success: #7cf56b;
  --score-very-high: #b48cff;
  --score-high: #45d6c5;
  --score-elevated: #55a7d9;
  --score-watch: #7897b8;
  --score-low: #7f8b85;
  --radius: 4px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

/* Account workspace ----------------------------------------------------- */
.account-page {
  --account-surface: #090d0b;
  --account-surface-raised: #0c120e;
}

.account-page > .account-feedback {
  position: sticky;
  top: 0.75rem;
  z-index: 15;
}

.account-guest-hero,
.account-profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 78% 18%, rgba(124, 245, 107, 0.12), transparent 28%),
    linear-gradient(125deg, #09100b 0%, #070a08 58%, #0a1210 100%);
}

.account-guest-hero::before,
.account-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 245, 107, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 245, 107, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
}

.account-guest-hero {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.account-guest-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.8rem);
}

.account-hero-kicker {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font: 800 0.75rem var(--mono);
  letter-spacing: 0.12em;
}

.account-guest-copy h2,
.account-profile-hero h2 {
  margin: 0;
  max-width: 760px;
  color: #f4f8f5;
  font-size: clamp(2.65rem, 5.2vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.account-guest-copy > p:not(.account-hero-kicker),
.account-profile-hero > div:first-child > p:last-child {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: #9facA4;
  font-size: 0.96rem;
  line-height: 1.65;
}

.account-guest-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.account-guest-assurances > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.18rem 0.65rem;
  padding: 0.85rem;
  background: rgba(7, 11, 8, 0.92);
}

.account-guest-assurances i {
  grid-row: 1 / 3;
  color: var(--accent);
  font: 700 0.75rem var(--mono);
}

.account-guest-assurances strong {
  color: #e7ece8;
  font: 750 0.75rem var(--mono);
}

.account-guest-assurances small {
  color: #748078;
  font-size: 0.75rem;
  line-height: 1.4;
}

.account-guest-visual {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--border);
  background: rgba(3, 7, 5, 0.46);
}

.account-visual-status {
  align-self: flex-end;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(124, 245, 107, 0.3);
  color: var(--accent);
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.1em;
}

.account-visual-orbit {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  align-self: center;
  margin: 1.4rem 0;
  border: 1px solid rgba(124, 245, 107, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(124, 245, 107, 0.09);
}

.account-visual-orbit::before,
.account-visual-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(124, 245, 107, 0.14);
  border-radius: 50%;
}

.account-visual-orbit::before { inset: 13px; }
.account-visual-orbit::after { inset: -12px; border-style: dashed; }

.account-visual-orbit span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--accent);
  color: #031006;
  font: 900 1.8rem var(--mono);
}

.account-visual-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font: 650 0.75rem var(--mono);
}

.account-visual-line span { color: #69766e; }
.account-visual-line strong { color: #b9c4bd; letter-spacing: 0.06em; }

.account-auth-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 2rem;
  margin: clamp(3rem, 7vw, 6rem) 0 1.35rem;
}

.account-auth-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.045em;
}

.account-auth-heading > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.account-page .auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0;
}

.account-page .account-auth-panel {
  position: relative;
  min-height: 455px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-color: var(--border);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 44%),
    var(--account-surface);
}

.account-page .account-login-panel {
  border-color: rgba(124, 245, 107, 0.32);
  box-shadow: inset 3px 0 0 var(--accent);
}

.account-form-index {
  color: #66736b;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.08em;
}

.account-auth-panel h3 {
  margin: 0.6rem 0 0;
  color: #edf2ee;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.account-form-copy {
  min-height: 2.8rem;
  margin: -0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.account-page .auth-panel label > span {
  color: #aeb8b1;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-page .auth-panel input {
  min-height: 48px;
  border-color: var(--border-strong);
  border-radius: 2px;
  background: #070a08;
}

.account-page .auth-panel input:focus {
  border-color: var(--accent);
  outline: 1px solid rgba(124, 245, 107, 0.36);
}

.account-auth-panel > .btn-primary,
.account-auth-panel > .btn-secondary[type="submit"] {
  min-height: 48px;
  justify-content: center;
  margin-top: auto;
}

.account-profile-hero {
  display: grid;
  min-height: 290px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.2rem);
}

.account-profile-hero > * { position: relative; z-index: 1; }

.account-profile-hero h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.account-profile-identity {
  display: grid;
  min-width: 280px;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.85rem;
  padding: 1.1rem;
  border: 1px solid rgba(124, 245, 107, 0.28);
  background: rgba(4, 9, 6, 0.78);
}

.account-profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  grid-row: 1 / 3;
  place-items: center;
  background: var(--accent);
  color: #041006;
  font: 900 1.25rem var(--mono);
}

.account-profile-identity div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-profile-identity small,
.account-profile-identity span:last-child {
  color: var(--text-muted);
  font: 0.75rem var(--mono);
}

.account-profile-identity strong {
  color: #f0f5f1;
  font-size: 1.15rem;
}

.account-profile-identity span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-status-indicator {
  grid-column: 1 / -1;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  color: var(--accent) !important;
  text-transform: uppercase;
}

.account-status-indicator::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(124, 245, 107, 0.7);
}

.account-status-indicator.needs-attention { color: #f4c969 !important; }
.account-status-indicator.needs-attention::before { background: #f4c969; }

.account-logout {
  position: absolute !important;
  top: 1rem;
  right: 1rem;
}

.account-page .account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.account-page .account-card {
  min-width: 0;
  min-height: 370px;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border-color: var(--border);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 40%),
    var(--account-surface);
}

.account-page .account-overview-card {
  grid-column: 1 / -1;
  min-height: auto;
  border-color: rgba(124, 245, 107, 0.3);
  background:
    radial-gradient(circle at 92% 0%, rgba(124, 245, 107, 0.09), transparent 28%),
    var(--account-surface);
}

.account-card-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.account-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(124, 245, 107, 0.25);
  color: var(--accent);
  font: 750 0.75rem var(--mono);
}

.account-card-heading p {
  margin: 0 0 0.18rem;
  color: #66736b;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-card-heading h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.account-card-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.account-overview-card .account-details {
  grid-template-columns: auto minmax(140px, 1fr) auto minmax(120px, 1fr);
  gap: 0.55rem 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #070a08;
}

.account-page .account-details dt {
  color: #718078;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-page .account-details dd {
  color: #e7ece8;
  font: 700 0.78rem var(--mono);
}

.account-usage-meter {
  display: block;
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  background: transparent;
}

.account-usage-meter::-webkit-progress-bar {
  background: #172019;
}

.account-usage-meter::-webkit-progress-value {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 245, 107, 0.6);
}

.account-usage-meter::-moz-progress-bar {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 245, 107, 0.6);
}

.account-api-explainer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  background: #070a08;
}

.account-api-explainer > span {
  color: var(--accent);
  font: 800 1rem var(--mono);
}

.account-api-explainer p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.account-api-explainer strong { color: #dfe6e1; font-size: 0.75rem; }
.account-api-explainer small { color: var(--text-muted); font-size: 0.75rem; }

.account-page .account-api-key {
  border-radius: 2px;
  border-color: rgba(124, 245, 107, 0.35);
  background: rgba(124, 245, 107, 0.055);
}

.account-page .session-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  width: 100%;
}

.account-page .session-item {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 2px;
  background: #070a08;
}

.account-page .session-item + .session-item {
  margin-top: 0;
}

.account-page .session-browser-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(124, 245, 107, 0.28);
  color: var(--accent);
  font: 800 0.8rem var(--mono);
}

.account-page .session-device-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.account-page .session-device-copy strong {
  color: #e8ede9;
  font-size: 0.82rem;
}

.account-page .session-device-copy small {
  color: var(--text-muted);
  font: 0.75rem var(--mono);
}

.account-page .session-device-copy small span {
  color: #68766e;
  text-transform: uppercase;
}

.account-page .session-current {
  border-radius: 2px;
  white-space: nowrap;
}

.account-page .session-revoke-button {
  min-width: 112px;
  justify-content: center;
}

.account-page .account-sessions-card {
  grid-column: 1 / -1;
  min-height: auto;
}

.account-page .onboarding-card {
  border-radius: 2px;
  border-color: rgba(124, 245, 107, 0.38);
  background: rgba(124, 245, 107, 0.045);
}

@media (max-width: 960px) {
  .account-guest-hero {
    grid-template-columns: 1fr;
  }

  .account-guest-visual {
    display: none;
  }

  .account-profile-hero {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .account-profile-identity { max-width: 420px; }
}

@media (max-width: 680px) {
  .account-guest-hero { min-height: auto; }

  .account-guest-copy { padding: 1.5rem 1.25rem; }

  .account-guest-copy h2,
  .account-profile-hero h2 {
    font-size: clamp(2.3rem, 12vw, 3.5rem);
    overflow-wrap: break-word;
  }

  .account-guest-assurances {
    grid-template-columns: 1fr;
  }

  .account-auth-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 3rem;
  }

  .account-page .auth-grid,
  .account-page .account-grid {
    grid-template-columns: 1fr;
  }

  .account-page .account-overview-card { grid-column: auto; }

  .account-page .account-sessions-card { grid-column: auto; }

  .account-profile-hero {
    min-height: auto;
    gap: 1.25rem;
    padding: 4.4rem 1.25rem 1.5rem;
  }

  .account-profile-identity {
    width: 100%;
    min-width: 0;
  }

  .account-overview-card .account-details {
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  }

  .account-page .account-card { min-height: auto; }

  .account-page .session-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .account-page .session-current,
  .account-page .session-revoke-button {
    grid-column: 1 / -1;
  }
}

/* Documentation learning center --------------------------------------- */
.docs-page {
  --docs-surface: #090d0b;
  --docs-raised: #0c120e;
}

.docs-hero {
  display: grid;
  min-height: 540px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #070a08;
}

.docs-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  background:
    radial-gradient(circle at 0% 100%, rgba(124, 245, 107, 0.09), transparent 35%),
    #070a08;
}

.docs-kicker {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font: 800 0.75rem var(--mono);
  letter-spacing: 0.12em;
}

.docs-hero h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.docs-hero-copy > p:not(.docs-kicker) {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: #9ca8a1;
  font-size: 0.96rem;
  line-height: 1.7;
}

.docs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.docs-hero-actions .btn {
  min-height: 46px;
  justify-content: center;
  text-decoration: none;
}

.docs-hero-meta {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.docs-hero-meta span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.docs-hero-meta strong {
  color: #eef3ef;
  font: 800 1rem var(--mono);
}

.docs-hero-meta small {
  color: #77837c;
  font: 0.75rem var(--mono);
}

.docs-hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
}

.docs-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #070a08 0%, transparent 32%), linear-gradient(0deg, rgba(3, 7, 5, 0.62), transparent 42%);
  pointer-events: none;
}

.docs-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(0.82) contrast(1.06);
}

.docs-hero-media figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(124, 245, 107, 0.28);
  background: rgba(4, 8, 5, 0.82);
  color: #d6dfd9;
  font: 700 0.75rem var(--mono);
}

.docs-hero-media figcaption > span:first-child {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124, 245, 107, 0.7);
}

.docs-page .docs-learning-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 7vw, 6.5rem);
}

.docs-page .docs-learning-index {
  position: sticky;
  top: 1rem;
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.docs-learning-index > p {
  margin: 0 0 0.75rem;
  color: #67736c;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.1em;
}

.docs-page .docs-learning-index [data-doc-target] {
  display: grid;
  width: 100%;
  grid-template-columns: 28px 1fr;
  gap: 0.45rem;
  padding: 0.68rem 0.6rem;
  border-left: 1px solid var(--border);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  color: #9da9a2;
  font: 650 0.75rem var(--mono);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.docs-learning-index [data-doc-target] > span:first-child { color: #536159; }

.docs-page .docs-learning-index [data-doc-target]:hover,
.docs-page .docs-learning-index [data-doc-target]:focus-visible {
  border-left-color: var(--accent);
  background: rgba(124, 245, 107, 0.04);
  color: var(--accent);
}

.docs-open-radar {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.docs-page .docs-learning-content {
  min-width: 0;
  max-width: none;
}

.docs-page .docs-learning-content .docs-chapter {
  margin: 0;
  padding: 0 0 clamp(4rem, 8vw, 7.5rem);
  border: 0;
  background: transparent;
  scroll-margin-top: 5.25rem;
}

.docs-chapter-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.docs-chapter-heading > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(124, 245, 107, 0.28);
  color: var(--accent);
  font: 800 0.75rem var(--mono);
}

.docs-chapter-heading p:first-child {
  margin: 0 0 0.35rem;
  color: #69766e;
  font: 750 0.75rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-chapter-heading h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.docs-chapter-heading p:last-child:not(:first-child) {
  max-width: 800px;
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.docs-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.docs-step-grid article {
  min-height: 210px;
  padding: 1.25rem;
  background: var(--docs-surface);
}

.docs-step-grid article > span,
.docs-score-number {
  color: var(--accent);
  font: 750 0.75rem var(--mono);
}

.docs-step-grid h3 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1rem;
}

.docs-step-grid p,
.docs-score-grid p,
.docs-score-grid small {
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.docs-note,
.docs-warning {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(124, 245, 107, 0.28);
  background: rgba(124, 245, 107, 0.045);
}

.docs-note strong,
.docs-warning strong {
  color: var(--accent);
  font: 750 0.75rem var(--mono);
  text-transform: uppercase;
}

.docs-note p,
.docs-warning p { margin: 0; color: #b4c0b8; font-size: 0.8rem; line-height: 1.5; }

.docs-radar-demo {
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(124, 245, 107, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 245, 107, 0.025) 1px, transparent 1px),
    #070a08;
  background-size: 34px 34px;
}

.docs-demo-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--accent);
  font: 750 0.75rem var(--mono);
}

.docs-demo-toolbar span:last-child { color: #6f7c74; }

.docs-demo-row {
  display: grid;
  grid-template-columns: 90px minmax(190px, 1.5fr) repeat(3, minmax(95px, 0.65fr));
  align-items: center;
  margin-top: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(124, 245, 107, 0.32);
  background: #0a100c;
}

.docs-demo-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.65rem;
}

.docs-demo-row small { color: #67746c; font: 700 0.75rem var(--mono); }
.docs-demo-row strong { overflow-wrap: anywhere; color: #e7eee9; font-size: 0.8rem; }
.docs-demo-opportunity strong { color: var(--accent); font: 850 2rem var(--mono); }

.docs-demo-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.docs-demo-callouts li {
  display: flex;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(6, 9, 7, 0.88);
}

.docs-demo-callouts li > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #041006;
  font: 800 0.75rem var(--mono);
}

.docs-demo-callouts p { display: flex; margin: 0; flex-direction: column; }
.docs-demo-callouts strong { color: #e0e7e2; font-size: 0.78rem; }
.docs-demo-callouts small { color: var(--text-muted); font-size: 0.75rem; line-height: 1.4; }

.docs-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.docs-score-grid article {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: var(--docs-surface);
}

.docs-score-grid article.featured {
  border-color: rgba(124, 245, 107, 0.45);
  background: radial-gradient(circle at 100% 0%, rgba(124, 245, 107, 0.1), transparent 40%), #0a100c;
}

.docs-score-grid h3 { margin: 2.2rem 0 0.7rem; font-size: 1.3rem; }
.docs-score-grid p { margin: 0; }
.docs-score-grid small { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }

.docs-reading-table {
  display: grid;
  margin-top: 0.8rem;
  border: 1px solid var(--border);
}

.docs-reading-table > div {
  display: grid;
  grid-template-columns: 120px minmax(150px, 0.8fr) minmax(240px, 1.4fr);
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #aeb9b2;
  font-size: 0.77rem;
}

.docs-reading-table > div:last-child { border-bottom: 0; }
.docs-reading-table > div:first-child { color: #6f7c74; font: 700 0.75rem var(--mono); }
.docs-reading-table strong { color: var(--accent); font-family: var(--mono); }

.docs-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.docs-sec-grid > div {
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--docs-surface);
}

.docs-sec-grid > div:first-child { border-top-color: rgba(124, 245, 107, 0.52); }
.docs-sec-grid > div:last-child { border-top-color: rgba(255, 99, 118, 0.42); }
.docs-sec-grid h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.docs-sec-grid ul { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.docs-sec-grid li { position: relative; padding-left: 1.2rem; color: #adb8b1; font-size: 0.8rem; line-height: 1.45; }
.docs-sec-grid li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.docs-sec-grid > div:last-child li::before { color: var(--danger); }

.docs-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.docs-workflow article {
  position: relative;
  min-height: 230px;
  padding: 1.2rem;
  border-right: 1px solid var(--border);
  background: var(--docs-surface);
}

.docs-workflow article:last-child { border-right: 0; }
.docs-workflow article > span { color: var(--accent); font: 800 0.75rem var(--mono); }
.docs-workflow h3 { margin: 3rem 0 0.6rem; font-size: 1.05rem; }
.docs-workflow p { margin: 0; color: var(--text-muted); font-size: 0.77rem; line-height: 1.55; }

.docs-visual-guide-list {
  display: grid;
  gap: 1rem;
}

.docs-visual-guide-list figure {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--docs-surface);
}

.docs-guide-image {
  display: grid;
  min-width: 0;
  min-height: 230px;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(rgba(124, 245, 107, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 245, 107, 0.025) 1px, transparent 1px),
    #050806;
  background-size: 28px 28px;
}

.docs-guide-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(124, 245, 107, 0.16);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.docs-visual-guide-list figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.35rem;
}

.docs-visual-guide-list figcaption > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(124, 245, 107, 0.3);
  color: var(--accent);
  font: 800 0.75rem var(--mono);
}

.docs-visual-guide-list h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.15;
}

.docs-visual-guide-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.docs-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.docs-source-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--docs-surface);
}

.docs-source-grid img { width: 100%; height: 100%; min-height: 155px; object-fit: cover; filter: saturate(0.7); }
.docs-source-grid article > div { padding: 1rem; }
.docs-source-grid h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.docs-source-grid p { margin: 0; color: var(--text-muted); font-size: 0.77rem; line-height: 1.55; }

.docs-warning { border-color: rgba(255, 189, 89, 0.35); background: rgba(255, 189, 89, 0.045); }
.docs-warning strong { color: var(--warn); }

.docs-faq-list { border-top: 1px solid var(--border); }
.docs-faq-list details { border-bottom: 1px solid var(--border); }
.docs-faq-list summary { position: relative; padding: 1.1rem 2.2rem 1.1rem 0; color: #e3e9e5; font-size: 0.88rem; font-weight: 700; cursor: pointer; list-style: none; }
.docs-faq-list summary::after { content: "+"; position: absolute; right: 0; color: var(--accent); font: 800 1.1rem var(--mono); }
.docs-faq-list details[open] summary::after { content: "−"; }
.docs-faq-list p { max-width: 820px; margin: 0; padding: 0 0 1.2rem; color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }

.docs-page .docs-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(124, 245, 107, 0.32);
  background: radial-gradient(circle at 100% 50%, rgba(124, 245, 107, 0.12), transparent 34%), #09100b;
}

.docs-final-cta p { margin: 0 0 0.4rem; color: var(--accent); font: 750 0.75rem var(--mono); }
.docs-final-cta h2 { margin: 0; max-width: 720px; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -0.045em; }
.docs-final-cta .btn { flex: 0 0 auto; }

@media (max-width: 1080px) {
  .docs-hero { grid-template-columns: 1fr; }
  .docs-hero-media { min-height: 390px; border-top: 1px solid var(--border); border-left: 0; }
  .docs-hero-media::after { background: linear-gradient(0deg, rgba(3, 7, 5, 0.65), transparent 52%); }
  .docs-step-grid,
  .docs-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-workflow article:nth-child(2) { border-right: 0; }
  .docs-workflow article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 820px) {
  .docs-page .docs-learning-layout { grid-template-columns: 1fr; }
  .docs-page .docs-learning-index { position: static; display: grid; grid-template-columns: repeat(2, 1fr); padding: 0.7rem; border: 1px solid var(--border); background: var(--docs-surface); }
  .docs-learning-index > p,
  .docs-open-radar { grid-column: 1 / -1; }
  .docs-score-grid,
  .docs-demo-callouts { grid-template-columns: 1fr; }
  .docs-score-grid article { min-height: 230px; }
  .docs-demo-row { grid-template-columns: 80px minmax(180px, 1fr) repeat(3, 95px); overflow-x: auto; }
  .docs-visual-guide-list figure,
  .docs-source-grid { grid-template-columns: 1fr; }
  .docs-guide-image { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 600px) {
  .docs-hero { min-height: auto; }
  .docs-hero-copy { padding: 1.5rem 1.25rem; }
  .docs-hero h2 { font-size: clamp(2.45rem, 13vw, 3.8rem); overflow-wrap: break-word; }
  .docs-hero-meta { gap: 1rem; justify-content: space-between; }
  .docs-hero-media { min-height: 280px; }
  .docs-page .docs-learning-index { grid-template-columns: 1fr; }
  .docs-learning-index > p,
  .docs-open-radar { grid-column: auto; }
  .docs-chapter-heading { grid-template-columns: 1fr; }
  .docs-step-grid,
  .docs-sec-grid,
  .docs-workflow { grid-template-columns: 1fr; }
  .docs-workflow article { border-right: 0; border-bottom: 1px solid var(--border); }
  .docs-workflow article:last-child { border-bottom: 0; }
  .docs-note,
  .docs-warning { grid-template-columns: 1fr; }
  .docs-radar-demo { padding: 0.65rem; overflow-x: auto; }
  .docs-demo-toolbar,
  .docs-demo-row,
  .docs-demo-callouts { min-width: 700px; }
  .docs-reading-table { overflow-x: auto; }
  .docs-reading-table > div { min-width: 660px; }
  .docs-source-grid article { grid-template-columns: 115px 1fr; }
  .docs-page .docs-final-cta { align-items: flex-start; flex-direction: column; }
  .docs-page .docs-learning-content .docs-chapter { scroll-margin-top: 1rem; }
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-size: 14px;
  overflow-x: hidden;
}

::selection {
  background: rgba(124, 245, 107, 0.24);
  color: #fff;
}

.app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  gap: 1.6rem;
  padding: 1rem 0.85rem;
  background: rgba(5, 7, 6, 0.98);
  border-right-color: var(--border);
}

.brand {
  min-width: 0;
  padding: 0 0.45rem 1rem;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 3px;
  background: var(--accent);
  color: #071006;
  box-shadow: 0 0 24px rgba(124, 245, 107, 0.16);
}

.brand strong {
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.brand small {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.app-nav {
  gap: 0.15rem;
}

.app-nav::before {
  content: "WORKSPACE";
  padding: 0 0.65rem 0.45rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-item {
  position: relative;
  min-height: 2.4rem;
  padding: 0.58rem 0.7rem 0.58rem 1.4rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid #5d6862;
  transform: translateY(-50%) rotate(45deg);
}

.nav-item:hover {
  background: #0c100e;
}

.nav-item.active {
  color: var(--text);
  background: #111713;
  border-color: var(--border);
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-item.active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(124, 245, 107, 0.45);
}

.sidebar-status {
  width: 100%;
  padding: 0.75rem 0.6rem 0;
  border-top: 1px solid var(--border);
}

.sidebar-status .pill {
  display: block;
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  box-shadow: 0 0 10px rgba(124, 245, 107, 0.75);
}

.app-main {
  padding: 0 1.25rem 2rem;
}

.topbar {
  min-height: 64px;
  margin: 0 -1.25rem 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(5, 7, 6, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin-top: 0.05rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.eyebrow,
.panel-kicker,
.metric-label {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.session-chip,
.language-control,
.pill {
  min-height: 1.85rem;
  border-radius: 3px;
  background: #090c0b;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.session-chip:first-of-type::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(124, 245, 107, 0.75);
}

.language-control select {
  font-family: var(--mono);
  font-weight: 700;
}

.hero-panel {
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem;
  background: #090d0b;
  border-color: var(--border);
  border-radius: 3px;
}

.compact-hero {
  align-items: center;
}

.hero-panel h2 {
  max-width: 740px;
  font-size: 0.95rem;
  font-weight: 500;
}

.smallcap-hero {
  border-left: 3px solid var(--violet);
  background:
    linear-gradient(110deg, rgba(192, 166, 255, 0.09), transparent 58%),
    #090d0b;
}

.smallcap-hero .section-copy {
  max-width: 760px;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

#page-small-caps .radar-panel {
  border-top: 2px solid rgba(192, 166, 255, 0.55);
}

.hero-metrics {
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.hero-metrics > div {
  min-width: 100px;
  padding: 0.48rem 0.65rem;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: #070a08;
}

.hero-metrics > div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.tabs {
  width: fit-content;
  padding: 0;
  gap: 0;
  border-radius: 3px;
  background: #080b09;
  overflow: hidden;
}

.tab {
  min-width: 130px;
  padding: 0.48rem 0.85rem;
  border-right: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.tab:last-child {
  border-right: 0;
}

.tab.active {
  color: #071006;
  background: var(--accent);
  box-shadow: none;
  font-weight: 700;
}

.toolbar {
  margin-bottom: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #080b09;
}

.quick-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.quick-filters {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.quick-filter {
  flex: 0 0 auto;
  min-height: 1.95rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #090c0b;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
  cursor: pointer;
}

.quick-filter:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.quick-filter.active {
  border-color: rgba(124, 245, 107, 0.65);
  background: rgba(124, 245, 107, 0.09);
  color: var(--accent);
}

.filter-toggle {
  flex: 0 0 auto;
}

input[type="search"],
.price-range-inputs input[type="number"] {
  min-height: 2rem;
  border-radius: 3px;
  background: #050706;
  font-family: var(--mono);
  font-size: 0.75rem;
}

input[type="search"]:focus,
.price-range-inputs input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 245, 107, 0.08);
}

.btn {
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #071006;
}

.btn-primary:hover {
  background: #9aff8d;
  border-color: #9aff8d;
}

.btn-secondary {
  background: #0c100e;
}

.radar-workspace {
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 0.75rem;
}

.radar-workspace:not(.filters-open) {
  grid-template-columns: minmax(0, 1fr);
}

.filter-sidebar {
  top: 0.75rem;
  padding: 0.8rem;
  border-radius: 3px;
  background: #090d0b;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}

.filter-sidebar-heading {
  position: sticky;
  top: -0.8rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: -0.8rem -0.8rem 0.8rem;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: #090d0b;
}

.filter-sidebar-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.filter-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
  cursor: pointer;
}

.filter-reset:hover {
  color: var(--accent);
}

.filter-panel {
  gap: 0.8rem;
}

.filter-group-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.filter-chip {
  padding: 0.25rem 0.48rem;
  border-radius: 3px;
  background: #0d1210;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.filter-chip.active {
  background: rgba(124, 245, 107, 0.1);
  border-color: rgba(124, 245, 107, 0.65);
  color: var(--accent);
}

.panel {
  border-radius: 3px;
  background: #090c0b;
}

.panel-header {
  min-height: 54px;
  padding: 0.65rem 0.8rem;
  background: #0b0f0d;
}

.panel-header h2 {
  font-size: 0.84rem;
}

.muted {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.radar-panel .table-wrap {
  max-height: calc(100vh - 318px);
  min-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
}

.radar-panel-secondary .table-wrap {
  min-height: 280px;
}

table {
  font-size: 0.77rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.53rem 0.65rem;
  background: #0d1210;
  color: #728078;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  box-shadow: inset 0 -1px 0 var(--border);
}

td {
  padding: 0.52rem 0.65rem;
  border-bottom-color: #18201c;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.008);
}

tbody tr:hover {
  background: rgba(124, 245, 107, 0.045);
  box-shadow: inset 2px 0 0 var(--accent);
}

tbody td:nth-child(2) strong {
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.score-badge {
  min-width: 2.7rem;
  padding: 0.12rem 0.36rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  font-size: 0.75rem;
}

.score-high {
  color: var(--score-high);
  background: rgba(69, 214, 197, 0.08);
}

.score-very-high {
  color: var(--score-very-high);
  border-color: color-mix(in srgb, var(--score-very-high) 45%, var(--line));
  background: color-mix(in srgb, var(--score-very-high) 10%, transparent);
}

.score-elevated {
  color: var(--score-elevated);
  border-color: color-mix(in srgb, var(--score-elevated) 40%, var(--line));
  background: color-mix(in srgb, var(--score-elevated) 8%, transparent);
}

.score-watch,
.score-mid {
  color: var(--score-watch);
  border-color: color-mix(in srgb, var(--score-watch) 35%, var(--line));
  background: color-mix(in srgb, var(--score-watch) 7%, transparent);
}

.score-mid {
  color: var(--score-mid);
  background: rgba(120, 151, 184, 0.07);
}

.score-low {
  color: var(--score-low);
  background: rgba(127, 139, 133, 0.05);
}

.landing-hero {
  position: relative;
  min-height: min(62vh, 610px);
  margin: 0 -1.25rem 1rem;
  padding: clamp(2rem, 6vw, 5rem);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.98) 0%, rgba(5, 7, 6, 0.78) 52%, rgba(5, 7, 6, 0.2) 100%),
    url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1800&q=88");
  background-position: center;
}

.landing-hero::after {
  content: "LIVE / SEC + PUBLIC FEEDS";
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: #a0aaa5;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.landing-hero h2 {
  max-width: 760px;
  margin: 0.35rem 0 0;
  font-size: 4.8rem;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-hero h2::after {
  content: ".";
  color: var(--accent);
}

.landing-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 1.1rem 0 0;
  color: #a5afa9;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.35rem;
}

.feature-grid,
.pricing-grid {
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.feature-card,
.pricing-card {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: #090c0b;
}

.feature-card:last-child,
.pricing-card:last-child {
  border-right: 0;
}

.feature-card span {
  color: var(--accent);
  font-family: var(--mono);
}

.feature-card h3,
.pricing-card h3 {
  font-size: 0.92rem;
}

.section-header {
  padding: 0.4rem 0 0.9rem;
  border-bottom: 1px solid var(--border);
}

.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.65rem;
}

.market-news-card,
.market-news-empty {
  border-radius: 3px;
  background: #090d0b;
}

.market-news-card {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 1.15rem;
  border-left: 2px solid var(--blue);
}

.market-news-meta {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.market-news-card h3 {
  font-size: 0.9rem;
}

.market-news-card a,
.docs-index a {
  color: var(--text);
}

.ticker-pill {
  border: 1px solid rgba(69, 207, 255, 0.35);
  border-radius: 3px;
  background: rgba(69, 207, 255, 0.06);
}

.docs-layout {
  grid-template-columns: 200px minmax(0, 820px);
  gap: 2rem;
}

.docs-index {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.docs-index a {
  padding: 0.48rem 0.65rem;
  border-left: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.docs-index a:hover {
  border-left-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.docs-content section {
  margin: 0;
  padding: 1.2rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: #0d140f;
  box-shadow: inset 0 3px 0 var(--accent);
}

/* Watchlist management */
.watchlist-manager {
  display: flex;
  align-items: end;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding: 0.8rem;
}

.watchlist-manager > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(190px, 280px);
  align-items: center;
  gap: 0.25rem 0.65rem;
}

.watchlist-manager label,
.watchlist-name-form label {
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
}

.watchlist-manager small {
  grid-column: 2;
}

.watchlist-manager select,
.watchlist-name-form input {
  min-height: 2.2rem;
  padding: 0.45rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #050706;
  color: var(--text);
  font: 0.78rem var(--mono);
}

.watchlist-manager-actions,
.watchlist-name-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.watchlist-name-form {
  flex: 1 1 100%;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.watchlist-name-form.hidden {
  display: none;
}

.watchlist-name-form input {
  width: min(320px, 100%);
}

.ticker-combobox {
  position: relative;
  display: block;
}

.ticker-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.3rem);
  right: 0;
  left: 0;
  display: grid;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  background: #090d0b;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.ticker-suggestions.hidden {
  display: none;
}

.ticker-suggestion {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.ticker-suggestion:last-child {
  border-bottom: 0;
}

.ticker-suggestion:hover,
.ticker-suggestion.active {
  border-left-color: var(--accent);
  background: rgba(124, 245, 107, 0.08);
}

.ticker-suggestion strong {
  color: var(--accent);
  font: 700 0.8rem var(--mono);
}

.ticker-suggestion span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font: 0.78rem var(--font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-suggestion small,
.ticker-suggestion-empty {
  color: var(--text-muted);
  font: 0.75rem var(--mono);
}

.ticker-suggestion-empty {
  padding: 0.75rem;
}

.watchlist-page-header {
  align-items: center;
  gap: 1.5rem;
}

.watchlist-page-header .section-copy {
  max-width: 760px;
}

.watchlist-summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
  min-width: 150px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: #090c0b;
}

.watchlist-summary strong {
  color: var(--accent);
  font: 700 1.35rem var(--mono);
}

.watchlist-summary > span {
  color: var(--text-muted);
  font: 0.75rem var(--mono);
}

.watchlist-summary small {
  grid-column: 1 / -1;
}

.watchlist-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.watchlist-editor {
  position: sticky;
  top: 74px;
}

.watchlist-form {
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
}

.watchlist-form > label:not(.watchlist-enabled) {
  display: grid;
  gap: 0.3rem;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
}

.watchlist-form input[type="text"],
.watchlist-form textarea,
.watchlist-list-tools input[type="search"] {
  width: 100%;
  min-height: 2.2rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #050706;
  color: var(--text);
  font: 0.78rem var(--mono);
}

.watchlist-form textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.watchlist-form input[readonly] {
  color: var(--text-muted);
  background: #0b0e0d;
  cursor: not-allowed;
}

.watchlist-form input:focus,
.watchlist-form textarea:focus,
.watchlist-list-tools input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 245, 107, 0.08);
  outline: none;
}

.watchlist-enabled {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.watchlist-enabled input {
  margin-top: 0.18rem;
  accent-color: var(--accent);
}

.watchlist-form-actions,
.watchlist-list-tools,
.watchlist-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.watchlist-list-header {
  gap: 1rem;
}

.watchlist-list-tools {
  margin-left: auto;
  justify-content: flex-end;
}

.watchlist-list-tools input[type="search"] {
  width: min(280px, 36vw);
}

.watchlist-table-wrap {
  max-height: calc(100vh - 225px);
  min-height: 390px;
  overflow: auto;
}

.watchlist-notes-cell {
  min-width: 180px;
  max-width: 340px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.watchlist-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.42rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font: 600 0.75rem var(--mono);
}

.watchlist-state::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.watchlist-state.is-active {
  color: var(--accent);
}

.watchlist-state.is-paused {
  color: var(--text-muted);
}

.watchlist-row-actions {
  min-width: 295px;
}

.watchlist-row-actions .btn-danger {
  color: #ff9aa7;
  border-color: rgba(255, 99, 118, 0.48);
  background: rgba(255, 99, 118, 0.08);
}

@media (max-width: 1000px) {
  .watchlist-layout {
    grid-template-columns: 1fr;
  }

  .watchlist-editor {
    position: static;
  }

  .watchlist-table-wrap {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .watchlist-page-header,
  .watchlist-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .watchlist-summary {
    width: 100%;
  }

  .watchlist-list-tools {
    margin-left: 0;
    justify-content: stretch;
  }

  .watchlist-list-tools input[type="search"] {
    width: 100%;
  }

  .watchlist-manager {
    align-items: stretch;
  }

  .watchlist-manager > div:first-child {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .watchlist-manager small {
    grid-column: 1;
  }

  .watchlist-manager select,
  .watchlist-name-form input {
    width: 100%;
  }
}

.price {
  font-family: var(--mono);
  font-size: 1.8rem;
}

.news-modal-backdrop {
  background: rgba(1, 3, 2, 0.72);
  backdrop-filter: blur(6px);
}

.news-panel {
  width: min(720px, calc(100vw - 2.5rem));
  padding: 0;
  border-color: var(--border-strong);
  border-radius: 4px;
  background: #080b09;
}

.news-list-header {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: #0c100e;
}

.news-summary {
  margin: 0;
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #0b100d;
  box-shadow: none;
}

.news-timeline {
  padding: 0.9rem 1rem;
}

.timeline-item-clickable {
  border-radius: 3px;
}

.timeline-item-selected {
  background: rgba(124, 245, 107, 0.06);
  outline-color: rgba(124, 245, 107, 0.4);
}

.reliability {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .radar-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-sidebar {
    position: static;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 0.7rem 0.85rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    padding: 0;
    border: 0;
  }

  .app-nav::before {
    display: none;
  }

  .radar-panel .table-wrap {
    max-height: none;
  }
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.performance-metrics article {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  background: var(--panel);
}

.performance-metrics span,
.performance-example small { color: var(--muted); }
.performance-metrics strong { font: 700 1.4rem var(--mono); }
.performance-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.performance-example { display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--line); background: rgba(0, 0, 0, .16); }
.performance-example-head { display: flex; align-items: center; justify-content: space-between; }
.performance-example-head strong { color: var(--accent); font: 700 1.05rem var(--mono); }
.performance-example dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.performance-example dl div { padding-right: .5rem; }
.performance-example dt { color: var(--muted); font: .75rem var(--mono); }
.performance-example dd { margin: .15rem 0 0; font: 700 .95rem var(--mono); }
.performance-example a { color: var(--accent); }
.outcome { padding: .2rem .45rem; border: 1px solid var(--line); font: .72rem var(--mono); text-transform: uppercase; }
.outcome-win { color: var(--accent); }
.outcome-loss { color: var(--danger); }
.outcome-flat { color: var(--muted); }
.outcome-move_up, .outcome-move_down { color: var(--accent); }
.outcome-no_significant_move { color: var(--muted); }
.catalyst-type-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.catalyst-type-link:hover, .catalyst-type-link:focus-visible { text-decoration: underline; }
.catalyst-performance-panel + .performance-panel { margin-top: 1rem; }
.performance-metrics + .performance-panel,
.performance-panel + .performance-panel { margin-top: 1rem; }
.score-rule-heading { margin: 1.25rem 0 .65rem; }

@media (max-width: 1100px) {
  .performance-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .performance-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .performance-metrics, .performance-examples { grid-template-columns: 1fr; }
  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .app-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    min-width: 0;
    padding-right: 0.4rem;
    font-size: 0.75rem;
    white-space: normal;
  }

  .sidebar-status {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
  }

  .sidebar-status .pill {
    max-width: calc(100vw - 3rem);
  }

  .app-main {
    padding: 0 0.75rem 1.5rem;
  }

  .topbar {
    margin: 0 -0.75rem 0.75rem;
    padding: 0.7rem 0.75rem;
  }

  .topbar-actions {
    gap: 0.35rem;
  }

  .session-chip {
    display: none;
  }

  .compact-hero {
    align-items: stretch;
  }

  .hero-metrics {
    width: 100%;
  }

  .hero-metrics > div {
    min-width: 0;
    flex: 1;
  }

  .toolbar,
  .toolbar-left,
  .toolbar-right {
    align-items: stretch;
  }

  .quick-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-filters {
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .filter-toggle {
    align-self: flex-start;
  }

  .filter-sidebar {
    max-height: none;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  input[type="search"] {
    flex: 1;
    min-width: 0;
  }

  .landing-hero {
    min-height: 460px;
    margin: 0 -0.75rem 0.75rem;
    padding: 2rem 1rem 3.5rem;
    background-position: 62% center;
  }

  .landing-hero h2 {
    font-size: 3.2rem;
  }

  .landing-hero::after {
    right: 1rem;
    left: 1rem;
  }

  .feature-grid,
  .pricing-grid {
    border: 0;
    gap: 0.65rem;
  }

  .feature-card,
  .pricing-card {
    border: 1px solid var(--border);
    border-radius: 3px;
  }
}

/* APEX workspace refresh -------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1rem 0.85rem;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  border-bottom: 0;
  background: rgba(5, 7, 6, 0.985);
}

.brand {
  min-width: 0;
  padding: 0 0.45rem 1rem;
  border: 0;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.app-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  overflow: visible;
}

.app-nav::before {
  display: none;
}

.nav-group {
  display: grid;
  gap: 0.18rem;
}

.nav-group-secondary {
  margin-top: auto;
}

.nav-group-label {
  padding: 0 0.65rem 0.38rem;
  color: #718078;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.62rem 0.75rem 0.62rem 1.55rem;
  white-space: nowrap;
}

.nav-item::before {
  display: block;
}

.nav-item.active {
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-dropdown {
  width: 100%;
}

.nav-dropdown-toggle {
  display: flex;
  justify-content: space-between;
}

.nav-dropdown-menu {
  top: 0;
  left: calc(100% + 0.65rem);
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 850;
  min-height: 68px;
}

.topbar-actions {
  align-items: center;
  gap: 0.55rem;
}

.scanner-health,
.sync-status {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
  gap: 0.48rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #090c0b;
  font-family: var(--mono);
}

.scanner-health .pill {
  max-width: 360px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner-health[data-state="loading"] .status-dot {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(69, 207, 255, 0.7);
}

.scanner-health[data-state="error"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 99, 118, 0.7);
}

.sync-status {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sync-status time {
  color: var(--text);
  font-weight: 700;
}

.radar-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(520px, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 0.7rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(105deg, rgba(124, 245, 107, 0.055), transparent 44%),
    #080b09;
}

.command-intro {
  align-self: center;
  padding: 0.8rem 1rem;
}

.command-intro h2 {
  max-width: 620px;
  margin: 0.2rem 0 0;
  font-size: 0.94rem;
  font-weight: 550;
  line-height: 1.45;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid var(--border);
}

.command-metrics > div {
  display: grid;
  align-content: center;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border-right: 1px solid var(--border);
}

.command-metrics > div:last-child {
  border-right: 0;
}

.command-metrics dt {
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-metrics dd {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font: 700 0.79rem var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#radar-live-feed,
#radar-live-count {
  color: var(--accent);
}

#page-radar .risk-disclaimer {
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.7rem;
  border-left-width: 2px;
  color: var(--text-muted);
  font-size: 0.77rem;
}

#page-radar .quick-filter-bar {
  margin-bottom: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-bottom: 0;
  background: #090c0b;
}

#page-radar .toolbar {
  margin-bottom: 0.7rem;
  border-radius: 0;
}

.radar-panel {
  overflow: hidden;
}

.radar-panel .panel-header {
  border-bottom: 1px solid var(--border);
}

#radar-table,
#radar-table-smallcap {
  width: 100%;
  table-layout: fixed;
  min-width: 0;
}

#radar-table th:nth-child(1), #radar-table-smallcap th:nth-child(1) { width: 13%; }
#radar-table th:nth-child(2), #radar-table-smallcap th:nth-child(2) { width: 23%; }
#radar-table th:nth-child(3), #radar-table-smallcap th:nth-child(3) { width: 14%; }
#radar-table th:nth-child(4), #radar-table-smallcap th:nth-child(4) { width: 12%; }
#radar-table th:nth-child(5), #radar-table-smallcap th:nth-child(5) { width: 12%; }
#radar-table th:nth-child(6), #radar-table-smallcap th:nth-child(6) { width: 16%; }
#radar-table th:nth-child(7), #radar-table-smallcap th:nth-child(7) { width: 10%; }

#radar-table th,
#radar-table td,
#radar-table-smallcap th,
#radar-table-smallcap td {
  padding-right: 0.45rem;
  padding-left: 0.45rem;
  overflow-wrap: anywhere;
}

#radar-table .score-meter,
#radar-table-smallcap .score-meter {
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 0.25rem;
}

#radar-table td:nth-child(3),
#radar-table td:nth-child(4),
#radar-table td:nth-child(5),
#radar-table-smallcap td:nth-child(3),
#radar-table-smallcap td:nth-child(4),
#radar-table-smallcap td:nth-child(5) {
  min-width: 0;
  overflow: hidden;
}

.radar-row {
  position: relative;
  box-shadow: inset 2px 0 0 transparent;
}

.radar-row.priority-critical { box-shadow: inset 2px 0 0 var(--violet); }
.radar-row.priority-high { box-shadow: inset 2px 0 0 var(--accent); }
.radar-row.priority-watch { box-shadow: inset 2px 0 0 var(--blue); }
.radar-row.priority-low { box-shadow: inset 2px 0 0 #48534d; }

.radar-row:hover,
.radar-row.selected {
  background: rgba(124, 245, 107, 0.045);
}

.ticker-stack {
  display: grid;
  gap: 0.14rem;
  max-width: 100%;
}

.ticker-stack strong {
  font-size: 0.84rem;
}

.ticker-stack small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-open-button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.catalyst-kind {
  width: fit-content;
  max-width: 100%;
  padding: 0.16rem 0.38rem;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--blue);
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.radar-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-open-cue {
  color: var(--text-muted);
  font-family: var(--mono);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.radar-row:hover .row-open-cue,
.radar-open-button:focus-visible .row-open-cue {
  opacity: 1;
  transform: translateX(0);
}

.score-meter {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) 2.15rem;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  color: var(--score-watch);
}

.score-meter.score-high { color: var(--score-high); background: transparent; }
.score-meter.score-very-high { color: var(--score-very-high); background: transparent; border: 0; }
.score-meter.score-elevated { color: var(--score-elevated); background: transparent; border: 0; }
.score-meter.score-low { color: var(--score-low); }

.risk-meter.risk-low { color: #62c98b; }
.risk-meter.risk-medium { color: #d8b85b; }
.risk-meter.risk-high { color: #e58a54; }
.risk-meter.risk-very-high { color: #ef6464; }

.score-meter-track {
  display: block;
  width: 100%;
  min-width: 0;
  height: 3px;
  appearance: none;
  border: 0;
  background: transparent;
}

.score-meter-track::-webkit-progress-bar {
  background: #27302b;
}

.score-meter-track::-webkit-progress-value {
  background: currentColor;
}

.score-meter-track::-moz-progress-bar {
  background: currentColor;
}

.score-meter strong {
  color: currentColor;
  font: 700 0.75rem var(--mono);
  text-align: right;
}

@media (max-width: 900px) {
  #radar-table,
  #radar-table-smallcap {
    font-size: 0.75rem;
  }

  #radar-table th,
  #radar-table td,
  #radar-table-smallcap th,
  #radar-table-smallcap td {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  #radar-table .score-meter,
  #radar-table-smallcap .score-meter {
    display: block;
  }

  #radar-table .score-meter-track,
  #radar-table-smallcap .score-meter-track,
  #radar-table .ticker-stack small,
  #radar-table-smallcap .ticker-stack small,
  #radar-table .catalyst-kind,
  #radar-table-smallcap .catalyst-kind {
    display: none;
  }

  #radar-table .score-meter strong,
  #radar-table-smallcap .score-meter strong {
    display: block;
    text-align: left;
  }
}

#news-modal,
#news-modal-smallcap {
  align-items: stretch;
  justify-content: flex-end;
}

#news-modal .news-modal-backdrop,
#news-modal-smallcap .news-modal-backdrop {
  background: rgba(1, 3, 2, 0.5);
  backdrop-filter: blur(2px);
}

#news-modal .news-panel,
#news-modal-smallcap .news-panel {
  width: min(560px, calc(100vw - 2rem));
  max-height: 100dvh;
  height: 100dvh;
  margin: 0;
  overflow: auto;
  border-width: 0 0 0 1px;
  border-radius: 0;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.42);
  animation: inspector-in 160ms ease-out;
}

#news-modal .news-list-header,
#news-modal-smallcap .news-list-header {
  position: sticky;
  top: 0;
  z-index: 4;
}

@keyframes inspector-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1180px) {
  .radar-command-bar {
    grid-template-columns: 1fr;
  }

  .command-metrics {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .scanner-health .pill {
    max-width: 220px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0.7rem 0.85rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    padding: 0;
    border: 0;
  }

  .app-nav {
    display: flex;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  .nav-group {
    display: flex;
    gap: 0.15rem;
  }

  .nav-group-label,
  .nav-group-secondary {
    display: none;
  }

  .nav-item {
    width: auto;
    padding: 0.55rem 0.65rem;
  }

  .nav-item::before {
    display: none;
  }

  .nav-dropdown-menu {
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: flex;
    flex-wrap: nowrap;
  }

  .app-nav {
    order: initial;
    width: auto;
    flex-basis: auto;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-group:first-child .nav-item[data-page="intro"],
  .nav-group:first-child .nav-item[data-page="watchlist"],
  .nav-group:first-child .nav-item[data-page="small-caps"] {
    display: none;
  }

  .topbar {
    position: static;
  }

  .scanner-health {
    max-width: 46vw;
  }

  .scanner-health .pill {
    max-width: 34vw;
  }

  .sync-status {
    display: none;
  }

  .radar-command-bar {
    margin-inline: -0.15rem;
  }

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

  .command-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .command-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  #news-modal .news-panel,
  #news-modal-smallcap .news-panel {
    width: 100vw;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #news-modal .news-panel,
  #news-modal-smallcap .news-panel {
    animation: none;
  }
}

/* Horizontal application navigation */
.app-shell {
  display: block;
}

.sidebar {
  position: sticky;
  z-index: 900;
  top: 0;
  height: auto;
  min-height: 58px;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.25rem;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 1rem 0 0;
  border: 0;
  border-right: 1px solid var(--border);
}

.app-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  overflow: visible;
}

.app-nav::before {
  display: none;
}

.nav-item {
  width: auto;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
}

.nav-item::before {
  display: none;
}

.nav-item.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.sidebar-status {
  width: auto;
  max-width: 240px;
  margin: 0 0 0 auto;
  padding: 0 0 0 0.8rem;
  border: 0;
  border-left: 1px solid var(--border);
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-chevron {
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: transform 120ms ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 950;
  top: calc(100% + 0.55rem);
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 0.35rem;
  border: 1px solid var(--border-strong);
  background: #090d0b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-dropdown-menu.hidden {
  display: none;
}

.nav-dropdown-option {
  padding: 0.7rem 0.8rem;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: 600 0.78rem var(--mono);
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-option:hover,
.nav-dropdown-option:focus-visible,
.nav-dropdown-option.active {
  border-left-color: var(--accent);
  background: rgba(124, 245, 107, 0.08);
  color: var(--text);
}

@media (max-width: 1100px) {
  .sidebar-status {
    display: none;
  }

  .brand small {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: flex;
    position: sticky;
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
  }

  .brand {
    border-right: 0;
  }

  .app-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0.15rem;
  }

  .nav-item {
    width: auto;
    white-space: nowrap;
  }

  .sidebar-status {
    max-width: 45vw;
  }
}

/* Final navigation cascade: keep the workspace rail authoritative. */
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1rem 0.85rem;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  border-bottom: 0;
}

.brand {
  min-width: 0;
  padding: 0 0.45rem 1rem;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.app-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  overflow: visible;
}

.nav-group {
  display: grid;
  gap: 0.18rem;
}

.nav-group-secondary { margin-top: auto; }
.nav-group-label { display: block; }

.nav-item {
  width: 100%;
  padding: 0.62rem 0.75rem 0.62rem 1.55rem;
}

.nav-item::before { display: block; }
.nav-item.active { box-shadow: inset 2px 0 0 var(--accent); }
.nav-dropdown { width: 100%; }
.nav-dropdown-toggle { display: flex; }

.nav-dropdown-menu {
  top: 0;
  left: calc(100% + 0.65rem);
}

@media (max-width: 1100px) {
  .app-shell { display: block; }

  .sidebar {
    position: relative;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 0.7rem 0.85rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand { padding: 0; border: 0; }

  .app-nav {
    display: flex;
    width: auto;
    flex-basis: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  .nav-group { display: flex; gap: 0.15rem; }
  .nav-group-label,
  .nav-group-secondary { display: none; }
  .nav-item { width: auto; padding: 0.55rem 0.65rem; }
  .nav-item::before { display: none; }
  .nav-dropdown-menu { top: calc(100% + 0.5rem); right: 0; left: auto; }
}

@media (max-width: 760px) {
  .sidebar {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    padding: 0.6rem 0.75rem;
    overflow: hidden;
  }

  .app-nav {
    order: initial;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 112px);
    flex-basis: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-group-secondary { display: flex; margin-top: 0; }

  .nav-group .nav-item { display: block; }

  .radar-panel .table-wrap {
    position: relative;
    scrollbar-color: var(--accent) #121816;
  }

  .radar-panel .empty-row td {
    position: sticky;
    left: 0;
    max-width: calc(100vw - 2.5rem);
    text-align: left;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .app-nav {
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-group-secondary {
    display: flex;
    margin-top: 0;
  }
}

/* Radar feed menu stays inside the navigation rail and opens downward. */
.nav-dropdown-menu {
  position: static;
  width: 100%;
  margin-top: 0.3rem;
}

/* Home workspace --------------------------------------------------------- */
.home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.55rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.home-header h2 {
  margin: 0.22rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.home-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0.42rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.home-login-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 189, 89, 0.45);
  border-left: 3px solid var(--warn);
  background: rgba(255, 189, 89, 0.055);
}

.home-login-notice.hidden {
  display: none;
}

.home-login-notice > div {
  display: grid;
  gap: 0.16rem;
}

.home-login-notice strong {
  font-size: 0.82rem;
}

.home-login-notice span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0.8rem 0;
  border: 1px solid var(--border);
  background: var(--border);
}

.home-kpi-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.8rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  background: #080b09;
}

.home-kpi-grid span {
  align-self: center;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-kpi-grid strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--text);
  font: 700 1.45rem var(--mono);
}

.home-kpi-grid small {
  color: #6f7d75;
  font: 500 0.75rem var(--mono);
}

.home-status-value[data-state="online"] { color: var(--accent); }
.home-status-value[data-state="starting"] { color: var(--warn); }
.home-status-value[data-state="offline"] { color: var(--danger); }

.home-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.85fr);
  gap: 0.8rem;
  align-items: start;
}

.home-priority-panel,
.home-health-panel,
.home-watchlist-panel {
  overflow: hidden;
}

.home-text-action {
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 700 0.75rem var(--mono);
  cursor: pointer;
}

.home-text-action:hover,
.home-text-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.home-priority-list {
  min-height: 360px;
}

.home-priority-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 112px 128px minmax(220px, 1fr) 76px 18px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #18201c;
  box-shadow: inset 2px 0 0 #48534d;
  background: #080b09;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.home-priority-item.priority-critical { box-shadow: inset 2px 0 0 var(--violet); }
.home-priority-item.priority-high { box-shadow: inset 2px 0 0 var(--accent); }
.home-priority-item.priority-watch { box-shadow: inset 2px 0 0 var(--blue); }

.home-priority-item:hover {
  background: rgba(124, 245, 107, 0.045);
}

.home-priority-item:hover .row-open-cue,
.home-priority-item:focus-visible .row-open-cue {
  opacity: 1;
  transform: translateX(0);
}

.home-priority-time {
  color: var(--text-muted);
  font: 500 0.75rem var(--mono);
}

.home-priority-ticker,
.home-priority-headline,
.home-priority-score {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.home-priority-ticker strong {
  color: var(--accent);
  font: 700 0.9rem var(--mono);
}

.home-priority-ticker small,
.home-priority-headline small,
.home-priority-score small {
  overflow: hidden;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-priority-headline strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-priority-score {
  text-align: right;
}

.home-priority-score strong {
  color: var(--accent);
  font: 700 1rem var(--mono);
}

.home-empty {
  margin: 0;
  padding: 1.25rem;
  color: var(--text-muted);
  font: 500 0.78rem var(--mono);
}

.home-side-stack {
  display: grid;
  gap: 0.8rem;
}

.home-health-list {
  margin: 0;
}

.home-health-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #18201c;
}

.home-health-list > div:last-child {
  border-bottom: 0;
}

.home-health-list dt {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.home-health-list dd {
  margin: 0;
  font: 700 0.75rem var(--mono);
  text-align: right;
}

.home-watchlist-preview {
  display: grid;
}

.home-watchlist-preview button {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-bottom: 1px solid #18201c;
  background: #080b09;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.home-watchlist-preview button:last-child {
  border-bottom: 0;
}

.home-watchlist-preview button:hover {
  background: rgba(124, 245, 107, 0.045);
}

.home-watchlist-preview strong {
  color: var(--accent);
  font: 700 0.8rem var(--mono);
}

.home-watchlist-preview span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-intro > .risk-disclaimer {
  margin-top: 0.8rem;
  padding: 0.48rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.77rem;
}

@media (max-width: 1180px) {
  .home-workspace-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .home-priority-item {
    grid-template-columns: 104px 118px minmax(180px, 1fr) 72px 16px;
  }
}

@media (max-width: 660px) {
  .home-header-actions,
  .home-login-notice {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .home-header-actions .btn {
    flex: 1;
  }

  .home-kpi-grid,
  .home-side-stack {
    grid-template-columns: 1fr;
  }

  .home-kpi-grid article {
    min-height: 72px;
  }

  .home-priority-item {
    grid-template-columns: 72px minmax(0, 1fr) 58px 12px;
    gap: 0.55rem;
  }

  .home-priority-time {
    display: none;
  }

  .home-priority-headline small {
    display: none;
  }
}

/* Introductory product home ---------------------------------------------- */
.marketing-home {
  width: min(1180px, 100%);
  margin: 0 auto;
}

body[data-page="intro"] .scanner-health,
body[data-page="intro"] .sync-status {
  display: none;
}

.marketing-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2.4rem;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 2rem;
  text-align: center;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80px;
  left: 50%;
  width: min(900px, 90vw);
  height: 520px;
  background: radial-gradient(circle, rgba(124, 245, 107, 0.115), transparent 67%);
  transform: translateX(-50%);
  pointer-events: none;
}

.marketing-hero-copy {
  display: grid;
  justify-items: center;
  max-width: 900px;
}

.marketing-badge {
  margin: 0 0 1rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(124, 245, 107, 0.32);
  border-radius: 999px;
  background: rgba(124, 245, 107, 0.055);
  color: var(--accent);
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.marketing-hero h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 4.8rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.marketing-hero h2 span {
  color: var(--accent);
}

.marketing-hero-copy > p:not(.marketing-badge) {
  max-width: 710px;
  margin: 1.3rem 0 0;
  color: #a5b1aa;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.55rem;
}

.marketing-actions .btn {
  min-height: 2.8rem;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
}

.marketing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.15rem;
  margin-top: 1.3rem;
  color: #6f7d75;
  font: 600 0.75rem var(--mono);
}

.marketing-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.marketing-trust span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(124, 245, 107, 0.55);
}

.product-showcase {
  position: relative;
  width: 100%;
  max-width: 1060px;
  min-width: 0;
  padding: 1px;
  perspective: 1400px;
}

.showcase-glow {
  position: absolute;
  z-index: -1;
  inset: 10% 7% -8%;
  background: rgba(124, 245, 107, 0.13);
  filter: blur(70px);
}

.product-window {
  overflow: hidden;
  border: 1px solid #34423a;
  border-radius: 8px;
  background: #070a08;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  transform: rotateX(1.2deg);
}

.product-window-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #0b100d;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.05em;
}

.product-window-brand,
.product-window-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-window-brand i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  background: var(--accent);
  color: #071006;
  font-style: normal;
}

.product-window-live {
  color: var(--text-muted);
}

.product-window-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(124, 245, 107, 0.75);
}

.product-window-body {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-width: 0;
  min-height: 420px;
  text-align: left;
}

.product-window-nav {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 0.7rem;
  border-right: 1px solid var(--border);
  background: #060907;
}

.product-window-nav span {
  padding: 0.52rem 0.6rem;
  color: #59665f;
  font: 650 0.75rem var(--mono);
}

.product-window-nav .active {
  border-left: 2px solid var(--accent);
  background: rgba(124, 245, 107, 0.065);
  color: var(--text);
}

.product-window-body > :not(.product-window-nav) {
  grid-column: 2;
}

.product-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.product-preview-head > div {
  display: grid;
  gap: 0.22rem;
}

.product-preview-head small,
.product-preview-head > span {
  color: #718078;
  font: 650 0.75rem var(--mono);
  letter-spacing: 0.06em;
}

.product-preview-head strong {
  font-size: 0.9rem;
}

.product-preview-head > span {
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
}

.product-preview-table {
  min-width: 0;
  padding: 0 1rem 1rem;
}

.preview-table-head,
.preview-row {
  display: grid;
  grid-template-columns: 70px 82px minmax(240px, 1fr) 104px;
  gap: 0.8rem;
  align-items: center;
}

.preview-table-head {
  padding: 0.7rem 0.65rem;
  color: #59665f;
  font: 650 0.75rem var(--mono);
}

.preview-row {
  min-height: 57px;
  padding: 0.62rem 0.65rem;
  border-top: 1px solid #18201c;
  color: #77847d;
  font: 500 0.75rem var(--mono);
}

.preview-row.is-primary {
  box-shadow: inset 2px 0 0 var(--accent);
  background: rgba(124, 245, 107, 0.045);
}

.preview-row strong,
.preview-row b {
  color: var(--accent);
}

.preview-row > span:nth-child(3) {
  overflow: hidden;
  color: #cbd3ce;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-row i {
  display: inline-block;
  min-width: 42px;
  margin-right: 0.45rem;
  padding: 0.14rem 0.28rem;
  border: 1px solid #34423a;
  color: var(--blue);
  font-style: normal;
  text-align: center;
}

.preview-row b {
  font-size: 0.86rem;
  text-align: right;
}

.marketing-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 6rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.marketing-value-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.15rem;
  background: #080b09;
  text-align: left;
}

.marketing-value-strip article > span {
  color: var(--accent);
  font: 700 0.75rem var(--mono);
}

.marketing-value-strip h3,
.marketing-capabilities h3 {
  margin: 0;
  font-size: 0.92rem;
}

.marketing-value-strip p,
.marketing-capabilities p {
  margin: 0.38rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.marketing-feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: 3.5rem 0 6rem;
}

.marketing-feature-copy h2,
.marketing-section-heading h2,
.marketing-final-cta h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.marketing-feature-copy > p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.home-inline-link {
  margin-top: 1rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: 700 0.78rem var(--mono);
  cursor: pointer;
}

.home-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.marketing-workflow {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  list-style: none;
  background: #080b09;
}

.marketing-workflow li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.marketing-workflow li:last-child {
  border-bottom: 0;
}

.marketing-workflow li > span {
  color: var(--accent);
  font: 700 0.75rem var(--mono);
}

.marketing-workflow strong {
  font-size: 0.86rem;
}

.marketing-workflow p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.marketing-feature-grid {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border);
}

.marketing-section-heading {
  max-width: 670px;
  margin-bottom: 2rem;
}

.marketing-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.marketing-capabilities article {
  min-height: 220px;
  padding: 1.2rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(124, 245, 107, 0.035), transparent 45%),
    #080b09;
}

.capability-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(124, 245, 107, 0.38);
  color: var(--accent);
  font: 700 0.75rem var(--mono);
}

.marketing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #34423a;
  border-left: 3px solid var(--accent);
  background:
    radial-gradient(circle at 90% 30%, rgba(124, 245, 107, 0.11), transparent 40%),
    #080b09;
}

.marketing-final-cta > div:first-child {
  max-width: 720px;
}

.marketing-final-cta .marketing-actions {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 900px) {
  .marketing-hero {
    padding-top: 3.5rem;
  }

  .product-window-body {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .preview-table-head,
  .preview-row {
    grid-template-columns: 58px 68px minmax(190px, 1fr) 90px;
  }

  .marketing-value-strip,
  .marketing-capabilities {
    grid-template-columns: 1fr;
  }

  .marketing-value-strip {
    margin-bottom: 3.5rem;
  }

  .marketing-feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .marketing-capabilities article {
    min-height: 0;
  }

  .capability-icon {
    margin-bottom: 1.2rem;
  }

  .marketing-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .marketing-hero {
    gap: 1.8rem;
    padding-top: 2.6rem;
  }

  .marketing-hero h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .marketing-actions,
  .marketing-actions .btn {
    width: 100%;
  }

  .product-showcase {
    width: 100%;
  }

  .product-window-body {
    display: block;
    min-height: 330px;
  }

  .product-window-nav {
    display: flex;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .product-preview-head {
    padding: 0.8rem;
  }

  .product-preview-head > span,
  .preview-table-head {
    display: none;
  }

  .product-preview-table {
    padding: 0 0.65rem 0.65rem;
  }

  .preview-row {
    grid-template-columns: 52px 56px minmax(125px, 1fr) 48px;
    gap: 0.45rem;
    padding-inline: 0.45rem;
  }

  .preview-row i {
    display: none;
  }

  .marketing-value-strip {
    margin-top: 1.5rem;
  }

  .marketing-feature-split,
  .marketing-feature-grid {
    padding-block: 3.5rem;
  }

  .marketing-final-cta .marketing-actions {
    width: 100%;
  }
}

/* Trading News editorial layout ----------------------------------------- */
.trading-news-page {
  max-width: 1500px;
  margin: 0 auto;
}

.trading-news-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background:
    radial-gradient(circle at 82% 8%, rgba(69, 207, 255, 0.13), transparent 29%),
    linear-gradient(115deg, rgba(124, 245, 107, 0.07), transparent 48%),
    #080b09;
}

.trading-news-header::after {
  position: absolute;
  right: -45px;
  bottom: -75px;
  width: 230px;
  height: 150px;
  border: 1px solid rgba(124, 245, 107, 0.1);
  content: "";
  transform: rotate(-10deg);
  pointer-events: none;
}

.trading-news-header > div {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.trading-news-header .eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trading-news-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.trading-news-header .section-copy {
  max-width: 720px;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.news-refresh-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.news-refresh-button > span:first-child {
  font-size: 1rem;
}

.trading-news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--border);
  background: #080b09;
}

.news-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.news-filter-tab {
  min-height: 2.1rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  font: 650 0.75rem var(--mono);
  cursor: pointer;
}

.news-filter-tab:hover,
.news-filter-tab:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
}

.news-filter-tab.active {
  border-color: rgba(124, 245, 107, 0.35);
  background: rgba(124, 245, 107, 0.09);
  color: var(--accent);
}

.trading-news-count {
  padding-right: 0.35rem;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
}

.trading-news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.trading-news-page .market-news-card {
  min-width: 0;
  min-height: 410px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: #090c0b;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}

.trading-news-page .market-news-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.trading-news-page .market-news-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  min-height: 440px;
}

.market-news-media-link {
  display: block;
  min-width: 0;
  color: inherit;
}

.market-news-visual {
  position: relative;
  min-height: 200px;
  height: 100%;
  overflow: hidden;
  background: #101612;
}

.market-news-card-featured .market-news-media-link,
.market-news-card-featured > .market-news-visual {
  min-height: 100%;
}

.market-news-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.market-news-fallback-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.72) contrast(1.08);
  transition: transform 350ms ease, filter 200ms ease;
}

.market-news-visual::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 8, 5, 0.08), rgba(3, 8, 5, 0.34));
  content: "";
  pointer-events: none;
}

.market-news-card:hover .market-news-image,
.market-news-card:hover .market-news-fallback-image {
  transform: scale(1.025);
}

.market-news-card:hover .market-news-fallback-image {
  filter: saturate(0.92) brightness(0.78) contrast(1.06);
}

.market-news-visual.has-image::after {
  position: absolute;
  z-index: 2;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(3, 6, 4, 0.72));
  content: "";
  pointer-events: none;
}

.market-news-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124, 245, 107, 0.13), transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.025) 39px 40px),
    #0b120e;
}

.news-visual-macro .market-news-fallback {
  background:
    radial-gradient(circle at 70% 28%, rgba(69, 207, 255, 0.22), transparent 24%),
    linear-gradient(145deg, rgba(69, 207, 255, 0.1), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.025) 35px 36px),
    #0a1013;
}

.market-news-fallback span {
  color: rgba(223, 255, 229, 0.12);
  font: 800 clamp(3.8rem, 9vw, 7rem) var(--mono);
  letter-spacing: -0.08em;
}

.market-news-fallback i {
  position: absolute;
  right: -25%;
  bottom: 18%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 245, 107, 0.55), transparent);
  transform: rotate(-11deg);
  box-shadow: 70px -34px 0 rgba(124, 245, 107, 0.16);
}

.market-news-category,
.market-news-featured {
  position: absolute;
  z-index: 3;
  top: 0.7rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 6, 0.83);
  color: #e7eee9;
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.market-news-category {
  left: 0.7rem;
}

.market-news-featured {
  right: 0.7rem;
  border-color: rgba(124, 245, 107, 0.4);
  color: var(--accent);
}

.market-news-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.market-news-card-featured .market-news-content {
  justify-content: center;
  padding: clamp(1.15rem, 2.2vw, 2rem);
}

.trading-news-page .market-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font: 600 0.75rem var(--mono);
}

.trading-news-page .market-news-meta span:first-child {
  overflow: hidden;
  color: var(--blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trading-news-page .market-news-meta span:last-child {
  flex: 0 0 auto;
}

.trading-news-page .market-news-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.trading-news-page .market-news-card-featured h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.16;
}

.trading-news-page .market-news-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.trading-news-page .market-news-card h3 a:hover {
  color: var(--accent);
}

.trading-news-page .market-news-card p {
  display: -webkit-box;
  margin: 0.72rem 0 1rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.market-news-card-featured .market-news-content p {
  -webkit-line-clamp: 5;
}

.market-news-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.market-news-footer .ticker-strip {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.market-news-read {
  flex: 0 0 auto;
  color: var(--accent) !important;
  font: 700 0.75rem var(--mono);
  text-decoration: none;
  white-space: nowrap;
}

.market-news-read span {
  display: inline-block;
  transition: transform 150ms ease;
}

.market-news-read:hover span {
  transform: translateX(3px);
}

.trading-news-page .market-news-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
}

@media (max-width: 1100px) {
  .trading-news-page .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trading-news-page .market-news-card-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .trading-news-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }

  .news-refresh-button {
    align-self: flex-start;
  }

  .trading-news-page .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trading-news-page .market-news-card-featured {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .market-news-card-featured .market-news-media-link,
  .market-news-card-featured > .market-news-visual {
    min-height: 220px;
  }

  .trading-news-page .market-news-card,
  .trading-news-page .market-news-card-featured {
    min-height: 0;
  }

  .trading-news-page .market-news-card-featured h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 460px) {
  .trading-news-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .news-filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-filter-tab {
    padding-inline: 0.45rem;
  }

  .trading-news-count {
    padding: 0 0.35rem 0.2rem;
  }
}

/* Pricing landing ------------------------------------------------------- */
.pricing-page {
  max-width: 1500px;
  margin: 0 auto;
}

.pricing-hero {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(3.8rem, 7vw, 7rem) clamp(1.2rem, 5vw, 5rem) clamp(3.2rem, 6vw, 5.5rem);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 115%, rgba(124, 245, 107, 0.18), transparent 36%),
    radial-gradient(circle at 87% 0%, rgba(69, 207, 255, 0.1), transparent 28%),
    linear-gradient(120deg, rgba(124, 245, 107, 0.035), transparent 44%),
    #070a08;
  text-align: center;
}

.pricing-hero::before,
.pricing-hero::after {
  position: absolute;
  border: 1px solid rgba(124, 245, 107, 0.08);
  content: "";
  pointer-events: none;
  transform: rotate(-12deg);
}

.pricing-hero::before {
  top: -160px;
  left: -80px;
  width: 430px;
  height: 330px;
}

.pricing-hero::after {
  right: -100px;
  bottom: -185px;
  width: 520px;
  height: 350px;
}

.pricing-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(124, 245, 107, 0.3);
  border-radius: 999px;
  background: rgba(124, 245, 107, 0.07);
  color: var(--accent);
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pricing-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 990px;
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.pricing-hero > p:not(.pricing-kicker) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.25vw, 1.02rem);
  line-height: 1.65;
}

.pricing-hero-assurances {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.7rem 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  color: #b6c1ba;
  font: 600 0.75rem var(--mono);
}

.pricing-hero-assurances > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.pricing-hero-assurances i {
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(124, 245, 107, 0.12);
  color: var(--accent);
  font-style: normal;
}

.pricing-options,
.pricing-comparison,
.pricing-faq {
  padding-top: clamp(3.4rem, 6vw, 5.8rem);
}

.pricing-options-heading,
.pricing-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.pricing-options-heading h2,
.pricing-section-heading h2 {
  max-width: 760px;
  margin: 0.25rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.pricing-cycle {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  background: #090d0b;
  color: var(--text-muted);
  font: 650 0.75rem var(--mono);
  white-space: nowrap;
}

.pricing-cycle > span:first-child {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124, 245, 107, 0.65);
}

.pricing-page .pricing-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  overflow: visible;
  border: 0;
  background: transparent;
}

.pricing-page .pricing-plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 590px;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 38%),
    #090c0b;
  transition: border-color 160ms ease, transform 160ms ease;
}

.pricing-page .pricing-plan-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.pricing-page .pricing-plan-card.featured {
  border-color: rgba(124, 245, 107, 0.62);
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 245, 107, 0.12), transparent 31%),
    linear-gradient(145deg, rgba(124, 245, 107, 0.055), transparent 46%),
    #0a0f0c;
  box-shadow: inset 0 3px 0 var(--accent), 0 18px 55px rgba(0, 0, 0, 0.24);
}

.pricing-popular {
  position: absolute;
  top: 0;
  right: 1.1rem;
  padding: 0.36rem 0.58rem;
  background: var(--accent);
  color: #031006;
  font: 800 0.75rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  min-height: 100px;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.pricing-plan-index {
  color: #65736b;
  font: 700 0.75rem var(--mono);
}

.pricing-page .pricing-card h3 {
  margin: -0.12rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.pricing-card-top p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.pricing-price-block {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(105deg, rgba(124, 245, 107, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.018);
}

.pricing-price-block::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 245, 107, 0.45), transparent);
}

.pricing-price-block-featured {
  border-color: rgba(124, 245, 107, 0.34);
  background:
    radial-gradient(circle at 80% 50%, rgba(124, 245, 107, 0.15), transparent 44%),
    rgba(124, 245, 107, 0.055);
  box-shadow: inset 3px 0 0 var(--accent);
}

.pricing-page .pricing-plan-card .price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
}

.pricing-page .pricing-plan-card .price .pricing-price-value {
  display: inline-flex;
  align-items: flex-start;
  color: var(--accent);
  font-weight: 800;
  line-height: 0.82;
  text-shadow: 0 0 28px rgba(124, 245, 107, 0.16);
}

.pricing-page .pricing-plan-card .price .pricing-price-amount {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(3.8rem, 5.3vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.09em;
}

.pricing-page .pricing-plan-card .price .pricing-price-currency {
  display: inline-block;
  margin: 0.22rem 0 0 0.35rem;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pricing-page .pricing-plan-card .pricing-price-period {
  padding-left: 0.7rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #d4ddd7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.pricing-price-block-custom {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.045), transparent 68%);
}

.pricing-page .pricing-plan-card .pricing-custom-price {
  min-height: auto;
  align-items: center;
  color: var(--text);
  font-size: clamp(2.35rem, 3.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.pricing-renewal {
  min-height: 2rem;
  margin: 0.3rem 0 1rem;
  color: var(--text-muted) !important;
  font: 0.75rem var(--mono) !important;
}

.pricing-cta {
  width: 100%;
  min-height: 2.8rem;
  justify-content: center;
}

.pricing-feature-block {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.pricing-feature-block > p {
  margin: 0 0 0.75rem;
  color: var(--text) !important;
  font: 700 0.75rem var(--mono) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-feature-block ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-feature-block li {
  position: relative;
  padding-left: 1.25rem;
  color: #bac4be;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pricing-feature-block li::before {
  position: absolute;
  top: 0.02rem;
  left: 0;
  color: var(--accent);
  content: "✓";
  font: 700 0.8rem var(--mono);
}

.pricing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
  border: 1px solid var(--border);
  background: #080b09;
}

.pricing-proof article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-right: 1px solid var(--border);
}

.pricing-proof article:last-child {
  border-right: 0;
}

.pricing-proof strong {
  color: var(--accent);
  font: 700 0.78rem var(--mono);
}

.pricing-proof span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #080b09;
}

.pricing-table-wrap table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.pricing-table-wrap th,
.pricing-table-wrap td {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing-table-wrap tr:last-child th,
.pricing-table-wrap tr:last-child td {
  border-bottom: 0;
}

.pricing-table-wrap th:last-child,
.pricing-table-wrap td:last-child {
  border-right: 0;
}

.pricing-table-wrap thead th {
  background: #0c110e;
  color: var(--text);
  font: 700 0.78rem var(--mono);
}

.pricing-table-wrap th:first-child {
  width: 40%;
  text-align: left;
}

.pricing-table-wrap tbody th {
  color: #bbc5bf;
  font-weight: 550;
}

.pricing-table-wrap td {
  color: var(--text-muted);
  font: 650 0.78rem var(--mono);
}

.pricing-table-wrap td:nth-child(4),
.pricing-table-wrap thead th:nth-child(4) {
  background: rgba(124, 245, 107, 0.045);
}

.pricing-cell-yes {
  color: var(--accent) !important;
}

.pricing-cell-no {
  color: #536159 !important;
}

.pricing-faq {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: 4rem;
}

.pricing-faq .pricing-section-heading {
  display: block;
  align-self: start;
}

.pricing-faq-list {
  border-top: 1px solid var(--border);
}

.pricing-faq-list details {
  border-bottom: 1px solid var(--border);
}

.pricing-faq-list summary {
  position: relative;
  padding: 1.1rem 2.2rem 1.1rem 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.pricing-faq-list summary::-webkit-details-marker {
  display: none;
}

.pricing-faq-list summary::after {
  position: absolute;
  top: 1rem;
  right: 0.25rem;
  color: var(--accent);
  content: "+";
  font: 500 1.2rem var(--mono);
}

.pricing-faq-list details[open] summary::after {
  content: "−";
}

.pricing-faq-list details p {
  max-width: 720px;
  margin: -0.25rem 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.pricing-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

.pricing-security-note > span {
  color: var(--accent);
  font-size: 1.2rem;
}

.pricing-security-note .payment-security-note {
  margin: 0;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .pricing-page .pricing-grid-premium {
    grid-template-columns: 1fr;
  }

  .pricing-page .pricing-plan-card {
    min-height: 0;
  }

  .pricing-proof {
    grid-template-columns: 1fr;
  }

  .pricing-proof article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .pricing-proof article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .pricing-hero {
    justify-items: start;
    text-align: left;
  }

  .pricing-hero > *,
  .pricing-options-heading > *,
  .pricing-section-heading > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pricing-hero h2 {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
    overflow-wrap: break-word;
  }

  .pricing-hero-assurances {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-options-heading,
  .pricing-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-faq {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
