:root {
  --ink: #f5f8ff;
  --soft-black: #050b16;
  --nav-bg: #050914;
  --warm-surface: #07111f;
  --hero-bone: #dce5df;
  --hero-light: #dce5df;
  --hero-mid: #bfd2cb;
  --hero-dark: #0b151c;
  --panel: #0c1626;
  --panel-muted: #121f33;
  --bone: rgba(222, 233, 246, 0.18);
  --smoke: #8f9eb3;
  --gold: #c89b3c;
  --deep-amber: #ffb04d;
  --teal: #20d6c2;
  --teal-deep: #0e7d77;
  --text-dark: #070b14;
  --market-brown: #081320;
  --market-brown-deep: #0c1828;
  --market-tan: #1b2a40;
  --positive: #25d4bf;
  --negative: #ff7077;
  --info: #8ab4ff;
  --white: #f8fafc;
  --cool-stage: #eef0ed;
  --stage-border: rgba(255, 255, 255, 0.12);
  --border: rgba(222, 233, 246, 0.15);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  --page-gutter: clamp(20px, 3.5vw, 56px);
  --section-gap: clamp(56px, 8vw, 112px);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

/* Trade terminal refresh */
.trade-section {
  background:
    radial-gradient(circle at 72% -18%, rgba(32, 214, 194, 0.12), transparent 30%),
    linear-gradient(180deg, #06111a 0%, #050914 100%);
  display: block;
  min-height: 100dvh;
  overflow: hidden;
  padding: 72px 10px 10px;
}

.trade-section::before {
  content: none;
}

.trade-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(100dvh - 82px);
  width: 100%;
}

.trade-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  max-width: none;
  min-height: 48px;
  padding: 0 4px;
  width: 100%;
}

