/* Attention Index — pump.fun's own theme: Geist, near-black surfaces (#0b0b0e / #131316 / #1b1b1f), zinc text, the mint green
   #86efac as the accent (with its dark green #052e16 on top of it), thin borders and soft rounded corners. */
:root {
  --bg: #0b0b0e; --bg2: #131316; --bg3: #1b1b1f; --bg4: #242429;
  --line: #232327; --line2: #303036;
  --text: #e4e4e7; --text2: #d4d4d8; --text3: #a1a1aa; --muted: #71717a; --hero: #fafafa;
  --accent: #86efac; --accent-soft: #86efac24; --on-accent: #052e16; --success: #4ade80; --accent-line: #22c55e;
  --red: #f87171; --red-soft: #f8717124; --yellow: #facc15; --yellow-soft: #facc1524; --blue: #60a5fa;
  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 12px; --r-s: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
b { font-weight: 600; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--text3); }
.small { font-size: 13px; }
.accent-t { color: var(--accent); }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 14, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* the logo: [attention index] in heavy black type on white */
.logo-mark { display: inline-block; background: #fff; color: #000; font: 700 16px/1 var(--sans); letter-spacing: -.035em; padding: 7px 10px 8px; border-radius: 6px; white-space: nowrap; }
.links { display: flex; gap: 20px; }
.links a { font: 500 14px var(--sans); text-decoration: none; color: var(--text3); }
.links a:hover { color: var(--text); }
.top-btns { margin-left: auto; display: flex; gap: 8px; }
.chip-btn { font: 600 14px var(--sans); padding: 8px 14px; background: var(--bg3); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r-s); text-decoration: none; cursor: pointer; }
.chip-btn:hover { background: var(--bg4); }
.chip-btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip-btn.primary:hover { background: #a7f3c4; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--sans); padding: 11px 18px; background: var(--bg3); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r-s); text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--bg4); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: #a7f3c4; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.badge { background: var(--bg4); color: var(--text2); font: 600 12px var(--mono); padding: 1px 7px; border-radius: 6px; }
.btn.primary .badge { background: var(--on-accent); color: var(--accent); }
.mini-btn { font: 600 11px var(--sans); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 8px; cursor: pointer; margin-top: 4px; }

/* hero */
.hero-wrap { padding: 28px 0 0; }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; background: radial-gradient(700px 360px at 85% 20%, rgba(134, 239, 172, .09), transparent 70%), var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 32px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--sans); letter-spacing: .03em; padding: 4px 9px; background: var(--bg3); color: var(--text3); border: 1px solid var(--line2); border-radius: 999px; white-space: nowrap; }
.tag.green { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.tag.yellow { background: var(--yellow-soft); color: var(--yellow); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(134, 239, 172, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(134, 239, 172, 0); } 100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); } }
.hero-title { font: 800 clamp(36px, 5.2vw, 64px)/1.02 var(--sans); letter-spacing: -.045em; margin: 22px 0 14px; color: var(--hero); }
.hero-title span { color: var(--accent); }
.sub { color: var(--text3); font-size: 18px; line-height: 1.5; max-width: 560px; margin: 0 0 18px; }
.pill-row { margin-bottom: 22px; }
.pill { display: inline-flex; gap: 6px; align-items: center; font: 500 13px var(--sans); color: var(--text3); background: var(--bg3); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; }
.pill b { color: var(--accent); font-family: var(--mono); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.logo-tile { width: 100%; aspect-ratio: 1.6; background: #fff; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 24px 60px -24px rgba(134, 239, 172, .35); }
.logo-tile span { color: #000; font: 700 clamp(22px, 2.5vw, 32px)/1 var(--sans); letter-spacing: -.04em; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.biggest { width: 100%; background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; }
.biggest .k { font: 500 12px var(--sans); color: var(--muted); display: block; }
.biggest b { font: 700 22px/1.2 var(--sans); display: block; color: var(--hero); }
.biggest span:last-child { font: 500 13px var(--mono); color: var(--accent); }
.facts-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts-row div { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px; }
.facts-row span { display: block; font: 500 11px var(--sans); color: var(--muted); }
.facts-row b { font: 600 14px var(--sans); color: var(--text); }

/* stats band */
.band { margin-top: 18px; }
.band-in { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.band-in > div { padding: 14px 16px; border-right: 1px solid var(--line); min-width: 0; }
.band-in > div:last-child { border-right: 0; }
.band .k { display: block; font: 500 12px var(--sans); color: var(--muted); }
.band b { display: block; font: 600 19px/1.3 var(--mono); color: var(--hero); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band b.accent-t { color: var(--accent); }
.band small { display: block; font: 12px var(--mono); color: var(--text3); }
.band .ca b { font-size: 14px; }

/* blocks and cards */
.block { padding: 48px 0 6px; }
.block-head { margin-bottom: 16px; }
h2 { font: 700 28px/1.15 var(--sans); letter-spacing: -.02em; margin: 0 0 6px; color: var(--hero); }
h3 { font: 600 15px var(--sans); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--text); }
.block-head p { margin: 0; max-width: 820px; color: var(--text3); }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.empty { padding: 22px 16px; color: var(--muted); text-align: center; }

/* pie */
.pie-grid { display: grid; grid-template-columns: 400px 1fr; gap: 16px; }
.pie-card { position: relative; padding: 22px; display: grid; place-items: center; }
.pie { width: 100%; max-width: 350px; height: auto; display: block; }
.pie-center { position: absolute; text-align: center; pointer-events: none; }
.pie-center b { display: block; font: 700 30px/1.1 var(--mono); color: var(--hero); }
.pie-center .k { font: 500 12px var(--sans); color: var(--muted); }
.legend-card { padding: 14px 16px; display: flex; flex-direction: column; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; flex: 1; align-content: start; }
.lg { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.lg .s { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg .p { font: 500 13px var(--mono); color: var(--text2); }
.lg .v { font: 12px var(--mono); color: var(--muted); min-width: 74px; text-align: right; }
.pie-foot { display: flex; gap: 28px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.pie-foot .k, .cc-top .k { display: block; font: 500 12px var(--sans); color: var(--muted); }
.pie-foot b { font: 600 16px var(--mono); }

/* the index table */
.table { overflow: hidden; }
.tr { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) 1fr .7fr 1.3fr 1fr; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tr:not(.th):hover { background: var(--bg3); }
.tr:last-child { border-bottom: 0; }
.th { font: 500 12px var(--sans); color: var(--muted); background: var(--bg2); }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.rank { font: 500 13px var(--mono); color: var(--muted); }
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin img, .coin .ph { width: 32px; height: 32px; flex: none; object-fit: cover; border-radius: 8px; background: var(--bg3); }
.ph { display: grid; place-items: center; font: 600 11px var(--sans); color: var(--muted); }
.coin .tx { min-width: 0; display: flex; flex-direction: column; }
.coin .sym { font: 600 15px var(--sans); text-decoration: none; color: var(--hero); }
.coin .sym:hover { color: var(--accent); }
.coin .nm { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb { display: block; position: relative; height: 6px; background: var(--bg4); border-radius: 999px; overflow: hidden; }
.wb .t { display: block; position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); border-radius: 999px; }
.wb .h { display: block; position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 999px; }
.more { margin: 16px auto 0; display: flex; }

/* claim */
.claim-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 16px; }
.claim-card { padding: 20px; }
.cc-empty { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cc-empty p { margin: 0; }
.cc-top { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cc-top b { font: 600 17px var(--mono); }
.cc-top b.big { font-size: 26px; }
.slice { display: grid; grid-template-columns: 170px 1fr; gap: 16px; margin: 16px 0; align-items: start; }
.small-pie { max-width: 170px; }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; }
.lot { display: flex; align-items: center; gap: 7px; padding: 7px 9px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 13px; min-width: 0; }
.lot img, .lot .ph { width: 20px; height: 20px; flex: none; object-fit: cover; border-radius: 5px; }
.lot .s { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot .a { margin-left: auto; font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.note { margin-top: 12px; font-size: 14px; color: var(--text3); }
.status { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--bg3); font-size: 14px; }
.status.ok { border-color: var(--accent-line); background: #0e2e12; }
.status.bad { border-color: #7f1d1d; background: #450a0a; }
.status a { color: var(--accent); font-weight: 600; }
.side-card { padding: 20px; }
.side-card h3:not(:first-child) { margin-top: 20px; }
.facts { margin: 0; padding-left: 18px; color: var(--text3); font-size: 14px; }
.facts li { margin-bottom: 8px; }
.facts b, #w-earning b { color: var(--text); }

/* activity */
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.act { padding: 16px; }
.feed { display: flex; flex-direction: column; max-height: 360px; overflow: auto; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.row .r a { color: var(--text3); }
.row .tag { margin-right: 6px; font-size: 10px; padding: 1px 7px; }

/* how */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how { padding: 18px; }
.how .n { font: 600 13px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.how h3 { margin: 14px 0 6px; font-size: 17px; color: var(--hero); }
.how p { margin: 0; color: var(--text3); font-size: 14px; }

/* footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 26px 0 40px; background: var(--bg); }
.foot-in { display: flex; flex-direction: column; gap: 12px; }
.foot .logo-mark { align-self: flex-start; }
.addrs { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 13px var(--mono); }
.addrs a { color: var(--text2); }
.addrs span { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.foot p { margin: 0; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r); padding: 11px 16px; z-index: 50; max-width: calc(100% - 32px); font: 500 14px var(--sans); box-shadow: 0 16px 40px -12px #000; }
.toast.bad { border-color: #7f1d1d; background: #450a0a; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .logo-tile { width: min(320px, 100%); }
  .biggest { width: auto; flex: 1; min-width: 180px; }
  .band-in { grid-template-columns: repeat(3, 1fr); }
  .band-in > div { border-bottom: 1px solid var(--line); }
  .pie-grid, .claim-grid, .act-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 20px; }
  .hero-side { flex-direction: column; }
  .band-in { grid-template-columns: repeat(2, 1fr); }
  .tr { grid-template-columns: 34px minmax(0, 1.5fr) 1fr 1fr; padding: 9px 10px; gap: 8px; }
  .hide-s { display: none; }
  .legend { grid-template-columns: 1fr; }
  .cc-top { grid-template-columns: 1fr; }
  .slice { grid-template-columns: 1fr; }
  .small-pie { margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .top-btns #pump-link, .top-btns #x-link { display: none !important; }
  .chip-btn.primary { padding: 8px 10px; }
}

/* the wallet look-up (nobody connects: a pasted address is only read) */
.lookup { display: flex; gap: 8px; }
.lookup input { flex: 1; min-width: 0; font: 500 14px var(--mono); color: var(--text); background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r-s); padding: 11px 12px; outline: none; }
.lookup input:focus { border-color: var(--accent); }
.lookup input::placeholder { color: var(--muted); font-family: var(--sans); }
#cc-empty { margin: 8px 0 0; }
.sub-h { font: 600 15px var(--sans); margin: 18px 0 10px; color: var(--text); }
@media (max-width: 520px) { .lookup { flex-direction: column; } }

/* the Attention index: the live score table, its flags, and rows that glide to their new places */
.tr.attn { grid-template-columns: 44px minmax(0, 1.5fr) 1.4fr .7fr .9fr 1.3fr; }
.tr.attn { transition: transform .7s cubic-bezier(.2, .8, .2, 1); background: var(--bg2); }
.tr.attn.moved { animation: glow 1.6s ease-out; }
@keyframes glow { 0% { background: rgba(134, 239, 172, .12); } 100% { background: var(--bg2); } }
.tr.attn.buying .rank { color: var(--accent); }
.score { display: flex; align-items: center; gap: 10px; min-width: 0; }
.score b { font: 600 15px var(--mono); width: 42px; flex: none; color: var(--hero); }
.score .wb { flex: 1; }
.score .wb .h.dim { background: var(--bg4); background: #3f3f46; }
.up { color: var(--success); } .down { color: var(--red); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flags .tag { font-size: 10px; padding: 1px 7px; }
.buying-tag { margin-left: 6px; font-size: 10px; padding: 1px 7px; }
/* the formula */
.formula-card { padding: 20px; }
.eq { font: 500 15px/2 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; overflow-x: auto; white-space: nowrap; margin-bottom: 14px; }
.eq b { color: var(--accent); }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.terms div { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; color: var(--text3); font-size: 13px; line-height: 1.45; }
.terms div b { display: block; color: var(--text); font-size: 14px; margin: 2px 0; }
.terms i { font: 700 13px var(--mono); font-style: normal; color: var(--accent); }
.got-list .row a { color: var(--accent); }
@media (max-width: 1000px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .tr.attn { grid-template-columns: 30px minmax(0, 1.4fr) 1.3fr .8fr; }
  .terms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tr.attn { transition: none; } .tr.attn.moved { animation: none; } }
.act-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .act-grid.two { grid-template-columns: 1fr; } }
