/* PAIRED. Black, monochrome, one green for money. Measured from usepaid.app (bg #0a0a0a, Geist, 60px/500 headline at
   -1.5px, hairline borders at 8-12% white, pill buttons) and memefirm.app (icon rail, CA pill, coin band). */
:root {
  --bg: #0a0a0a; --bg2: #0e0e0e; --panel: #121212; --panel2: #171717; --tile: #1b1b1b;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.13); --line3: rgba(255,255,255,.2);
  --tx: #fff; --mut: rgba(255,255,255,.58); --dim: rgba(255,255,255,.38); --faint: rgba(255,255,255,.16);
  --green: #3ee08f; --green2: rgba(62,224,143,.14); --red: #ff6b6b;
  --side: 248px; --top: 64px; --r: 20px; --r2: 14px;
  --ease: cubic-bezier(.22,1,.36,1); --ease2: cubic-bezier(.65,0,.35,1);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: thin; scrollbar-color: #2c2c2c transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #444; background-clip: content-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--tx); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
::selection { background: rgba(62,224,143,.3); }

/* ------------------------------------------------------------------ shell: side rail + top bar */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); border-right: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; padding: 18px 14px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; margin-bottom: 26px; font-weight: 600; letter-spacing: -.02em; font-size: 19px; }
.brand img { width: 26px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-45deg); }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--mut); font-size: 16px;
  transition: background .18s var(--ease), color .18s var(--ease); }
.snav a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.snav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.snav a.on { color: #fff; font-weight: 500; }
.snav a.on svg { stroke-width: 2; }
.side .sfoot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side .card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--panel); font-size: 13px; color: var(--mut); }
.side .card b { color: #fff; font-weight: 500; display: block; font-size: 14px; margin-bottom: 2px; }
.side .card .bar { height: 4px; border-radius: 9px; background: rgba(255,255,255,.07); margin-top: 10px; overflow: hidden; }
.side .card .bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 9px; transition: width 1s linear; }
.side .xs { display: flex; gap: 8px; align-items: center; padding: 0 6px; color: var(--dim); font-size: 12px; }

.top { position: fixed; top: 0; left: var(--side); right: 0; height: var(--top); z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; background: rgba(10,10,10,.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.02);
  padding: 0 16px 0 40px; font-size: 14px; outline: none; transition: border-color .18s, background .18s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--line3); background: rgba(255,255,255,.04); }
