:root {
  --bg: #0f1115;
  --card: #171a21;
  --line: #272b34;
  --text: #e8eaed;
  --muted: #9aa0aa;
  --accent: #2f81f7;
  --accent-press: #1f6fe0;
  --ok: #2ea043;
  --err: #f85149;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.error { color: var(--err); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.price { font-size: 20px; font-weight: 700; margin: 8px 0 12px; }

input, button {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0e12;
  color: var(--text);
  margin-top: 8px;
}

input:focus { outline: 2px solid var(--accent); border-color: transparent; }

button, .btn {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  width: 100%;
}
button:hover, .btn:hover { background: var(--accent-press); }

.code {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
}

.bigcode {
  font-size: 30px;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
}

.qr {
  display: block;
  width: 240px;
  max-width: 80%;
  height: auto;
  margin: 16px auto;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
}

a { color: var(--accent); }
