:root {
  color-scheme: dark;
  --bg: #070812;
  --panel: rgba(17, 20, 37, 0.78);
  --panel-strong: rgba(28, 33, 58, 0.92);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f7fb;
  --muted: #aab0c4;
  --soft: #d8dcff;
  --accent: #83f7c5;
  --accent-2: #a78bfa;
  --danger: #ff7a9e;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(131, 247, 197, 0.15), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.14), transparent 34rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
a.ghost-btn {
  font: inherit;
}

button,
a.ghost-btn {
  min-height: 42px;
}

.bg-orb {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  background: #83f7c5;
  top: 8rem;
  left: -9rem;
}

.orb-b {
  background: #a78bfa;
  right: -8rem;
  bottom: 4rem;
}

.topbar,
.shell,
footer {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(7, 8, 18, 0.92), rgba(7, 8, 18, 0.7));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #05110d;
  background: linear-gradient(135deg, var(--accent), #ccffe8);
  font-weight: 950;
  letter-spacing: -0.06em;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.topbar-center,
.top-actions,
.quick-row,
.trade-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-center {
  justify-content: center;
}

.top-actions {
  justify-content: flex-end;
}

.status-pill,
.network-pill,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(131, 247, 197, 0.1);
}

.shell {
  padding: 22px 22px 38px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.command-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(131, 247, 197, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(167, 139, 250, 0.08), transparent 40%),
    var(--panel);
}

.command-copy h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(30px, 4.6vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.command-copy p:not(.eyebrow) {
  max-width: 800px;
}

.command-actions {
  display: grid;
  gap: 12px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
}

input:focus {
  border-color: rgba(131, 247, 197, 0.62);
  box-shadow: 0 0 0 4px rgba(131, 247, 197, 0.1);
}

button,
a.ghost-btn {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  padding: 13px 16px;
  color: #05110d;
  background: linear-gradient(135deg, var(--accent), #ccffe8);
  font-weight: 850;
  transition: transform 0.16s ease, opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

button:hover,
a.ghost-btn:hover,
.result-card:hover,
.boosted-card:hover,
.watch-card:hover {
  transform: translateY(-1px);
}

button:disabled,
.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ghost-btn,
.quick-token {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.danger-btn {
  color: #27050e;
  background: linear-gradient(135deg, var(--danger), #ffd0dd);
}

.quick-panel {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: 12px;
}

.quick-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.side-column {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.side-column::-webkit-scrollbar {
  width: 8px;
}

.side-column::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.side-column::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.side-column::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.compact-head {
  align-items: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.panel h2 {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 26px);
  letter-spacing: -0.04em;
}

.muted,
footer {
  color: var(--muted);
  line-height: 1.6;
}

.small {
  font-size: 13px;
}

.panel-note {
  margin: 4px 0 0;
}

.table-header {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) repeat(4, minmax(88px, 0.55fr));
  gap: 10px;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list,
.meme-list {
  display: grid;
  gap: 10px;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
}

.result-card,
.watch-card,
.boosted-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 14px;
}

.result-card,
.watch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.boosted-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) repeat(4, minmax(88px, 0.55fr));
  gap: 10px;
  align-items: center;
  min-height: 70px;
}

.result-card:hover,
.watch-card:hover,
.boosted-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.token-cell,
.result-title,
.watch-title,
.boosted-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 900;
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 12px;
}

.token-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.token-name-stack {
  min-width: 0;
}

.token-name-stack strong,
.token-name-stack span {
  display: block;
}

.token-name-stack span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub,
.card-metrics,
.meta-grid,
.cell-muted {
  color: var(--muted);
  font-size: 13px;
}

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

.mobile-label {
  display: none;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.cell-value {
  font-weight: 850;
  color: var(--soft);
}

.positive {
  color: var(--accent);
}

.negative {
  color: var(--danger);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.meta-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-row code {
  color: var(--soft);
  overflow-wrap: anywhere;
  text-align: right;
}

.trade-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.trade-buttons button {
  width: 100%;
}

.chart-placeholder,
.jupiter-box {
  min-height: 420px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.chart-placeholder iframe {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 18px;
}

.jupiter-box {
  min-height: 520px;
}

.risk-note {
  margin: 12px 0 0;
  color: var(--warning);
  font-size: 13px;
}

footer {
  padding: 0 22px 30px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topbar-center,
  .top-actions {
    justify-content: flex-start;
  }

  .command-panel,
  .workspace {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .token-panel {
    order: -1;
  }
}

@media (max-width: 820px) {
  .table-header {
    display: none;
  }

  .boosted-card {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .token-cell {
    grid-column: 1 / -1;
  }

  .mobile-label {
    display: block;
    margin-bottom: 3px;
  }

  .chart-placeholder iframe {
    height: 430px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .shell,
  footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel {
    border-radius: 22px;
    padding: 14px;
  }

  .command-copy h1 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .search-box,
  .trade-buttons,
  .metrics-grid,
  .result-card,
  .watch-card {
    grid-template-columns: 1fr;
  }

  .search-box button,
  .trade-buttons button {
    width: 100%;
  }

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

  .compact-head {
    align-items: stretch;
  }

  .panel-head .ghost-btn,
  .panel-head button,
  .panel-head a {
    width: 100%;
  }

  .top-actions .ghost-btn,
  .top-actions button {
    flex: 1 1 auto;
  }

  .boosted-card {
    grid-template-columns: 1fr;
  }

  .chart-placeholder,
  .jupiter-box {
    min-height: 360px;
  }

  .chart-placeholder iframe {
    height: 390px;
  }
}

.result-card .card-metrics {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 680px) {
  .result-card .card-metrics {
    justify-content: flex-start;
    text-align: left;
  }
}

.load-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.load-more-row .ghost-btn {
  min-width: 160px;
}

.token-visual {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(131, 247, 197, 0.1), transparent 13rem),
    rgba(255, 255, 255, 0.045);
}

.token-art,
.token-art-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.05em;
  flex: 0 0 auto;
}

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

.token-visual-copy {
  min-width: 0;
}

.token-visual-copy strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.06em;
}

.token-visual-copy p {
  margin: 4px 0 0;
}

.always-on {
  display: block;
  margin-bottom: 4px;
}

.token-logo-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

@media (max-width: 680px) {
  .load-more-row {
    align-items: stretch;
    flex-direction: column;
  }

  .load-more-row .ghost-btn {
    width: 100%;
  }

  .token-visual {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .token-art,
  .token-art-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
}
