/* =========================================================
   TestKub — สไตล์หลัก (รุ่น 3)
   แนวคิด: liquid glass แผ่นกระจกฝ้าโปร่งแสงลอยบนพื้นสีไล่เฉด ตัวอักษรชัด สีเขียว "ผ่าน"
   (ชั้นกระจกอยู่ท้ายไฟล์ ในหัวข้อ LIQUID GLASS)
   จุดเด่นจุดเดียวคือ "วงนับ 14 วัน" ซึ่งใช้ทั้งหน้าแรกและหน้าติดตามสถานะ
   ========================================================= */
:root {
  --paper: #ffffff;
  --mist: #f3f6f5;
  --line: #dde5e2;
  --ink: #0d1f1a;
  --muted: #53625d;
  --green: #0a7a55;
  --green-deep: #075e42;
  --green-tint: #e4f3ec;
  --night: #062019;
  --night-line: #17382e;
  --signal: #3ddc84;
  --amber: #9a5a00;
  --amber-tint: #fdf1dc;
  --red: #bf3028;
  --red-tint: #fbe9e7;

  --head: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --body: "IBM Plex Sans Thai Looped", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.75;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--green-deep); text-underline-offset: 3px; }
h1, h2, h3, legend, button, .btn, label, summary, nav, th { font-family: var(--head); }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.3; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* ---------- แถบโหมดทดลอง / ส่วนหัว ---------- */
.demo-bar { background: var(--amber-tint); color: #5b3600; font-size: 14px; text-align: center; padding: 6px 16px; font-family: var(--head); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; margin: 0; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--green); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 24px; font-weight: 600; font-size: 17px; line-height: 1.3;
  color: #fff; background: var(--green); border: 2px solid var(--green); border-radius: var(--r);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--line); }
.btn--ghost:hover { background: var(--green-tint); border-color: var(--green); color: var(--green-deep); }
.btn--small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- วงนับ 14 วัน ---------- */
.ring { position: relative; width: 100%; max-width: 230px; aspect-ratio: 1; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; }
.ring .seg { fill: none; stroke-width: 13; stroke: var(--ring-off, var(--line)); transition: stroke .25s; }
.ring .seg.on { stroke: var(--ring-on, var(--green)); }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--head); }
.ring__n { font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__of { font-size: 15px; opacity: .75; margin-top: 4px; }

/* ---------- หน้าแรก ---------- */
.hero { padding: 64px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 31em; margin-bottom: 28px; }
.start { display: flex; gap: 10px; max-width: 520px; }
.start input { flex: 1; min-width: 0; }
.start__hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.assure { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--head); font-weight: 500; font-size: 16px; }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure svg { width: 18px; height: 18px; flex: none; stroke: var(--green); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) { .start { flex-direction: column; } }