.trade-title-block {
  align-items: baseline;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.trade-heading h2 {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.trade-description {
  color: rgba(245, 248, 255, 0.54);
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-ribbon {
  align-items: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  max-width: none;
  overflow: visible;
  padding: 0;
  position: static;
  top: auto;
}

.ribbon-item {
  background: rgba(10, 20, 34, 0.82);
  border: 1px solid rgba(222, 233, 246, 0.11);
  border-radius: 8px;
  min-width: 106px;
  padding: 7px 10px;
}

.ribbon-item:last-child {
  border-right: 1px solid rgba(222, 233, 246, 0.11);
}

.ribbon-item .label {
  font-size: 10px;
  margin-bottom: 4px;
}

.ribbon-item strong {
  font-size: 15px;
  font-weight: 620;
  line-height: 1;
}

.ribbon-item.linked strong {
  color: #d4aa57;
}

.ribbon-item.sales strong {
  color: #2fd8c4;
}

.trade-grid {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 348px;
  margin: 0;
  max-width: none;
  min-height: 0;
  width: 100%;
}

.chart-pane,
.action-rail {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(8, 17, 29, 0.94);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  box-shadow: none;
}

.chart-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.chart-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  min-height: 46px;
  overflow: visible;
  padding: 0 12px;
}

.pair-title {
  align-items: baseline;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.pair-title strong {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.pair-title span {
  color: rgba(245, 248, 255, 0.5);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-controls {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.timeframe,
.chart-toggle {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 6px;
  color: rgba(245, 248, 255, 0.62);
  height: 30px;
  min-width: 0;
  padding: 0 10px;
}

.timeframe.active,
.chart-toggle.active {
  background: rgba(32, 214, 194, 0.14);
  border-color: rgba(32, 214, 194, 0.42);
  color: var(--ink);
}

.chart-toggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.chart-toggle span:first-child {
  align-items: center;
  background: rgba(200, 155, 60, 0.18);
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 999px;
  color: #d4aa57;
  display: inline-flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  padding: 0 6px;
}

.chart-frame {
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0.86), rgba(5, 9, 20, 0.94));
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

#priceChart {
  display: block;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.chart-readout {
  align-items: stretch;
  background: rgba(8, 17, 29, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(222, 233, 246, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 0;
  left: 12px;
  padding: 0;
  position: absolute;
  right: auto;
  top: 12px;
}

.chart-readout > div {
  min-width: 128px;
  padding: 10px 12px;
}

.chart-readout > div + div {
  border-left: 1px solid rgba(222, 233, 246, 0.09);
}

.chart-readout strong {
  display: block;
  font-size: 20px;
  font-weight: 620;
  line-height: 1;
}

.chart-readout .label {
  font-size: 10px;
  margin-bottom: 6px;
}

.chart-btc-chip strong {
  color: var(--teal);
}

.chart-simulation-note {
  color: rgba(226, 235, 246, 0.44);
  font-size: 12px;
  line-height: 1.45;
  margin: 10px 14px 0;
}

.active-strip {
  align-items: center;
  background: rgba(10, 20, 34, 0.92);
  border-top: 1px solid rgba(222, 233, 246, 0.1);
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  grid-template-columns: 1.08fr 0.9fr 0.9fr 0.8fr 1fr auto;
  margin: 0;
  padding: 0;
}

.active-strip.hidden {
  display: none !important;
}

.active-strip > div {
  border-right: 1px solid rgba(222, 233, 246, 0.08);
  min-width: 0;
  padding: 12px 14px;
}

.active-strip .label {
  font-size: 10px;
  margin-bottom: 5px;
}

.active-strip strong {
  display: block;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-strip .button {
  align-self: center;
  height: 34px;
  margin: 0 12px;
  min-width: 92px;
}

.active-preorder-region {
  border-top: 1px solid rgba(222, 233, 246, 0.1);
  flex: 0 0 auto;
  padding: 14px 14px 0;
}

.active-preorder-region-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.active-preorder-region-head strong {
  color: var(--text-strong);
  display: block;
  font-size: 14px;
}

.preorder-region-note {
  color: rgba(226, 235, 246, 0.46);
  font-size: 12px;
}

.preorder-summary-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preorder-summary-card {
  background: rgba(9, 18, 30, 0.72);
  border: 1px solid rgba(222, 233, 246, 0.11);
  border-radius: 8px;
  padding: 12px;
}

.preorder-summary-card.idle {
  align-items: center;
  display: flex;
  gap: 16px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.preorder-summary-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.preorder-summary-top strong {
  color: var(--text-strong);
  display: block;
  font-size: 13px;
}

.preorder-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}

.preorder-summary-grid span {
  color: rgba(226, 235, 246, 0.48);
  display: block;
  font-size: 10px;
  text-transform: uppercase;
}

.preorder-summary-grid strong {
  color: var(--text-strong);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 920px) {
  .preorder-summary-list {
    grid-template-columns: 1fr;
  }

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

.action-rail {
  align-self: stretch;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  position: relative;
  top: auto;
}

.rail-heading {
  border-bottom: 1px solid rgba(222, 233, 246, 0.1);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.rail-heading strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
}

.mode-tabs {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}

.mode-tab {
  border-radius: 6px;
  font-size: 13px;
  height: 34px;
}

.quote-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  margin: 12px 0;
  padding: 14px;
}

.quote-block strong {
  font-size: 38px;
  font-weight: 620;
}

.quote-block p {
  color: rgba(245, 248, 255, 0.56);
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.inverse-rule {
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  border-top: 1px solid rgba(222, 233, 246, 0.09);
  min-height: 44px;
}

.preorder-controls {
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  padding: 12px 0;
}

.multiplier-control,
.asset-toggle {
  display: flex;
  gap: 6px;
}

.payment-network-toggle {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.payment-network {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  color: rgba(245, 248, 255, 0.7);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  min-height: 34px;
  padding: 0 10px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.payment-network.active {
  background: rgba(32, 214, 194, 0.18);
  border-color: rgba(32, 214, 194, 0.72);
  color: #e9fffb;
}

.payment-network:hover {
  border-color: rgba(32, 214, 194, 0.42);
  color: #ffffff;
}

.multiplier,
.asset {
  border-radius: 6px;
  height: 34px;
  min-width: 48px;
  padding: 0 10px;
}

.hero-payment-note {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  max-width: 420px;
}

.hero-payment-note p {
  color: rgba(8, 18, 24, 0.62);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0;
}

.hero-chain-badge {
  align-items: center;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.22);
  border-radius: 999px;
  color: #007a34;
  display: inline-flex;
  font-size: 12px;
  font-weight: 720;
  gap: 8px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 7px 12px 7px 8px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.hero-chain-badge:hover {
  background: rgba(0, 200, 83, 0.16);
  border-color: rgba(0, 200, 83, 0.34);
  color: #005f2b;
}

.robinhood-chain-icon {
  align-items: center;
  background: rgba(0, 200, 83, 0.14);
  border-radius: 999px;
  color: #00c853;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.robinhood-chain-icon svg {
  display: block;
  height: 15px;
  width: 15px;
}

.robinhood-chain-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.summary-rows {
  flex: 0 0 auto;
  padding: 4px 0 12px;
}

.summary-rows > div {
  min-height: 44px;
}

.summary-rows span {
  color: rgba(245, 248, 255, 0.58);
  font-size: 13px;
}

.summary-rows strong {
  font-size: 13px;
}

.preorder-decision {
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 12px;
}

.decision-grid {
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 10px;
  padding-top: 10px;
}

.action-rail .button.full {
  flex: 0 0 auto;
  height: 44px;
}

.action-rail .text-button {
  color: rgba(245, 248, 255, 0.58);
  height: 34px;
  margin-top: 6px;
}

@media (min-width: 1101px) and (max-height: 820px) {
  .trade-section {
    padding-bottom: 8px;
    padding-top: 72px;
  }

  .trade-shell {
    min-height: calc(100dvh - 80px);
  }

  .trade-heading {
    min-height: 42px;
  }

  .chart-toolbar {
    min-height: 42px;
  }

  .quote-block strong {
    font-size: 32px;
  }

  .summary-rows > div {
    min-height: 40px;
  }
}

@media (max-width: 1100px) {
  .trade-section {
    overflow: visible;
    padding: 88px 12px 12px;
  }

  .trade-shell {
    min-height: auto;
  }

  .trade-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-ribbon {
    flex-wrap: wrap;
    width: 100%;
  }

  .ribbon-item {
    flex: 1 1 142px;
  }

  .trade-grid {
    grid-template-columns: 1fr;
  }

  .chart-frame {
    height: 58dvh;
    min-height: 480px;
  }

  .action-rail {
    overflow: visible;
  }

  .active-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .active-strip .button {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0 12px 12px;
  }
}

@media (max-width: 760px) {
  .trade-section {
    padding: 116px 8px 12px;
  }

  .trade-title-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .trade-heading h2 {
    font-size: 20px;
  }

  .trade-description {
    white-space: normal;
  }

  .market-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .chart-controls {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .chart-frame {
    height: 460px;
    min-height: 460px;
  }

  .chart-readout {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .chart-readout > div {
    min-width: 0;
    width: 50%;
  }

  .active-strip {
    grid-template-columns: 1fr 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% -12%, rgba(37, 212, 191, 0.16), transparent 34%),
    radial-gradient(circle at 16% 0%, rgba(247, 147, 26, 0.08), transparent 28%),
    var(--nav-bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.overlay-open {
  overflow: hidden;
}

html {
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 var(--page-gutter);
  position: fixed;
  right: 0;
  top: 0;
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 233, 246, 0.1);
  transition: background 180ms ease, border-color 180ms ease;
  z-index: 30;
}

.site-header.scrolled {
  background: rgba(5, 9, 20, 0.95);
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 44px;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.brand-mark {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: #050b16;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 750;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.top-nav {
  align-items: center;
  display: flex;
  gap: 10px;
  color: rgba(245, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

.top-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(222, 233, 246, 0.14);
  color: var(--ink);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  position: relative;
}

.wallet-button,
.icon-button,
.button,
.mode-tab,
.multiplier,
.asset,
.timeframe,
.drawer-tab {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.wallet-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
}

.wallet-dot {
  background: var(--smoke);
  border-radius: 999px;
  display: block;
  height: 8px;
  width: 8px;
}

.wallet-button.connected .wallet-dot {
  background: var(--positive);
}

.wallet-menu {
  background: rgba(6, 17, 26, 0.96);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 12px;
  position: absolute;
  right: 50px;
  top: calc(100% + 10px);
  z-index: 60;
}

.wallet-menu strong {
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-menu-action {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  height: 38px;
  margin-top: 4px;
}

.wallet-menu-action:hover {
  background: rgba(32, 214, 194, 0.16);
  border-color: rgba(32, 214, 194, 0.36);
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.icon-button:hover,
.wallet-button:hover,
.button:hover,
.mode-tab:hover,
.multiplier:hover,
.asset:hover,
.timeframe:hover,
.drawer-tab:hover {
  transform: translateY(-1px);
}

.icon-button:active,
.wallet-button:active,
.button:active,
.mode-tab:active,
.multiplier:active,
.asset:active,
.timeframe:active,
.drawer-tab:active {
  transform: translateY(0) scale(0.98);
}

.icon {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.mobile-account-button {
  display: none;
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 74% 42%, rgba(32, 214, 194, 0.2), transparent 34%),
    linear-gradient(90deg, #dce5df 0%, #ccddd8 43%, #6f8c91 68%, #0b151c 100%);
  border: 1px solid rgba(32, 214, 194, 0.08);
  border-bottom-color: rgba(5, 14, 21, 0.55);
  border-right-color: rgba(5, 14, 21, 0.82);
  border-radius: 14px;
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 500px) minmax(420px, 1fr);
  isolation: isolate;
  justify-content: start;
  margin: 96px 32px 0;
  min-height: calc(100dvh - 120px);
  overflow: clip;
  padding:
    clamp(56px, 8vw, 112px)
    clamp(40px, 5vw, 96px)
    clamp(56px, 8vw, 112px)
    clamp(72px, 8vw, 128px);
  position: relative;
}

.hero::before {
  content: none;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(220, 229, 223, 0.96) 0%, rgba(220, 229, 223, 0.78) 30%, rgba(193, 214, 210, 0.26) 54%, rgba(5, 9, 20, 0.54) 100%),
    radial-gradient(circle at 72% 48%, rgba(32, 214, 194, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(5, 9, 20, 0.12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.trade-section,
.product-section {
  scroll-margin-top: 72px;
}

body.product-view .hero,
body.product-view .trade-section {
  display: none;
}

.hero-copy {
  align-self: center;
  background: transparent;
  border: 0;
  display: block;
  justify-self: start;
  max-width: 500px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  position: relative;
  color: var(--text-dark);
  width: min(500px, 100%);
  z-index: 5;
}

.hero-video-bg {
  bottom: 0;
  left: clamp(560px, 46vw, 820px);
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.hero-video-bg video {
  display: block;
  filter: saturate(0.74) contrast(1.04) brightness(0.82);
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: cover;
  object-position: 64% center;
  opacity: 0.76;
  width: 100%;
}

.hero-video-bg::before {
  background:
    linear-gradient(90deg, rgba(220, 229, 223, 0.98) 0%, rgba(220, 229, 223, 0.52) 22%, transparent 48%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.04), transparent 48%, rgba(5, 9, 20, 0.22));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-video-bg::after {
  background: rgba(11, 21, 28, 0.08);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.eyebrow,
.label {
  color: rgba(245, 248, 255, 0.64);
  display: block;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .button.secondary {
  color: rgba(7, 11, 20, 0.68);
}

.hero-price .label {
  color: rgba(8, 14, 24, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .button.secondary {
  border-color: rgba(7, 11, 19, 0.2);
}

.hero h1 {
  font-size: clamp(72px, 6.5rem, 104px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  text-wrap: balance;
}

.hero-line {
  color: rgba(17, 16, 14, 0.68);
  font-size: 18px;
  line-height: 1.45;
  margin: 10px 0 0;
  max-width: 520px;
}

.hero-statement {
  color: rgba(8, 14, 24, 0.68);
  font-size: 18px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 18px 0 0;
  max-width: 360px;
}

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

.button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 560;
  height: 48px;
  justify-content: center;
  min-width: 132px;
  padding: 0 18px;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), #5ce7d7);
  border: 1px solid rgba(140, 255, 239, 0.46);
  color: #041016;
}

.button.primary:hover {
  background: linear-gradient(135deg, #35e4d2, #8df3e7);
}

.button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.2);
  color: var(--ink);
}

.button.text-button {
  background: transparent;
  color: rgba(245, 248, 255, 0.68);
  height: 40px;
  margin-top: 8px;
  min-width: 0;
  padding: 0;
}

.button.full {
  width: 100%;
}

.button.compact {
  height: 40px;
  min-width: 96px;
}

.back-button {
  background: rgba(8, 18, 24, 0.32);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 999px;
  color: rgba(226, 235, 246, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 13px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
  width: fit-content;
}

.back-button:hover {
  background: rgba(32, 214, 194, 0.1);
  border-color: rgba(32, 214, 194, 0.42);
  color: #fff;
}

.hero-price {
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(8, 18, 24, 0.14);
  border: 1px solid rgba(8, 18, 24, 0.14);
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(150px, auto) 42px minmax(130px, auto);
  min-width: 0;
  margin: 32px 0 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: clamp(340px, 24vw, 420px);
  z-index: 5;
}

.hero-price::before {
  content: none;
}

.hero-price > div:not(.price-link) {
  min-height: 0;
  padding: 17px 18px 18px;
}

.hero-price > div + div:not(.price-link) {
  border-top: 0;
}

.hero-price strong {
  color: #07101a;
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.price-link {
  align-self: center;
  background: rgba(200, 155, 60, 0.72);
  height: 1px;
  width: 100%;
}

@keyframes product-settle {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trade-section {
  background:
    radial-gradient(circle at 72% -8%, rgba(32, 214, 194, 0.16), transparent 34%),
    radial-gradient(circle at 18% 8%, rgba(200, 155, 60, 0.08), transparent 24%),
    linear-gradient(180deg, #0b151c 0%, #07111f 32%, #050914 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin-top: 0;
  overflow: clip;
  padding: clamp(76px, 8.5vh, 112px) var(--page-gutter) clamp(28px, 4vh, 52px);
  position: relative;
}

.trade-section::before {
  background:
    linear-gradient(180deg, rgba(220, 229, 223, 0.2), rgba(7, 17, 31, 0.72) 42%, transparent 100%);
  content: "";
  height: 220px;
  inset: -84px 0 auto;
  pointer-events: none;
  position: absolute;
}

.market-ribbon {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(8, 19, 32, 0.78);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid rgba(222, 233, 246, 0.16);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 0 0 auto;
  margin: 0 auto clamp(18px, 2.8vh, 34px);
  max-width: 1600px;
  padding: 16px 0;
  position: sticky;
  top: 84px;
  overflow: hidden;
  z-index: 20;
}

.ribbon-item {
  border-right: 1px solid var(--border);
  padding: 0 22px;
}

.ribbon-item:last-child {
  border-right: 0;
}

.trade-section .label,
.trade-section .eyebrow {
  color: rgba(245, 248, 255, 0.58);
}

.ribbon-item strong {
  display: block;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 560;
  line-height: 1;
}

.ribbon-item.linked strong,
.chart-readout div:nth-child(2) strong {
  color: #d4aa57;
}

.ribbon-item.sales strong {
  color: #2fd8c4;
}

.state-positive {
  color: var(--positive);
}

.state-negative {
  color: var(--negative);
}

.trade-heading {
  align-items: end;
  display: grid;
  flex: 0 0 auto;
  gap: clamp(32px, 5vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  margin: 0 auto clamp(18px, 2.8vh, 32px);
  max-width: 1600px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.trade-heading h2 {
  font-size: clamp(52px, 6.4vw, 96px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 0;
  max-width: 980px;
  text-wrap: balance;
}

.trade-grid {
  display: grid;
  flex: 1 1 auto;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 408px);
  margin: 0 auto;
  max-width: 1600px;
  min-height: 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.chart-pane,
.action-rail {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)),
    rgba(8, 19, 32, 0.72);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  border: 1px solid rgba(222, 233, 246, 0.15);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chart-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 30px);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  max-width: none;
}

.section-heading h2,
.product-copy h2 {
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.trade-description {
  color: rgba(245, 248, 255, 0.62);
  align-self: end;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 440px;
}

.chart-toolbar {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.timeframe {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.13);
  border-radius: 10px;
  color: rgba(245, 248, 255, 0.66);
  height: 36px;
  padding: 0 14px;
}

.timeframe.active {
  background: rgba(37, 212, 191, 0.16);
  border-color: rgba(37, 212, 191, 0.5);
  color: var(--ink);
}

.chart-frame {
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 212, 191, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(5, 11, 22, 0.56), rgba(5, 9, 20, 0.78));
  border: 1px solid rgba(222, 233, 246, 0.12);
  border-radius: 14px;
  flex: 1 1 auto;
  min-height: clamp(380px, 52dvh, 640px);
  padding: 18px;
  position: relative;
}

#priceChart {
  display: block;
  height: 100%;
  min-height: clamp(310px, 46dvh, 560px);
  width: 100%;
}

.chart-readout {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(5, 9, 20, 0.36);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 14px;
  display: flex;
  gap: 28px;
  padding: 14px 16px;
  position: absolute;
  right: 22px;
  top: 22px;
}

.chart-readout strong {
  display: block;
  font-size: 32px;
  font-weight: 560;
  line-height: 1;
}

.active-strip {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  margin-top: 24px;
  padding-top: 22px;
}

.active-strip strong {
  display: block;
}

.action-rail {
  align-self: stretch;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
  position: sticky;
  top: 154px;
}

.rail-heading {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.rail-heading strong {
  display: block;
  font-size: 24px;
  font-weight: 620;
}

.mode-tabs {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.13);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.mode-tab {
  background: transparent;
  border-radius: 9px;
  color: rgba(245, 248, 255, 0.62);
  height: 40px;
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--teal), #59e6d6);
  color: #041016;
  box-shadow: none;
}

.quote-block {
  background:
    radial-gradient(circle at 86% 22%, rgba(37, 212, 191, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.12);
  border-radius: 14px;
  margin: 22px 0 16px;
  padding: 18px;
}

.quote-block strong {
  display: block;
  font-size: clamp(40px, 3.2vw, 52px);
  font-weight: 560;
  line-height: 1;
}

.quote-block p {
  color: rgba(245, 248, 255, 0.66);
  line-height: 1.45;
  margin: 10px 0 0;
}

.inverse-rule {
  align-items: center;
  border-bottom: 1px solid rgba(222, 233, 246, 0.1);
  border-top: 1px solid rgba(222, 233, 246, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
}

.inverse-rule span {
  color: rgba(245, 248, 255, 0.64);
  font-size: 12px;
}

.inverse-rule strong {
  color: var(--deep-amber);
  font-size: 12px;
  font-weight: 650;
}

.preorder-controls {
  border-bottom: 1px solid rgba(222, 233, 246, 0.1);
  padding: 18px 0;
}

.preorder-decision {
  background:
    linear-gradient(135deg, rgba(200, 155, 60, 0.12), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(200, 155, 60, 0.22);
  border-radius: 14px;
  margin: 0 0 18px;
  padding: 16px;
}

.decision-heading,
.decision-grid {
  display: grid;
  gap: 12px;
}

.decision-heading {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.decision-heading span,
.decision-grid span {
  color: rgba(245, 248, 255, 0.62);
  font-size: 12px;
}

.decision-heading strong {
  color: var(--deep-amber);
  font-size: 12px;
  font-weight: 650;
}

.decision-grid {
  border-top: 1px solid rgba(200, 155, 60, 0.18);
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  padding-top: 14px;
}

.decision-grid strong {
  display: block;
  font-size: 15px;
  margin-top: 5px;
}

.preorder-decision p {
  color: rgba(245, 248, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.multiplier-control,
.asset-toggle {
  display: flex;
  gap: 8px;
}

.multiplier,
.asset {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.14);
  border-radius: 10px;
  color: rgba(245, 248, 255, 0.66);
  height: 40px;
  min-width: 56px;
  padding: 0 14px;
}

.multiplier.active,
.asset.active {
  background: rgba(37, 212, 191, 0.16);
  border-color: rgba(37, 212, 191, 0.58);
  color: var(--ink);
}

.summary-rows {
  display: grid;
  flex: 1 1 auto;
  gap: 0;
  padding: 6px 0 18px;
}

.summary-rows > div {
  align-items: center;
  border-bottom: 1px solid rgba(222, 233, 246, 0.1);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
}

.summary-rows span {
  color: rgba(245, 248, 255, 0.66);
}

.product-section {
  align-items: start;
  background:
    radial-gradient(circle at 82% 6%, rgba(37, 212, 191, 0.1), transparent 30%),
    var(--soft-black);
  display: none;
  gap: 18px;
  grid-template-columns: minmax(0, 1.34fr) minmax(380px, 0.66fr);
  margin: 0 auto;
  max-width: 1600px;
  min-height: 100dvh;
  padding: 96px var(--page-gutter) var(--section-gap);
  width: 100%;
}

body.product-view .product-section {
  display: grid;
}

.product-gallery {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
}

.product-gallery-stage {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(238, 240, 237, 0.96)),
    var(--cool-stage);
  border: 1px solid rgba(7, 11, 19, 0.1);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.product-gallery-stage img {
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 160ms ease, transform 320ms ease;
  width: 100%;
}

.product-gallery-stage img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.product-gallery-meta {
  align-items: center;
  color: rgba(245, 248, 255, 0.62);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-gallery-meta strong {
  color: var(--ink);
  font-weight: 560;
}

.product-thumbnails {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-thumbnail {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(222, 233, 246, 0.12);
  border-radius: 8px;
  color: rgba(245, 248, 255, 0.66);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px 8px 10px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.product-thumbnail:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(37, 212, 191, 0.42);
  color: var(--ink);
  transform: translateY(-1px);
}

.product-thumbnail.active {
  background: rgba(37, 212, 191, 0.12);
  border-color: rgba(37, 212, 191, 0.58);
  color: var(--ink);
}

.product-thumbnail img {
  aspect-ratio: 1.45 / 1;
  background: var(--cool-stage);
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-thumbnail span {
  font-size: 12px;
  font-weight: 560;
}

.product-gallery-notes {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.product-gallery-notes > div {
  border-right: 1px solid var(--border);
  padding: 20px 20px 4px 0;
}

.product-gallery-notes > div + div {
  padding-left: 20px;
}

.product-gallery-notes > div:last-child {
  border-right: 0;
}

.product-gallery-notes strong {
  display: block;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;
}

.product-info-column {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(22px, 3vw, 34px);
  position: sticky;
  top: 96px;
}

.product-back-button {
  margin-bottom: 18px;
}

.product-info-column h2 {
  font-family: inherit;
  font-size: clamp(40px, 3.4vw, 52px);
  font-weight: 620;
  line-height: 1;
  margin: 28px 0 0;
  max-width: 620px;
}

.product-kicker {
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: rgba(245, 248, 255, 0.62);
  display: flex;
  font-size: 11px;
  font-weight: 560;
  justify-content: space-between;
  letter-spacing: 0.04em;
  padding-bottom: 14px;
  text-transform: uppercase;
}

.product-description {
  color: rgba(245, 248, 255, 0.68);
  font-size: 16px;
  line-height: 1.5;
  margin: 18px 0 30px;
  max-width: 520px;
}

.product-price-panel {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.product-current-price,
.product-market-link {
  min-height: 112px;
  padding: 20px 20px 18px 0;
}

.product-market-link {
  border-left: 1px solid var(--border);
  color: rgba(245, 248, 255, 0.7);
  display: block;
  padding-left: 20px;
  transition: background 160ms ease, color 160ms ease;
}

.product-market-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.product-price-panel strong {
  display: block;
  font-size: 28px;
  font-weight: 620;
  line-height: 1;
  margin: 10px 0 7px;
}

.product-current-price strong {
  color: var(--deep-amber);
}

.product-price-panel small,
.product-option-block small {
  color: rgba(245, 248, 255, 0.62);
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.product-market-link > span {
  display: block;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-market-link small {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-selector-grid {
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.product-option-block {
  padding: 22px 0;
}

.product-option-block + .product-option-block {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

.product-option-block > strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.color-choice {
  align-items: center;
  display: flex;
  gap: 12px;
}

.swatch {
  background: linear-gradient(135deg, #03060c 0 54%, var(--gold) 55% 100%);
  border: 1px solid rgba(222, 233, 246, 0.22);
  border-radius: 999px;
  display: block;
  height: 28px;
  width: 28px;
}

.details-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding-top: 24px;
}

.details-actions .button {
  min-width: 0;
  width: 100%;
}

.purchase-note {
  color: rgba(245, 248, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
  margin: 10px 0 24px;
  text-align: center;
}

.product-info-list {
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
}

.product-info-list details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.product-info-list summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 560;
  justify-content: space-between;
  list-style: none;
}

.product-info-list summary::-webkit-details-marker {
  display: none;
}

.product-info-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.product-info-list details[open] summary::after {
  content: "-";
}

.product-info-list p {
  color: rgba(245, 248, 255, 0.68);
  line-height: 1.45;
  margin: 12px 0 0;
}

.product-specs {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
}

.product-specs > div {
  border-right: 1px solid var(--border);
  min-height: 180px;
  padding: 24px 24px 0 0;
}

.product-specs > div:last-child {
  border-right: 0;
}

.product-specs strong {
  display: block;
  font-size: 20px;
  font-weight: 560;
  line-height: 1.2;
  margin-bottom: 12px;
}

.product-specs p {
  color: rgba(245, 248, 255, 0.68);
  line-height: 1.45;
  margin: 0;
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: var(--warm-surface);
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 60;
}

.limit-sheet {
  backdrop-filter: blur(12px);
  background: rgba(5, 9, 20, 0.68);
  display: grid;
  inset: 0;
  overflow-y: auto;
  padding: 20px;
  place-items: center;
  position: fixed;
  z-index: 80;
}

.limit-panel {
  background: rgba(12, 22, 38, 0.9);
  border: 1px solid rgba(222, 233, 246, 0.18);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  padding: 28px;
  position: relative;
  width: min(460px, 100%);
}

.limit-panel h2 {
  font-size: 28px;
  font-weight: 640;
  line-height: 1.12;
  margin: 0 48px 14px 0;
}

.limit-panel p {
  color: rgba(245, 248, 255, 0.72);
  line-height: 1.55;
  margin: 0;
}

.limit-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.checkout-sheet,
.success-sheet,
.account-drawer {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.account-drawer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.account-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-sheet,
.success-sheet {
  align-items: center;
  background: rgba(17, 16, 14, 0.46);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding: 24px;
}

.checkout-panel,
.success-panel {
  background: #f1f1ee;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #070b13;
  max-width: 460px;
  padding: 28px;
  position: relative;
  width: 100%;
}

.checkout-panel .label,
.success-panel .label,
.drawer-panel .label {
  color: rgba(7, 11, 19, 0.62);
}

.checkout-panel {
  max-height: calc(100dvh - 40px);
  max-width: 520px;
  overflow-y: auto;
}

.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
}

.checkout-signal {
  align-items: center;
  display: flex;
  gap: 14px;
  padding-right: 52px;
}

.checkout-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 42px;
  object-fit: contain;
  width: 172px;
}

.checkout-signal .brand-mark {
  height: 38px;
  width: 38px;
}

.checkout-signal .label {
  color: var(--deep-amber);
}

.checkout-signal h2 {
  font-size: 28px;
  line-height: 1.08;
  margin: 0;
}

.checkout-intro {
  color: rgba(17, 16, 14, 0.7);
  line-height: 1.5;
  margin: 18px 0;
  max-width: 48ch;
}

.checkout-steps {
  background: rgba(7, 11, 19, 0.06);
  border: 1px solid rgba(7, 11, 19, 0.1);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 4px;
}

.checkout-steps span {
  border-radius: 999px;
  color: rgba(7, 11, 19, 0.54);
  font-size: 11px;
  font-weight: 680;
  overflow: hidden;
  padding: 8px 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-steps span.active {
  background: #06111a;
  color: #f5f8ff;
}

.checkout-steps span.disabled {
  opacity: 0.42;
}

.checkout-wallet-gate {
  align-items: center;
  background: rgba(32, 214, 194, 0.1);
  border: 1px solid rgba(32, 214, 194, 0.26);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 14px;
}

.checkout-wallet-gate strong {
  display: block;
  font-size: 14px;
}

.checkout-wallet-gate p {
  color: rgba(17, 16, 14, 0.66);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

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

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

.checkout-form label {
  display: grid;
  gap: 7px;
}

.checkout-form label.wide,
.checkout-form label.phone-field {
  grid-column: 1 / -1;
}

.checkout-form label span {
  color: rgba(7, 11, 19, 0.58);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form select {
  appearance: none;
  background: rgba(7, 11, 19, 0.055);
  border: 1px solid rgba(7, 11, 19, 0.12);
  border-radius: 9px;
  color: #070b13;
  font: inherit;
  height: 42px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.checkout-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(7, 11, 19, 0.58) 50%),
    linear-gradient(135deg, rgba(7, 11, 19, 0.58) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 18px,
    calc(100% - 11px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 30px;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: rgba(32, 214, 194, 0.68);
  box-shadow: 0 0 0 3px rgba(32, 214, 194, 0.13);
}

.checkout-phone-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 126px minmax(220px, 1fr);
}

.checkout-error {
  background: rgba(187, 83, 74, 0.12);
  border: 1px solid rgba(187, 83, 74, 0.24);
  border-radius: 9px;
  color: #8e2e27;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

.checkout-quote {
  border-top: 1px solid var(--border);
}

.checkout-quote > div {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 48px;
}

.checkout-quote span {
  color: rgba(17, 16, 14, 0.68);
}

.checkout-quote strong {
  text-align: right;
}

.checkout-status {
  align-items: flex-start;
  background: rgba(247, 147, 26, 0.08);
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
}

.status-indicator {
  background: var(--gold);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 9px;
  margin-top: 5px;
  width: 9px;
}

.checkout-status.confirming .status-indicator {
  animation: confirmation-pulse 900ms ease-in-out infinite alternate;
}

.checkout-status strong {
  display: block;
  font-size: 14px;
}

.checkout-status p {
  color: rgba(17, 16, 14, 0.68);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.checkout-save-default {
  align-items: flex-start;
  color: rgba(17, 16, 14, 0.66);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  gap: 10px;
  line-height: 1.45;
  margin-top: 14px;
}

.checkout-save-default input {
  accent-color: var(--teal);
  margin-top: 2px;
}

.checkout-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.checkout-actions .button.primary {
  background: linear-gradient(135deg, var(--teal), #5ce7d7);
  border-color: rgba(140, 255, 239, 0.58);
  box-shadow: 0 18px 46px rgba(32, 214, 194, 0.28);
  color: #041016;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 800;
  min-height: 52px;
  min-width: 0;
  padding: 0 22px;
  white-space: nowrap;
  width: auto;
}

.checkout-actions .button.primary:hover {
  background: linear-gradient(135deg, #35e4d2, #8df3e7);
  box-shadow: 0 22px 54px rgba(32, 214, 194, 0.34);
}

.checkout-actions .button.secondary {
  background: rgba(7, 11, 19, 0.025);
  border-color: rgba(7, 11, 19, 0.16);
  box-shadow: none;
  color: rgba(7, 11, 19, 0.62);
  flex: 0 0 118px;
  font-size: 12px;
  font-weight: 700;
  height: 44px;
  min-width: 118px;
  padding: 0 16px;
  width: auto;
}

.checkout-actions .button.secondary:hover {
  background: rgba(32, 214, 194, 0.1);
  border-color: rgba(32, 214, 194, 0.42);
  color: #06111a;
}

.checkout-actions:has(#checkoutPrimaryButton.hidden):has(#checkoutReviewButton.hidden) {
  justify-content: flex-start;
  margin-top: 14px;
}

.checkout-actions:has(#checkoutPrimaryButton.hidden):has(#checkoutReviewButton.hidden) .button.secondary {
  background: transparent;
  border-color: rgba(7, 11, 19, 0.14);
  color: rgba(7, 11, 19, 0.54);
  flex-basis: auto;
  height: 36px;
  min-width: 0;
  padding: 0 14px;
}

.checkout-disclosure {
  color: rgba(17, 16, 14, 0.66);
  font-size: 11px;
  line-height: 1.45;
  margin: 14px 0 0;
}

@keyframes confirmation-pulse {
  to {
    box-shadow: 0 0 0 6px rgba(247, 147, 26, 0.18);
  }
}

.success-mark {
  align-items: center;
  background: rgba(47, 140, 103, 0.12);
  border-radius: 8px;
  color: var(--positive);
  display: flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 22px;
  width: 44px;
}

.success-mark svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 24px;
}

.success-panel h2 {
  font-size: 34px;
  font-weight: 620;
  line-height: 1.05;
  margin: 0 48px 18px 0;
}

.success-details {
  border-top: 1px solid var(--border);
  margin-bottom: 22px;
}

.success-details div {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
}

.drawer-backdrop {
  background: rgba(17, 16, 14, 0.42);
  backdrop-filter: blur(6px);
  inset: 0;
  position: absolute;
}

.drawer-panel {
  background: #f1f1ee;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
  color: #070b13;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-left: auto;
  max-width: 560px;
  padding: 32px;
  position: relative;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: 100%;
}

.account-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.drawer-header h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.drawer-wallet {
  color: rgba(17, 16, 14, 0.7);
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.drawer-identity {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px 0;
}

.drawer-tabs {
  background: rgba(7, 11, 19, 0.055);
  border: 1px solid rgba(7, 11, 19, 0.1);
  border-radius: 10px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.drawer-tab {
  background: transparent;
  border-radius: 8px;
  color: rgba(17, 16, 14, 0.68);
  flex: 1;
  min-height: 38px;
  padding: 0 12px;
}

.drawer-tab.active {
  background: #000;
  color: #fff;
}

.drawer-content {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-top: 18px;
}

.record-card {
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 0 20px;
}

.record-card h3 {
  font-size: 16px;
  margin: 0;
}

.record-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-pill {
  background: rgba(247, 147, 26, 0.14);
  border-radius: 4px;
  color: var(--deep-amber);
  font-size: 12px;
  font-weight: 560;
  padding: 6px 10px;
}

.record-lines {
  display: grid;
  gap: 8px;
}

.record-lines div {
  display: flex;
  justify-content: space-between;
}

.record-lines span {
  color: rgba(17, 16, 14, 0.7);
}

.record-card .button {
  margin-top: 14px;
}

.empty-state {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 0;
  color: rgba(17, 16, 14, 0.7);
  line-height: 1.45;
  padding: 18px;
}

.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .hero {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    margin: 96px 24px 0;
    min-height: calc(100dvh - 132px);
    padding: 64px clamp(36px, 7vw, 72px);
  }

  .hero-video-bg {
    left: 30%;
  }

  .hero-video-bg video {
    object-position: 66% center;
    opacity: 0.62;
  }

  .hero-copy {
    color: var(--text-dark);
    justify-self: start;
    max-width: 500px;
    padding: 0;
    width: min(500px, 100%);
  }

  .hero .eyebrow,
  .hero-statement {
    color: rgba(8, 14, 24, 0.68);
  }

  .hero .button.secondary {
    border-color: rgba(7, 11, 20, 0.22);
    color: var(--text-dark);
  }

  .hero-price {
    grid-template-columns: 1fr 36px 1fr;
    margin: 28px 0 0;
    width: min(420px, 100%);
  }

  .hero-price > div:not(.price-link) {
    min-height: 0;
    padding: 16px 18px;
  }

  .hero-price > div + div:not(.price-link) {
    border-left: 0;
    border-top: 0;
  }

  .hero-price .price-link {
    height: 1px;
    width: 100%;
  }

  .trade-grid,
  .product-section {
    grid-template-columns: 1fr;
  }

  .trade-heading {
    align-items: start;
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .trade-heading h2 {
    max-width: 760px;
  }

  .product-info-column {
    position: relative;
    top: auto;
  }

  .product-gallery-stage {
    aspect-ratio: 1.4 / 1;
  }

  .action-rail {
    position: relative;
    top: auto;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .trade-section {
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .market-ribbon {
    margin-bottom: 18px;
    padding: 12px 0;
  }

  .ribbon-item strong {
    font-size: 21px;
  }

  .trade-heading {
    margin-bottom: 18px;
  }

  .trade-heading h2 {
    font-size: clamp(48px, 4.6vw, 72px);
    max-width: 760px;
  }

  .trade-description {
    font-size: 15px;
    line-height: 1.45;
    max-width: 360px;
  }

  .chart-frame {
    min-height: clamp(330px, 45dvh, 430px);
  }

  #priceChart {
    min-height: clamp(270px, 38dvh, 360px);
  }

  .quote-block {
    margin-top: 16px;
    padding: 16px;
  }

  .quote-block strong {
    font-size: 40px;
  }

  .summary-rows > div {
    min-height: 48px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    height: 104px;
    max-width: 100vw;
    padding: 10px 20px 0;
    right: auto;
    width: 100vw;
  }

  .top-nav {
    display: flex;
    gap: 6px;
    left: 20px;
    overflow-x: auto;
    padding-bottom: 3px;
    position: absolute;
    right: 66px;
    top: 58px;
    white-space: nowrap;
  }

  .top-nav a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(222, 233, 246, 0.12);
    flex: 0 0 auto;
    font-size: 11px;
    padding: 8px 10px;
  }

  .brand {
    font-size: 18px;
    max-width: calc(100vw - 92px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo {
    height: 38px;
    max-width: 180px;
  }

  .header-actions {
    display: none;
  }

  .wallet-button {
    display: none;
  }

  .icon-button {
    display: inline-flex;
    flex: 0 0 40px;
  }

  .mobile-account-button {
    align-items: center;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    color: #041016;
    display: inline-flex !important;
    height: 40px;
    justify-content: center;
    padding: 0;
    left: calc(var(--viewport-width, 100vw) - 60px);
    position: fixed;
    right: auto;
    top: 10px;
    width: 40px;
    z-index: 31;
  }

  .mobile-account-button.connected {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--warm-surface);
  }

  .mobile-account-button::after {
    background: var(--negative);
    border: 2px solid var(--warm-surface);
    border-radius: 50%;
    content: "";
    height: 8px;
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
  }

  .mobile-account-button.connected::after {
    background: var(--positive);
  }

  .wallet-button span:last-child {
    display: none;
  }

  .hero {
    margin: 124px 16px 0;
    min-height: calc(100dvh - 140px);
    overflow: hidden;
    padding: 28px 22px 32px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(220, 229, 223, 0.96) 0%, rgba(220, 229, 223, 0.88) 43%, rgba(168, 195, 194, 0.32) 68%, rgba(5, 9, 20, 0.48) 100%),
      linear-gradient(90deg, rgba(220, 229, 223, 0.94), rgba(220, 229, 223, 0.22) 62%, rgba(5, 9, 20, 0.36));
  }

  .hero-video-bg {
    left: 0;
    top: 44%;
  }

  .hero-video-bg video {
    filter: saturate(0.7) contrast(1.05) brightness(0.78);
    object-position: 68% center;
    opacity: 0.54;
  }

  .hero-copy {
    box-sizing: border-box;
    max-width: 500px;
    min-height: auto;
    padding: 0;
    width: 100%;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero-line {
    font-size: 15px;
  }

  .hero-statement {
    font-size: 16px;
    line-height: 1.35;
    margin-top: 14px;
    max-width: 29ch;
  }

  .hero-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 0;
    margin: 24px 0 0;
    min-width: 0;
    width: 100%;
  }

  .hero-price > div:not(.price-link) {
    padding: 14px 14px 15px;
  }

  .hero-price > div {
    min-width: 0;
  }

  .hero-price .price-link {
    height: 1px;
    margin-top: 0;
    width: 100%;
  }

  .hero-price strong {
    font-size: 21px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-payment-note {
    max-width: 100%;
  }

  .hero-chain-badge {
    font-size: 12px;
    padding-right: 10px;
  }

  .button {
    height: 46px;
  }

  .trade-section {
    padding: 40px 20px 64px;
  }

  .market-ribbon {
    grid-template-columns: 1fr 1fr;
    margin: 0 0 32px;
    padding: 14px 20px;
    row-gap: 14px;
    top: 104px;
  }

  .ribbon-item {
    padding: 0 12px;
  }

  .ribbon-item:nth-child(2) {
    border-right: 0;
  }

  .ribbon-item.optional {
    display: none;
  }

  .trade-grid {
    gap: 18px;
    padding-top: 0;
  }

  .trade-heading h2,
  .section-heading h2,
  .product-copy h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .trade-heading,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .chart-toolbar {
    overflow-x: auto;
  }

  .chart-frame {
    min-height: 360px;
  }

  #priceChart {
    height: 300px;
  }

  .chart-readout {
    gap: 18px;
    left: 14px;
    right: 14px;
    top: 14px;
    width: auto;
  }

  .chart-readout strong {
    font-size: 24px;
  }

  .active-strip {
    grid-template-columns: 1fr 1fr;
  }

  .active-strip .button {
    grid-column: 1 / -1;
  }

  .product-section {
    padding: 124px 20px 72px;
  }

  .product-info-column h2 {
    font-size: 40px;
    line-height: 1.02;
  }

  .product-gallery-stage {
    aspect-ratio: 1.12 / 1;
    padding: 0;
  }

  .product-thumbnails {
    gap: 6px;
    grid-template-columns: repeat(5, minmax(94px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-thumbnail {
    padding: 5px 5px 8px;
  }

  .product-gallery-notes {
    display: none;
  }

  .product-price-panel,
  .product-selector-grid {
    grid-template-columns: 1fr;
  }

  .product-market-link,
  .product-option-block + .product-option-block {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }

  .drawer-panel {
    max-width: none;
    padding: 20px;
  }

  .checkout-sheet,
  .success-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .checkout-panel,
  .success-panel {
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    max-height: calc(100dvh - 20px);
    max-width: none;
    padding: 24px 20px;
  }

  .checkout-signal {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .checkout-brand-logo {
    height: 36px;
    width: 148px;
  }

  .checkout-form-grid,
  .checkout-wallet-gate {
    grid-template-columns: 1fr;
  }

  .checkout-phone-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }
}

/* Final trade terminal overrides. Keep after legacy responsive rules. */
.trade-section {
  background:
    radial-gradient(circle at 72% -18%, rgba(32, 214, 194, 0.12), transparent 30%),
    linear-gradient(180deg, #06111a 0%, #050914 100%);
  display: block;
  min-height: 100dvh;
  overflow: hidden;
  padding: 72px 10px 10px;
}

.trade-section::before {
  content: none;
}

.trade-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(100dvh - 82px);
  width: 100%;
}

.trade-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  max-width: none;
  min-height: 48px;
  padding: 0 4px;
  width: 100%;
}

.trade-title-block {
  align-items: baseline;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.trade-heading h2 {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.trade-description {
  color: rgba(245, 248, 255, 0.54);
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-ribbon {
  align-items: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  max-width: none;
  overflow: visible;
  padding: 0;
  position: static;
  top: auto;
}

.ribbon-item {
  background: rgba(10, 20, 34, 0.82);
  border: 1px solid rgba(222, 233, 246, 0.11);
  border-radius: 8px;
  min-width: 106px;
  padding: 7px 10px;
}

.ribbon-item:last-child {
  border-right: 1px solid rgba(222, 233, 246, 0.11);
}

.ribbon-item .label {
  font-size: 10px;
  margin-bottom: 4px;
}

.ribbon-item strong {
  font-size: 15px;
  font-weight: 620;
  line-height: 1;
}

.ribbon-item.linked strong,
.chart-readout div:first-child strong {
  color: #d4aa57;
}

.ribbon-item.sales strong {
  color: #2fd8c4;
}

.trade-grid {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 348px;
  margin: 0;
  max-width: none;
  min-height: 0;
  width: 100%;
}

.chart-pane,
.action-rail {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(8, 17, 29, 0.94);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  box-shadow: none;
}

.chart-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.chart-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  min-height: 46px;
  overflow: visible;
  padding: 0 12px;
}

.pair-title {
  align-items: baseline;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.pair-title strong {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.pair-title span {
  color: rgba(245, 248, 255, 0.5);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-controls {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.timeframe,
.chart-toggle {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 6px;
  color: rgba(245, 248, 255, 0.62);
  height: 30px;
  min-width: 0;
  padding: 0 10px;
}

.timeframe.active,
.chart-toggle.active {
  background: rgba(32, 214, 194, 0.14);
  border-color: rgba(32, 214, 194, 0.42);
  color: var(--ink);
}

.chart-toggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.chart-toggle span:first-child {
  align-items: center;
  background: rgba(200, 155, 60, 0.18);
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: 999px;
  color: #d4aa57;
  display: inline-flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  padding: 0 6px;
}

.chart-frame {
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.86), rgba(5, 9, 20, 0.94));
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

#priceChart {
  display: block;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.chart-readout {
  align-items: stretch;
  background: rgba(8, 17, 29, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(222, 233, 246, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 0;
  left: 12px;
  padding: 0;
  position: absolute;
  right: auto;
  top: 12px;
}

.chart-readout > div {
  min-width: 128px;
  padding: 10px 12px;
}

.chart-readout > div + div {
  border-left: 1px solid rgba(222, 233, 246, 0.09);
}

.chart-readout strong {
  display: block;
  font-size: 20px;
  font-weight: 620;
  line-height: 1;
}

.chart-readout .label {
  font-size: 10px;
  margin-bottom: 6px;
}

.chart-btc-chip strong {
  color: var(--teal);
}

.active-strip {
  align-items: center;
  background: rgba(10, 20, 34, 0.92);
  border-top: 1px solid rgba(222, 233, 246, 0.1);
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  grid-template-columns: 1.08fr 0.9fr 0.9fr 0.8fr 1fr auto;
  margin: 0;
  padding: 0;
}

.active-strip.hidden {
  display: none !important;
}

.active-strip > div {
  border-right: 1px solid rgba(222, 233, 246, 0.08);
  min-width: 0;
  padding: 12px 14px;
}

.active-strip .label {
  font-size: 10px;
  margin-bottom: 5px;
}

.active-strip strong {
  display: block;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-strip .button {
  align-self: center;
  height: 34px;
  margin: 0 12px;
  min-width: 92px;
}

.action-rail {
  align-self: stretch;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  position: relative;
  top: auto;
}

.rail-heading {
  border-bottom: 1px solid rgba(222, 233, 246, 0.1);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.rail-heading strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
}

.mode-tabs {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}

.mode-tab {
  border-radius: 6px;
  font-size: 13px;
  height: 34px;
}

.quote-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(222, 233, 246, 0.1);
  border-radius: 8px;
  margin: 12px 0;
  padding: 14px;
}

.quote-block strong {
  font-size: 38px;
  font-weight: 620;
}

.quote-block p {
  color: rgba(245, 248, 255, 0.56);
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.inverse-rule {
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  border-top: 1px solid rgba(222, 233, 246, 0.09);
  min-height: 44px;
}

.preorder-controls {
  border-bottom: 1px solid rgba(222, 233, 246, 0.09);
  padding: 12px 0;
}

.multiplier-control,
.asset-toggle {
  display: flex;
  gap: 6px;
}

.multiplier,
.asset {
  border-radius: 6px;
  height: 34px;
  min-width: 48px;
  padding: 0 10px;
}

.summary-rows {
  flex: 0 0 auto;
  padding: 4px 0 12px;
}

.summary-rows > div {
  min-height: 44px;
}

.summary-rows span {
  color: rgba(245, 248, 255, 0.58);
  font-size: 13px;
}

.summary-rows strong {
  font-size: 13px;
}

.preorder-decision {
  background: rgba(200, 155, 60, 0.08);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 12px;
}

.decision-grid {
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
}

.action-rail .button.full {
  flex: 0 0 auto;
  height: 44px;
}

.action-rail .text-button {
  color: rgba(245, 248, 255, 0.58);
  height: 34px;
  margin-top: 6px;
}

@media (min-width: 1101px) and (max-height: 820px) {
  .trade-section {
    padding-bottom: 8px;
    padding-top: 72px;
  }

  .trade-shell {
    min-height: calc(100dvh - 80px);
  }

  .trade-heading {
    min-height: 42px;
  }

  .chart-toolbar {
    min-height: 42px;
  }

  .quote-block strong {
    font-size: 32px;
  }

  .summary-rows > div {
    min-height: 40px;
  }
}

@media (max-width: 1100px) {
  .trade-section {
    overflow: visible;
    padding: 88px 12px 12px;
  }

  .trade-shell {
    min-height: auto;
  }

  .trade-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-ribbon {
    flex-wrap: wrap;
    width: 100%;
  }

  .ribbon-item {
    flex: 1 1 142px;
  }

  .trade-grid {
    grid-template-columns: 1fr;
  }

  .chart-frame {
    height: 58dvh;
    min-height: 480px;
  }

  .action-rail {
    overflow: visible;
  }

  .active-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .active-strip .button {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0 12px 12px;
  }
}

@media (max-width: 760px) {
  .trade-section {
    padding: 116px 8px 12px;
  }

  .trade-title-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .trade-heading h2 {
    font-size: 20px;
  }

  .trade-description {
    white-space: normal;
  }

  .market-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .chart-controls {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .chart-frame {
    height: 460px;
    min-height: 460px;
  }

  .chart-readout {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .chart-readout > div {
    min-width: 0;
    width: 50%;
  }

  .active-strip {
    grid-template-columns: 1fr 1fr;
  }
}
