:root {
  --bg: #0f1c18;
  --bg2: #163028;
  --ink: #f2f7f4;
  --muted: #a7c0b4;
  --accent: #3dd68c;
  --accent2: #f0b429;
  --bad: #ff6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1f4d3a 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #2a3d1f 0%, transparent 50%),
    var(--bg);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}
.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}
.wrap.wide { width: min(1100px, calc(100% - 2rem)); }
.wrap.narrow { width: min(440px, calc(100% - 2rem)); }
.portal { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.75rem;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0.4rem 0 0.6rem; }
.price {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.muted { color: var(--muted); }
.warn { color: var(--accent2); }
.bad { color: var(--bad); }
.ok { color: var(--accent); }
.notice {
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-align: left;
  font-size: 0.9rem;
}
.qr {
  width: min(240px, 70vw);
  height: auto;
  margin: 1rem auto;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
}
.qr-placeholder {
  width: min(240px, 70vw);
  aspect-ratio: 1;
  margin: 1rem auto;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.label { display: block; text-align: left; margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }
textarea, input, select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  font: inherit;
}
.btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #062016;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.status { margin-top: 1.5rem; font-weight: 600; }
.form label { display: block; margin-bottom: 0.85rem; color: var(--muted); font-size: 0.9rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
code { font-size: 0.85em; }
.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
a { color: var(--accent); }
