:root {
  --bg: #030403;
  --panel: #0d100b;
  --panel-2: #15190f;
  --line: rgba(215, 255, 64, 0.22);
  --line-strong: rgba(215, 255, 64, 0.44);
  --text: #f7ffe9;
  --muted: #a3ad94;
  --green: #00c805;
  --lime: #d7ff40;
  --lime-2: #b8f21f;
  --lime-soft: #ecff9c;
  --blue: #7ac8ff;
  --gold: #ffe86b;
  --red: #ff647c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(215, 255, 64, 0.12) 0%, transparent 28%),
    linear-gradient(180deg, #11170d 0%, #050604 42%, #020302 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(215, 255, 64, 0.07), transparent 42%),
    rgba(5, 7, 4, 0.92);
  box-shadow: var(--shadow);
  padding: 12px;
}

.topbar-brand {
  padding-left: 8px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-nav {
  display: flex;
  gap: 8px;
}

.page-tab {
  height: 42px;
  border: 1px solid rgba(215, 255, 64, 0.18);
  background: rgba(3, 5, 3, 0.78);
  color: var(--text);
  cursor: pointer;
  padding: 0 18px;
  font-weight: 900;
}

.page-tab.active {
  border-color: rgba(215, 255, 64, 0.92);
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  color: #101603;
}

.hidden {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 24px;
  min-height: 320px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.toolbar,
.table-card,
.gem-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 24, 15, 0.97), rgba(7, 9, 6, 0.98));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 36px;
  min-height: 320px;
  background:
    linear-gradient(120deg, rgba(215, 255, 64, 0.13), transparent 54%),
    linear-gradient(180deg, rgba(19, 29, 14, 0.98), rgba(6, 8, 5, 0.98));
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 70%);
  pointer-events: none;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(0, 200, 5, 0.4), transparent);
}

.pulse {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 8px rgba(215, 255, 64, 0.12);
}

.hero-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 0 0 10px;
}

.hero-slogan {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0;
  color: #dbe7cc;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(17, 22, 13, 0.98), rgba(5, 7, 4, 0.98));
}

.hero-panel > div {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(215, 255, 64, 0.17);
  background:
    linear-gradient(135deg, rgba(215, 255, 64, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.014);
  padding: 24px;
}

.hero-panel > div::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-top: 1px solid rgba(215, 255, 64, 0.42);
  border-right: 1px solid rgba(215, 255, 64, 0.42);
}

.panel-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  color: var(--text);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(215, 255, 64, 0.075), transparent 44%),
    linear-gradient(180deg, rgba(13, 17, 10, 0.98), rgba(4, 6, 4, 0.98));
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab,
.refresh {
  border: 1px solid rgba(215, 255, 64, 0.18);
  background: rgba(5, 7, 4, 0.88);
  color: var(--text);
  cursor: pointer;
  height: 48px;
  padding: 0 20px;
  font-weight: 800;
}

.tab.active {
  border-color: rgba(215, 255, 64, 0.92);
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  color: #101603;
  font-weight: 800;
}

.search-wrap {
  display: flex;
  width: min(520px, 100%);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(215, 255, 64, 0.18);
  background: rgba(4, 6, 4, 0.92);
  padding: 0 18px;
}

.search-wrap svg,
.refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.search-wrap input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gem-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(215, 255, 64, 0.11), transparent 47%),
    linear-gradient(180deg, rgba(16, 22, 13, 0.99), rgba(4, 6, 4, 0.99));
}

.gem-card::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(0, 200, 5, 0.38), transparent);
}

.gem-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card-chain-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
  margin-bottom: 8px;
}

.token-cell,
.table-head,
.actions {
  display: flex;
  align-items: center;
}

.table-head {
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.posted {
  color: #101603;
  background: var(--lime-soft);
}

.badge.heating {
  color: #101603;
  background: var(--lime);
}

.badge.new {
  color: #061018;
  background: var(--blue);
}

.safety-check {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 255, 64, 0.3);
  border-radius: 50%;
  background: rgba(215, 255, 64, 0.12);
  color: var(--lime);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.card-title {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  max-width: calc(100% - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 30px;
  line-height: 1.05;
}

.address {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.address:hover,
.address.copied {
  color: var(--lime);
}

.metric-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric {
  border: 1px solid rgba(215, 255, 64, 0.18);
  background:
    linear-gradient(180deg, rgba(215, 255, 64, 0.045), rgba(255, 255, 255, 0.012));
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.table-card {
  margin-top: 24px;
  overflow: hidden;
}

.table-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.table-head h2 {
  margin: 0;
  font-size: 22px;
}

.table-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.new-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.new-stats > div {
  border-right: 1px solid rgba(215, 255, 64, 0.14);
  padding: 18px 24px;
  background:
    linear-gradient(135deg, rgba(215, 255, 64, 0.06), transparent 58%),
    rgba(255, 255, 255, 0.012);
}

.new-stats > div:last-child {
  border-right: 0;
}

.new-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.new-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.new-token-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chain-toggle {
  display: inline-flex;
  border: 1px solid rgba(215, 255, 64, 0.18);
  background: rgba(5, 7, 4, 0.88);
}

.chain-toggle-btn {
  height: 38px;
  border: 0;
  border-right: 1px solid rgba(215, 255, 64, 0.14);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.chain-toggle-btn:last-child {
  border-right: 0;
}

.chain-toggle-btn.active {
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  color: #101603;
}

.table-wrap {
  overflow-x: auto;
}

.new-token-scroll {
  max-height: 1320px;
  overflow: auto;
}

.new-token-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0a0f08;
}

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

th,
td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.token-cell {
  gap: 12px;
}

.chain-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.chain-mark.rh {
  box-shadow: 0 0 0 4px rgba(215, 255, 64, 0.08);
}

.chain-mark.bsc {
  box-shadow: 0 0 0 4px rgba(243, 186, 47, 0.1);
}

.chain-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

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

.x-good {
  color: var(--lime);
  font-weight: 900;
}

.x-cold {
  color: var(--muted);
  font-weight: 800;
}

.actions {
  justify-content: flex-end;
  gap: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.link-btn.primary {
  border-color: rgba(215, 255, 64, 0.72);
  color: var(--lime);
}

.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.tracking {
  border-color: rgba(122, 200, 255, 0.34);
  color: var(--blue);
}

.status-pill.hit {
  border-color: rgba(215, 255, 64, 0.7);
  color: #101603;
  background: var(--lime);
}

.status-pill.removed {
  border-color: rgba(255, 100, 124, 0.34);
  color: var(--red);
}

.empty {
  padding: 44px 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1420px);
    padding-top: 10px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-brand {
    padding-left: 0;
  }

  .page-nav {
    width: 100%;
  }

  .page-tab {
    flex: 1;
  }

  .new-stats {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }
}
