:root {
  --bg: #0f1412;
  --panel: #171e1b;
  --ink: #e8f0ea;
  --muted: #8fa396;
  --line: #2a3830;
  --accent: #3ecf8e;
  --bad: #f07178;
  --code: #0b100e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(900px 400px at 0% 0%, #1a3328 0%, transparent 55%),
    var(--bg);
}
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(15,20,18,0.92);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: 0.04em; }
.brand span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
nav a:hover { color: var(--ink); }
main { max-width: 920px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.2rem;
  margin-bottom: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
h1 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
}
h2 { margin: 0 0 0.6rem; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
label { display: block; font-size: 0.75rem; color: var(--muted); margin: 0.6rem 0 0.3rem; }
input {
  width: 100%;
  background: var(--code);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}
button {
  margin-top: 0.75rem;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #062416;
}
button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  margin-left: 0.4rem;
}
.err { color: var(--bad); min-height: 1.2rem; }
.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.75rem 0 0.25rem;
  cursor: pointer;
}
.toggle input { width: auto; }
.btn-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.mono, .secret {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  word-break: break-all;
}
.secret {
  margin-top: 0.75rem;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  white-space: pre-wrap;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-family: "IBM Plex Mono", monospace; }
th, td { text-align: left; padding: 0.45rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); }
.row { display: flex; gap: 0.5rem; align-items: center; }
.row input { margin: 0; }
.row button { margin-top: 0; }
.warn-box {
  background: #2a2410;
  border: 1px solid #6b5a1e;
  color: #f0d78c;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: #0b100e;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.qr-panel img {
  width: 260px;
  height: 260px;
  background: #fff;
  border-radius: 8px;
}
.qris-card .grid { align-items: start; }
.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 720px) {
  .balance-grid { grid-template-columns: 1fr; }
}
.bal-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bal-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.2rem;
}
.bal-value.muted { color: var(--muted); font-size: 1.05rem; }
