:root {
  color-scheme: dark;
  --bg: #050F10;
  --s1: #0C1A1B;          /* cards */
  --s2: #132526;          /* fields, buttons inside cards */
  --s3: #1B3132;          /* hover */
  --line: rgba(151, 252, 228, .08);
  --text: #EFF6F4;
  --t2: #9DB5AF;
  --t3: #5F7A74;
  --mint: #97FCE4;
  --mint-2: #C9FFF2;
  --mint-ink: #04201D;
  --up: #5EE6B0;
  --down: #FF7A85;
  --wait: #F2C46B;
  --f: "Figtree", system-ui, sans-serif;
  --rc: 22px;             /* card radius */
  --rf: 16px;             /* field radius */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 500 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; }
button, input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }

.demo-bar { background: var(--mint); color: var(--mint-ink); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 22px; background: rgba(5, 15, 16, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.pills { display: flex; gap: 2px; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.pills a { text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 13px; border-radius: 999px; color: var(--t2); }
.pills a:hover { color: var(--text); }
.pills a.on { background: var(--text); color: var(--bg); }
.top-right { display: flex; gap: 10px; justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--s1); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--s2); }

.pill-btn { appearance: none; border: 0; background: var(--mint); color: var(--mint-ink); font: 800 15px/1 var(--f); padding: 12px 20px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background .15s, transform .1s; }
.pill-btn:hover { background: var(--mint-2); }
.pill-btn:active { transform: scale(.98); }
.pill-btn:disabled { background: var(--s2); color: var(--t3); cursor: not-allowed; transform: none; }
.pill-dark { background: var(--s2); color: var(--text); }
.pill-dark:hover { background: var(--s3); }
.pill-lg { padding: 16px 28px; font-size: 16.5px; }
.pill-sm { padding: 9px 15px; font-size: 14px; }
.pill-block { width: 100%; padding: 17px; font-size: 17px; border-radius: var(--rf); }

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 26px; width: max-content; padding: 9px 0; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.tk .av { width: 18px; height: 18px; font-size: 8.5px; border-radius: 5px; }
.tk em { font-style: normal; color: var(--up); font-weight: 700; }

/* layout */
main { max-width: 1160px; margin: 0 auto; padding: 0 22px; min-height: 70vh; }
.view { padding: 30px 0 60px; }
.narrow { max-width: 560px; margin: 0 auto; }

/* home */
.welcome { text-align: center; padding: 64px 0 40px; }
.welcome h1 { font: 900 clamp(40px, 6.4vw, 72px)/0.98 var(--f); letter-spacing: -.035em; text-transform: uppercase; margin: 0; }
.tagline { color: var(--t2); font-size: 19px; font-weight: 700; margin: 10px 0 30px; }
.welcome-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stats-card { max-width: 560px; margin: 34px auto 0; text-align: left; background: var(--s1); border: 1px solid var(--line); border-radius: var(--rc); padding: 22px 22px 18px; }
.lbl { display: block; font-size: 13px; font-weight: 700; color: var(--t2); }
.huge { display: block; font: 800 clamp(40px, 6vw, 54px)/1.1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.huge .cents, .stats-row .dim { color: var(--mint); opacity: .75; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.stats-row > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.stats-row b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.powered { font-size: 13px; color: var(--t3); font-weight: 600; margin-top: 18px; }
.powered a { text-decoration: none; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 14px; }
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.more { font-size: 14px; font-weight: 700; color: var(--t2); text-decoration: none; }
.more:hover { color: var(--text); }

/* creator cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.ccard { display: block; text-decoration: none; background: var(--s1); border: 1px solid var(--line); border-radius: var(--rc); padding: 16px; transition: background .15s, border-color .15s; }
.ccard:hover { background: #0F2021; border-color: rgba(151, 252, 228, .18); }
.ccard-top { display: flex; gap: 11px; align-items: center; }
.ccard-top b { display: block; font-size: 16px; font-weight: 800; }
.ccard-top small { color: var(--t3); font-size: 13px; font-weight: 600; }
.ccard .amt { font: 800 28px/1.1 var(--f); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 16px 0 2px; }
.ccard .amt-l { font-size: 12.5px; color: var(--t3); font-weight: 600; }
.ccard-coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.coin-chip { font-size: 12.5px; font-weight: 800; background: var(--s2); border-radius: 999px; padding: 4px 10px; color: var(--t2); }
.coin-chip i { font-style: normal; color: var(--mint); margin-left: 4px; }
.av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--mint-ink); flex: none; }
.status { margin-left: auto; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.status.wait { background: rgba(242, 196, 107, .12); color: var(--wait); }
.status.link { background: rgba(151, 252, 228, .1); color: var(--mint); }
.status.ok { background: rgba(94, 230, 176, .12); color: var(--up); }
.empty { color: var(--t3); text-align: center; padding: 40px 0; font-weight: 600; }

/* page titles */
.page-title { text-align: center; margin: 14px 0 22px; }
.page-title.left { text-align: left; }
.page-title h1 { font: 800 clamp(30px, 4vw, 38px)/1.1 var(--f); letter-spacing: -.03em; margin: 0; }
.page-title p { color: var(--t2); font-weight: 600; margin: 6px 0 0; }
.chips { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--s1); color: var(--t3); }
.chip.on { background: var(--s2); color: var(--text); }

/* launch */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--rc); padding: 14px; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 2px 11px; font-size: 14.5px; }
.card-head b { font-weight: 800; }
.coin-row { display: grid; grid-template-columns: 98px 1fr; gap: 10px; }
.img-box { position: relative; width: 98px; height: 98px; border-radius: var(--rf); border: 0; background: var(--s2) center/cover; color: var(--t2); display: grid; place-items: center; cursor: pointer; }
.img-box:hover { background-color: var(--s3); }
.img-box.has svg { visibility: hidden; }
.img-edit { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border-radius: 50%; background: var(--t2); color: var(--bg); font-size: 12px; display: grid; place-items: center; border: 3px solid var(--s1); }
.coin-fields { display: grid; gap: 10px; }
input:not([type=checkbox]):not([type=file]) { width: 100%; min-width: 0; background: var(--s2); border: 1px solid transparent; color: var(--text); border-radius: var(--rf); padding: 13px 14px; font-size: 16px; font-weight: 700; }
input::placeholder { color: var(--t3); }
input:focus { outline: none; border-color: rgba(151, 252, 228, .45); }
.upper { text-transform: uppercase; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sq { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--s2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sq:hover { background: var(--s3); }
.sq:disabled { color: var(--t3); cursor: not-allowed; background: var(--s2); opacity: .5; }
.sq.wide { width: auto; padding: 0 14px; font-weight: 800; font-size: 13.5px; }
.sum-chip { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(94, 230, 176, .12); color: var(--up); font-variant-numeric: tabular-nums; }
.sum-chip.bad { background: rgba(255, 122, 133, .12); color: var(--down); }
.slots { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 1fr 96px 38px; gap: 8px; align-items: center; }
.slot .who { display: flex; align-items: center; gap: 9px; background: var(--s2); border-radius: var(--rf); padding: 0 12px; min-width: 0; height: 50px; border: 1px solid transparent; }
.slot .who:focus-within { border-color: rgba(151, 252, 228, .45); }
.slot .who input { background: none; border: 0; padding: 0; height: 100%; }
.slot .who .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--s3); color: var(--t2); flex: none; font-size: 12px; font-weight: 900; }
.slot .who .fixed { font-weight: 800; }
.slot .pct { position: relative; }
.slot .pct input { padding-right: 28px; text-align: right; height: 50px; font-variant-numeric: tabular-nums; }
.slot .pct::after { content: "%"; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--t3); font-weight: 800; }
.rm { width: 38px; height: 38px; border-radius: 12px; border: 0; background: none; color: var(--t3); font-size: 20px; cursor: pointer; }
.rm:hover { background: var(--s2); color: var(--down); }
.rm:disabled { visibility: hidden; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--rf); font-weight: 800; font-size: 15px; }
.seg2 .on { background: var(--text); color: var(--bg); }
.seg2 .off { background: var(--s2); color: var(--t3); font-size: 13.5px; }
.est { list-style: none; padding: 0; margin: 0; }
.est li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.est li:first-child { border-top: 0; }
.est li b { font-variant-numeric: tabular-nums; color: var(--mint); }
.est li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t2); }
.fine { font-size: 12.5px; color: var(--t3); font-weight: 600; margin: 0; }
.fine.center { text-align: center; margin-top: 14px; }
.err { color: var(--down); font-weight: 700; font-size: 14.5px; text-align: center; margin: 12px 0 0; }

