@font-face { font-family: "PP Sans"; src: url(/_cashpad/fonts/host-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "PP Serif"; src: url(/_cashpad/fonts/newsreader-normal-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "PP Serif"; font-style: italic; src: url(/_cashpad/fonts/newsreader-italic-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "PP Mono"; src: url(/_cashpad/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Mono"; src: url(/_cashpad/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0b0b;
  --panel: #111413;
  --panel-2: #161a18;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2f4f1;
  --muted: #9aa49d;
  --faint: #6c756f;
  --mint: #7fd3a4;
  --pale: #d9ecc8;
  --ink: #173a24;
  --gold: #d9b45a;
  --bad: #ef8a7a;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 400 16px/1.5 "PP Sans", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 15% -10%, rgba(20, 67, 50, .45), transparent 70%),
              radial-gradient(800px 480px at 100% 0%, rgba(11, 33, 25, .7), transparent 70%), var(--bg); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.pad { padding: 64px 0; }
.mono { font-family: "PP Mono", ui-monospace, monospace; }
.serif { font-family: "PP Serif", Georgia, serif; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 11, 11, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.wallet { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.chip.warn .dot { background: var(--gold); }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 18px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: opacity .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.light { background: #fff; color: #0a0b0b; }
.btn.mint { background: var(--pale); color: var(--ink); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; padding: 15px 18px; font-size: 16px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* layout */
.view { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
h1 { font-weight: 650; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
h1 i { font-family: "PP Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: 22px; letter-spacing: -.01em; margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 560px; margin: 12px 0 0; font-size: 17px; }
.eyebrow { font: 500 12px "PP Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat .k { font: 500 11px "PP Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-family: "PP Serif", Georgia, serif; font-size: 30px; line-height: 1.15; margin-top: 6px; }
.stat .v small { font: 400 13px "PP Sans", sans-serif; color: var(--muted); margin-left: 4px; }
.good { color: var(--mint); }
.warn { color: var(--gold); }
.bad { color: var(--bad); }

/* currency list */
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.tk { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: border-color .15s, transform .15s; }
.tk:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tk-top { display: flex; align-items: center; gap: 12px; }
.tk-top .t { font-weight: 650; font-size: 19px; }
.tk-top .n { color: var(--muted); font-size: 14px; }
.tk .peg { font-family: "PP Serif", Georgia, serif; font-size: 30px; margin: 16px 0 12px; }
.tk .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.tk .row + .row { border-top: 0; padding-top: 4px; }
.tk .row b { color: var(--text); font-weight: 500; }
.flag { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.flag svg { width: 100%; height: 100%; display: block; }
.flag.s { width: 22px; height: 22px; }
.flag.l { width: 52px; height: 52px; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 460px; }

/* forms */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.field { margin-bottom: 20px; }
.field > label, .label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--faint); margin-top: 6px; }
.input { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; transition: border-color .15s; }
.input:focus-within { border-color: rgba(127, 211, 164, .6); }
.input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 13px 0; font-size: 16px; }
.input .unit { color: var(--muted); font-size: 14px; white-space: nowrap; }
.input .pre { color: var(--muted); }
.input.big input { font-family: "PP Serif", Georgia, serif; font-size: 30px; padding: 12px 0; }
.input.err { border-color: rgba(239, 138, 122, .7); }
.curs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cur { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left; }
.cur:hover { border-color: var(--line-2); }
.cur[aria-pressed="true"] { border-color: var(--mint); background: rgba(127, 211, 164, .08); }
.cur .c { font-weight: 600; font-size: 14px; }
.cur .d { color: var(--faint); font-size: 12px; line-height: 1.2; }
.sum { display: grid; gap: 10px; }
.sum .line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum .line span:first-child { color: var(--muted); }
.sum .big { font-family: "PP Serif", Georgia, serif; font-size: 38px; line-height: 1.1; margin: 4px 0 10px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }
.note { font-size: 13px; color: var(--muted); background: rgba(217, 180, 90, .08); border: 1px solid rgba(217, 180, 90, .25); border-radius: 12px; padding: 12px 14px; }
.note.info { background: rgba(127, 211, 164, .06); border-color: rgba(127, 211, 164, .22); }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.steps li .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 11px "PP Mono", monospace; border: 1px solid var(--line-2); }
.steps li.done { color: var(--text); }
.steps li.done .n { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.steps li.now { color: var(--text); }
.steps li.now .n { border-color: var(--mint); color: var(--mint); }

/* token page */
.hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .peg { font-family: "PP Serif", Georgia, serif; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.01em; margin: 18px 0 8px; }
.addr { font: 400 13px "PP Mono", monospace; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.addr button { background: none; border: 0; color: var(--mint); cursor: pointer; padding: 0; font: inherit; }
.tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--text); }
.bal { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); margin: 8px 2px 0; }
.bal button { background: none; border: 0; color: var(--mint); cursor: pointer; padding: 0; font-size: 13px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; margin: 10px 0 6px; }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2a6c4f, var(--mint)); border-radius: 99px; }
.meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.kv { display: grid; gap: 10px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kv div > :last-child { text-align: right; margin-left: auto; }
.kv span:first-child { color: var(--muted); }
.kv a { color: var(--mint); text-decoration: none; }

.foot { border-top: 1px solid var(--line); padding: 22px clamp(16px, 4vw, 40px); color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 760px; }
.foot a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); background: #1b201d; border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); z-index: 50; }
.toast.bad { border-color: rgba(239, 138, 122, .5); }
.toast a { color: var(--mint); }

@media (max-width: 680px) {
  .stat .v { font-size: 26px; }
  .hero .peg { font-size: 44px; }
  .top { gap: 10px; flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .brand span { display: none; }
  .wallet { margin-left: auto; }
}
