html:has(body.site-page),
body.site-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}
body.site-page .page {
  height: auto;
  min-height: 100dvh;
  grid-template-rows: var(--nav-h) auto;
  background: var(--page);
}
.site-main {
  padding: 16px;
  overflow: visible;
  background: var(--page);
  min-height: calc(100dvh - var(--nav-h));
}
.site-title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 42px;
  font-weight: 600;
  color: #fff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.stat-card,
.mini-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}
.stat-card {
  height: 96px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card .k {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}
.stat-card .v {
  color: #fff;
  font-size: 28px;
  line-height: 42px;
  font-weight: 400;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.mini-card {
  height: 140px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
}
.mini-head .ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.mini-head .grow { flex: 1; }
.mini-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}
.mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.mini-asset {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.mini-asset .row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}
.mini-asset .row1 img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.mini-asset .px {
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}
.mini-asset .meta {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 16px;
}
.mini-asset .up { color: var(--green); }
.mini-asset .down { color: var(--red); }

.mkt-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.mkt-filters .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.search-name {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  width: 200px;
  padding: 8px;
  border-radius: 6px;
  background: var(--elev);
  border: 1px solid var(--line-2);
  color: var(--muted);
  flex-shrink: 0;
}
.search-name input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  line-height: 18px;
}
.search-name input::placeholder { color: var(--muted-2); }

.site-table-wrap { overflow: auto; }
.site-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 16px;
}
.site-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 300;
  padding: 1px 8px;
  height: 32px;
  white-space: nowrap;
}
.site-table th:not(:first-child) { text-align: right; }
.site-table td {
  padding: 1px 8px;
  height: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
  white-space: nowrap;
  vertical-align: middle;
}
.site-table td:not(:first-child) { text-align: right; }
.site-table tbody tr { cursor: pointer; }
.site-table tbody tr:hover { background: var(--elev); }
.site-table td.up,
.site-table .up { color: var(--green); }
.site-table td.down,
.site-table .down { color: var(--red); }
.site-table .asset-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.site-table .star {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  flex-shrink: 0;
}
.site-table .coin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.site-table .sym { color: #fff; font-size: 12px; }
.site-table .lev {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--elev);
  color: var(--muted);
  font-size: 10px;
  line-height: 16px;
}
.site-table .tag {
  color: var(--muted);
  font-size: 10px;
}
.spark { width: 88px; height: 24px; display: block; margin-left: auto; }

.hero {
  position: relative;
  overflow: hidden;
  height: 320px;
  padding: 42px 64px 42px 56px;
  border-radius: 6px;
  border: 1px solid var(--elev);
  background: var(--surface);
  margin-bottom: 24px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  color: #fff;
}
.hero h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--muted);
}
.hero p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 24px;
  color: #55677c;
  max-width: 520px;
}
.hero p a { color: var(--brand); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-connect.hero-connect {
  height: 40px;
  width: 170px;
  padding: 8px;
  font-size: 14px;
  line-height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-hero-ghost {
  height: 40px;
  width: 170px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  line-height: 21px;
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-art svg { width: 100%; height: 100%; display: block; }

.tier-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  background: var(--surface);
}
.tier-grid {
  min-width: 980px;
  display: grid;
  grid-template-columns: 210px repeat(7, minmax(120px, 1fr));
}
.tier-grid > * {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 19.5px;
  color: var(--text-2);
  text-align: center;
}
.tier-grid .lab {
  text-align: left;
  color: #fff;
  display: flex;
  align-items: center;
}
.tier-note {
  color: var(--muted) !important;
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 400;
  align-items: flex-start !important;
}
.tier-head { min-height: 156px; }
.tier-ico { display: block; margin: 8px auto 10px; }
.tier-name { font-weight: 600; font-size: 13px; }
.t-iron .tier-name { color: #bd987e; }
.t-bronze .tier-name { color: #c08a5a; }
.t-silver .tier-name { color: #c5d0dc; }
.t-gold .tier-name { color: #e2b657; }
.t-platinum .tier-name { color: #d7dde6; }
.t-diamond .tier-name { color: #8ec5ff; }
.t-infinity .tier-name { color: #fff; }
.col-iron { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 2px 0 #c47a4a; }
.soon { color: var(--muted-2) !important; }
.vol-cell { color: var(--muted); }

.countdown-card {
  height: 400px;
  border-radius: 6px;
  border: 1px solid var(--elev);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.countdown-card .k {
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  border-bottom: 1px dotted var(--line-2);
  padding-bottom: 2px;
}
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown b {
  display: block;
  font-size: 48px;
  line-height: 72px;
  font-weight: 300;
  min-width: 58px;
  text-align: center;
}
.countdown i {
  display: block;
  font-style: normal;
  color: #55677c;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  text-align: center;
}
.countdown .colon {
  font-size: 48px;
  line-height: 72px;
  font-weight: 300;
  color: #fff;
}

.lb-tabs { margin: -8px 0 16px; }
.page-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px 8px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 18px;
}
.page-foot .hint { max-width: 520px; }
.pager { display: flex; gap: 8px; }
.pager button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--muted);
}
.pager button:disabled { opacity: 0.4; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 4px 20px;
  color: #fff;
  font-size: 13px;
  line-height: 18px;
}
.progress-row .bar {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #151a25;
  overflow: hidden;
}
.progress-row .bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand);
}
.section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.section-h h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
}
.pill.leviathan { background: #2a1848; color: #c4b5fd; }
.pill.whale { background: #1b2a4a; color: #93c5fd; }
.pill.ok { color: var(--green); background: transparent; font-size: 12px; padding: 0; }

.site-table.lb th:nth-child(1),
.site-table.lb td:nth-child(1),
.site-table.lb th:nth-child(2),
.site-table.lb td:nth-child(2) { text-align: left; }
.site-table.tr th:nth-child(2),
.site-table.tr td:nth-child(2),
.site-table.tr th:nth-child(n+3),
.site-table.tr td:nth-child(n+3) { text-align: left; }

@media (max-width: 1023px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .mini-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px; height: auto; min-height: 220px; }
  .hero h1 { font-size: 36px; line-height: 44px; }
  .search-name { width: 100%; }
  .countdown-card { height: 280px; }
}
@media (max-width: 767px) {
  .stat-grid { grid-template-columns: 1fr; }
  .countdown b,
  .countdown .colon { font-size: 32px; line-height: 48px; min-width: 40px; }
}
