:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --line: #dde2e8;
  --accent: #1f4e8c;
  --accent-text: #ffffff;
  --error: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --card: #1b2129;
    --text: #e8ecf1;
    --muted: #9aa5b4;
    --line: #2c3540;
    --accent: #6c9fe0;
    --accent-text: #0d1117;
    --error: #f97066;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 40px 16px 64px; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
p.lede { color: var(--muted); margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .name { font-weight: 600; }
.row .price { color: var(--muted); font-size: 0.95rem; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 1.2rem; cursor: pointer;
}
.qty input {
  width: 52px; height: 36px; text-align: center; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text);
}
.total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; margin: 20px 4px; }
button.pay {
  width: 100%; padding: 14px; border: 0; border-radius: 10px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-text); cursor: pointer;
}
button.pay:disabled { opacity: 0.5; cursor: not-allowed; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; text-align: center; }
.error { color: var(--error); margin: 0 0 16px; }
ul.forms { list-style: none; padding: 0; margin: 0; }
ul.forms a { display: block; padding: 16px 0; color: var(--accent); font-weight: 600; text-decoration: none; }
