:root {
  --void: #000000;
  --panel: #050507;
  --panel2: #0a0a0e;
  --line: #15161d;
  --line2: #22242f;
  --ink: #F2F3F8;
  --ink2: #9BA0B4;
  --mute: #61667C;
  --you: #8E6BFF;
  --you2: #C0A8FF;
  --net: #54E0E6;
  --ok: #3FE0A0;
  --warn: #FFB443;
  --down: #FF6B7E;
  --display: 'Syne', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --mono: 'Azeret Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }

.glow {
  position: fixed;
  inset: -30vh -20vw auto;
  height: 80vh;
  pointer-events: none;
  background:
    radial-gradient(38% 45% at 38% 35%, rgba(142, 107, 255, .09), transparent 70%),
    radial-gradient(30% 40% at 68% 28%, rgba(84, 224, 230, .045), transparent 70%);
  filter: blur(30px);
}

.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 17px var(--display);
  letter-spacing: .01em;
}
.brand b { color: var(--you2); font-weight: 700; }
.mark { width: 28px; height: 28px; fill: var(--you2); }
.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: #000;
  color: var(--ink2);
  font: 500 12px var(--mono);
  white-space: nowrap;
}
.net-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--net); box-shadow: 0 0 10px var(--net); }

main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 16px 40px;
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 5, 7, .94);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px);
}
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 107, 255, .7) 30%, rgba(84, 224, 230, .6) 70%, transparent);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--you2);
  font: 500 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
h1 {
  margin: 0 0 6px;
  font: 700 26px/1.15 var(--display);
  letter-spacing: -.01em;
}
.lede { margin: 0 0 22px; color: var(--ink2); }
.lede em { color: var(--ink); font-style: normal; }

.warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 180, 67, .2);
  border-radius: 12px;
  background: rgba(255, 180, 67, .035);
  color: #d9c19c;
  font-size: 13px;
  line-height: 1.45;
}
.warn svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--warn); }
.bi { display: inline-flex; flex: none; line-height: 0; }
.ghost, footer a { display: inline-flex; align-items: center; gap: 6px; }
.warn b { color: var(--warn); font-weight: 600; }

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
}
.field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #000;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: rgba(142, 107, 255, .7); box-shadow: 0 0 0 3px rgba(142, 107, 255, .12); }
.field.bad { border-color: var(--down); box-shadow: 0 0 0 3px rgba(255, 107, 126, .14); }
.field input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 13.5px var(--mono);
}
.field input::placeholder { color: var(--mute); font-family: var(--body); font-size: 14px; }
.ghost {
  margin-right: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--panel2);
  color: var(--ink2);
  font: 500 12px var(--body);
  cursor: pointer;
}
.ghost:hover { color: var(--ink); border-color: var(--mute); }
.hint { min-height: 20px; margin: 7px 0 18px; color: var(--mute); font-size: 12.5px; }
.hint.bad { color: var(--down); }

.amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #000;
}
.amount > span { color: var(--ink2); font-size: 13px; }
.amount strong { font: 500 18px var(--mono); color: var(--ink); }
.amount strong::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--net); box-shadow: 0 0 8px var(--net); vertical-align: middle; }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--you);
  color: #fff;
  font: 600 15px var(--body);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(192, 168, 255, .25) inset, 0 12px 36px -14px rgba(142, 107, 255, .55);
  transition: transform .1s, filter .15s, opacity .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 1; background: var(--panel2); color: var(--mute); cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line2); }
.btn:focus-visible, .ghost:focus-visible { outline: 2px solid var(--you2); outline-offset: 2px; }
.spin { display: none; width: 16px; height: 16px; line-height: 0; animation: spin 1s linear infinite; }
.btn.busy .spin { display: block; }
.btn.busy .go-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  font-size: 13.5px;
  line-height: 1.5;
  animation: rise .25s ease-out;
}
.result.ok { border-color: rgba(63, 224, 160, .28); background: rgba(63, 224, 160, .035); }
.result.err { border-color: rgba(255, 107, 126, .28); background: rgba(255, 107, 126, .035); }
.result.wait { border-color: rgba(255, 180, 67, .22); background: rgba(255, 180, 67, .03); }
.result b { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-weight: 600; }
.result.ok b { color: var(--ok); }
.result.err b { color: var(--down); }
.result.wait b { color: var(--warn); }
.result p { margin: 0; color: var(--ink2); }
.result a { display: inline-flex; align-items: center; gap: 4px; color: var(--you2); text-decoration: none; font-family: var(--mono); font-size: 12.5px; }
.result a:hover { text-decoration: underline; }
.result .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

.limit { margin: 18px 0 0; color: var(--mute); font-size: 12.5px; text-align: center; }

.skeleton { height: 340px; border-radius: 12px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 22px 16px 28px;
  color: var(--mute);
  font-size: 12.5px;
}
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .top { padding: 16px 16px 0; }
  .net-pill { padding: 5px 10px; font-size: 11px; }
  main { padding-top: 5vh; }
  .card { padding: 22px 18px; border-radius: 16px; }
  h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
