:root {
  --bg: #0b1220;
  --card: #121a2b;
  --border: #1e2a40;
  --text: #e8eef9;
  --muted: #8b9bb8;
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.15);
  --red: #f87171;
  --green: #34d399;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-family: "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(1200px 600px at 50% -10%, #132033 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  padding: 16px 16px 40px;
}

.top {
  max-width: 680px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #38bdf8);
  display: grid; place-items: center;
  color: #042f2e;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.35);
}
h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; }
.tagline { font-size: 0.75rem; color: var(--muted); }

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

main {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

h2 {
  font-size: 0.95rem;
  font-weight: 650;
}

.meta, .hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.hint { margin-top: 10px; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-item {
  background: #0e1626;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 88px;
}

.price-item .sym {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-item .name { font-size: 0.65rem; font-weight: 500; opacity: 0.8; }

.price-item .val {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price-item .chg {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.chg.flat { color: var(--muted); }

.price-item.placeholder .val { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

.invite {
  background: linear-gradient(145deg, #102536 0%, #121a2b 60%);
  border-color: rgba(45, 212, 191, 0.35);
}

.invite-copy {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 6px 0 14px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 10px 16px;
  border-radius: 10px;
  margin-right: 8px;
  margin-bottom: 6px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn.primary {
  background: var(--teal);
  color: #042f2e;
}

.btn.ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.45);
}

.news-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.news-item {
  background: #0e1626;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.news-item.muted { color: var(--muted); font-size: 0.85rem; }

.news-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.news-item a:hover { color: var(--teal); }

.news-item .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal-dim);
  color: var(--teal);
  font-weight: 600;
}

.tip p { font-size: 0.88rem; color: #c5d0e6; margin-bottom: 8px; }
.disclaimer {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-bottom: 0 !important;
}

footer {
  max-width: 680px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
