:root {
  --btc: #f7931a;
  --btc-hot: #ffb347;
  --sol: #9945ff;
  --sol-mint: #14f195;
  --bg: #07060b;
  --bg-2: #120e18;
  --surface: rgba(18, 14, 24, 0.82);
  --surface-2: #1b1526;
  --line: rgba(249, 147, 26, 0.18);
  --line-2: rgba(153, 69, 255, 0.28);
  --text: #ffffff;
  --muted: #c4b8d4;
  --faint: #7a6e88;
  --blue: #9945ff;
  --blue-2: #c084ff;
  --green: #14f195;
  --red: #ff4d6d;
  --amber: #f7931a;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --header: 64px;
  --gutter: 28px;
  --mono: "IBM Plex Mono", "Menlo", ui-monospace, monospace;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(247, 147, 26, 0.28), transparent 58%),
    radial-gradient(820px 540px at 92% 0%, rgba(153, 69, 255, 0.32), transparent 55%),
    radial-gradient(700px 420px at 70% 100%, rgba(20, 241, 149, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
img { display: block; }

.app-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header);
  background: rgba(7, 6, 11, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-cluster { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.04em; font-size: 16px;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(153, 69, 255, 0.35);
}
.brand-mark img { width: 32px; height: 32px; border-radius: 8px; }
.brand-line { display: flex; align-items: baseline; gap: 8px; }
.brand span.real { color: #ffd27a; }
.x-handle, .x-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; letter-spacing: 0;
  color: #fff;
  background: rgba(153, 69, 255, 0.18);
  border: 1px solid rgba(153, 69, 255, 0.4);
  border-radius: 999px;
  padding: 4px 9px 4px 8px;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}
.x-badge:hover { color: #fff; background: rgba(153, 69, 255, 0.35); border-color: #9945ff; }
.brand span.rest { color: var(--muted); font-weight: 650; }
.brand-tag { font-size: 11px; font-weight: 650; color: var(--btc-hot); letter-spacing: 0.04em; margin-top: -2px; }
nav.main-nav { display: flex; gap: 6px; }
nav.main-nav a {
  color: var(--muted);
  font-size: 14px; font-weight: 600;
  padding: 8px 10px; border-radius: 8px;
}
nav.main-nav a:hover, nav.main-nav a.active { color: #fff; background: var(--surface); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; min-width: 240px;
}
.search input {
  background: transparent; border: 0; outline: 0; color: #fff;
  width: 100%; font-size: 13px;
}
.search input::placeholder { color: var(--faint); }
.live-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(22, 199, 132, 0.16);
  animation: pulse 1.6s infinite;
}
.dot.off { background: var(--amber); box-shadow: none; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(22, 199, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0); }
}

.global-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 11, 0.88);
  font-size: 12px; color: var(--muted);
}
.global-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 8px 0;
}
.global-inner b { color: #fff; font-weight: 650; }
.global-inner .up { color: var(--green); }
.global-inner .down { color: var(--red); }

.page { padding: 22px 0 64px; }
.kicker {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 18px;
}
h1 { font-size: 28px; letter-spacing: -0.04em; font-weight: 800; }
.sol-shimmer,
.kicker h1,
.note-top h3 {
  background: linear-gradient(90deg, #14f195 0%, #9945ff 35%, #00ffa3 65%, #9945ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sol-glimmer 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(153, 69, 255, 0.4)) drop-shadow(0 0 10px rgba(20, 241, 149, 0.25));
}
@keyframes sol-glimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 720px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.stat-card .label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-card .value { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; margin-top: 6px; }
.stat-card .hint { color: var(--faint); font-size: 12px; margin-top: 4px; }

.highlights {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px; margin-bottom: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-h {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700;
}
.panel-h span { color: var(--muted); font-weight: 500; }
.heat {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 0.9fr 0.9fr;
  gap: 4px; padding: 8px; min-height: 132px;
}
.heat-cell {
  border-radius: 8px; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 116px; color: #08110c;
  font-weight: 750;
}
.heat-cell .sym { font-size: 13px; opacity: 0.85; }
.heat-cell .px { font-size: 16px; letter-spacing: -0.03em; }
.heat-cell .ch { font-size: 12px; }
.mini-list { padding: 4px 0 8px; }
.mini-row {
  display: grid; grid-template-columns: 22px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 8px 14px; font-size: 13px;
}
.mini-row:hover { background: var(--surface-2); }
.mini-row img { width: 18px; height: 18px; border-radius: 50%; }
.table-card { overflow: auto; }
table.markets {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
table.markets th {
  text-align: left; color: var(--muted); font-weight: 650; font-size: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; background: var(--surface);
  cursor: pointer; user-select: none;
}
table.markets th.num, table.markets td.num { text-align: right; }
table.markets td {
  padding: 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; vertical-align: middle;
}
table.markets tbody tr { cursor: pointer; }
table.markets tbody tr:hover { background: #262a38; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell img { width: 26px; height: 26px; border-radius: 50%; }
.coin-cell .name { font-weight: 700; }
.coin-cell .sym { color: var(--muted); font-size: 12px; font-weight: 650; margin-left: 6px; }
.chg.up { color: var(--green); font-weight: 650; }
.chg.down { color: var(--red); font-weight: 650; }
.star {
  color: var(--faint); background: none; border: 0; cursor: pointer;
  font-size: 16px; width: 24px;
}
.star.on { color: #f5c518; }
.spark { width: 120px; height: 36px; }
.price { font-variant-numeric: tabular-nums; font-weight: 650; }
.toolbar {
  display: flex; gap: 8px; align-items: center; margin: 0 0 12px;
}
.chip {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 650; cursor: pointer;
}
.chip.on, .chip:hover {
  color: #fff;
  border-color: var(--btc);
  background: linear-gradient(135deg, rgba(247,147,26,0.22), rgba(153,69,255,0.22));
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
}
.note-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(247,147,26,0.08), rgba(153,69,255,0.12) 55%, rgba(18,14,24,0.92));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 168px;
}
.note-card.skr { box-shadow: inset 0 0 0 1px rgba(20,241,149,0.12), 0 0 28px rgba(20,241,149,0.08); }
.note-card.arx { box-shadow: inset 0 0 0 1px rgba(153,69,255,0.2), 0 0 28px rgba(153,69,255,0.1); }
.note-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.note-top img { width: 42px; height: 42px; border-radius: 50%; }
.note-top h3 { font-size: 18px; letter-spacing: -0.03em; }
.note-top .tag {
  margin-left: auto;
  font-size: 11px; font-weight: 750;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(247,147,26,0.14);
  color: var(--btc-hot);
  border: 1px solid rgba(247,147,26,0.28);
}
.note-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.note-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.note-meta b { color: #fff; font-weight: 700; display: block; font-size: 14px; }
.note-links { margin-top: 14px; display: flex; gap: 8px; }
.note-links a {
  font-size: 12px; font-weight: 650;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(153,69,255,0.12);
  color: #e9d5ff;
}
.note-links a:hover { border-color: var(--btc); color: #fff; }
.section-label {
  font-size: 13px; font-weight: 750; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--btc-hot);
  margin: 6px 0 10px;
}

.coin-hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 16px; margin-bottom: 16px;
}
.price-block { padding: 22px; }
.crumb { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.crumb a:hover { color: #fff; }
.coin-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.coin-title img { width: 42px; height: 42px; border-radius: 50%; }
.coin-title h1 { font-size: 26px; }
.badge {
  font-size: 11px; font-weight: 750; padding: 3px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted);
}
.big-price { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 4px; }
.meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 16px;
}
.meta {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
}
.meta .k { color: var(--muted); font-size: 12px; }
.meta .v { font-weight: 700; margin-top: 4px; }
.chart-panel { padding: 8px 8px 14px; }
.chart-tabs { display: flex; gap: 6px; padding: 8px 8px 0; }
canvas#chart { width: 100%; height: 340px; display: block; }
.desc { padding: 18px 20px 22px; }
.desc h2 { font-size: 18px; margin-bottom: 8px; }
.desc p { color: #c9cddd; font-size: 14.5px; max-width: 820px; }
.links { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.links a {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--blue-2);
}

.empty {
  padding: 48px 20px; text-align: center; color: var(--muted);
}
footer {
  border-top: 1px solid var(--line); color: var(--faint);
  padding: 28px 0 40px; font-size: 13px;
}
.foot-grid {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.about-prose {
  max-width: 760px; color: #c9cddd; font-size: 15px;
}
.about-prose p { margin: 0 0 14px; }
.about-prose h2 { color: #fff; font-size: 18px; margin: 22px 0 8px; }
.list-coins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.list-coins a {
  display: flex; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
}
.list-coins img { width: 28px; height: 28px; border-radius: 50%; }

@media (max-width: 980px) {
  .stat-grid, .highlights, .coin-hero, .list-coins, .note-grid { grid-template-columns: 1fr; }
  .heat { grid-template-columns: 1fr 1fr 1fr; }
  .search { min-width: 160px; }
  nav.main-nav { display: none; }
  .big-price { font-size: 32px; }
}

.rip { margin: 28px 0 8px; }
.rip-kicker { color: var(--faint); font-size: 13px; margin: -6px 0 14px; }
.rip-entry {
  background: linear-gradient(180deg, rgba(20,10,14,0.92), rgba(12,8,12,0.96));
  border: 1px solid rgba(255,77,109,0.22);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,77,109,0.06), 0 0 36px rgba(255,77,109,0.06);
}
.rip-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.rip-head > div { flex: 1; }
.rip-mark {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--red); margin-bottom: 4px;
}
.rip-entry h2 {
  font-size: 28px; letter-spacing: -0.04em;
  text-decoration: line-through;
  text-decoration-color: rgba(255,77,109,0.7);
  text-decoration-thickness: 2px;
}
.rip-dek { color: var(--muted); margin-top: 4px; font-size: 15px; }
.rip-tag {
  font-size: 11px; font-weight: 750;
  padding: 4px 8px; border-radius: 999px;
  color: var(--red);
  border: 1px solid rgba(255,77,109,0.35);
  background: rgba(255,77,109,0.08);
  white-space: nowrap;
}
.rip-entry h3 { margin: 16px 0 8px; font-size: 15px; letter-spacing: -0.02em; color: #ffd0d8; }
.rip-entry p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.rip-entry ul { margin: 0 0 12px 18px; color: var(--muted); font-size: 14.5px; }
.rip-entry li { margin: 0 0 6px; }
.rip-end { color: #e8dce8 !important; }
.rip-line {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255,77,109,0.2);
  font-family: var(--mono);
  font-size: 13px !important;
  color: #ffb3bf !important;
}

.rip-entry + .rip-entry { margin-top: 16px; }

.about-prose h2 { margin: 22px 0 10px; font-size: 18px; letter-spacing: -0.03em; }
.about-prose h3 { margin: 16px 0 6px; font-size: 15px; color: #ffd27a; letter-spacing: -0.02em; }
.about-prose p { color: var(--muted); margin: 0 0 10px; max-width: 760px; }
.about-prose .sub { color: var(--btc-hot); margin-bottom: 14px; }

.top100 { margin: 28px 0 8px; }
.top100-wrap { max-height: 640px; overflow: auto; }
.top100-wrap thead th { position: sticky; top: 0; background: #120e18; z-index: 2; }
.coin-cell img.fallback-mark {
  display: grid; place-items: center;
  background: #22182c; color: #ffd27a; font-size: 10px; font-weight: 800;
}

.about-prose .top100 { max-width: none; }
.about-prose .top100-wrap { margin-top: 8px; }
