:root {
  --bg: #0e1114;
  --card: #171b20;
  --text: #e8ecef;
  --muted: #8b959e;
  --line: #2a3138;
  --accent: #3d9a7a;
  --danger: #d45d5d;
  --ok: #3d9a7a;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a2420 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #1a1f28 0%, transparent 50%),
    var(--bg);
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 28px 18px 64px; }
.brand {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 8px;
}
h1, h2 { margin: 0 0 12px; font-weight: 600; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.1rem; }
.muted { color: var(--muted); font-size: 0.95rem; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.card {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}
.card.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.row { display: flex; gap: 10px; align-items: center; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
input, textarea, button, .btn {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1317;
  color: var(--text);
  padding: 10px 12px;
}
textarea { resize: vertical; font-family: var(--mono); font-size: 0.85rem; }
button, .btn {
  background: var(--accent);
  color: #04110c;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
button:hover, .btn:hover { filter: brightness(1.05); text-decoration: none; }
button:disabled { opacity: 0.6; cursor: wait; }
button.ghost, .ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.check input { width: auto; }
code, .wallet {
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-all;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.paybox {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: #10151a;
}
.paybox .label { color: var(--muted); font-size: 0.8rem; margin: 8px 0 4px; }
@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
}
