/* AstroMM — under construction / tip page */

:root {
  --bg:     #080b0a;
  --panel:  rgba(255,255,255,.035);
  --panel-hi: rgba(255,255,255,.06);
  --line:   rgba(255,255,255,.09);
  --line-hi: rgba(255,255,255,.18);
  --ink:    #ffffff;
  --muted:  #8b948f;
  --dim:    #5f6864;
  --green:  #4ade80;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(110% 70% at 12% -10%, rgba(74,222,128,.10), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 22px 48px;
}

/* ---------- header ---------- */

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
}
.brand .fallback {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font: 700 17px/1 var(--sans);
  color: var(--green);
}

.brand h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: -1.2px;
}

.status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
}

/* ---------- shared bits ---------- */

.label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.label.section { margin: 28px 0 12px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}

/* ---------- hero ---------- */

.hero { margin-top: 26px; padding: 22px 24px 24px; }

.hero .value {
  margin: 8px 0 0;
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.1;
}
.hero .value span {
  font-size: .45em;
  font-weight: 500;
  letter-spacing: -.2px;
  color: var(--muted);
}
.hero .sub { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- wallets ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.coin {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color .18s, background .18s;
}
.coin:hover { border-color: var(--line-hi); background: var(--panel-hi); }

.coin-main { flex: 1; min-width: 0; }

.coin-net {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.addr {
  margin: 8px 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--green);
  word-break: break-all;
}
.addr.todo { color: var(--dim); font-style: italic; }

.copy {
  /* Wide enough for "Copied ✓" so the button does not resize when clicked. */
  min-width: 100px;
  padding: 8px 14px;
  text-align: center;
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.copy:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.copy:disabled { opacity: .35; cursor: not-allowed; }
.copy.done { color: var(--green); border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.1); }

.qr {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  padding: 4px;
}
.qr svg { display: block; width: 100%; height: 100%; }
.qr.empty {
  background: transparent;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  color: var(--dim);
}

/* ---------- claim form ---------- */

.wrap.narrow { max-width: 480px; }

.form { margin-top: 26px; padding: 24px; }

.field { margin-bottom: 18px; }

.field input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color .18s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: rgba(74,222,128,.55); }
.field input.invalid { border-color: rgba(239,68,68,.6); }

.err {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: #f87171;
}

.submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  border: 1px solid rgba(74,222,128,.45);
  border-radius: 10px;
  background: rgba(74,222,128,.12);
  color: var(--green);
  font: 700 14px/1 var(--sans);
  letter-spacing: .6px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.submit:hover { background: rgba(74,222,128,.2); border-color: rgba(74,222,128,.7); }

/* Note: not ".done" — the copy button uses .copy.done for its "Copied ✓" state, and a
   bare .done rule here would override that button's padding and blow it up on click. */
.thanks { margin-top: 26px; padding: 26px 24px; text-align: center; }
.thanks-title {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.thanks-sub { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }

.back {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--green);
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.back-row { margin: 0; text-align: center; }
.back-row .back { margin-top: 16px; }

/* ---------- footer ---------- */

.note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.note a, footer a { color: var(--green); text-decoration: none; }
.note a:hover, footer a:hover { text-decoration: underline; }

footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border: 1px solid rgba(74,222,128,.45);
  border-radius: 999px;
  background: rgba(8,20,14,.96);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .wrap { padding: 44px 18px 40px; }
  .grid { grid-template-columns: 1fr; }
  .topline { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .coin { transition: none; }
}