/* แผงสถานะ (จุดเด่นของหน้า) */
.console {
  --ring-off: var(--night-line); --ring-on: var(--signal);
  background: var(--night); color: #eaf5f0; border-radius: 22px; padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -36px rgba(6, 32, 25, .7);
}
.console__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.console__app { font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.3; }
.console__pkg { font-family: var(--mono); font-size: 13px; color: #9dbdb0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.console .pill { background: var(--night-line); color: #cfe6dc; }
.console .pill.is-pass { background: var(--signal); color: #04281b; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.console__testers { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--night-line); }
.console__row { display: flex; justify-content: space-between; font-family: var(--head); font-size: 14px; color: #b9d3c8; margin-bottom: 10px; }
.console__row strong { color: #fff; }
.nodes { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; }
.node { aspect-ratio: 1; border-radius: 50%; background: var(--night-line); transition: background-color .2s; }
.node.on { background: var(--signal); }
.node.on.extra { background: #1f8f5c; }

/* ส่วนเนื้อหา */
.section { padding: 80px 0; }
.section--mist { background: var(--mist); }
.section__head { margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 36em; }

.reqs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.reqs li { border-top: 3px solid var(--green); padding-top: 18px; }
.reqs__key { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--green-deep); display: block; margin-bottom: 8px; }
.reqs h3 { font-size: 17px; margin-bottom: 4px; }
.reqs p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.note { margin: 32px 0 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; max-width: 46em; }
@media (max-width: 900px) { .reqs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .reqs { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; border-top: 2px solid var(--line); }
.step { position: relative; padding-right: 22px; }
.step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--head); font-weight: 700; }
.step__when { display: block; margin: 16px 0 2px; font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--green-deep); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; border-top: 0; border-left: 2px solid var(--line); }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-right: 0; }
  .step__n { grid-row: span 3; }
  .step__when { margin-top: 0; }
}

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); display: flex; flex-direction: column; }
.plan--pro { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.plan__name { font-size: 20px; margin: 0; }
.plan__testers { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.plan__price { font-family: var(--head); font-size: 50px; font-weight: 700; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 5px 0; align-items: baseline; }
.plan li svg { width: 16px; height: 16px; flex: none; stroke: var(--green); fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(2px); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px 22px; } }

.guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.guarantee ol { margin: 0; padding-left: 22px; }
.guarantee li { margin: 6px 0; }
@media (max-width: 820px) { .guarantee { grid-template-columns: 1fr; gap: 20px; } }

.faq { border-top: 1px solid var(--line); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 11px; font-size: 26px; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-right: 44px; }

.cta-band { background: var(--night); color: #fff; border-radius: 22px; padding: 44px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #b9d3c8; }
.cta-band .btn { background: var(--signal); border-color: var(--signal); color: #04281b; }
.cta-band .btn:hover { background: #63e69e; border-color: #63e69e; color: #04281b; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 15px; background: var(--paper); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer p { margin: 0 0 6px; max-width: 36em; }
.footer-links { display: flex; flex-direction: column; gap: 6px; font-family: var(--head); }

/* ---------- หน้าในขั้นตอนสั่งซื้อ ---------- */
.page { padding: 40px 0 96px; }
.page__head { margin-bottom: 28px; }
.page__head h1 { font-size: clamp(28px, 4vw, 40px); }
.page__head p { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0; }

.flow { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--muted); }
.flow li { padding-top: 10px; border-top: 4px solid var(--line); }
.flow li.is-done { border-color: var(--green); color: var(--green-deep); }
.flow li.is-now { border-color: var(--ink); color: var(--ink); }
.flow span { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
@media (max-width: 520px) { .flow { font-size: 12px; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.card h2 { font-size: 22px; margin-bottom: 18px; }
.stack { display: grid; gap: 24px; align-content: start; }
@media (max-width: 640px) { .card { padding: 22px 18px; } }

.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { font-size: 22px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.group__hint { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.field { margin-bottom: 22px; }
.field > label, .field__label { display: block; font-family: var(--head); font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red); }
.hint { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 5px; }
input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid #c3cfca; border-radius: 10px; padding: 12px 14px; line-height: 1.5; min-height: 50px;
}
textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #93a19c; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 122, 85, .18); }
input.mono { font-family: var(--mono); font-size: 15px; }
.is-invalid { border-color: var(--red) !important; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 16px; border: 1.5px solid #c3cfca; border-radius: 10px; background: var(--paper); font-family: var(--head); font-size: 15px; line-height: 1.5; }
.choice input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; font-family: var(--body); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--green); flex: none; }
.checklist__title { grid-column: 1 / -1; font-family: var(--head); font-weight: 600; margin: 14px 0 2px; }
.checklist__title:first-child { margin-top: 0; }

.wizard-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 12px; }
.wizard-foot__info { color: var(--muted); font-size: 15px; margin: 0; font-family: var(--head); }
.error-text { color: var(--red); font-size: 15px; margin: 12px 0 0; font-family: var(--head); }

/* ---------- ผลตรวจ ---------- */
.verdict { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border-radius: 18px; margin-bottom: 24px; background: var(--red-tint); }
.verdict--almost { background: var(--amber-tint); }
.verdict--ready { background: var(--green-tint); }
.verdict h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 4px 0 0; }
.verdict p { margin: 0; }
.tally { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; font-family: var(--head); }
.tally li { background: var(--paper); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 78px; font-size: 13px; color: var(--muted); }
.tally b { display: block; font-size: 26px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.tally .t-fail b { color: var(--red); } .tally .t-warn b { color: var(--amber); } .tally .t-pass b { color: var(--green); }
@media (max-width: 640px) { .verdict { grid-template-columns: 1fr; padding: 22px 18px; } }

.summary-note { margin-bottom: 32px; }
.summary-note p { margin: 0; }
.summary-note .mode { font-size: 13px; color: var(--muted); margin-top: 10px; }
.results { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.result { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.result__mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 15px; color: #fff; margin-top: 1px; }
.result--fail .result__mark { background: var(--red); }
.result--warn .result__mark { background: var(--amber); }
.result--pass .result__mark { background: var(--green); }
.result h3 { font-size: 18px; margin-bottom: 2px; }
.result p { margin: 0 0 6px; color: var(--muted); }
.result ul { margin: 4px 0 0; padding-left: 20px; }
.result li { margin: 2px 0; }
.results--passed .result { padding: 10px 0; }
.results--passed h3 { font-weight: 500; font-size: 16px; }
.ack { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 20px; border-radius: 10px; background: var(--amber-tint); cursor: pointer; font-family: var(--body); }
.ack input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--amber); flex: none; }

/* ---------- ชำระเงิน ---------- */
.checkout { display: grid; grid-template-columns: 1.5fr .75fr; gap: 32px; align-items: start; }
.checkout > * { min-width: 0; }
.checkout aside { position: sticky; top: 92px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout aside { position: static; } }
.pkg { display: block; position: relative; cursor: pointer; margin-bottom: 12px; }
.pkg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pkg__box { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; }
.pkg input:checked + .pkg__box { border-color: var(--green); background: var(--green-tint); }
.pkg input:focus-visible + .pkg__box { outline: 3px solid var(--green); outline-offset: 2px; }
.pkg__name { font-family: var(--head); font-weight: 700; font-size: 18px; }
.pkg__price { font-family: var(--head); font-weight: 700; font-size: 19px; text-align: right; }
.pkg__desc { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.sum { list-style: none; padding: 0; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.sum li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sum .total { font-family: var(--head); font-weight: 700; font-size: 21px; border-bottom: 0; padding-top: 14px; }

.pay { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (max-width: 720px) { .pay { grid-template-columns: 1fr; } }
.qr-card { position: relative; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; text-align: center; background: var(--paper); max-width: 300px; margin: 0 auto; }
.qr-card__brand { background: #113566; color: #fff; font-family: var(--head); font-weight: 700; font-size: 15px; padding: 6px 0; border-radius: 8px; margin-bottom: 10px; }
.qr-card canvas { margin: 0 auto; width: 100%; max-width: 240px; height: auto; image-rendering: pixelated; }
.qr-card__amount { font-family: var(--head); font-size: 28px; font-weight: 700; margin: 8px 0 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
.qr-card__name { color: var(--muted); font-size: 14px; margin: 0; }
.qr-demo { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-10deg); font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--red); background: rgba(255, 255, 255, .94); border: 2px solid var(--red); border-radius: 8px; padding: 4px 12px; white-space: nowrap; }
.timer { font-family: var(--head); font-size: 15px; color: var(--muted); margin: 12px 0; text-align: center; }
.howto { margin: 0 0 20px; padding-left: 22px; }
.howto li { margin: 4px 0; }
.drop { display: block; border: 2px dashed #b4c3bd; border-radius: 14px; padding: 24px 18px; text-align: center; background: var(--mist); cursor: pointer; font-family: var(--head); }
.drop:hover, .drop.is-over { border-color: var(--green); background: var(--green-tint); }
.drop input { display: none; }
.drop strong { color: var(--green-deep); }
.slip-preview { max-height: 220px; margin: 14px auto 0; border-radius: 8px; border: 1px solid var(--line); }
.notice { padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.notice p { margin: 0; }
.notice--info { background: var(--mist); }
.notice--warn { background: var(--amber-tint); color: #5b3600; }
.notice--error { background: var(--red-tint); color: #8a1d17; }
.notice--ok { background: var(--green-tint); color: var(--green-deep); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ติดตามสถานะ ---------- */
.track { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .track { grid-template-columns: 1fr; } }
.track__dial { text-align: center; }
.track__dial .pill { background: var(--green-tint); color: var(--green-deep); margin-top: 16px; }
.track__dial .pill.is-wait { background: var(--amber-tint); color: var(--amber); }
.track__dial .pill.is-bad { background: var(--red-tint); color: var(--red); }
.meta { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; font-size: 15px; }
.meta li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.meta span:first-child { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; padding: 0 0 26px 44px; }
.tl::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 2px solid var(--line); }
.tl:last-child { padding-bottom: 0; } .tl:last-child::before { display: none; }
.tl__dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.tl__dot svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.tl.is-done .tl__dot { background: var(--green); border-color: var(--green); } .tl.is-done .tl__dot svg { display: block; }
.tl.is-done::before { border-color: var(--green); }
.tl.is-now .tl__dot { border-color: var(--ink); box-shadow: inset 0 0 0 5px var(--paper); background: var(--ink); }
.tl h3 { font-size: 18px; margin: 0 0 2px; padding-top: 1px; }
.tl.is-next h3 { color: var(--muted); font-weight: 500; }
.tl p { margin: 0; color: var(--muted); font-size: 15px; }
.todo { margin-top: 12px; padding: 16px 18px; border-radius: 12px; background: var(--mist); color: var(--ink); }
.todo h4 { font-family: var(--head); margin: 0 0 6px; font-size: 15px; }
.todo ol { margin: 0; padding-left: 20px; font-size: 15px; }
.copybox { display: flex; gap: 8px; margin: 8px 0 12px; }
.copybox input { font-family: var(--mono); font-size: 14px; }

/* ---------- แอดมิน ---------- */
.admin-order { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.admin-order__head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-family: var(--head); }
.admin-order__head b { font-size: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; align-items: end; }
.admin-grid label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
.admin-grid input, .admin-grid select { min-height: 42px; padding: 8px 10px; font-size: 14px; }
.admin-grid .wide { grid-column: span 2; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- เงื่อนไข ---------- */
.legal h2 { margin-top: 48px; padding-top: 8px; }
.legal h3 { margin-top: 28px; }
.legal li { margin: 6px 0; }
.legal .toc { padding: 18px 22px; background: var(--mist); border-radius: var(--r); font-family: var(--head); }
.legal .toc ul { margin: 0; padding-left: 20px; }

/* =========================================================
   LIQUID GLASS
   แผ่นกระจกฝ้า: พื้นขาวโปร่งแสง + เบลอฉากหลัง + ขอบสว่าง + เงานุ่ม
   ฉากหลัง: แสงสีเขียว ฟ้า และม่วงอ่อน อยู่กับที่ขณะเลื่อนหน้า
   ========================================================= */
:root {
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -1px 0 rgba(255, 255, 255, .25) inset, 0 18px 40px -22px rgba(13, 60, 80, .35);
  --blur: blur(22px) saturate(170%);
  --r: 16px;
}
body { background: #e9f2f3; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 8% 4%, rgba(61, 220, 132, .42), transparent 62%),
    radial-gradient(46vmax 46vmax at 92% 14%, rgba(70, 160, 255, .38), transparent 62%),
    radial-gradient(52vmax 52vmax at 78% 92%, rgba(24, 190, 170, .34), transparent 62%),
    radial-gradient(40vmax 40vmax at 6% 88%, rgba(150, 130, 255, .26), transparent 62%),
    linear-gradient(180deg, #eef6f5, #e6eef4);
}

/* แผ่นกระจกที่ใช้ร่วมกัน */
.card, .plan, .note, .reqs li, .tally li, .admin-order, .legal .toc, .faq, .site-header__inner, .btn--ghost, .pkg__box, .todo, .drop, .choice span {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.card, .plan { border-radius: 26px; background-image: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .28)); }

/* ส่วนหัวลอยเป็นแคปซูลแก้ว */
.site-header { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; top: 10px; padding-top: 10px; }
.site-header .wrap { padding: 0 16px; }
.site-header__inner { height: 62px; border-radius: 999px; padding: 0 10px 0 20px; background: var(--glass-strong); }
.demo-bar { background: rgba(253, 241, 220, .85); }

/* ปุ่มทรงแคปซูล มีแสงสะท้อนด้านบน */
.btn {
  border-radius: 999px; border-color: transparent;
  background: linear-gradient(180deg, #1aa877 0%, #0a7a55 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -8px 14px -8px rgba(0, 0, 0, .25) inset, 0 12px 24px -12px rgba(10, 122, 85, .75);
}
.btn:hover { background: linear-gradient(180deg, #15966a 0%, #075e42 100%); border-color: transparent; }
.btn--ghost { color: var(--green-deep); border: 1px solid var(--glass-edge); background: var(--glass); box-shadow: var(--glass-shadow); }
.btn--ghost:hover { background: var(--glass-strong); border-color: var(--glass-edge); }

/* ช่องกรอก */
input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(13, 60, 80, .12) inset, 0 1px 0 rgba(255, 255, 255, .8);
}
input:focus, select:focus, textarea:focus { background: #fff; }
.choice span { border-radius: 999px; }
.choice input:checked + span { background: var(--green); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 16px -10px rgba(10, 122, 85, .8); }
.pkg__box { border-radius: 18px; border-width: 1px; }
.pkg input:checked + .pkg__box { background: rgba(228, 243, 236, .85); border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset, var(--glass-shadow); }
.drop { border: 1.5px dashed rgba(10, 122, 85, .45); border-radius: 18px; }
.todo { border-radius: 16px; }

/* แผงสถานะหน้าแรก: กระจกสีเข้ม */
.console, .cta-band {
  background: linear-gradient(145deg, rgba(10, 52, 41, .86), rgba(4, 26, 21, .9));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 34px 60px -30px rgba(4, 40, 30, .75);
  position: relative; overflow: hidden;
}
.console::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 34%), radial-gradient(60% 50% at 85% 0%, rgba(61, 220, 132, .22), transparent 70%);
}
.console > *, .cta-band > * { position: relative; }
.console { --ring-off: rgba(255, 255, 255, .12); --night-line: rgba(255, 255, 255, .13); }
.console .ring .seg.on { filter: drop-shadow(0 0 5px rgba(61, 220, 132, .55)); }
.node.on { box-shadow: 0 0 8px rgba(61, 220, 132, .6), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.cta-band .btn { background: linear-gradient(180deg, #7af0b0, #3ddc84); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 24px -12px rgba(61, 220, 132, .8); }

/* ส่วนเนื้อหา */
.section--mist { background: transparent; }
.reqs li { border-top: 1px solid var(--glass-edge); border-radius: 22px; padding: 22px; }
.note { border-radius: 18px; }
.faq { border-radius: 24px; padding: 6px 26px; }
.faq details:last-child { border-bottom: 0; }
.faq details { border-color: rgba(13, 60, 80, .1); }
.step__n { background: linear-gradient(180deg, #1aa877, #0a7a55); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 16px -8px rgba(10, 122, 85, .8); }
.steps::before { border-color: rgba(255, 255, 255, .9); }
.plan--pro { border-color: var(--green); box-shadow: 0 0 0 1.5px var(--green) inset, var(--glass-shadow); }
.flow li { border-top-color: rgba(255, 255, 255, .9); }
.flow li.is-done { border-top-color: var(--green); }
.flow li.is-now { border-top-color: var(--ink); }
.site-footer { background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: 1px solid var(--glass-edge); }
.sum li, .meta li, .wizard-foot { border-color: rgba(13, 60, 80, .12); }
.tl::before { border-color: rgba(13, 60, 80, .15); }
.tl__dot { border-color: rgba(13, 60, 80, .2); }
.ring { --ring-off: rgba(13, 60, 80, .12); }
.qr-card { background: #fff; border-radius: 20px; box-shadow: 0 18px 40px -22px rgba(13, 60, 80, .4); }
.notice--info { background: rgba(255, 255, 255, .6); }

/* เบราว์เซอร์ที่เบลอฉากหลังไม่ได้ หรือผู้ใช้ขอลดความโปร่งใส: ใช้พื้นทึบขึ้นเพื่อให้อ่านง่าย */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, .9); --glass-strong: rgba(255, 255, 255, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #fff; --glass-strong: #fff; }
}

/* ---------- ตัวช่วย "หาจากไหน" และฟอร์มตั้งค่าหลังชำระเงิน ---------- */
.help { margin: 8px 0 0; }
.help summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-family: var(--head); font-size: 14px; font-weight: 600; color: var(--green-deep); padding: 5px 12px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.help summary::-webkit-details-marker { display: none; }
.help summary::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; }
.help__body { margin-top: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-edge); font-size: 15px; }
.help__body ol { margin: 0; padding-left: 20px; }
.help__body li { margin: 4px 0; }
.help__video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: #0d1f1a; }
.help__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.setup { margin-top: 14px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid var(--glass-edge); }
.setup h4 { font-family: var(--head); font-size: 16px; margin: 0 0 4px; }
.setup__part { padding: 16px 0; border-top: 1px solid rgba(13, 60, 80, .1); }
.setup__part:first-of-type { border-top: 0; padding-top: 4px; }
.setup .field { margin-bottom: 0; }
.icon-pick { display: flex; align-items: center; gap: 14px; }
.icon-pick img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--glass-edge); background: #fff; }
.optional { font-family: var(--head); font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(13, 60, 80, .08); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.mylist { list-style: none; margin: 0; padding: 0; }
.mylist a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(13, 60, 80, .1); text-decoration: none; color: var(--ink); font-family: var(--head); }
.mylist li:first-child a { border-top: 0; }
.admin-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-edge); }
.track > *, .setup, .tl { min-width: 0; }
.copybox input { min-width: 0; flex: 1; }
.copybox .btn { flex: none; white-space: nowrap; }
.help__body .mono, .admin-order .mono { overflow-wrap: anywhere; }

/* ---------- บัญชีผู้ใช้: ปุ่มเข้าสู่ระบบ ชิปบัญชี และหน้าต่างสมัคร ---------- */
#tk-acct { display: inline-flex; }
.nav { gap: 22px; }
.nav__login, .linklike { font: inherit; font-family: var(--head); font-weight: 600; color: var(--green-deep); background: none; border: 0; cursor: pointer; padding: 6px 8px; }
.nav__login { font-size: 15px; }
.linklike { text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.acct { position: relative; }
.acct summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--glass-edge); font-family: var(--head); font-weight: 600; font-size: 15px; }
.acct summary::-webkit-details-marker { display: none; }
.acct__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #1aa877, #0a7a55); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset; }
.acct__name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); display: grid; gap: 4px; }
.acct__menu p { margin: 0 0 6px; overflow-wrap: anywhere; }
.acct__menu a, .acct__menu button { font: inherit; font-family: var(--head); font-weight: 500; text-align: left; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.acct__menu a:hover, .acct__menu button:hover { background: var(--green-tint); }
@media (max-width: 520px) {
  .acct__name { display: none; }
  .acct summary { padding: 4px; }
  .nav { gap: 8px; }
  .site-header__inner { padding-left: 14px; }
  .logo { font-size: 19px; gap: 7px; }
  .site-header .btn--small { padding: 6px 12px; font-size: 14px; }
  .nav__login { font-size: 14px; padding: 6px 4px; }
}
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(6, 32, 25, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.modal__box { position: relative; width: 100%; max-width: 440px; background-color: rgba(255, 255, 255, .88); }
.modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(13, 60, 80, .08); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal .field { margin-bottom: 16px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid rgba(13, 60, 80, .15); }
.mylist .pill { background: var(--green-tint); color: var(--green-deep); }
.nav .acct__menu a { display: block; }