/* creators page */
.tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: flex; gap: 2px; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; color: var(--t2); font: 700 14px var(--f); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--text); color: var(--bg); }
.search { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--t3); min-width: 260px; }
.search input { background: none !important; border: 0 !important; padding: 10px 0 !important; font-size: 14.5px !important; }

/* creator page + lookup result */
.profile { text-align: center; padding: 18px 0 6px; }
.profile .av { width: 84px; height: 84px; border-radius: 26px; font-size: 28px; margin: 0 auto 14px; }
.profile h1 { font: 800 34px/1.1 var(--f); letter-spacing: -.03em; margin: 0; }
.profile p { color: var(--t2); font-weight: 600; margin: 6px 0 0; }
.money { text-align: left; }
.money .huge { font-size: 46px; }
.money .sub { color: var(--t2); font-size: 14px; font-weight: 600; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.money .status { margin-left: 0; }
.coins-list { list-style: none; padding: 0; margin: 0; }
.coins-list li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.coins-list li:first-child { border-top: 0; }
.coins-list .cav { width: 36px; height: 36px; border-radius: 50%; background: var(--s2) center/cover; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--t2); }
.coins-list b { display: block; font-weight: 800; }
.coins-list small { color: var(--t3); font-size: 12.5px; font-weight: 600; }
.coins-list .share { margin-left: auto; font-weight: 800; color: var(--mint); font-variant-numeric: tabular-nums; }
.coins-list a { text-decoration: none; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.lookup { display: flex; align-items: center; gap: 6px; background: var(--s2); border-radius: var(--rf); padding: 4px 4px 4px 14px; border: 1px solid transparent; }
.lookup:focus-within { border-color: rgba(151, 252, 228, .45); }
.lookup span { color: var(--t3); font-weight: 800; }
.lookup input { background: none !important; border: 0 !important; padding: 9px 2px !important; }
#lookupResult .money { margin-top: 14px; }
#lookupResult .coins-list { margin-top: 10px; }

/* get paid steps */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 16px; }
.steps .n { width: 32px; height: 32px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--t2); }
.steps li.done .n { background: var(--mint); color: var(--mint-ink); }
.steps b { font-weight: 800; }
.steps p { margin: 2px 0 0; font-size: 13.5px; color: var(--t3); font-weight: 600; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; cursor: pointer; }
.toggle b { display: block; font-weight: 800; }
.toggle .fine b { display: inline; color: var(--t2); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 46px; height: 28px; border-radius: 999px; background: var(--s3); position: relative; flex: none; transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--t2); transition: transform .15s, background .15s; }
.toggle input:checked + i { background: var(--mint); }
.toggle input:checked + i::after { transform: translateX(18px); background: var(--mint-ink); }
.toggle input:focus-visible + i { outline: 2px solid var(--mint); outline-offset: 2px; }

