:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: rgba(20, 21, 25, 0.88);
  --surface-strong: #17181c;
  --surface-soft: #111216;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f3ee;
  --muted: #8e9098;
  --muted-strong: #b4b5bb;
  --orange: #f7931a;
  --orange-bright: #ffa62b;
  --green: #43d19e;
  --red: #ff6b72;
  --purple: #a783ff;
  --blue: #5aa9ff;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(247, 147, 26, 0.07), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.08;
}

.ambient-one {
  top: 18%;
  left: -280px;
  background: var(--orange);
}

.ambient-two {
  right: -300px;
  bottom: 10%;
  background: #6441a5;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-mark,
.bitcoin-icon {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: linear-gradient(145deg, var(--orange-bright), #e47b00);
  box-shadow: 0 8px 26px rgba(247, 147, 26, 0.18);
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.connection-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4a74c;
  box-shadow: 0 0 0 4px rgba(212, 167, 76, 0.1);
}

.connection-pill[data-state="online"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(67, 209, 158, 0.1);
}

.connection-pill[data-state="offline"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 107, 114, 0.1);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  transition: 180ms ease;
}

.share-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
  transition: 180ms ease;
}

.share-button:hover,
.icon-button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.share-button svg,
.icon-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-button svg {
  overflow: visible;
}

.icon-button.spinning svg {
  animation: spin 0.8s linear infinite;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
}

.price-card,
.market-card {
  min-height: 440px;
  padding: 28px;
}

.price-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.asset {
  display: flex;
  gap: 13px;
  align-items: center;
}

.bitcoin-icon {
  width: 44px;
  height: 44px;
  font-size: 26px;
}

.asset h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.asset h1 {
  font-size: 19px;
  line-height: 1.08;
}

.asset p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.asset p span {
  padding: 0 3px;
}

.currency-switch,
.period-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.switch-option,
.period-option {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: 160ms ease;
}

.switch-option {
  padding: 7px 10px;
}

.period-option {
  padding: 7px 11px;
}

.switch-option.active,
.period-option.active {
  color: var(--text);
  background: #292a2f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.live-price-wrap {
  margin-top: 40px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-price {
  min-height: 58px;
  font-size: clamp(38px, 5vw, 55px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1;
  transition: color 220ms ease;
}

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

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

.change-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
}

.change-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.change-badge.positive {
  color: var(--green);
  background: rgba(67, 209, 158, 0.09);
}

.change-badge.negative {
  color: var(--red);
  background: rgba(255, 107, 114, 0.09);
}

.change-badge.neutral {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
}

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

.sparkline-wrap {
  height: 76px;
  margin: 17px -4px 8px;
}

.sparkline-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spark-line,
.chart-line {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-line {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.spark-area {
  fill: url("#sparkFill");
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.mini-stats div {
  padding: 0 16px;
  border-right: 1px solid var(--border);
}

.mini-stats div:first-child {
  padding-left: 0;
}

.mini-stats div:last-child {
  padding-right: 0;
  border-right: 0;
}

.mini-stats span,
.metric-block span,
.network-card > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.mini-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.section-heading h2 {
  font-size: 19px;
}

.updated-at {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.market-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.metric-block {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.metric-block strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
}

.metric-block small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.range-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.range-labels,
.range-values {
  display: flex;
  justify-content: space-between;
}

.range-labels {
  color: var(--muted);
  font-size: 11px;
}

.range-labels strong {
  color: var(--text);
  font-size: 11px;
}

.range-track {
  position: relative;
  height: 5px;
  margin: 18px 0 9px;
  border-radius: 99px;
  background: #303137;
}

.range-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #b96d14, var(--orange-bright));
}

.range-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 12px rgba(247, 147, 26, 0.55);
  transform: translate(-50%, -50%);
}

.range-values {
  color: var(--muted);
  font-size: 10px;
}

.insight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 13px;
  color: var(--muted-strong);
  background: rgba(247, 147, 26, 0.055);
  font-size: 11px;
  line-height: 1.55;
}

.insight-icon {
  color: var(--orange);
  font-size: 17px;
  line-height: 1;
}

.insight p {
  margin: 0;
}

.chart-card {
  margin-top: 16px;
  padding: 28px 28px 22px;
}

.chart-heading {
  align-items: center;
}

.chart-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 25px;
}

.chart-summary span {
  color: var(--muted);
  font-size: 10px;
}

.chart-summary > div > strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.chart-extremes {
  display: flex;
  gap: 18px;
}

.chart-extremes strong {
  color: var(--muted-strong);
}

.main-chart {
  position: relative;
  height: 300px;
  margin-top: 14px;
}

.main-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: none;
}

