:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: rgba(12, 26, 45, 0.82);
  --border: rgba(138, 180, 248, 0.18);
  --text: #f2f7ff;
  --muted: #92a6c4;
  --positive: #4dd7a7;
  --negative: #ff6b81;
  --btc: #f7931a;
  --eth: #7f9cf5;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 147, 26, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(127, 156, 245, 0.18), transparent 28%),
    linear-gradient(180deg, #081220 0%, #050b14 100%);
}

.background-glow {
  position: fixed;
  z-index: -1;
  inset: auto;
  width: 18rem;
  height: 18rem;
  filter: blur(70px);
  opacity: 0.55;
  border-radius: 50%;
}

.background-glow-left {
  top: 4rem;
  left: -4rem;
  background: rgba(247, 147, 26, 0.26);
}

.background-glow-right {
  top: 14rem;
  right: -5rem;
  background: rgba(127, 156, 245, 0.24);
}

.app-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow,
.chart-kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.95;
}

.subtitle {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.6;
}

.status-pill,
.price-card,
.chart-card,
.error-banner {
  backdrop-filter: blur(16px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.status-pill {
  justify-self: start;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-grid,
.charts-grid {
  display: grid;
  gap: 1rem;
}

.price-card,
.chart-card {
  border-radius: 1.4rem;
}

.price-grid {
  margin-bottom: 1rem;
}

.price-card {
  padding: 1.25rem;
}

.card-label-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.coin-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
}

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

.price-value {
  margin: 1rem 0 0.35rem;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
}

.change-value {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.change-value.positive {
  color: var(--positive);
}

.change-value.negative {
  color: var(--negative);
}

.chart-card {
  padding: 1rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chart-chip {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-wrap {
  position: relative;
  min-height: 280px;
}

.error-banner {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  color: #ffd4db;
  border-color: rgba(255, 107, 129, 0.24);
}

@media (min-width: 720px) {
  .app-shell {
    width: min(1120px, calc(100% - 3rem));
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .hero {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .status-pill {
    justify-self: end;
  }

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

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

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