/* Shared styles for lana.org/request and lana.org/join. */
:root {
  color-scheme: dark;
  --bg: #050609;
  --text: #f4f5f7;
  --muted: #9a9ca6;
  --faint: #6f717b;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.035);
  --glass-2: rgba(255,255,255,.06);
  --silver: linear-gradient(180deg, #ffffff 0%, #c9ccd3 55%, #8e929c 100%);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { position: relative; isolation: isolate; margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.stroke path, .stroke circle, .stroke rect { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Background ---------- */
.backdrop { position: absolute; inset: 0 0 auto; height: 980px; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow.g1 { width: 700px; height: 460px; left: 50%; top: -220px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(170,176,190,.5), transparent); }
.glow.g2 { width: 520px; height: 520px; left: -220px; top: 360px; background: radial-gradient(closest-side, rgba(120,126,140,.3), transparent); }
.ribbons { position: absolute; inset: 0 -20%; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%); mask-image: linear-gradient(to bottom, #000 40%, transparent 92%); }
.ribbons svg { width: 100%; height: 100%; }
.ribbon { fill: none; stroke-linecap: round; transform-origin: center; animation: drift 20s ease-in-out infinite alternate; }
.ribbon.r2 { animation-duration: 26s; animation-delay: -8s; }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) rotate(-1deg); } to { transform: translate3d(2%, 2%, 0) rotate(1.5deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 16px;
  background: rgba(12,13,17,.6); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(0,0,0,.35);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(220,220,230,.18)); }
.nav-actions { display: flex; gap: 6px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 12px; font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--glass-2); }
.btn-silver { background: linear-gradient(180deg, #f6f7f9 0%, #c3c6cd 100%); color: #0b0c10; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(200,205,215,.18); }
.btn-silver:hover:not(:disabled) { box-shadow: inset 0 1px 0 #fff, 0 14px 40px rgba(200,205,215,.28); }
.btn-dark { background: linear-gradient(180deg, #4a4c54 0%, #2e3036 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.08); }
.btn-lg { min-height: 54px; padding: 0 24px; border-radius: 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Layout ---------- */
main { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 150px 0 90px; display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: start; }
.intro { position: sticky; top: 120px; padding-top: 8px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); font-size: 13px; }
.kicker b { padding: 3px 9px; border-radius: 999px; background: var(--glass-2); color: var(--text); font-size: 12px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(40px, 5.4vw, 64px); line-height: 1; letter-spacing: -.045em; }
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 470px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }

/* Invite pass */
.pass {
  position: relative; overflow: hidden; margin-top: 40px; max-width: 470px; aspect-ratio: 1.9; padding: 26px 28px;
  display: flex; flex-direction: column; border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(150deg, #23252b 0%, #121317 55%, #0b0c0f 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.18), 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
}
.pass::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px); pointer-events: none; }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.pass-brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(220,220,230,.2)); }
.pass-tag { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pass-addr { margin-top: auto; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.pass-addr .name { color: var(--text); }
.pass-addr .caret { display: inline-block; width: 2px; height: .95em; margin: 0 -1px -.12em 1px; background: #d8dbe0; animation: blink 1s steps(1) infinite; }
.pass-addr .domain { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes blink { 50% { opacity: 0; } }
.pass-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); color: var(--faint); font-size: 12.5px; }
.pass-foot b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.pass-foot div:last-child { text-align: right; }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 470px; margin: 36px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.perks li b { display: block; margin-bottom: 2px; color: var(--text); font-size: 14px; font-weight: 600; }
.perk-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: #d8dbe0; }
.perk-ico svg { width: 17px; height: 17px; }

/* ---------- Checkout panel ---------- */
.panel {
  position: relative; padding: 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(22,23,28,.88), rgba(12,13,16,.92));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255,255,255,.07), 0 40px 90px rgba(0,0,0,.5);
}
.steps { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color .3s; }
.steps li:not(.bar)::before {
  counter-increment: step; content: counter(step); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .3s, color .3s;
}
.steps .bar { flex: 1; height: 1px; gap: 0; min-width: 12px; background: var(--line-strong); }
.steps li.on { color: var(--text); }
.steps li.on::before { background: linear-gradient(180deg, #f6f7f9, #b9bdc5); color: #0b0c10; box-shadow: none; }
.steps li.past::before { content: "\2713"; }

h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.025em; }
.sub { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }

/* Coin list */
.coins { display: grid; gap: 8px; }
.coin {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px 12px 12px; border: 0; border-radius: 16px;
  text-align: left; cursor: pointer; color: var(--text); font: inherit;
  background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s;
}
.coin:hover { background: rgba(255,255,255,.05); }
.coin[aria-pressed="true"] { background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1.5px rgba(230,232,236,.85), 0 10px 30px rgba(0,0,0,.35); }
.coin-ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; color: #15161a;
  background: radial-gradient(circle at 30% 25%, #ffffff, #c6c9d0 60%, #8f939c);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.9), 0 4px 12px rgba(0,0,0,.35);
}
.coin-ico svg { width: 21px; height: 21px; }
.coin-ico .stroke path, .coin-ico .stroke circle { stroke-width: 2; }
.coin-ico .fill path { fill: currentColor; }
.coin-name { flex: 1; min-width: 0; }
.coin-name b { display: block; font-size: 15px; font-weight: 600; }
.coin-name span { color: var(--faint); font-size: 12.5px; }
.coin-net { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.radio { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s; }
.coin[aria-pressed="true"] .radio { box-shadow: inset 0 0 0 6px #e6e8ec; }

.networks { margin-top: 14px; }
.networks > span { display: block; margin-bottom: 8px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { flex: 1; min-height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 13px/1.2 var(--font); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

.summary { margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary .total { color: var(--text); font-weight: 600; font-size: 15px; }
.actions { margin-top: 20px; }
.error { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(248,113,113,.1); box-shadow: inset 0 0 0 1px rgba(248,113,113,.28); color: #ffc9c9; font-size: 13.5px; }
.fine { margin: 14px 0 0; color: var(--faint); font-size: 12.5px; text-align: center; }
.link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.link:hover { color: var(--text); }

/* Pay */
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: ping 1.8s ease-out infinite; }
.status.confirming i { background: #93c5fd; }
.status.partial i { background: var(--bad); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(251,191,36,0); } }
.order { color: var(--faint); font-size: 12.5px; font-family: var(--mono); }

.due { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line); }
.due-amt { flex: 1; min-width: 0; }
.due-amt small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.due-amt b { display: block; margin-top: 2px; font: 600 22px/1.25 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.due-amt span { color: var(--muted); font-size: 13px; }

.pay-grid { display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: stretch; margin-top: 14px; }
.qr { width: 148px; height: 148px; padding: 10px; border-radius: 16px; background: #e9ebef; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.fields { display: grid; gap: 10px; align-content: start; min-width: 0; }
.field label { display: block; margin-bottom: 6px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.copy {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 11px 11px 14px; border: 0; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font: 500 13px/1.4 var(--mono);
  transition: box-shadow .2s, background .2s;
}
.copy:hover { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.copy span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy em, .copy-btn { flex: 0 0 auto; padding: 5px 10px; border-radius: 8px; background: var(--glass-2); color: var(--muted); font: 600 12px var(--font); font-style: normal; }
.copy.done em, .copy-btn.done { background: rgba(74,222,128,.12); color: var(--ok); }
.copy-btn { border: 0; cursor: pointer; padding: 8px 12px; }
.copy-btn:hover { color: var(--text); }
.warn { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(251,191,36,.06); box-shadow: inset 0 0 0 1px rgba(251,191,36,.2); color: #fde4a5; font-size: 13px; line-height: 1.5; }
.warn svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.pay-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; color: var(--faint); font-size: 12.5px; }

/* Done */
.done-mark { width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.12); color: var(--ok); box-shadow: 0 0 0 8px rgba(74,222,128,.05); }
.done-mark svg { width: 28px; height: 28px; }
.done-mark svg path { stroke-width: 2.2; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; padding: 18px 18px 18px 22px; border-radius: 18px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.code-box b { font: 700 clamp(22px, 4vw, 30px)/1 var(--mono); letter-spacing: .08em; }
.done-actions { display: grid; gap: 8px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-field > span { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.form-field > span em { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; }
.form-field > span em.over { color: var(--bad); }
.input {
  display: flex; align-items: center; width: 100%; border-radius: 14px; background: rgba(0,0,0,.28);
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s, background .2s;
}
.input:focus-within { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1.5px rgba(230,232,236,.7); }
.input input, .input textarea {
  flex: 1; min-width: 0; width: 100%; padding: 15px 16px; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 15px/1.5 var(--font);
}
.input textarea { min-height: 148px; resize: vertical; }
.input input::placeholder, .input textarea::placeholder { color: var(--faint); }
.input .suffix { padding-right: 16px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.hint { margin: 8px 0 0; color: var(--faint); font-size: 12.5px; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }
.back { display: flex; justify-content: center; margin-top: 14px; }
.paid-note { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(74,222,128,.07); box-shadow: inset 0 0 0 1px rgba(74,222,128,.22); color: #c9f5d9; font-size: 14px; }
.paid-note svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--ok); }
.paid-note svg path { stroke-width: 2.2; }
.paid-note + h2 { margin-top: 22px; }
.addr-box { margin: 20px 0; padding: 18px 22px; border-radius: 18px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line-strong); font: 600 20px/1.3 var(--font); letter-spacing: -.01em; overflow-wrap: anywhere; }

/* 404 page */
main.notfound { grid-template-columns: minmax(0, 640px); justify-content: center; min-height: calc(100dvh - 110px); align-content: center; padding: 120px 0 60px; text-align: center; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

footer { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 18px; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  main { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; max-width: 560px; }
  .intro { position: static; text-align: center; }
  .lead, .pass, .perks { margin-left: auto; margin-right: auto; }
  .perks { text-align: left; }
}
@media (max-width: 520px) {
  main { padding-top: 104px; }
  .panel { padding: 22px 18px; border-radius: 22px; }
  .pass { padding: 20px 22px; border-radius: 18px; }
  .perks { grid-template-columns: 1fr; }
  .steps li { font-size: 0; gap: 0; }
  .steps li.on { font-size: 12.5px; gap: 8px; }
  .pay-grid { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  .nav .btn-ghost { display: none; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
  