.search svg { position: absolute; left: 15px; top: 13px; width: 16px; height: 16px; stroke: var(--dim); fill: none; stroke-width: 1.8; }
.search .res { position: absolute; top: 48px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6); display: none; max-height: 420px; overflow: auto; }
.search.open .res { display: block; }
.search .res a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14px; }
.search .res a:hover, .search .res a.on { background: rgba(255,255,255,.05); }
.search .res img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: var(--tile); }
.search .res span { color: var(--dim); font-size: 12px; margin-left: auto; }
.search .res .none { padding: 12px; color: var(--dim); font-size: 13px; }
.tr { display: flex; align-items: center; gap: 8px; }
.pill { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .18s var(--ease), border-color .18s, transform .12s, opacity .18s; }
.pill:hover { background: rgba(255,255,255,.05); border-color: var(--line3); }
.pill:active { transform: scale(.97); }
.pill.w { background: #fff; color: #000; border-color: #fff; }
.pill.w:hover { background: #e9e9e9; }
.pill.ic { width: 38px; padding: 0; justify-content: center; }
.pill svg { width: 15px; height: 15px; fill: currentColor; }
.pill.ca { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--mut); padding: 0 6px 0 6px; }
.pill.ca b { font-family: var(--sans); font-size: 11px; font-weight: 600; height: 26px; padding: 0 9px; border-radius: 99px; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; }
.pill.ca span { padding-right: 8px; }
.pill .av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #3ee08f, #1c6b47); }
.menu-btn { display: none; }
.top .tbrand { display: none; margin: 0; padding: 0; font-size: 17px; }

main { margin-left: var(--side); padding-top: var(--top); min-height: 100vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.page { padding: 44px 0 90px; }

/* ------------------------------------------------------------------ type */
h1 { font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-weight: 500; letter-spacing: -.025em; font-size: 24px; line-height: 1.25; }
h3 { font-weight: 500; letter-spacing: -.015em; font-size: 17px; }
.lead { color: var(--mut); font-size: 17px; line-height: 1.6; }
.sub { color: var(--mut); font-size: 14px; }
.ptitle { font-size: 44px; margin-bottom: 10px; }
.phead { margin-bottom: 30px; }
.phead .sub { max-width: 640px; font-size: 15px; }

/* ------------------------------------------------------------------ panels, tiles, rows */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; overflow: hidden; }
.tile .tl { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mut); }
.tile .tl a { color: var(--dim); transition: color .15s; }
.tile .tl a:hover { color: #fff; }
.big { font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; color: var(--dim); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.sec { margin-top: 64px; }
.sech { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sech .more { margin-left: auto; color: var(--dim); font-size: 13px; }
.sech .more:hover { color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.7);
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .15s; }
.chip:hover { color: #fff; }
.chip.on { background: #fff; color: #000; border-color: #fff; }
.chip img { width: 16px; height: 16px; border-radius: 50%; }
.chip.g { color: var(--green); border-color: rgba(62,224,143,.25); background: var(--green2); }
.tag { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .02em; }
.empty { color: var(--dim); font-size: 14px; padding: 28px 22px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r2); line-height: 1.6; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(62,224,143,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,224,143,.55); } 70% { box-shadow: 0 0 0 9px rgba(62,224,143,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,143,0); } }
.pos { color: var(--green); }

/* coin cards (usepaid's square image grid) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 14px; transition: transform .35s var(--ease), border-color .2s, background .2s; display: block; }
.ccard:hover { transform: translateY(-3px); border-color: var(--line2); background: var(--panel2); }
.ccard .im { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tile); }
.ccard .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ccard:hover .im img { transform: scale(1.04); }
.ccard .bdg { position: absolute; top: 8px; right: 8px; height: 24px; padding: 0 9px; border-radius: 99px; background: rgba(0,0,0,.62); backdrop-filter: blur(8px);
  font-size: 11px; display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.ccard .bdg img { width: 14px; height: 14px; border-radius: 50%; }
.ccard .bl { position: absolute; left: 8px; bottom: 8px; height: 26px; padding: 0 10px 0 4px; border-radius: 99px; background: rgba(0,0,0,.66); backdrop-filter: blur(8px);
  font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ccard .bl img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.ccard .nm { display: flex; align-items: baseline; gap: 6px; margin: 12px 6px 0; min-width: 0; }
.ccard .nm b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .nm span { font-family: var(--mono); font-size: 11px; color: var(--dim); flex: none; }
.ccard .st { display: flex; justify-content: space-between; gap: 8px; margin: 5px 6px 0; font-size: 12.5px; color: var(--dim); }
.ccard .nm + .st { margin-top: 10px; }
.ccard .st b { color: #fff; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 400; color: var(--dim); font-size: 12px; padding: 0 14px 10px; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.lnk { cursor: pointer; transition: background .15s; }
.tbl tr.lnk:hover td { background: rgba(255,255,255,.025); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--tile); flex: none; }
.who b { font-weight: 500; }
.who span { color: var(--dim); font-size: 12px; font-family: var(--mono); }
.sbar { height: 6px; border-radius: 9px; background: rgba(255,255,255,.07); overflow: hidden; min-width: 80px; }
.sbar i { display: block; height: 100%; border-radius: 9px; background: #fff; transform-origin: left; transition: width .8s var(--ease); }
.tblwrap { overflow-x: auto; }

/* feed */
.feed { display: flex; flex-direction: column; }
.frow { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.frow:first-child { border-top: 0; }
.frow .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: none; }
.frow .ic svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 1.8; }
.frow .ic.g { background: var(--green2); } .frow .ic.g svg { stroke: var(--green); }
.frow .tx { flex: 1; min-width: 0; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .tx b { color: #fff; font-weight: 500; }
.frow .t { color: var(--dim); font-size: 12px; font-family: var(--mono); flex: none; }
.frow a.sig { color: var(--dim); font-family: var(--mono); font-size: 12px; flex: none; }
.frow a.sig:hover { color: #fff; }
.frow.new { animation: rowin .7s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* reveal on scroll (Apple: rise + unblur) */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--mut); display: flex; justify-content: space-between; }
.field label span { color: var(--dim); }
.inp { height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.025); padding: 0 16px; font-size: 15px; outline: none; width: 100%;
  transition: border-color .18s, background .18s; }
textarea.inp { height: 96px; padding: 13px 16px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
.inp::placeholder { color: rgba(255,255,255,.28); }
.btn { height: 52px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 15px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s var(--ease), opacity .2s, background .2s; }
.btn:hover { background: #ececec; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { font-size: 13px; color: var(--dim); line-height: 1.6; }
.err { color: var(--red); font-size: 13.5px; margin-top: 12px; min-height: 20px; }
.okmsg { color: var(--green); }

/* wallet picker, toast */
.wpick { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.wpick-in { width: min(400px, 92vw); background: var(--panel); border: 1px solid var(--line2); border-radius: 24px; padding: 24px; animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.wpick h3 { font-size: 20px; margin-bottom: 6px; }
.wpick p { color: var(--mut); font-size: 14px; margin-bottom: 16px; }
.wpick .list { display: flex; flex-direction: column; gap: 8px; }
.wpick .list button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-weight: 500; text-align: left; transition: background .15s; }
.wpick .list button:hover { background: rgba(255,255,255,.07); }
.wpick .list button.wait { opacity: .6; }
.wpick .list img { width: 28px; height: 28px; border-radius: 8px; }
.wpick .nw { color: var(--mut); font-size: 14px; line-height: 1.6; }
.wpick .nw a { text-decoration: underline; }
.wstatus { margin-top: 12px; font-size: 13px; color: var(--mut); margin-bottom: 0 !important; }
.wstatus.bad { color: var(--red); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: #fff; color: #000; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  opacity: 0; transition: all .35s var(--ease); z-index: 120; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { margin-left: var(--side); border-top: 1px solid var(--line); padding: 26px 28px; display: flex; gap: 20px; align-items: center; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.foot nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: #fff; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  :root { --side: 0px; --top: 60px; }
  .side { transform: translateX(-100%); width: 280px; transition: transform .4s var(--ease); box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .top { left: 0; padding: 0 16px; gap: 8px; }
  .menu-btn { display: inline-flex; }
  .top .tbrand { display: flex; }
  .search { display: none; }
  .tr { margin-left: auto; }
  .hide-s { display: none !important; }
  .wrap { padding: 0 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .ptitle { font-size: 34px; }
  .foot { margin-left: 0; padding: 22px 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .big { font-size: 32px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .pill { padding: 0 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .rv { opacity: 1; transform: none; filter: none; } }
