@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg-0: #070b12;
  --bg-1: #0d1420;
  --surface: #121b2a;
  --surface-soft: #18243a;
  --surface-elev: #1d2d47;
  --ink: #f2f7ff;
  --muted: #a8b8d3;
  --line: rgba(148, 174, 219, 0.22);
  --line-strong: rgba(171, 196, 235, 0.35);
  --accent: #4f8cff;
  --accent-2: #45d2ff;
  --brand: #a7c9ff;
  --active: #87b8ff;
  --expired: #ff9a67;
  --shadow: 0 16px 36px rgba(5, 10, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 460px at 6% -12%, rgba(79, 140, 255, 0.26), transparent 58%),
    radial-gradient(860px 420px at 104% 6%, rgba(69, 210, 255, 0.2), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 65%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem;
}

.hero,
.panel,
.table-wrap {
  background: linear-gradient(180deg, rgba(20, 31, 50, 0.94), rgba(16, 24, 40, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0.2rem 0 0;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.back-cta {
  margin: 0.48rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.4rem 0.38rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 23, 38, 0.84);
  color: var(--muted);
  font-size: 0.97rem;
}

.back-cta-link {
  text-decoration: none;
  color: #f7fbff;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 22px rgba(40, 113, 251, 0.3);
}

.back-cta-link:hover {
  filter: saturate(1.08) brightness(1.04);
}

.hero-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.84rem;
  min-width: 260px;
}

.hero-meta p {
  margin: 0;
}

.hero-meta .meta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.hero-meta .meta-dot {
  opacity: 0.7;
}

.hero-meta .meta-secondary {
  margin-top: 0.16rem;
  opacity: 0.82;
  font-size: 0.78rem;
}

.stats {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(24, 35, 56, 0.9), rgba(17, 27, 42, 0.95));
}

.card .label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.card .value {
  margin: 0.2rem 0 0;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  font-size: 1.34rem;
  font-weight: 800;
}

.panel {
  margin-top: 0.85rem;
}

.chart-panel {
  overflow: hidden;
}

.panel h2 {
  margin: 0;
  font-size: 1.08rem;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

.kv-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.kv-grid div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem;
  background: linear-gradient(180deg, rgba(28, 42, 65, 0.86), rgba(20, 31, 50, 0.93));
}

.kv-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.kv-grid strong {
  font-size: 1.02rem;
}

.tokens-line {
  margin: 0.7rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.vf-legend {
  margin-top: 0.45rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.vf-sub {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.vf-range {
  display: inline-flex;
  gap: 0.35rem;
}

.vf-range-btn {
  border: 1px solid var(--line);
  background: rgba(28, 42, 65, 0.78);
  color: #c7daf8;
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.vf-range-btn.active {
  border-color: rgba(92, 169, 255, 0.65);
  color: #ffffff;
  background: linear-gradient(145deg, rgba(61, 105, 171, 0.9), rgba(43, 79, 136, 0.95));
}

.vf-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.dot-volume,
.dot-revenue {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.dot-volume {
  background: #5ca9ff;
}

.dot-revenue {
  background: #55e7a7;
}

.vf-shell {
  margin-top: 0.58rem;
  position: relative;
}

.vf-chart {
  width: 100%;
  height: 320px;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 33, 54, 0.45), rgba(14, 26, 42, 0.5)),
    repeating-linear-gradient(
      0deg,
      rgba(154, 182, 225, 0.06) 0,
      rgba(154, 182, 225, 0.06) 1px,
      transparent 1px,
      transparent 36px
    );
}

.vf-grid {
  stroke: rgba(136, 164, 205, 0.18);
  stroke-width: 1;
}

.vf-axis-line {
  stroke: rgba(165, 191, 228, 0.35);
  stroke-width: 1.2;
}

.vf-axis {
  fill: #a8bcdc;
  font-size: 10px;
  font-weight: 600;
}

.vf-volume-line {
  fill: none;
  stroke: #5ca9ff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vf-revenue-line {
  fill: none;
  stroke: #55e7a7;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vf-hit {
  stroke: rgba(255, 255, 255, 0);
  stroke-width: 14;
  cursor: pointer;
}

.vf-tooltip {
  position: absolute;
  left: 120px;
  top: 26px;
  transform: translate(-50%, -100%);
  min-width: 180px;
  max-width: 240px;
  padding: 0.45rem 0.58rem;
  border-radius: 8px;
  border: 1px solid rgba(135, 181, 246, 0.42);
  background: rgba(9, 21, 39, 0.95);
  box-shadow: 0 10px 22px rgba(3, 10, 18, 0.45);
  color: #d8ebff;
  font-size: 0.76rem;
  line-height: 1.24;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.vf-tooltip.visible {
  opacity: 1;
}

.vf-tooltip span {
  display: block;
  color: #9ebce5;
  margin-bottom: 0.14rem;
}

.vf-tooltip strong {
  display: block;
  color: #eef6ff;
}

.vf-tooltip small {
  display: block;
  margin-top: 0.14rem;
  color: #9fc2eb;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  background: rgba(28, 42, 65, 0.78);
  font-size: 0.82rem;
}

.pill small {
  color: var(--muted);
}

.controls {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr;
  gap: 0.65rem;
}

label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.64rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: rgba(28, 42, 65, 0.78);
}

input::placeholder {
  color: #8fa4c7;
}

.table-wrap {
  margin-top: 0.85rem;
  overflow-x: auto;
}

.listings-wrap {
  max-height: 560px;
  overflow: auto;
}

.sales-wrap {
  max-height: 460px;
  overflow: auto;
}

.holders-wrap {
  max-height: 620px;
  overflow: auto;
}

/* Slim themed scrollbars */
.listings-wrap,
.sales-wrap,
.holders-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(134, 170, 224, 0.5) rgba(18, 31, 50, 0.45);
}

.listings-wrap::-webkit-scrollbar,
.sales-wrap::-webkit-scrollbar,
.holders-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.listings-wrap::-webkit-scrollbar-track,
.sales-wrap::-webkit-scrollbar-track,
.holders-wrap::-webkit-scrollbar-track {
  background: rgba(18, 31, 50, 0.45);
  border-radius: 999px;
}

.listings-wrap::-webkit-scrollbar-thumb,
.sales-wrap::-webkit-scrollbar-thumb,
.holders-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 162, 240, 0.65), rgba(94, 141, 214, 0.65));
  border-radius: 999px;
  border: 2px solid rgba(18, 31, 50, 0.45);
}

