:root {
  --bg: #050f11;
  --surface: #0a1a1d;
  --raised: #102428;
  --line: rgba(190, 240, 228, .11);
  --line-strong: rgba(190, 240, 228, .24);
  --ink: #eff7f4;
  --muted: #92a9a7;
  --faint: #5f7a79;
  --accent: #97fce4;
  --moon: #f4ecd9;
  --bad: #ff9c8a;
  --disp: "Archivo", "Geist", system-ui, sans-serif;
  --serif: var(--disp);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1; display: flex; min-width: 0; min-height: 0; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--bg); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 14px 40px; background: rgba(5, 15, 17, .72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: inherit; font: 400 27px/1 var(--serif); letter-spacing: -.005em; text-decoration: none; }
.mark { flex: none; color: var(--accent); }
.nav-right { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hype { display: inline-block; width: 18px; height: 18px; border-radius: 50%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px;
  background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; color: var(--bg);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .7; }
.btn.connected { background: var(--raised); border-color: var(--line-strong); color: var(--ink); font: 400 13px var(--mono); }
.btn.connected:hover { border-color: var(--accent); background: var(--raised); }
.btn.connected::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }
.btn.connected::after { content: ""; width: 6px; height: 6px; margin: -3px 1px 0 2px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.wallet-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 260px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: rise .18s var(--ease);
}
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head small { display: block; color: var(--muted); font-size: 12px; }
.menu-head b { display: block; font: 400 15px var(--mono); }
.menu-head b + small { margin-top: 10px; }
.menu-head .on { color: var(--accent); }
.wallet-menu button { display: block; width: 100%; padding: 9px 12px; background: none; border: 0; border-radius: 8px; font-size: 14px; text-align: left; }
.wallet-menu button:hover { background: var(--raised); }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } }

/* Hero */
.hero { position: relative; z-index: 0; flex: 1; display: flex; min-width: 0; overflow: hidden; }
.sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(5px 5px at 82% 170px, #fff, transparent),
    radial-gradient(240px 110px at 82% 170px, rgba(255, 244, 214, .5), transparent 70%),
    radial-gradient(130% 240px at 70% 200px, rgba(151, 252, 228, .32), transparent 72%),
    radial-gradient(90% 420px at 20% 620px, rgba(79, 179, 217, .2), transparent 75%),
    linear-gradient(#030d10, #06191c 620px);
}

.hero-grid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; }
.tagline { font: 400 clamp(30px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.tagline em { color: var(--accent); }

/* Send card */
.card {
  position: relative; width: 100%; max-width: 440px; padding: 22px;
  background: linear-gradient(rgba(16, 36, 40, .86), rgba(10, 26, 29, .92)); backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 40px 90px rgba(0, 0, 0, .5);
}
.send h2 { margin-bottom: 10px; font: 400 26px/1.1 var(--serif); }
.fine a { color: var(--accent); }
.coin { position: relative; display: block; flex: none; width: 22px; height: 22px; }
.coin .hype { display: block; width: 22px; height: 22px; }
.coin .chain { position: absolute; right: -4px; bottom: -3px; width: 12px; height: 12px; padding: 1px; background: #050f11; border-radius: 50%; }
.label { display: flex; justify-content: space-between; gap: 12px; margin: 14px 2px 7px; color: var(--muted); font-size: 13px; }
.label small { color: var(--faint); font-size: 12px; }
.amount-box { display: flex; align-items: center; gap: 8px; padding: 14px; background: rgba(3, 11, 13, .6); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.amount-box:focus-within, .text:focus { border-color: var(--accent); }
#amount { flex: 1; min-width: 0; padding: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 400 30px/1.2 var(--mono); letter-spacing: -.03em; }
#amount::placeholder, .text::placeholder { color: var(--faint); }
.max { padding: 4px 8px; background: none; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 500 11px var(--mono); transition: color .2s, border-color .2s; }
.max:hover { border-color: var(--accent); color: var(--accent); }
.token { display: flex; align-items: center; gap: 7px; flex: none; padding: 5px 11px 5px 7px; background: var(--raised); border-radius: 999px; font-size: 14px; font-weight: 500; }
.private-row { display: flex; justify-content: space-between; margin: 10px 2px 0; color: var(--muted); font-size: 13px; }
.private-row b { color: var(--accent); font: 500 13px var(--mono); }
.text { width: 100%; padding: 14px; background: rgba(3, 11, 13, .6); border: 1px solid var(--line); border-radius: 14px; outline: 0; color: var(--ink); font: 400 14px var(--mono); transition: border-color .2s; }
.rows { margin: 16px 2px 0; font-size: 13px; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font: 400 12px var(--mono); text-align: right; }
.cta { width: 100%; margin-top: 16px; padding: 15px; border: 1px solid transparent; border-radius: 14px; font-weight: 500; transition: filter .2s, transform .2s var(--ease); }
.cta.primary { background: var(--accent); color: #04181a; }
.cta.primary:not(:disabled):hover { filter: brightness(1.08); }
.cta.primary:not(:disabled):active { transform: scale(.985); }
.cta.primary:disabled { background: var(--raised); border-color: var(--line); color: var(--muted); }
.fine { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.fine:empty { display: none; }
.fine.bad { color: var(--bad); }
.notice { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.notice strong { color: var(--moon); font-weight: 500; }
.notice span { display: block; color: var(--faint); font: 400 12px var(--mono); }

.foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--accent); }
.foot img { display: block; }
.foot { position: relative; }
.volume { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); color: var(--muted); }
.volume b { margin-left: 6px; color: var(--accent); font: 400 13px var(--mono); }

/* Wallet picker */
dialog { width: min(380px, calc(100% - 32px)); padding: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(2, 8, 9, .72); backdrop-filter: blur(6px); }
dialog h2 { margin-bottom: 6px; font: 400 30px/1.1 var(--serif); }
dialog p { color: var(--muted); font-size: 14px; }
#wallet-list { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
#wallet-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; background: var(--raised); border: 1px solid transparent; border-radius: 12px; text-align: left; transition: border-color .2s; }
#wallet-list button:hover { border-color: var(--accent); }
#wallet-list img { width: 28px; height: 28px; border-radius: 7px; }
.close { width: 100%; margin-top: 12px; padding: 10px; background: none; border: 0; color: var(--muted); font-size: 14px; }
.close:hover { color: var(--ink); }

@media (max-width: 760px) {
  .sky { background: radial-gradient(130% 200px at 70% 40px, rgba(151, 252, 228, .28), transparent 72%), linear-gradient(#030d10, #06191c 620px); }
  .token { font-size: 13px; }
  .nav { padding: 12px 16px; }
  .card { padding: 18px; }
  .foot { padding: 12px 16px; font-size: 12px; }
  .volume { position: static; flex-basis: 100%; transform: none; text-align: center; }
}
@media (max-height: 780px) {
  .tagline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-menu { animation: none; }
}

.recipient-box { position: relative; }
.recipient-box .text { padding-right: 110px; }
.fresh { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.fresh-key { margin-top: 10px; padding: 14px; border: 1px solid var(--accent); border-radius: 14px; background: rgba(151, 252, 228, .05); color: var(--muted); font-size: 13px; }
.fresh-key b { color: var(--ink); font-weight: 500; }
.fresh-key code { display: block; margin: 10px 0; color: var(--accent); font: 400 12px var(--mono); word-break: break-all; }
.fresh-key div { display: flex; gap: 8px; }

.delay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: rgba(3, 11, 13, .6); border: 1px solid var(--line); border-radius: 14px; }
.delay button { padding: 10px 6px; background: none; border: 0; border-radius: 10px; color: var(--muted); font: 500 13px var(--sans, inherit); transition: background .2s, color .2s; }
.delay button:hover { color: var(--ink); }
.delay button[aria-checked="true"] { background: rgba(151, 252, 228, .12); color: var(--accent); }

.request-open { display: block; width: 100%; margin-top: 10px; padding: 6px; background: none; border: 0; color: var(--accent); font-size: 13px; }
.request-open:hover { text-decoration: underline; }
.request-banner { margin: -4px 0 14px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(151, 252, 228, .06); color: var(--ink); font-size: 13px; }
#request-dialog { width: min(440px, calc(100% - 32px)); }
#request-dialog .label { margin-top: 14px; }
.req-link { display: block; margin: 16px 0 12px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--accent); font: 400 12px var(--mono); word-break: break-all; }

.batch { resize: vertical; min-height: 130px; line-height: 1.6; }
#batch-toggle { margin: 10px 0 4px; }

select.text { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
#swap-custom { margin-top: 8px; }
#swap-toggle { margin-top: 0; }
#swap-result p + p { margin-top: 10px; }
#swap-result p code { display: inline; margin: 0; word-break: break-all; }

/* ---- Refresh ---- */
.sky { background: #030d10 url(media/hero.jpg) center 40%/cover no-repeat; overflow: hidden; }
section.hero { min-height: calc(100dvh - 67px); }
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 48%, rgba(3, 13, 16, .15), rgba(3, 13, 16, .75) 100%),
    linear-gradient(rgba(5, 15, 17, .55), transparent 30%, transparent 65%, var(--bg));
}
.hero-grid { gap: 26px; padding: 40px 16px; }
.intro { display: grid; justify-items: center; gap: 12px; animation: fadeUp .8s var(--ease) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(5, 15, 17, .5); backdrop-filter: blur(10px); color: var(--muted); font: 400 12px var(--mono); letter-spacing: .02em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(151, 252, 228, .6); animation: pulse 2.4s infinite; }
.tagline { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.tagline em { background: linear-gradient(100deg, var(--accent), #d6fff5 50%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

.card { max-width: 460px; padding: 24px; animation: fadeUp .8s .12s var(--ease) both;
  background: linear-gradient(rgba(14, 33, 37, .78), rgba(8, 22, 25, .88)); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 1px rgba(151, 252, 228, .04), 0 40px 100px rgba(0, 0, 0, .6), 0 0 120px -40px rgba(151, 252, 228, .25); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(151, 252, 228, .45), transparent 35%, transparent 70%, rgba(151, 252, 228, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.send .card-head h2 { margin: 0; font-size: 28px; }
.zk-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(151, 252, 228, .08); border: 1px solid rgba(151, 252, 228, .22); color: var(--accent); font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 4px; background: rgba(3, 11, 13, .65); border: 1px solid var(--line); border-radius: 14px; }
.modes button { padding: 9px 6px; background: none; border: 0; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.modes button:hover { color: var(--ink); }
.modes button[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 4px 14px rgba(0, 0, 0, .35); }
#batch-toggle, #swap-toggle { display: none; }

.amount-box, .text, .delay { background: rgba(2, 9, 11, .55); }
.amount-box { padding: 16px; }
.amount-box:focus-within, .text:focus { box-shadow: 0 0 0 4px rgba(151, 252, 228, .08); }
#amount { font-size: 34px; }
.cta.primary { position: relative; overflow: hidden; background: linear-gradient(180deg, #b4ffec, var(--accent)); box-shadow: 0 10px 30px -10px rgba(151, 252, 228, .55), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.cta.primary:not(:disabled)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s var(--ease); }
.cta.primary:not(:disabled):hover::after { transform: translateX(100%); }
.cta.primary:disabled { box-shadow: none; }
.request-open { color: var(--muted); transition: color .2s; }
.request-open:hover { color: var(--accent); text-decoration: none; }

.nav { background: rgba(5, 15, 17, .45); border-bottom-color: transparent; }
.foot { background: rgba(5, 15, 17, .6); backdrop-filter: blur(12px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(151, 252, 228, 0); } 100% { box-shadow: 0 0 0 0 rgba(151, 252, 228, 0); } }
@media (max-width: 760px) {
  .eyebrow { font-size: 11px; }
}
@media (max-height: 780px) { .intro { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro, .card { animation: none; } .pulse { animation: none; }
}

/* ---- Swap-panel card ---- */
.card { padding: 14px; border-radius: 26px; }
.card-head { padding: 6px 6px 0; }
.modes { padding: 5px; border-radius: 16px; margin-bottom: 12px; }
.modes button { padding: 10px 6px; border-radius: 12px; }
.panel { position: relative; padding: 14px 16px 14px; background: rgba(239, 247, 244, .045); border: 1px solid rgba(239, 247, 244, .08); border-radius: 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.panel.low { background: rgba(2, 9, 11, .35); }
.panel .label { margin: 0 0 6px; align-items: center; }
.panel .label::after { content: ""; flex: 1; height: 3px; margin-left: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); order: 1; }
.panel .label small { order: 2; }
.panel .amount-box { padding: 2px 0; background: none; border: 0; box-shadow: none; }
.panel #amount, .panel #swap-amount { flex: 1; min-width: 0; padding: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 400 44px/1.15 var(--sans); letter-spacing: -.03em; }
.panel #amount::placeholder, .panel #swap-amount::placeholder { color: var(--faint); }
.panel .token { padding: 7px 14px 7px 8px; background: rgba(239, 247, 244, .07); border: 1px solid var(--line); font-size: 15px; }
.chips { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 8px; }
.chips .max { padding: 5px 10px; border: 0; border-radius: 9px; background: rgba(239, 247, 244, .07); color: var(--ink); font: 500 12px var(--sans); }
.chips .max:hover { background: rgba(151, 252, 228, .14); color: var(--accent); }
.chips .private-row { margin: 0 auto 0 0; font-size: 12px; gap: 6px; }
.flip { position: relative; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin: -14px auto; background: var(--raised); border: 4px solid #0b1d20; border-radius: 50%; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.panel.low .text { background: none; border: 0; padding: 8px 110px 8px 0; font-size: 16px; box-shadow: none; }
.token-select { width: auto !important; min-width: 160px; padding: 9px 40px 9px 14px !important; border: 1px solid var(--line) !important; border-radius: 999px !important; background-color: rgba(239, 247, 244, .07) !important; font: 500 15px var(--sans) !important; }
.token-select option { background: var(--surface); }
#swap-custom { margin-top: 10px; padding: 10px 0 !important; }
#swap-box, #single { margin-top: 0; }
.delay { margin-top: 0; }
#delay-label { margin-top: 14px; }
.cta.primary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 18px; text-align: left; font-size: 16px; }
.cta.primary::before { content: "↗"; order: 2; font-size: 18px; }
.cta.primary:disabled { background: rgba(239, 247, 244, .1); color: var(--muted); }

/* ---- Footer ---- */
.foot { display: block; padding: 0; border-top: 0; background: #030b0d; color: var(--muted); overflow: hidden; backdrop-filter: none; }
.foot-bg { position: absolute; inset: 0; background: url(media/footer.jpg) center 60%/cover no-repeat; opacity: .5; }
.foot-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#030b0d, rgba(3, 11, 13, .25) 30%, rgba(3, 11, 13, .35) 70%, #030b0d); }
.foot-inner, .foot-base { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding-top: 110px; padding-bottom: 90px; }
.foot-brand .brand { font-size: 30px; color: var(--ink); }
.foot-brand p { max-width: 420px; margin: 18px 0 22px; color: #c3d2cf; font-size: 15px; line-height: 1.6; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.foot a.fbtn { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(5, 15, 17, .6); color: var(--ink); font-size: 14px; font-weight: 500; }
.foot a.fbtn.light { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.foot a.fbtn:hover { border-color: var(--accent); color: var(--accent); }
.foot a.fbtn.light:hover { background: var(--accent); color: var(--bg); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; gap: 12px; }
.foot-cols h4 { margin: 0 0 4px; color: var(--ink); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot-cols a { color: #c3d2cf; font-size: 14px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); font: 400 12px var(--mono); }
.foot-base .volume { position: static; transform: none; }
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 50px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .panel #amount, .panel #swap-amount { font-size: 36px; }
}
.panel.low .token-select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---- Plain page, footer fade, premium buttons ---- */
body { background: #061416; }
.sky { background: radial-gradient(70% 55% at 50% 38%, rgba(151, 252, 228, .07), transparent 70%), #061416; }
.sky::after { display: none; }
.foot { background: #030b0d; }
.foot-bg { opacity: .55; }
.foot-bg::after { background: linear-gradient(#061416, rgba(6, 20, 22, .55) 35%, rgba(3, 11, 13, .3) 65%, #030b0d); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: 1; background: linear-gradient(#061416, transparent); pointer-events: none; }
.foot-inner { padding-top: 160px; }
.nav { grid-template-columns: 1fr auto auto; background: rgba(6, 20, 22, .7); border-bottom: 1px solid var(--line); }

/* Header links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links button { padding: 8px 14px; background: none; border: 0; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links button:hover { color: var(--ink); background: rgba(239, 247, 244, .06); }

/* Shared premium surface */
.btn, .ghost-btn, .modes button[aria-selected="true"], .chips .max, .foot a.fbtn, .flip, .max.fresh, .panel .token, .token-select {
  border: 1px solid rgba(239, 247, 244, .12) !important;
  background: linear-gradient(180deg, rgba(239, 247, 244, .1), rgba(239, 247, 244, .03)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .35) !important;
  color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, color .2s;
}
.token-select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(180deg, rgba(239, 247, 244, .1), rgba(239, 247, 244, .03)) !important; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%, 0 0 !important; background-size: 5px 5px, 5px 5px, 100% 100% !important; background-repeat: no-repeat !important; }
.btn:hover, .ghost-btn:hover, .chips .max:hover, .foot a.fbtn:hover, .max.fresh:hover { border-color: rgba(151, 252, 228, .45) !important; color: var(--ink) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 3px rgba(151, 252, 228, .08), 0 6px 18px rgba(0, 0, 0, .4) !important; }
.btn:active, .ghost-btn:active, .chips .max:active, .foot a.fbtn:active { transform: translateY(1px) scale(.98); }
.btn { min-height: 40px; padding: 0 18px; color: var(--ink) !important; font-weight: 500; }
.btn:not(.connected) { background: linear-gradient(180deg, #f6fffc, #cfeee6) !important; color: #05191b !important; border-color: rgba(255, 255, 255, .6) !important; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 20px -6px rgba(151, 252, 228, .5) !important; }
.chips .max { padding: 6px 12px; border-radius: 10px; font-weight: 500; }
.modes { background: rgba(0, 0, 0, .3); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.modes button[aria-selected="true"] { border-radius: 11px; }
.modes button { border: 1px solid transparent; }

/* Main CTA */
.cta.primary { background: linear-gradient(180deg, #c8fff1 0%, #97fce4 55%, #6fe6cb 100%) !important; color: #032022; border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(0, 60, 50, .25), 0 14px 34px -12px rgba(151, 252, 228, .7), 0 0 0 1px rgba(151, 252, 228, .25) !important; font-weight: 600; letter-spacing: -.005em; }
.cta.primary:disabled { background: linear-gradient(180deg, rgba(239, 247, 244, .08), rgba(239, 247, 244, .03)) !important; border-color: rgba(239, 247, 244, .1) !important; color: var(--muted); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important; font-weight: 500; }
.cta.primary::before { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(3, 32, 34, .12); font-size: 15px; }
.cta.primary:disabled::before { background: rgba(239, 247, 244, .06); }

/* Payment link button */
.ghost-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 10px; padding: 13px; border-radius: 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.ghost-btn svg { color: var(--accent); }
.foot a.fbtn { border-radius: 10px; padding: 11px 18px; }
.foot a.fbtn.light { background: linear-gradient(180deg, #f6fffc, #cfeee6) !important; color: #05191b !important; border-color: rgba(255, 255, 255, .6) !important; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 20px -6px rgba(151, 252, 228, .5) !important; }
@media (max-width: 760px) { .nav-links a { display: none; } .nav-links button { padding: 8px 10px; font-size: 13px; } }
.foot-bg { opacity: .8; }

/* ---- Centered nav, compact card ---- */
.nav { grid-template-columns: 1fr auto 1fr; border-bottom: 0 !important; background: rgba(6, 20, 22, .6); }
.nav-links { justify-self: center; }
.nav-right { justify-self: end; }

.hero-grid { gap: 18px; padding: 24px 16px 40px; }
.tagline { font-size: clamp(32px, 3.8vw, 52px); }
.card { max-width: 420px; padding: 10px; border-radius: 22px; }
.card-head { padding: 4px 6px 0; margin-bottom: 10px; }
.send .card-head h2 { font-size: 22px; }
.modes { margin-bottom: 8px; padding: 4px; }
.modes button { padding: 7px 6px; font-size: 13px; }
.panel { padding: 10px 14px; border-radius: 16px; }
.panel .label { margin-bottom: 2px; font-size: 12px; }
.panel #amount, .panel #swap-amount { font-size: 34px; }
.panel .token { padding: 5px 12px 5px 6px; font-size: 14px; }
.chips { margin-top: 4px; }
.chips .max { padding: 4px 10px; font-size: 11px; }
.flip { width: 34px; height: 34px; margin: -11px auto; border-width: 3px; }
.panel.low .text { padding: 4px 110px 4px 0; font-size: 14px; }
#delay-label { margin: 10px 4px 6px; font-size: 12px; }
.delay { padding: 3px; }
.delay button { padding: 7px 6px; font-size: 12px; }
.cta.primary { margin-top: 10px; padding: 12px 14px 12px 18px; border-radius: 15px; font-size: 15px; }
.cta.primary::before { width: 26px; height: 26px; }
.ghost-btn { margin-top: 6px; padding: 10px; border-radius: 14px; font-size: 13px; }
.fine { margin-top: 6px; }
.fine:last-of-type { margin-bottom: 2px; }
.token-select { padding: 6px 36px 6px 12px !important; font-size: 14px !important; }

.foot-bg { background-position: center 40%; }
.foot-bg { background-size: auto 125%; background-position: 96% 35%; opacity: 1;
  -webkit-mask: radial-gradient(42% 90% at 80% 55%, #000 35%, transparent 100%);
  mask: radial-gradient(42% 90% at 80% 55%, #000 35%, transparent 100%); }
.foot-cols { position: relative; }
@media (max-width: 900px) { .foot-bg { background-size: cover; background-position: center 30%; opacity: .45; -webkit-mask: none; mask: none; } }
@media (min-width: 901px) {
  .foot-bg { background-position: right -300px top 35%;
    -webkit-mask: radial-gradient(30% 95% at 90% 55%, #000 30%, transparent 100%);
    mask: radial-gradient(30% 95% at 90% 55%, #000 30%, transparent 100%); }
}
.modes { grid-template-columns: repeat(4, 1fr); }
.venue { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.venue small { color: var(--faint); font-size: 12px; }
.panel #perps-amount { flex: 1; min-width: 0; padding: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 400 34px/1.15 var(--sans); letter-spacing: -.03em; }
.panel #perps-amount::placeholder { color: var(--faint); }
.steps-mini { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.steps-mini a { color: var(--accent); }

/* Main card button: deep teal glass instead of bright mint */
.card .cta.primary:not(:disabled) {
  background: linear-gradient(180deg, rgba(151, 252, 228, .16), rgba(151, 252, 228, .06)) , #0c2427 !important;
  color: #c8fff1 !important;
  border: 1px solid rgba(151, 252, 228, .32) !important;
  box-shadow: inset 0 1px 0 rgba(200, 255, 241, .18), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 10px 30px -14px rgba(151, 252, 228, .45) !important;
  font-weight: 500;
}
.card .cta.primary:not(:disabled):hover { border-color: rgba(151, 252, 228, .55) !important; color: #e6fff8 !important; box-shadow: inset 0 1px 0 rgba(200, 255, 241, .22), 0 0 0 3px rgba(151, 252, 228, .07), 0 12px 34px -12px rgba(151, 252, 228, .55) !important; filter: none; }
.card .cta.primary:not(:disabled)::before { background: rgba(151, 252, 228, .12); color: var(--accent); }
.card .cta.primary:not(:disabled)::after { background: linear-gradient(100deg, transparent 30%, rgba(200, 255, 241, .12) 50%, transparent 70%); }


/* Landing design alignment */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.brand {
  font-family: var(--disp) !important;
  font-stretch: 125% !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  font-size: 16px !important;
}

.tagline {
  font-family: var(--disp) !important;
  font-stretch: 125% !important;
  font-weight: 500 !important;
  letter-spacing: -.025em !important;
  line-height: .98 !important;
}

.send h2, .card-title, .h2 {
  font-family: var(--disp) !important;
  font-stretch: 120% !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
}

.btn {
  border-radius: 4px !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

.nav-links a, .nav-links button {
  font-family: var(--mono) !important;
  font-size: 10.5px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}

.card {
  border-radius: 4px !important;
  border: 1px solid var(--line-strong) !important;
  background: linear-gradient(180deg, rgba(16, 36, 40, .75), rgba(8, 22, 25, .90)) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45) !important;
}

.box, .segmented, .input-wrap {
  border-radius: 4px !important;
}

.max, .token, .zk-badge, .token-select {
  border-radius: 2px !important;
}
