:root {
  --bg: #0c0c0c;
  --panel: #121212;
  --text: #e9e9e9;
  --muted: #b3b3b3;
  --brand: #f6a400;
  --brand-2: #ffcc33;
  --success: #64f294;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(80% 60% at 80% 0%, #1b1b1b 0%, #0c0c0c 60%, #0c0c0c 100%);
  color: var(--text);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; font-weight: 800; color: #161616;
}
.brand-name { font-weight: 800; letter-spacing: 1px; }
.title { font-size: 28px; font-weight: 800; }
.date { text-align: right; color: var(--muted); font-weight: 600; }
.date .label { font-size: 12px; opacity: .9; }

.container { max-width: 1100px; margin: 0 auto; padding: 10px 20px 40px; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
}

.kpi {
  background: linear-gradient(180deg, #171717, #111);
  border: 1px solid #222;
  border-radius: 14px;
  padding: 18px 20px 16px;
}
.kpi-value { font-size: 44px; font-weight: 800; letter-spacing: 1px; }
.kpi-bar { position: relative; margin-top: 14px; height: 28px; background: #1a1a1a; border-radius: 999px; overflow: hidden; border: 1px solid #242424; }
.kpi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.kpi-label { position: absolute; inset: 0; display: grid; place-items: center; color: #161616; font-weight: 800; }

.gauge { background: linear-gradient(180deg, #171717, #111); border: 1px solid #222; border-radius: 14px; padding: 14px; text-align: center; }
.gauge-arc {
  position: relative; width: 100%; height: 120px; margin: 6px auto 10px; overflow: hidden;
}
.gauge-arc::before {
  content: ""; position: absolute; inset: auto 10% 0 10%; height: 120px; border-radius: 0 0 120px 120px/0 0 120px 120px; background:
    conic-gradient(from 200deg, #ff7a7a 0 12%, #ffd15a 12% 36%, #9bff8f 36% 100%);
  transform: translateY(50%);
}
.needle {
  --angle: 0deg;
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 0) rotate(var(--angle)); transform-origin: 50% 100%;
  width: 2px; height: 92px; background: #e8e8e8; border-radius: 2px;
}
.needle::after { content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: #e8e8e8; border-radius: 50%; }
.gauge-caption { color: var(--muted); }
.gauge-caption strong { color: var(--text); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.card { background: linear-gradient(180deg, #171717, #111); border: 1px solid #222; border-radius: 14px; padding: 16px; }
.card-title { font-weight: 800; margin-bottom: 12px; }
.with-dot { position: relative; padding-left: 18px; }
.with-dot::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 3px rgba(246,164,0,.15); }

.coins { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coin { display: flex; gap: 12px; align-items: center; }
.coin-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.coin-icon.btc { background: radial-gradient(circle at 30% 30%, #ffd37a, #ffb300); color: #1a1400; }
.coin-icon.eth { background: radial-gradient(circle at 30% 30%, #cfe3ff, #86a8ff); color: #0c1533; }
.coin-info { display: grid; }
.coin-name { font-weight: 700; }
.coin-name .sub { color: var(--muted); font-weight: 600; margin-left: 6px; }
.coin-price { color: #eaeaea; font-weight: 800; }

.gainers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gainer { display: flex; align-items: center; justify-content: space-between; }
.gainer-left { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #2c4cff, #34d0ff); }
.name { font-weight: 700; }
.name .sub { color: var(--muted); margin-left: 6px; font-weight: 600; }
.chg.up { color: var(--success); font-weight: 800; }
.chg.down { color: var(--danger); font-weight: 800; }

.news { margin-top: 24px; }
.news-header { display: inline-flex; align-items: center; gap: 8px; background: #1a1a1a; border: 1px solid #272727; color: #ffde8a; padding: 8px 12px; border-radius: 12px; font-weight: 800; }
.news-header .dot { width: 10px; height: 10px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 3px rgba(246,164,0,.15); }
.news .title { color: #ffde8a; }
.news-list { margin: 14px 0 0; padding: 0 16px 0 28px; background: linear-gradient(180deg, #171717, #111); border: 1px solid #222; border-radius: 14px; }
.news-list li { padding: 12px 12px 12px 0; border-bottom: 1px dashed #2a2a2a; }
.news-list li:last-child { border-bottom: none; }

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


