:root {
  color-scheme: dark;
  --bg: #07100f;
  --surface: rgba(16, 29, 27, 0.82);
  --surface-solid: #101d1b;
  --surface-2: #142522;
  --line: rgba(186, 226, 214, 0.14);
  --line-strong: rgba(186, 226, 214, 0.27);
  --text: #f2f7f3;
  --muted: #93a8a1;
  --accent: #b7f34a;
  --accent-2: #55e0c4;
  --danger: #ff8078;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
}
.ambient-one { top: -220px; left: -160px; background: var(--accent-2); }
.ambient-two { right: -200px; top: 360px; background: var(--accent); opacity: .08; }

.site-header, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(183, 243, 74, .4);
  border-radius: 12px;
  background: rgba(183, 243, 74, .1);
  color: var(--accent);
  font-weight: 850;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.network-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b7c8c2;
  font-size: 12px;
  background: rgba(7, 16, 15, .72);
}
.network-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(183, 243, 74, .09); }

main { padding: 74px 0 110px; }
.hero { max-width: 910px; margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 15px; color: var(--accent-2); font-size: 11px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: .99;
  letter-spacing: -.06em;
  font-weight: 740;
}
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 720px; margin: 0 auto; color: #a5b8b2; font-size: clamp(15px, 2vw, 18px); line-height: 1.75; }

