/* pumpfun.cc — dark trading-terminal surface, tokens lifted from the source UI */
:root{
  --bg:#0e0f11;
  --surface:#18191b;
  --surface-2:#212225;
  --surface-3:#272a2d;
  --border:#1b1d21;
  --border-2:#212225;
  --text:#ebebeb;
  --text-2:#c9ccd1;
  --text-3:#9196a1;
  --text-4:#757c8a;
  --accent:#66ff99;
  --on-accent:#052e16;
  --up:#5ddf6c;
  --down:#f87171;
  --r:8px;
  --pad-x:20px;
}

@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/geist-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/geist-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Geist Fallback";src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0%;size-adjust:104.76%}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Geist,"Geist Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.42;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
svg{display:block}
::selection{background:#66ff9933}

.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}

/* ---------- promo banner ---------- */
.promo{
  position:relative;display:flex;align-items:center;justify-content:center;
  height:32px;background:#16181b;border-bottom:1px solid var(--border);
  font-size:12px;color:var(--text-3);overflow:hidden;
}
.promo-fade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(22,24,27,0) 0%,#141619 12%,#141619 88%,rgba(22,24,27,0) 100%)}
.promo a{position:relative;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.promo a:hover{color:var(--text)}
.promo a svg{width:13px;height:13px;color:#5c6270}
.promo-close{position:absolute;right:14px;top:50%;transform:translateY(-50%);
  display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  border-radius:6px;color:var(--text-4)}
.promo-close:hover{background:var(--surface-2);color:var(--text)}
.promo-close svg{width:13px;height:13px}
body.promo-off .promo{display:none}

/* ---------- header ---------- */
.topbar{position:sticky;top:0;z-index:30;background:var(--bg);border-bottom:1px solid var(--border)}
.topbar-row{display:flex;align-items:center;gap:12px;height:64px;padding:0 var(--pad-x)}
.brand{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.brand svg{width:24px;height:24px;color:#fff}
.nav{display:flex;align-items:center;gap:16px;flex:0 0 auto}
.nav a{font-size:14px;color:var(--text-3);padding:4px 0;transition:color .12s}
.nav a:hover{color:var(--text)}
.nav a.on{color:var(--text);font-weight:600}
.nav .nav-more{display:inline-flex;align-items:center;gap:4px}
.nav .nav-more svg{width:14px;height:14px}

.search{position:relative;display:flex;align-items:center;gap:8px;
  flex:1 1 auto;max-width:340px;height:34px;padding:0 8px 0 10px;
  background:var(--surface);border:1px solid var(--border-2);border-radius:var(--r);color:var(--text-4)}
.search:focus-within{border-color:#3a3f46}
.search svg{width:15px;height:15px;flex:0 0 auto}
.search input{flex:1 1 auto;min-width:0;border:0;background:none;outline:none;color:var(--text);font-size:13px}
.search input::placeholder{color:var(--text-4)}
.search .paste{font-size:11px;color:var(--text-3);background:var(--surface-2);border-radius:5px;padding:3px 6px}
.search .paste:hover{color:var(--text);background:var(--surface-3)}
.search kbd{font-family:inherit;font-size:11px;color:var(--text-4);border:1px solid var(--border-2);
  border-radius:4px;padding:2px 5px;line-height:1}

.topbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:var(--r);color:var(--text-3);transition:background .12s,color .12s}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn svg{width:16px;height:16px}
.btn-primary{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:var(--r);
  background:var(--accent);color:var(--on-accent);font-size:14px;font-weight:500}
.btn-primary:hover{background:#7bffa9}

/* ---------- icon strip + kol ticker ---------- */
.strip{display:flex;align-items:center;gap:4px;height:40px;padding:0 var(--pad-x);
  border-bottom:1px solid var(--border);overflow:hidden}
.strip-icons{display:flex;align-items:center;gap:2px;flex:0 0 auto;padding-right:10px}
.strip-icons button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;
  border-radius:6px;color:var(--text-4)}
.strip-icons button:hover{background:var(--surface-2);color:var(--text)}
.strip-icons svg{width:15px;height:15px}
.strip-icons .star{color:#d4d7dc}
.strip-divider{width:1px;height:16px;background:var(--border-2);flex:0 0 auto}
.kol-track{display:flex;align-items:center;gap:14px;overflow:hidden;min-width:0;
  mask-image:linear-gradient(90deg,#000 0,#000 92%,transparent 100%)}
.kol{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:12px;white-space:nowrap}
.kol img{width:16px;height:16px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.kol-handle{color:var(--text-3)}
.kol-amt{color:var(--up);font-variant-numeric:tabular-nums}
.kol:hover .kol-handle{color:var(--text)}

/* ---------- page head ---------- */
main{display:block;padding:0 var(--pad-x) 40px}
.page-head{padding:16px 0 10px}
h1{font-size:20px;line-height:28px;font-weight:500;margin:0}

.filters{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.tabs{display:flex;align-items:center;gap:18px;overflow-x:auto;scrollbar-width:none;flex:1 1 auto}
.tabs::-webkit-scrollbar{display:none}
.tab{position:relative;font-size:14px;color:var(--text-3);padding:8px 0;white-space:nowrap}
.tab:hover{color:var(--text)}
.tab.on{color:var(--text);font-weight:600}
.filters-right{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.seg{display:flex;align-items:center;gap:2px}
.pill{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:6px;
  font-size:12px;font-weight:500;color:var(--text-3);background:rgba(217,229,255,.04)}
.pill:hover{color:var(--text);background:var(--surface-2)}
.pill.on{color:var(--text);background:var(--surface-2)}
.pill svg{width:13px;height:13px}
.ctrl{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:26px;padding:0 8px;
  border-radius:6px;font-size:12px;color:var(--text-3)}
.ctrl:hover{background:var(--surface-2);color:var(--text)}
.ctrl svg{width:13px;height:13px}
.seg-toggle{display:inline-flex;align-items:center;background:rgba(217,229,255,.04);border-radius:6px;padding:2px}
.seg-toggle button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:22px;padding:0 8px;
  border-radius:5px;font-size:12px;color:var(--text-3)}
.seg-toggle button svg{width:12px;height:12px}
.seg-toggle button.on{background:var(--surface-2);color:var(--text)}
.vsep{width:1px;height:18px;background:var(--border-2);margin:0 4px}

/* ---------- table ---------- */
.table-wrap{overflow-x:auto;scrollbar-width:thin}
table.coins{width:100%;min-width:1080px;border-collapse:collapse;table-layout:fixed}
thead th{
  position:sticky;top:0;z-index:2;background:var(--bg);
  font-size:12px;font-weight:400;color:var(--text-4);text-align:left;
  padding:8px 20px;white-space:nowrap;
  box-shadow:inset 0 -1px 0 0 var(--border);
}
thead th.sortable span{display:inline-flex;align-items:center;gap:4px}
thead th.sortable i{font-style:normal;opacity:0;font-size:11px}
thead th.sortable:hover{color:var(--text)}
thead th.sortable:hover i{opacity:.45}
thead th.asc i,thead th.desc i{opacity:.8}
th.right-cell,td.right-cell{text-align:right}

.coin-row{background:var(--bg);cursor:pointer}
.coin-row:hover{background:#141619}
.coin-row td{padding:18px 20px;box-shadow:inset 0 -1px 0 0 var(--border);vertical-align:middle}
td.cell-coin{position:sticky;left:0;z-index:1;background:inherit;width:320px}
.cell-coin{display:table-cell}

.art{position:relative;display:inline-block;width:40px;height:40px;vertical-align:middle;flex:0 0 auto}
.art-frame{display:block;width:40px;height:40px;overflow:hidden;background:var(--surface-2);
  border-radius:8px;
  clip-path:path(evenodd,"M0 0H40V40H0ZM23 25h12a9 9 0 0 1 0 18h-12a9 9 0 0 1 0 -18Z")}
.art-frame img{width:100%;height:100%;object-fit:cover}
.art-chain{position:absolute;right:-3px;bottom:-3px;display:inline-flex;align-items:center;gap:0;
  padding:1px;border:1px solid #4cbf80;border-radius:999px;background:#0b0c0e}
.art-chain img{width:8px;height:8px;border-radius:50%}
.art-chain .chain-pump{border-radius:0;opacity:.92}

.coin-meta{display:inline-flex;flex-direction:column;gap:1px;margin-left:12px;vertical-align:middle;max-width:220px}
.cell-coin{white-space:nowrap}
.coin-name-line{display:flex;align-items:center;gap:6px;min-width:0}
.coin-name{font-size:14px;font-weight:500;line-height:20px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.coin-row:hover .coin-name{text-decoration:underline;text-underline-offset:2px}
.verified{width:13px;height:13px;flex:0 0 auto}
.copy{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:0 0 auto;color:var(--text-4)}
.copy:hover{color:var(--text)}
.copy svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.coin-ticker{font-size:12px;line-height:16px;color:var(--text-4);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

td.cell-chart{padding-top:14px;padding-bottom:14px}
.spark{width:120px;height:48px;overflow:visible}
.spark.up{color:var(--up)}
.spark.down{color:var(--down)}
.spark .line{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.spark .area{stroke:none;opacity:.8}

.cell-num{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cell-mcap{color:var(--text)}
.cell-change.up{color:var(--up)}
.cell-change.down{color:var(--down)}
td.cell-muted{color:var(--text-3);font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}

.cell-ath{white-space:nowrap;font-variant-numeric:tabular-nums}
.ath-dash{display:inline-block;width:22px;height:2px;border-radius:2px;background:#3f9a55;vertical-align:middle;margin-right:8px}
.ath-val{color:var(--text-3);font-size:14px}
.ath-val.muted{color:#565b63}

td.cell-buy{text-align:right;width:80px}
.buy{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;
  background:var(--surface-2);color:var(--text-2)}
.buy:hover{background:var(--surface-3);color:#fff}
.buy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}

/* ---------- grid view ---------- */
.grid{display:none;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));gap:14px;padding-top:14px}
.table-wrap.off{display:none}
.grid.on{display:grid}
.card{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.card:hover{border-color:var(--border-2);background:#131518}
.card-cover{position:relative;flex:0 0 auto;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--surface-2)}
.card-cover img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.card:hover .card-cover img{transform:scale(1.03)}
.card-live{position:absolute;left:8px;bottom:8px;display:inline-flex;align-items:center;gap:4px;
  padding:3px 7px;border-radius:999px;background:#0b0c0ed9;color:var(--text-2);font-size:11px}
.card-live svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8}
.card-body{display:flex;flex:1;flex-direction:column;gap:4px;padding:10px 12px 12px}
.card-body .coin-name{font-size:14px}
.card .spark{width:100%;height:40px;margin-top:2px}
.card-stats{display:flex;align-items:center;gap:8px;font-size:12px;font-variant-numeric:tabular-nums}
.card-stats .cell-mcap{font-size:12px;color:var(--text-2)}
.card-stats .up{color:var(--up)}
.card-stats .down{color:var(--down)}

/* ---------- footer ---------- */
footer{display:flex;align-items:center;gap:16px;padding:18px var(--pad-x) 26px;
  border-top:1px solid var(--border);color:var(--text-3);font-size:12px}
footer .foot-links{display:flex;align-items:center;gap:16px}
footer a:hover,footer button:hover{color:var(--text)}
footer .foot-more{display:inline-flex;align-items:center;gap:4px}
footer .foot-more svg{width:12px;height:12px}
footer .socials{display:flex;align-items:center;gap:10px;margin-left:auto}
footer .socials a{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;color:var(--text-3)}
footer .socials a:hover{background:var(--surface-2);color:var(--text)}
footer .socials svg{width:14px;height:14px}
.foot-note{padding:0 var(--pad-x) 10px;font-size:11px;color:#5b606a}

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav{display:none}

@media (max-width:1180px){
  td.cell-trades,th.col-trades,td.cell-traders,th.col-traders{display:none}
  table.coins{min-width:880px}
}
@media (max-width:1024px){
  .nav .nav-extra{display:none}
}
@media (max-width:900px){
  .strip-icons button:nth-child(n+4){display:none}
  .kol-track{gap:10px}
}
@media (max-width:760px){
  :root{--pad-x:16px}
  .promo{font-size:11px}
  .promo-close{right:8px}
  .nav,.strip{display:none}
  .topbar-row{height:56px;gap:8px;overflow:hidden}
  .search{flex:1 1 0;max-width:none;min-width:0;height:36px;border-radius:999px}
  .search kbd{display:none}
  .search .paste{font-size:10px}
  .topbar-actions{gap:8px;flex:0 0 auto;margin-left:0}
  .topbar-actions .icon-btn{display:none}
  .btn-primary{height:32px;padding:0 12px;font-size:13px;white-space:nowrap}
  .page-head{padding:14px 0 8px}
  h1{font-size:18px}
  .filters{gap:6px;flex-wrap:nowrap;overflow:hidden}
  .tabs{gap:14px;flex:1 1 0;min-width:0}
  .filters-right{flex:0 0 auto;gap:4px}
  .filters-right .pill.quick,.filters-right .pill.qty,.filters-right .vsep,
  .filters-right .ctrl.gear{display:none}
  .filters-right .ctrl{font-size:0;gap:0;width:26px;padding:0;justify-content:center}
  .filters-right .ctrl svg{width:14px;height:14px}
  .seg-toggle{display:inline-flex}
  .seg-toggle button{font-size:0;gap:0;width:26px;padding:0;justify-content:center}
  .seg-toggle button svg{width:13px;height:13px}
  .filters-right .seg .pill:not(.on){display:none}
  main{padding-bottom:80px}
  .table-wrap{margin:0 -16px;padding:0 16px;overflow-x:auto}
  table.coins{min-width:0;width:100%;table-layout:fixed}
  colgroup{display:none}
  thead th:nth-child(n+3),tbody td:nth-child(n+3){display:none}
  td.cell-coin{width:auto;position:static;white-space:nowrap}
  td.cell-chart{width:132px;padding-left:0}
  .spark{width:120px;height:44px}
  .coin-meta{max-width:170px}
  .coin-name{font-size:14px}
  .grid{grid-template-columns:repeat(2,1fr);gap:10px;padding-top:12px}
  footer{padding-bottom:74px;flex-wrap:wrap;gap:10px}
  footer .foot-links{gap:12px}
  footer .socials{margin-left:0}
  .bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:40;
    align-items:center;justify-items:center;height:58px;
    background:#0b0c0e;border-top:1px solid var(--border)}
  .bottom-nav a,.bottom-nav button{display:inline-flex;align-items:center;justify-content:center;
    width:44px;height:44px;border-radius:10px;color:var(--text-3)}
  .bottom-nav a.on{color:var(--text)}
  .bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .bottom-nav .coin-orb{width:34px;height:34px;border-radius:50%;background:#0b0c0e;border:2px solid var(--accent);
    display:inline-flex;align-items:center;justify-content:center;color:var(--accent)}
  .bottom-nav .coin-orb svg{width:16px;height:16px;stroke-width:1.6}
  .bottom-nav .plus-round{width:34px;height:34px;border-radius:50%;background:var(--surface-2);color:var(--text)}
  .bottom-nav .dots circle{fill:currentColor;stroke:none}
}
@media (max-width:520px){
  .filters-right .seg .pill:nth-child(n+4){display:none}
}