/* CHANUN Membership — อ้างอิง CI: CHANUN Blue #182E56, Warm grey (Pantone 408) #9B918D, ขาว 60–80%, ดำสำหรับตัวอักษร */
:root {
  --blue: #182E56;
  --blue-ink: #0F1F3D;
  --taupe: #9B918D;
  --taupe-deep: #6F6560;
  --paper: #F6F4F0;
  --white: #FFFFFF;
  --ink: #161616;
  --ink-2: #4A4A4A;
  --ink-3: #8A8580;
  --line: #E4E0DA;
  --turquoise: #12A39A;
  --ok: #1E6B52;
  --warn: #9A5B13;
  --err: #A33A2B;
  --radius: 14px;
  --font: 'Jost', 'IBM Plex Sans Thai', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
.wrap { max-width: 460px; margin: 0 auto; padding: 0 16px 48px; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.eyebrow {
  font-size: 12px; letter-spacing: .02em; color: var(--ink-3); font-weight: 500;
}
.eyebrow.en { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  border-radius: 999px; padding: 12px 22px; font-weight: 500; letter-spacing: .02em; min-height: 46px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; border: 1px solid var(--line); color: var(--ink-2); background: var(--white);
}
.pill.ok { color: var(--ok); border-color: #CFE3DA; background: #F1F8F5; }
.pill.blue { color: #fff; background: var(--blue); border-color: var(--blue); }
.pill.warn { color: var(--warn); border-color: #EBD9C2; background: #FBF5EC; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.input {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  padding: 12px 14px; min-height: 46px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--blue); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px;
  transition: all .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--err); }

.loader { min-height: 70vh; display: grid; place-items: center; }
.loader img { width: 96px; opacity: .85; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .loader img { animation: none; } * { transition: none !important; } }
