* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1d4ed8 0, transparent 32%),
    linear-gradient(135deg, #020617, #0f172a 55%, #111827);
  color: white;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
}

.topbar p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.nav-btn {
  text-decoration: none;
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37,99,235,0.35);
}

.container {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.hero h2 {
  margin: 0;
  font-size: 34px;
}

.hero p {
  color: #94a3b8;
}

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

.card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(15,23,42,0.76);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.label {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

.card strong {
  display: block;
  margin-top: 16px;
  font-size: 30px;
}

.change {
  font-size: 18px;
  font-weight: 800;
}

.up {
  color: #22c55e;
}

.down {
  color: #ef4444;
}

.stock-section {
  margin-top: 26px;
}

.stock-section h3 {
  font-size: 22px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  background: rgba(15,23,42,0.78);
  border: 1px solid rgba(255,255,255,0.12);
}

.stock-row strong {
  display: block;
  font-size: 20px;
}

.stock-row span {
  color: #94a3b8;
}

.stock-row b {
  font-size: 22px;
}

.stock-row p {
  margin: 6px 0 0;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

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

  .hero h2 {
    font-size: 28px;
  }
}