.listings-wrap::-webkit-scrollbar-thumb:hover,
.sales-wrap::-webkit-scrollbar-thumb:hover,
.holders-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(139, 190, 255, 0.75), rgba(110, 162, 240, 0.75));
}

.listings-wrap thead th,
.sales-wrap thead th,
.holders-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #1d2d47;
  box-shadow: 0 1px 0 rgba(171, 196, 235, 0.18);
}

.listings-wrap thead th {
  z-index: 5;
}

.holders-wrap thead th {
  z-index: 5;
}

.sort-th {
  border: 0;
  background: transparent;
  color: #d8e9ff;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.sort-th:hover {
  color: #ffffff;
}

.table-wrap h2 {
  margin: 0 0 0.65rem;
  font-size: 1.06rem;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

details summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(171, 196, 235, 0.14);
  text-align: left;
  padding: 0.72rem 0.62rem;
  font-size: 0.9rem;
  line-height: 1.25;
}

thead {
  background: #1d2d47;
}

td small {
  color: var(--muted);
}

.premium {
  display: inline-block;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid var(--line);
}

.premium.up {
  color: #67f0a6;
  background: rgba(39, 128, 78, 0.25);
}

.premium.down {
  color: #ffc2a4;
  background: rgba(255, 154, 103, 0.18);
}

.buy-btn {
  border: 0;
  border-radius: 9px;
  padding: 0.4rem 0.62rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.buy-btn:hover {
  filter: saturate(1.08) brightness(1.04);
}

td a {
  color: #8cd5ff;
  text-decoration: none;
}

td a:hover {
  color: #c4e8ff;
  text-decoration: underline;
}

.count {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.buy-modal {
  width: min(760px, 100%);
  background: linear-gradient(180deg, rgba(20, 31, 50, 0.98), rgba(16, 24, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.buy-modal h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

.modal-sub {
  margin: 0.25rem 0 0.8rem;
  color: var(--muted);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.filter-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem;
  background: rgba(28, 42, 65, 0.78);
}

.filter-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-row strong {
  display: block;
  margin-top: 0.13rem;
}

.filter-row.key {
  border-color: rgba(79, 140, 255, 0.7);
  background: linear-gradient(145deg, rgba(36, 57, 94, 0.95), rgba(27, 44, 73, 0.95));
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.24);
}

.filter-row.key span {
  color: #b8d8ff;
}

.filter-row.key strong {
  color: #ffffff;
  font-size: 1.02rem;
}

.modal-instructions {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(28, 42, 65, 0.78);
}

.modal-instructions p {
  margin: 0 0 0.32rem;
  font-weight: 800;
}

.modal-instructions ol {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.modal-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.button-link {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.footnote {
  text-align: center;
  margin-top: 1rem;
}

.disclaimer-bottom {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  color: rgba(193, 210, 237, 0.86);
}

.credit {
  margin: 0.45rem 0 0;
  font-size: 0.73rem;
  color: rgba(171, 192, 224, 0.66);
}

.credit a {
  color: rgba(171, 209, 255, 0.88);
  text-decoration: none;
}

.credit a:hover {
  text-decoration: underline;
}

@media (max-width: 1040px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vf-chart {
    height: 280px;
  }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
  }

  .hero-meta {
    text-align: left;
    min-width: 0;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vf-chart {
    height: 250px;
  }

  .kv-grid {
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .back-cta {
    width: 100%;
    justify-content: space-between;
  }

  .back-cta-link {
    white-space: nowrap;
  }
}
