:root {
  color-scheme: dark;
  --bg: #161617;
  --bg-elevated: #1b1c20;
  --bg-card: #1d1d21;
  --bg-card-strong: #1d1d21;
  --bg-input: #33343b;
  --border: #303138;
  --border-strong: #494c56;
  --text-main: #f4f4f6;
  --text-soft: rgba(244, 244, 246, 0.75);
  --text-faint: rgba(244, 244, 246, 0.46);
  --pink: #ff2f9b;
  --pink-strong: #ff4bb7;
  --green: #43eba0;
  --green-soft: rgba(67, 235, 160, 0.18);
  --amber: #ffbf61;
  --red: #ff6767;
  --shadow: none;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  min-height: 92px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.topbar-brand,
.topbar-nav,
.topbar-actions {
  display: flex;
  align-items: center;
}

.topbar-brand {
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.98), rgba(255,255,255,0.3) 26%, transparent 27%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.62));
}

.topbar-nav {
  justify-content: center;
  gap: 26px;
}

.topbar-nav a {
  color: var(--text-main);
  text-decoration: none;
  padding: 32px 10px 30px;
  border-bottom: 4px solid transparent;
  font-size: 0.98rem;
}

.topbar-nav a.active {
  border-bottom-color: var(--pink);
}

.topbar-actions {
  gap: 10px;
}

.wallet-pill,
.menu-pill {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid #4c4f58;
  background: #5b5e67;
  color: var(--text-main);
  padding: 0 18px;
  font-weight: 700;
}

.menu-pill {
  min-width: 68px;
  background: transparent;
}

.page-shell {
  width: min(1500px, calc(100% - 80px));
  margin: 0 auto;
  padding: 30px 0 80px;
}

.page-header {
  margin-bottom: 28px;
}

.header-title-block {
  padding: 8px 0 24px;
}

.back-link,
.muted {
  color: var(--text-soft);
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  padding-right: 18px;
}

.back-link::after {
  content: "›";
  position: absolute;
  right: 0;
}

.header-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.section-tag,
.meta-label,
.field-label,
.headline-label {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-faint);
}

h1,
h2,
h3,
h4,
strong {
  font-family: "Manrope", sans-serif;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.05;
}

h2,
h3,
h4,
p {
  margin: 0;
}

.header-pills,
.tabs-header,
.inline-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.tab-button,
.mini-tab,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
}

