/* ธีมหน้ายืนยันอีเมล / กู้คืนบัญชี — ใช้ร่วมกัน */
:root {
  color-scheme: dark;
  --bg: #020617;
  --card: #0f172a;
  --line: #1e293b;
  --tile: #111a33;
  --tile-line: #23305a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --brand: #4f46e5;
  --brand-hi: #6366f1;
  --brand-text: #818cf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --coin: #fcd34d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100svh;
  background: var(--bg) radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 70, 229, 0.28), transparent) no-repeat;
  color: var(--text);
  font-family: 'Noto Sans Thai', 'Leelawadee UI', Tahoma, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 24px;
}
.brand { display: inline-block; text-decoration: none; margin: 8px 0 10px; transition: filter 0.15s; }
.brand:hover { filter: brightness(1.25); }
.brand:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 6px; border-radius: 8px; }
/* โลโก้ตัวอักษรเดียวกับหัวเว็บ: Orbitron สีเงินไล่เฉด (ฟอนต์ระบบเป็น fallback) */
.wordmark {
  display: block;
  font-family: 'Orbitron', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: 0.12em; text-transform: uppercase;
  color: #d5dbe3;
  background: linear-gradient(to bottom, #f1f5f9, #cbd5e1, #64748b);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  user-select: none;
}
.tagline { margin: 0 0 4px; font-size: 15px; color: var(--muted); }

main {
  width: 100%;
  max-width: 30rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.6);
  text-align: center;
}
.state[hidden] { display: none; }
.badge-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px;
}
.badge-icon.ok { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--ok); }
.badge-icon.warn { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.35); }
.badge-icon.bad { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.35); }
.badge-icon svg { width: 38px; height: 38px; }
h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.45; font-weight: 700; }
p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; color: var(--soft); }
.small { font-size: 15px; color: var(--muted); margin-bottom: 0; }

.coin-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(79, 70, 229, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 16px; padding: 14px 16px; margin: 4px 0 18px;
}
.coin-card .coin { font-size: 30px; line-height: 1; }
.coin-card b { display: block; color: var(--coin); font-size: 19px; }
.coin-card small { color: var(--soft); font-size: 15px; }

.perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; text-align: left; }
.perks li {
  display: flex; gap: 10px; align-items: center;
  background: var(--tile); border: 1px solid var(--tile-line); border-radius: 12px;
  padding: 10px 12px; font-size: 16px; color: var(--soft);
}

.actions { display: grid; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; border: 0;
  font: 600 17px/1 'Noto Sans Thai', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--brand-hi), var(--brand)); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4); }
.btn-secondary { background: #1e293b; color: var(--text); border: 1px solid #334155; }
.btn[disabled] { opacity: 0.6; cursor: default; filter: none; }

.countdown { margin-top: 14px; font-size: 15px; color: var(--muted); }
.countdown button { background: none; border: 0; color: var(--brand-text); font: inherit; cursor: pointer; text-decoration: underline; padding: 0 2px; }

.spinner {
  width: 56px; height: 56px; margin: 6px auto 18px; border-radius: 50%;
  border: 4px solid #1e293b; border-top-color: var(--brand-hi); border-right-color: var(--brand-text);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop 0.45s ease-out both; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } .pop { animation: none; } }

.notice { margin-top: 12px; font-size: 15px; color: var(--soft); min-height: 1em; }
footer { margin-top: 22px; font-size: 14px; color: #94a3b8; text-align: center; line-height: 1.8; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
@media (max-width: 420px) { main { padding: 28px 20px; } h1 { font-size: 23px; } .wordmark { font-size: 24px; } }

/* ไอคอน Material Symbols Rounded (ชุดเดียวกับเว็บ) */
.ms {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
  line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  display: inline-block; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga'; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.badge-icon .ms { font-size: 40px; }
.badge-icon.warn { color: var(--warn); }
.badge-icon.bad { color: var(--bad); }
.coin-card .coin.ms { font-size: 34px; color: var(--coin); }
.perks li .ms { font-size: 22px; color: var(--brand-text); flex: none; }
