:root {
  --bg: #0f1115;
  --card: #171a21;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f5;
  --muted: #9aa3b2;
  --accent: #d6ff63;
  --accent-ink: #0f1115;
  --danger: #ff6b6b;
  --font: "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Kanit", var(--font);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f7f5;
    --card: #ffffff;
    --line: rgba(0, 0, 0, 0.08);
    --text: #14161a;
    --muted: #5b6472;
    --accent: #1f6feb;
    --accent-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
header.top .brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; text-decoration: none; }
header.top .contact { font-size: 14px; color: var(--muted); text-decoration: none; }
h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 8px; }
.tagline { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 20px; }
.card h2 { font-family: var(--font-head); font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.card .format { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.card p.desc { margin: 0 0 16px; }
.card ul { margin: 0 0 24px; padding-left: 22px; }
.card li { margin-bottom: 6px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-size: 32px; font-weight: 700; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-weight: 600; font-size: 17px; padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 14px; }
footer { margin-top: 48px; color: var(--muted); font-size: 13px; text-align: center; }
/* หน้า success */
.center { text-align: center; padding-top: 6vh; }
.big { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; font-size: 40px; background: var(--card); border: 1px solid var(--line); }
.status { min-height: 120px; }
.err { color: var(--danger); }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