.chart-area {
  fill: url("#chartFill");
}

.chart-line {
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
  filter: url("#glow");
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hover-line {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.hover-point {
  fill: var(--orange-bright);
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  pointer-events: none;
  background: rgba(14, 15, 18, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -112%);
}

.chart-tooltip span,
.chart-tooltip strong {
  display: block;
}

.chart-tooltip span {
  color: var(--muted);
  font-size: 9px;
}

.chart-tooltip strong {
  margin-top: 4px;
  font-size: 12px;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.chart-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: bounce 1s ease-in-out infinite;
}

.chart-loading span:nth-child(2) {
  animation-delay: 0.12s;
}

.chart-loading span:nth-child(3) {
  animation-delay: 0.24s;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  min-height: 13px;
  color: var(--muted);
  font-size: 9px;
}

.news-section {
  margin-top: 16px;
  padding: 28px;
}

.news-heading {
  align-items: flex-start;
}

.news-heading h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.news-heading > div:first-child > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.news-title-row,
.news-heading-actions,
.news-toolbar,
.news-meta {
  display: flex;
  align-items: center;
}

.news-title-row {
  gap: 10px;
}

.bitcoin-only-badge {
  padding: 4px 7px;
  border: 1px solid rgba(247, 147, 26, 0.22);
  border-radius: 999px;
  color: var(--orange);
  background: rgba(247, 147, 26, 0.07);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-heading-actions {
  gap: 10px;
}

.news-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.news-filter {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.news-filter-option {
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  transition: 160ms ease;
}

.news-filter-option.active {
  color: var(--text);
  background: #292a2f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.news-count {
  color: var(--muted);
  font-size: 10px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.news-card {
  min-width: 0;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(10, 11, 14, 0.45);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.news-card:not(.is-loading):hover {
  border-color: rgba(247, 147, 26, 0.24);
  background-color: rgba(247, 147, 26, 0.025);
  transform: translateY(-2px);
}

.news-card > a {
  display: flex;
  height: 100%;
  padding: 20px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.news-meta {
  justify-content: space-between;
  gap: 10px;
}

.news-source {
  max-width: 68%;
  overflow: hidden;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-time {
  flex: none;
  color: var(--muted);
  font-size: 9px;
}

.news-card h3 {
  display: -webkit-box;
  margin: 15px 0 0;
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.018em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-link-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 700;
}

.news-link-hint span:last-child {
  color: var(--orange);
  font-size: 13px;
}

.news-card.is-loading {
  padding: 20px;
}

.news-card.is-loading span {
  display: block;
  height: 10px;
  margin-top: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, #202126 25%, #2b2c31 50%, #202126 75%);
  background-size: 200% 100%;
  animation: news-shimmer 1.35s linear infinite;
}

.news-card.is-loading span:first-child {
  width: 34%;
  margin-top: 0;
}

.news-card.is-loading span:nth-child(2) {
  width: 90%;
  height: 15px;
  margin-top: 28px;
}

.news-card.is-loading span:nth-child(3) {
  width: 72%;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 38px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.news-more {
  display: block;
  margin: 16px auto 0;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 700;
  transition: 160ms ease;
}

.news-more:hover {
  border-color: rgba(247, 147, 26, 0.25);
  color: var(--text);
}

.news-more[hidden] {
  display: none;
}

.news-disclaimer {
  margin: 18px 0 0;
  color: #666870;
  font-size: 9px;
  text-align: center;
}

.network-section {
  margin-top: 42px;
}

.section-heading-outside {
  align-items: center;
  margin: 0 4px 18px;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.network-card {
  min-height: 168px;
  padding: 19px;
}

.network-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 10px;
}

.network-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.network-icon.orange {
  color: var(--orange);
  background: rgba(247, 147, 26, 0.09);
}

.network-icon.purple {
  color: var(--purple);
  background: rgba(167, 131, 255, 0.09);
}

.network-icon.blue {
  color: var(--blue);
  background: rgba(90, 169, 255, 0.09);
}

.network-icon.green {
  color: var(--green);
  background: rgba(67, 209, 158, 0.09);
}

.network-card > strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.network-card > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.network-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.fee-card,
.halving-card {
  min-height: 250px;
  padding: 24px;
}

.section-heading.compact {
  align-items: center;
}

.unit-label,
.halving-badge {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 9px;
}

.fee-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 31px;
}

.fee-option {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.12);
}

.fee-option.featured {
  border-color: rgba(247, 147, 26, 0.26);
  background: rgba(247, 147, 26, 0.045);
}

.fee-speed {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.fee-speed.slow {
  color: var(--blue);
  background: rgba(90, 169, 255, 0.08);
}

.fee-speed.medium {
  color: var(--orange);
  background: rgba(247, 147, 26, 0.09);
}

.fee-speed.fast {
  color: var(--green);
  background: rgba(67, 209, 158, 0.09);
}

.fee-option strong {
  display: block;
  margin-top: 13px;
  font-size: 23px;
}

.fee-option small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.halving-progress {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 27px;
}

.halving-ring {
  display: grid;
  flex: none;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) 0deg, #2a2b30 0deg);
}

.halving-ring::before {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #17181c;
  content: "";
}

.halving-ring > div {
  z-index: 1;
  text-align: center;
}

.halving-ring strong,
.halving-ring small {
  display: block;
}

.halving-ring strong {
  font-size: 19px;
}

.halving-ring small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.halving-copy strong,
.halving-copy span,
.halving-copy p {
  display: block;
}

.halving-copy strong {
  font-size: 15px;
}

.halving-copy span {
  margin-top: 6px;
  color: var(--orange);
  font-size: 11px;
}

.halving-copy p {
  max-width: 265px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.learn-section {
  margin-top: 34px;
  padding-top: 10px;
}

.learn-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.learn-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.035em;
}

.learn-heading > p {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.7;
}

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

.guide-card {
  min-height: 150px;
  padding: 23px;
  box-shadow: none;
}

.guide-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.guide-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding: 0 4px;
  color: #63656d;
  font-size: 10px;
}

footer a {
  color: #858790;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--orange);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  opacity: 0;
  pointer-events: none;
  color: var(--muted-strong);
  background: rgba(20, 21, 25, 0.96);
  box-shadow: var(--shadow);
  font-size: 11px;
  transform: translateY(12px);
  transition: 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-7px); opacity: 1; }
}

@keyframes news-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .hero-grid,
  .network-details {
    grid-template-columns: 1fr;
  }

  .price-card,
  .market-card {
    min-height: auto;
  }

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

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

@media (max-width: 600px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    height: 74px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .connection-pill {
    padding: 0 10px;
  }

  .connection-pill #connectionText {
    display: none;
  }

  .share-button {
    display: grid;
    width: 36px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
  }

  .share-label {
    display: none;
  }

  .price-card,
  .market-card,
  .chart-card,
  .news-section,
  .fee-card,
  .halving-card {
    padding: 20px;
  }

  .live-price-wrap {
    margin-top: 34px;
  }

  .live-price {
    font-size: 37px;
  }

  .mini-stats {
    gap: 9px;
  }

  .mini-stats div {
    padding: 0 8px;
  }

  .mini-stats strong {
    font-size: 12px;
  }

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

  .chart-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .news-heading {
    gap: 14px;
    flex-direction: column;
  }

  .news-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-filter {
    width: 100%;
  }

  .news-filter-option {
    flex: 1;
    font-size: 11px;
  }

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

  .news-card {
    min-height: 202px;
  }

  .news-card h3 {
    font-size: 16px;
  }

  .news-card p {
    font-size: 12px;
  }

  .news-disclaimer {
    font-size: 10px;
    line-height: 1.5;
  }

  .period-switch {
    width: 100%;
  }

  .period-option {
    flex: 1;
    padding: 8px 4px;
    white-space: nowrap;
  }

  .chart-summary,
  .section-heading-outside,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-extremes {
    width: 100%;
    justify-content: space-between;
  }

  .main-chart {
    height: 220px;
  }

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

  .network-card {
    min-height: 152px;
    padding: 16px;
  }

  .network-icon {
    margin-bottom: 18px;
  }

  .fee-options {
    gap: 5px;
  }

  .fee-option {
    padding: 11px 8px;
  }

  .fee-option strong {
    font-size: 19px;
  }

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

  .guide-card {
    min-height: auto;
    padding: 20px;
  }

  .guide-card p,
  .learn-heading > p {
    font-size: 13px;
  }

  .halving-progress {
    align-items: flex-start;
  }

  .halving-ring {
    width: 96px;
    height: 96px;
  }

  .halving-ring::before {
    width: 75px;
    height: 75px;
  }

  footer {
    font-size: 11px;
    line-height: 1.5;
  }

  .eyebrow,
  .updated-at,
  .metric-block small,
  .range-values,
  .chart-axis,
  .network-card small,
  .unit-label,
  .fee-speed,
  .fee-option small,
  .halving-ring small {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .price-heading {
    align-items: flex-start;
  }

  .asset {
    gap: 9px;
  }

  .bitcoin-icon {
    width: 38px;
    height: 38px;
  }

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

  .halving-progress {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