.pill {
  padding: 12px 18px;
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.pill-outline {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
}

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

.meta-card,
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.meta-card {
  padding: 16px 18px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-card strong {
  font-size: 1.15rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.decision-column,
.split-cards,
.tab-panels,
.tab-grid {
  display: grid;
  gap: 20px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.spotlight-card {
  padding: 24px;
  background: var(--bg-card-strong);
}

.card-head,
.subcard-head,
.range-head,
.info-row,
.breakdown-row,
.risk-row,
.oracle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-head {
  margin-bottom: 18px;
}

.live-dot {
  color: var(--pink);
  position: relative;
  padding-left: 14px;
}

.live-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.headline-band {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
}

.headline-band h2 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.02;
}

.headline-copy {
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 54ch;
}

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

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

.primary-metrics {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.metric-tile,
.builder-subcard,
.text-input,
.select-input,
.flow-step,
.logic-block,
.oracle-row,
.mechanics-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.metric-tile {
  min-height: 110px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.metric-tile span {
  color: var(--text-soft);
}

.metric-tile strong {
  font-size: 1.55rem;
}

.metric-hero {
  background: rgba(255, 255, 255, 0.04);
}

.breakdown-list,
.risk-list,
.info-list,
.oracle-list,
.protection-steps,
.flow-steps,
.protection-logic {
  display: grid;
  gap: 12px;
}

.breakdown-row,
.risk-row,
.info-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.breakdown-row:last-child,
.risk-row:last-child,
.info-row:last-child {
  border-bottom: 0;
}

.positive strong,
.chart-line-green,
.chart-marker-dot,
.status-chip,
.accent-node,
.logic-block strong {
  color: var(--text-main);
}

.negative strong {
  color: var(--amber);
}

.total strong,
.metric-hero strong,
.primary-button,
.chart-line-pink {
  color: var(--text-main);
}

.risk-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.risk-value em {
  font-style: normal;
  color: var(--amber);
}

.status-chip {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.status-chip.subtle {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.protection-steps {
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

.builder-column {
  min-width: 0;
}

.builder-sticky {
  position: sticky;
  top: 24px;
}

.builder-card {
  padding: 24px;
  background: var(--bg-card-strong);
}

.builder-section {
  margin-bottom: 18px;
}

.field-group {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 12px;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  color: var(--text-main);
  background-color: var(--bg-input);
  border-color: #43454f;
}

.text-input {
  font-size: 1.45rem;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.select-input {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%),
    var(--bg-input);
  background-position:
    calc(100% - 18px) calc(50% - 4px),
    calc(100% - 12px) calc(50% - 4px),
    center;
  background-size: 6px 6px, 6px 6px, auto;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.full-width {
  width: 100%;
}

.range-input {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #55575f, #90efbd 60%, #676a73);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff6fb;
  border: 6px solid var(--pink);
  box-shadow: 0 0 0 8px rgba(255, 47, 155, 0.08);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.builder-subcard {
  padding: 18px;
  margin-top: 14px;
}

.live-safety-card {
  background: rgba(255, 255, 255, 0.03);
}

.primary-button {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, var(--pink), var(--pink-strong));
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.builder-footnote {
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

.tabs-section {
  margin-top: 32px;
}

.tabs-header {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-bottom: 22px;
}

.tab-button,
.mini-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.tab-button {
  min-height: 48px;
  padding: 0 20px;
}

.tab-button.active,
.mini-tab.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.tab-grid-overview,
.tab-grid-risk {
  grid-template-columns: 1.2fr 0.8fr;
}

.wide-card {
  grid-column: 1 / -1;
}

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

.flow-step {
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.flow-step span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.flow-step p,
.overview-band p {
  color: var(--text-soft);
  line-height: 1.65;
}

.overview-band {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.overview-visual,
.mechanics-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.visual-node,
.mechanics-node {
  padding: 16px 18px;
  min-width: 140px;
  text-align: center;
}

.visual-arrow,
.mechanics-arrow {
  height: 2px;
  flex: 1 1 42px;
  min-width: 42px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.42));
  position: relative;
}

.visual-arrow::after,
.mechanics-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255,255,255,0.75);
  border-right: 2px solid rgba(255,255,255,0.75);
  transform: translateY(-50%) rotate(45deg);
}

.chart-card {
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1f;
  border: 1px solid rgba(255,255,255,0.05);
}

.mini-chart {
  margin-top: 16px;
}

.mini-chart svg,
.chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.tall-chart svg {
  min-height: 340px;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  fill: none;
}

.chart-fill {
  fill-opacity: 1;
}

.chart-fill-pink {
  fill: rgba(255, 47, 155, 0.1);
}

.chart-fill-green {
  fill: rgba(67, 235, 160, 0.1);
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-pink {
  stroke: var(--pink-strong);
}

.chart-line-green {
  stroke: var(--green);
}

.chart-marker {
  stroke: rgba(255, 255, 255, 0.44);
  stroke-dasharray: 6 8;
  stroke-width: 2;
}

.chart-marker-dot {
  fill: var(--green);
  stroke: rgba(10, 11, 17, 0.95);
  stroke-width: 4;
}

.chart-label {
  fill: var(--text-faint);
  font-size: 14px;
  font-family: "Manrope", sans-serif;
}

.logic-block,
.oracle-row {
  padding: 16px 18px;
}

.logic-block span,
.oracle-pair {
  display: block;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.performance-summary {
  margin-top: 18px;
}

.mechanics-diagram {
  min-height: 120px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .tab-grid-overview,
  .tab-grid-risk,
  .tab-grid,
  .headline-band,
  .overview-band {
    grid-template-columns: 1fr;
  }

  .meta-grid,
  .split-cards,
  .primary-metrics,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-sticky,
  .tabs-header {
    position: static;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 14px;
    justify-items: start;
  }

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

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 20px;
  }

  .meta-grid,
  .split-cards,
  .metric-grid,
  .primary-metrics,
  .flow-steps,
  .field-group {
    grid-template-columns: 1fr;
  }

  .header-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wallet-pill,
  .menu-pill {
    min-height: 48px;
  }

  .card,
  .spotlight-card,
  .builder-card {
    padding: 18px;
  }

  .tabs-header {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab-button {
    white-space: nowrap;
  }

  .visual-arrow,
  .mechanics-arrow {
    display: none;
  }
}

.page-shell-sticky {
  max-width: 1560px;
}

.sticky-hero {
  margin-bottom: 26px;
}

.sticky-hero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sticky-hero-title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.sticky-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.sticky-description {
  max-width: 980px;
  color: var(--text-soft);
  line-height: 1.6;
  display: grid;
  gap: 10px;
  padding: 4px 2px 0;
}

.sticky-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 420px);
  gap: 22px;
  align-items: start;
}

.sticky-left-column {
  min-width: 0;
}

.sticky-left-tabs-wrap {
  position: sticky;
  top: 0px;
  align-self: start;
  z-index: 12;
  padding-top: 0;
  padding-bottom: 2px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 86%, rgba(22, 22, 23, 0) 100%);
}

.sticky-left-tabs {
  display: flex;
  gap: 12px;
  padding: 10px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-tab-button {
  position: relative;
  padding: 14px 2px 12px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.05rem;
  cursor: pointer;
}

.sticky-tab-button.active {
  color: var(--text-main);
}

.sticky-tab-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--pink);
}

.sticky-tab-panel {
  display: none;
}

.sticky-tab-panel.active {
  display: grid;
  gap: 14px;
}

.sticky-chart-card,
.sticky-section-card,
.step-card {
  border-radius: 18px;
}

.sticky-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sticky-chart-controls,
.chart-range-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.chart-range-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text-soft);
}

.chart-range-pills span.active {
  background: #2b5f89;
  color: var(--text-main);
}

.sticky-base-rate {
  display: grid;
  gap: 14px;
}

.sticky-rate-summary {
  display: grid;
  gap: 4px;
}

.sticky-rate-summary strong {
  font-size: 2.1rem;
}

.sticky-oracle-list {
  display: grid;
  gap: 14px;
}

.sticky-oracle-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sticky-oracle-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sticky-oracle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.sticky-right-column {
  min-width: 0;
  position: sticky;
  top: 12px;
  align-self: start;
}

.sticky-right-rail {
  display: grid;
  gap: 12px;
}

.step-return-bar {
  display: flex;
  justify-content: flex-start;
}

.step-return-bar.hidden {
  display: none;
}

.step-return-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.step-card {
  padding: 14px;
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-main);
  background: #383c46;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.step-input-card,
.review-card,
.review-inline-card,
.step-mini-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.step-input-card {
  padding: 12px;
}

.sticky-inline-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 6px 0 8px;
}

.tiny-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.step-footnote {
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.4;
}

.step-divider {
  margin: 10px -14px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-section {
  margin-bottom: 10px;
}

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

.step-mini-card {
  min-height: 74px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.step-mini-card span,
.review-inline-card span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.review-card {
  padding: 12px;
  margin-bottom: 10px;
}

.collapsible-review-card {
  padding: 0;
  overflow: hidden;
}

.collapsible-review-toggle {
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.collapsible-review-toggle h4 {
  margin: 0;
}

.collapsible-chevron {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1;
}

.collapsible-review-card .compact-list {
  padding: 0 12px 12px 30px;
}

.collapsible-review-card.is-collapsed .compact-list {
  display: none;
}

.compact-list {
  margin: 10px 0 0;
}

.compact-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

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

.review-inline-card {
  min-height: 64px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.review-inline-card-toggle {
  justify-content: space-between;
}

.review-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.tooltip-trigger {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: default;
}

.tooltip-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 280px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #252830;
  color: var(--text-main);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 30;
}

.tooltip-bubble p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.tooltip-bubble p + p {
  margin-top: 8px;
}

.tooltip-wrap:hover .tooltip-bubble,
.tooltip-wrap:focus-within .tooltip-bubble {
  display: block;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-slider {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
  background: rgba(67, 235, 160, 0.45);
}

.switch input:checked + .switch-slider::after {
  transform: translateX(18px);
}

.review-warning {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  line-height: 1.35;
}

.secondary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  background: #3a3d47;
  color: rgba(244, 244, 246, 0.7);
  font-weight: 700;
}

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

  .sticky-right-rail,
  .sticky-left-tabs-wrap {
    position: static;
  }
}

@media (max-width: 820px) {
  .sticky-hero-title,
  .sticky-chart-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-meta-grid,
  .sticky-oracle-grid,
  .step-metrics-grid,
  .review-inline-row {
    grid-template-columns: 1fr;
  }

  .chart-checkbox {
    flex-wrap: wrap;
  }
}