.foot { max-width: 1160px; margin: 0 auto; padding: 22px 22px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--t3); font-weight: 600; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

.tabbar { display: none; }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--text); color: var(--bg); padding: 13px 18px; border-radius: 16px; font-weight: 700; font-size: 14.5px; max-width: min(560px, calc(100vw - 32px)); transition: transform .25s; z-index: 20; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 820px) {
  .top { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .pills { display: none; }
  main { padding: 0 16px; }
  .welcome { padding: 42px 0 26px; }
  .stats-row { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .stats-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .search { min-width: 0; flex: 1; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(5, 15, 16, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { color: var(--t3); display: grid; place-items: center; width: 52px; height: 44px; border-radius: 14px; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.plus { background: var(--mint); color: var(--mint-ink); width: 46px; height: 44px; }
  .foot { padding-bottom: 96px; }
  .toast { bottom: 84px; }
  .steps li { grid-template-columns: 32px 1fr; }
  .steps li .pill-btn { grid-column: 1 / -1; }
}
.ccard-top > div { min-width: 0; }
.ccard-top b, .ccard-top small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile { margin-bottom: 14px; }

/* ---------- background: soft mint aurora + fading dot grid ---------- */
body { position: relative; isolation: isolate; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(60% 45% at 50% -8%, rgba(151, 252, 228, .2), transparent 70%),
    radial-gradient(40% 35% at 8% 30%, rgba(80, 210, 193, .07), transparent 70%),
    radial-gradient(45% 40% at 95% 70%, rgba(127, 227, 242, .06), transparent 70%),
    radial-gradient(70% 50% at 50% 115%, rgba(151, 252, 228, .07), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
body::after {
  background-image: radial-gradient(rgba(151, 252, 228, .22) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 22%, #000 0%, rgba(0,0,0,.35) 45%, transparent 80%);
  mask-image: radial-gradient(75% 60% at 50% 22%, #000 0%, rgba(0,0,0,.35) 45%, transparent 80%);
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
/* a soft halo right behind the welcome headline and stats */
.welcome { position: relative; }
.welcome::before { content: ""; position: absolute; left: 50%; top: 40px; width: min(900px, 95vw); height: 520px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(151, 252, 228, .10), transparent); filter: blur(10px); }
.stats-card { background: linear-gradient(180deg, rgba(19, 37, 38, .85), rgba(12, 26, 27, .85)); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(151,252,228,.06), 0 30px 80px -40px rgba(151, 252, 228, .25); }
.card, .ccard { background-color: rgba(12, 26, 27, .82); backdrop-filter: blur(6px); }
.top, .tabbar { background: rgba(5, 15, 16, .72); }
.ticker { background: rgba(5, 15, 16, .5); }

.amt-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 2px; }
.amt-row .amt { margin: 0; }
