.price-main {
  padding: 26px clamp(18px, 4vw, 56px) 60px;
  max-width: 1500px;
  margin: 0 auto;
}

.nav-stamps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.price-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 26px;
}

.price-card,
.basis-card,
.chart-card,
.readout-grid article {
  border: var(--border);
  box-shadow: var(--shadow-lg);
}

.price-card {
  background: var(--yellow);
  padding: clamp(20px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}

.price-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 190px;
  height: 190px;
  background: var(--cyan);
  border: 4px solid var(--ink);
  transform: rotate(-14deg);
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-now {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 10vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  margin: 22px 0 10px;
  word-break: break-word;
}

.price-change-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.change-pill {
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.change-pill.up {
  background: var(--lime);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ea043;
  border: 2px solid var(--ink);
  display: inline-block;
  animation: live-pulse 1.6s ease-in-out infinite;
}

.live-badge.is-stale .live-dot {
  background: var(--orange);
  animation: none;
}

.live-badge.is-error .live-dot {
  background: var(--red);
  animation: none;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(46, 160, 67, 0); }
}

.price-live-meta {
  margin: -8px 0 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.change-pill.down {
  background: var(--pink);
}

.price-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 3px solid var(--ink);
  padding-top: 12px;
}

.price-stats span,
.basis-cell span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.62);
  margin-bottom: 4px;
}

.price-stats strong {
  font-size: clamp(13px, 1.6vw, 18px);
  text-transform: uppercase;
}

.basis-card {
  background: var(--pink);
  padding: clamp(20px, 3vw, 30px);
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.basis-cell {
  border: 3px solid var(--ink);
  background: var(--white);
  padding: 10px;
  min-height: 92px;
}

.basis-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 3px 0 6px;
}

.basis-cell em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-card {
  margin-top: 26px;
  background: var(--white);
  padding: clamp(16px, 3vw, 28px);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
}

.chart-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 6px 0 0;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scale-chip {
  background: var(--cyan);
}

.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 3px 6px;
}

.legend-item.off {
  opacity: 0.35;
}

.legend-swatch {
  width: 16px;
  height: 8px;
  display: inline-block;
  border: 2px solid var(--ink);
}

.zone-legend-block {
  margin-top: 10px;
  border-top: 3px solid var(--ink);
  padding-top: 10px;
}

.zone-legend-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}

.zone-now {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.zone-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.zone-legend-item.active {
  opacity: 1;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 5px;
}

.zone-legend-swatch {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  flex: none;
}

.zone-band { opacity: 0.24; }
.zone-ribbon { opacity: 0.95; }

.chart-wrap {
  position: relative;
  margin-top: 8px;
}

#price-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.price-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.price-area {
  fill: url(#price-fill);
}

.ma-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  opacity: 0.95;
}

.realized-line {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2.5;
  stroke-dasharray: 8 5;
}

.volume-bar {
  fill: rgba(10, 10, 10, 0.16);
}

.chart-axis {
  stroke: rgba(10, 10, 10, 0.22);
  stroke-width: 1;
}

.chart-axis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--muted);
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 160px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.5;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.tooltip-zone {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  margin-right: 5px;
  vertical-align: -1px;
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 3px solid var(--ink);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  margin-top: 26px;
}

.readout-grid article {
  background: var(--cyan);
  padding: clamp(18px, 3vw, 28px);
}

.readout-grid article:nth-child(2) {
  background: var(--lime);
}

.readout-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 7px 0 10px;
}

.readout-grid p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .price-hero,
  .readout-grid {
    grid-template-columns: 1fr;
  }
  .chart-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .chart-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .price-stats,
  .basis-grid {
    grid-template-columns: 1fr;
  }
  .price-now {
    font-size: 3.6rem;
  }
}
