:root{
  --bg:#0b1220;
  --card:#0f1a2c;
  --text:#e8eefc;
  --muted:rgba(232,238,252,.65);
  --line:rgba(255,255,255,.08);
  --green:#41d37e;
  --red:#ff5d6c;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  position: sticky;
  top:0;
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:38px; height:38px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(207,225,255,.12);
  border:1px solid var(--line);
  font-weight:900;
}
.name{font-size:16px; font-weight:800}
.sub{font-size:12px; color:var(--muted); margin-top:2px}

.btn{
  padding:10px 14px;
  border-radius: 999px;
  background:#cfe1ff;
  color:#0b1220;
  text-decoration:none;
  font-weight:900;
}

.wrap{max-width: 980px; margin: 0 auto; padding: 18px 14px;}
.hero{padding: 4px 0 30px;}

.priceRow{
  display:flex; align-items:baseline;
  gap:14px; flex-wrap:wrap;
  margin-top:10px;
}
.price{
  font-size: 56px;
  font-weight: 900;
  letter-spacing: .2px;
}
.chg{
  font-size: 18px;
  font-weight: 800;
}
.chg.up{color: var(--green)}
.chg.down{color: var(--red)}

.meta{margin-top:8px; color:var(--muted); font-size:13px}

.tabs{
  margin-top: 14px;
  display:flex; flex-wrap:wrap;
  gap:10px;
}
.tab{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 14px;
  font-weight: 800;
  cursor:pointer;
}
.tab.active{
  background: rgba(65,211,126,.16);
  border-color: rgba(65,211,126,.35);
}

.card{
  margin-top: 14px;
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
}
#chart{height: 420px;}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 780px){
  .grid{grid-template-columns: repeat(2, minmax(0,1fr));}
  .price{font-size:46px}
  #chart{height: 360px;}
}

.stat{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.stat .k{color:var(--muted); font-size:12px}
.stat .v{margin-top:6px; font-size:16px; font-weight:900}

.note{margin-top:10px; color:var(--muted); font-size:12px}

.disclaimer{
  margin-top: 16px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12px;
}