.query-panel {
  position: relative;
  margin-top: 46px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(22, 39, 36, .94), rgba(12, 23, 21, .92));
  box-shadow: var(--shadow);
  text-align: left;
}
.query-panel > label, .advanced-fields label { display: block; margin: 0 0 10px 3px; color: #c8d7d2; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.advanced-fields label span { color: var(--muted); font-weight: 450; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
input {
  width: 100%;
  min-width: 0;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: rgba(4, 12, 11, .72);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: #5d746d; }
input:focus { border-color: rgba(85, 224, 196, .6); box-shadow: 0 0 0 4px rgba(85, 224, 196, .08); }
#submit-button {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 58px;
  padding: 0 20px 0 23px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #11200e;
  font-weight: 800;
  transition: transform .16s, filter .16s;
}
#submit-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
#submit-button:active { transform: translateY(0); }
#submit-button:disabled { cursor: wait; filter: saturate(.3); opacity: .72; transform: none; }
.button-arrow { font-size: 21px; line-height: 1; }
.form-tools { display: flex; justify-content: space-between; margin-top: 13px; padding: 0 3px; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.text-button:hover { color: var(--accent-2); }
.advanced-fields { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.advanced-fields input { height: 50px; }
.form-error { margin: 15px 3px 0; color: var(--danger); font-size: 13px; }

.status-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(85, 224, 196, .2);
  border-radius: 17px;
  background: rgba(14, 30, 27, .82);
  text-align: left;
}
.status-spinner { width: 22px; height: 22px; border: 2px solid rgba(85,224,196,.18); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-card strong { font-size: 13px; }
.status-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.status-time { color: var(--accent-2); font-family: monospace; font-size: 12px; }

.results, .method, .history { margin-top: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.04em; }
.secondary-button, .icon-button {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: #cfddd8;
  font-size: 12px;
}
.secondary-button { padding: 11px 15px; }
.secondary-button:hover, .icon-button:hover { border-color: rgba(183, 243, 74, .4); color: var(--accent); }

.token-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(130px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(13, 26, 23, .72);
}
.token-match-count { justify-self: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.token-match-count strong { color: var(--accent); font-size: 18px; }
.token-label { color: var(--muted); font-size: 12px; }
.token-card code { overflow: hidden; color: #d7e4e0; font-size: 13px; text-overflow: ellipsis; }
.icon-button { padding: 7px 10px; }

.match-list { display: grid; gap: 12px; margin-top: 22px; }
.match-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .18s, transform .18s;
}
.match-card:hover { border-color: rgba(85, 224, 196, .32); transform: translateY(-1px); }
.match-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(85,224,196,.1); color: var(--accent-2); font-size: 13px; font-weight: 800; }
.match-main { min-width: 0; }
.match-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.match-hash { display: block; overflow: hidden; color: #ecf5f1; font-family: monospace; font-size: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.match-hash:hover { color: var(--accent); }
.match-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.relay-tag { color: var(--accent-2); }
.wallet-list { display: grid; gap: 8px; margin-top: 14px; }
.wallet-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 15, 13, .48); }
.wallet-label { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.wallet-value { overflow: hidden; color: #d7e4e0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-actions, .match-actions { display: flex; gap: 8px; }
.wallet-actions a, .wallet-actions button, .match-actions a, .match-actions button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; text-decoration: none; white-space: nowrap; }
.wallet-actions button { border-color: rgba(85, 224, 196, .24); color: var(--accent-2); }
.wallet-actions a:hover, .wallet-actions button:hover, .match-actions a:hover, .match-actions button:hover { color: var(--text); border-color: var(--line-strong); }
.pump-profile { margin-top: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5, 15, 13, .48); }
.pump-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pump-profile-head span { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.pump-profile-head a { overflow: hidden; color: var(--accent); font-size: 14px; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.pump-profile-head a:hover, .pump-details a:hover { color: var(--text); }
.pump-bio { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: #b9cac4; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pump-details { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.pump-details a { color: #b4c8c1; text-decoration: none; }
.pump-profile-empty { color: var(--muted); font-size: 11px; }
.fomo-profile { margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(183, 243, 74, .18); border-radius: 13px; background: rgba(16, 25, 10, .32); }
.profile-unavailable { border-color: rgba(255, 163, 88, .3); color: #e8b68f; }

.empty-state { margin-top: 22px; padding: 50px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 22px; }
.empty-state h3 { margin-bottom: 9px; font-size: 20px; }
.empty-state p { max-width: 480px; margin: auto; color: var(--muted); line-height: 1.65; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.method-grid article { padding: 25px; border-top: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(18,32,29,.65), transparent); }
.method-grid b { color: var(--accent); font-family: monospace; font-size: 12px; }
.method-grid h3 { margin: 35px 0 10px; font-size: 18px; }
.method-grid p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.compact-heading { align-items: center; }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,25,23,.65); }
.history-item button { min-width: 0; padding: 0; overflow: hidden; border: 0; background: none; color: #c6d5d0; font-family: monospace; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.history-item span { color: var(--muted); font-size: 11px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p { margin: 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent-2); }

.form-tools { flex-wrap: wrap; gap: 12px; }
.input-hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.profile-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.profile-options label { margin: 0; }
.profile-options select { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #10221c; color: #e3efeb; font: inherit; }
.profile-options span { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.profile-cards { display: grid; gap: 18px; margin-top: 20px; }
.account-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #0d1b17; overflow-wrap: anywhere; }
.account-card .wallet-list { margin-top: 14px; }
.account-card .pump-profile { margin-top: 0; }
.account-card small { display: block; margin-top: 14px; color: var(--muted); }
.activation-main { max-width: 620px; padding-top: 9vh; }
.activation-panel h1 { font-size: 32px; margin: 8px 0 14px; }
.activation-panel .eyebrow { margin-top: 24px; }
.activation-note { color: var(--muted); font-size: 13px; line-height: 1.8; }
.activation-panel form { margin: 28px 0; }
#activation-code { width: 100%; font-family: monospace; }
#activation-submit { width: 100%; padding: 16px; margin-top: 14px; background: var(--accent); color: #102000; border: 0; border-radius: 14px; font-weight: 700; }
#activation-submit:disabled { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  main { padding-top: 46px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; }
  .method-grid h3 { margin: 0 0 8px; }
  .method-grid p { grid-column: 2; }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }
  .site-header { padding-top: 18px; }
  .network-pill { padding: 8px; font-size: 0; }
  h1 { font-size: clamp(40px, 13vw, 62px); }
  .query-panel { padding: 14px; border-radius: 20px; }
  .input-row { grid-template-columns: 1fr; }
  input { min-height: 54px; font-size: 12px; }
  #submit-button { justify-content: space-between; }
  .status-card { grid-template-columns: auto 1fr; }
  .status-time { display: none; }
  .results, .method, .history { margin-top: 80px; }
  .token-card { grid-template-columns: 1fr auto; }
  .token-label, .token-card code { grid-column: 1 / -1; }
  .token-match-count { justify-self: start; }
  .match-card { grid-template-columns: 40px minmax(0, 1fr); }
  .match-number { width: 40px; height: 40px; }
  .match-header { grid-template-columns: 1fr; }
  .wallet-row { grid-template-columns: 1fr; gap: 8px; }
  .pump-profile-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
