/* หน้าสมัครเปิดร้าน / เข้าสู่ระบบ / ลืมรหัสผ่าน / ข้อกำหนดและนโยบาย แนว ด1 "สตูดิโอ 3D นุ่ม" (ค่าทุกตัวจาก DESIGN.md ห้ามคิดค่าใหม่เอง)
   โครงใหม่ .au (ฟอร์มซ้าย + แผงขวาบนคอม) = index.php login.php forgot.php / โครงเดิม .auth-wrap .auth-card = accept-terms.php และหน้าล็อกอินผู้ดูแล
   เงาทุกชิ้นตกขวาล่าง (แสงซ้ายบน) / ตัวหนังสือขาวบนส้มใช้ --primary-grad เท่านั้น / ตัวหนังสือส้มใช้ --accent-text */
:root {
    --brand: #1F3A5F;
    --brand-deep: #0E1B33;
    --accent: #F28A2E;          /* แถบความคืบหน้า วงโฟกัส ของ 3D (ไม่มีตัวหนังสือทับ) */
    --primary-grad: linear-gradient(180deg, #D2581F, #B3421A);
    --accent-text: #B4500F;     /* ลิงก์ ตัวหนังสือส้ม (5.1:1) */
    --accent-soft: #FFF1E6;
    --accent-softer: #FFFBF7;
    --cream: #FFF4E6;
    --ink: #17202C;
    --muted: #667085;
    --placeholder: #8A94A6;
    --page: #F6F7FA;
    --bg: #FFFFFF;              /* surface (ชื่อเดิม) */
    --fill: #F4F6F9;            /* พื้นช่องกรอก */
    --line: #E3E8EF;
    --success: #1F7A47;
    --success-bg: #E6F5EC;
    --danger: #B42318;
    --danger-bg: #FFF6F5;
    --danger-line: #D92D20;
    --notice-ink: #7A3A0E;
    --notice-bg: #FFF7ED;
    --notice-line: #FBD5B0;
    --ring: rgba(242, 138, 46, 0.18);
    --sh-1: 0 1px 2px rgba(16, 24, 40, .06), 2px 4px 12px -4px rgba(16, 24, 40, .12);
    --sh-2: 0 1px 2px rgba(16, 24, 40, .06), 6px 14px 28px -12px rgba(16, 24, 40, .25);
    --sh-3: 0 1px 2px rgba(16, 24, 40, .06), 10px 20px 36px -14px rgba(16, 24, 40, .32);
    --sh-btn: inset 0 1px 0 rgba(255, 255, 255, .35), 2px 8px 16px -6px rgba(179, 66, 26, .6);
    /* ชื่อเดิมที่หน้าข้อกำหนด / start.php / หน้าผู้ดูแลใช้อยู่ (ชี้ไปค่า ด1) */
    --primary: #B3421A;
    --primary-hover: #9C3815;
    --sec-bg: #EEF2F8;
    --sec-bg-hover: #E3E9F3;
    --sec-ink: #1F3A5F;
    --card-line: #EEF0F4;
    --body: #344054;
    --navy: #1F3A5F;
    --shadow: var(--sh-2);
    --font: 'Anuphan', 'Noto Sans Thai', 'Leelawadee UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { display: block; flex: none; }
[hidden] { display: none !important; }
.kw { white-space: nowrap; } /* คำไทยในการ์ดไม่ถูกตัดกลางคำ (htmlKeepWords ใน db.php) */
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== โครงเดิม (accept-terms.php, หน้าล็อกอินผู้ดูแล): การ์ดกลางจอ ===== */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px 24px; }
/* โลโก้แบบบรรทัดเดียว (BRAND.md › Logo): ห่วง images/logo-ring.png สูง 28 + พิมพ์ "PuenWeb" Anuphan 700 กรมท่า 24px (ไม่ใช้รูปตัวหนังสือ) */
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; font-size: 24px; font-weight: 700; color: var(--brand); text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand-text { line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.auth-card { width: 100%; max-width: 400px; }
@media (min-width: 560px) {
    .auth-wrap { background: var(--page); }
    .auth-card { max-width: 440px; padding: 36px 32px; background: var(--bg); border: 1px solid var(--card-line); border-radius: 18px; box-shadow: var(--sh-2); }
}
.auth-card h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--brand); }
.auth-card .sub { margin: 6px 0 24px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.auth-card .btn-primary { margin-top: 8px; }
.auth-card .btn-sec { margin-top: 10px; }

/* ===== โครงใหม่ ด1: มือถือเรียงลง / คอม (≥ 960px) ฟอร์ม 540px | แผงภาพ ===== */
.au { min-height: 100vh; min-height: 100dvh; }
.au-left { padding: 4px 20px 20px; }
.au-col { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.au-right { display: none; }
@media (min-width: 960px) {
    .au { display: grid; grid-template-columns: 540px minmax(0, 1fr); height: 100vh; height: 100dvh; }
    .au-left { overflow-y: auto; padding: 22px 56px 18px; scrollbar-width: thin; }
    /* ฟอร์มกลางแนวตั้ง: โลโก้ชิดบน ลิงก์ท้ายหน้าชิดล่าง / ฟอร์มยาวเกินจอ = เลื่อนในคอลัมน์ */
    .au-col { max-width: 428px; min-height: 100%; gap: 16px; }
    .au-main { flex: 1; justify-content: center; padding-block: 10px; }
    .au-right { display: block; min-width: 0; height: 100%; padding: 16px 16px 16px 0; }
}
@media (min-width: 960px) and (max-width: 1199px) {
    .au { grid-template-columns: 470px minmax(0, 1fr); }
    .au-left { padding: 22px 34px 18px; }
}
.au-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.au-main > form:not(.resend):not(#registerForm) { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.au-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; font-size: 13.5px; color: var(--muted); }
/* โลโก้แบบเต็ม (BRAND.md › Logo ก1): ห่วงสูง 48 + "PuenWeb" 30/700 + "เพื่อนเว็บ" 13/600 กรมท่าอ่อน
   มือถือ (< 960) แถบสูง 42 = แบบบรรทัดเดียว ห่วง 28 (ถ้าย่อแบบเต็มลง "เพื่อนเว็บ" จะเหลือ ~8px อ่านไม่ออก) */
.au-logo { flex: none; display: flex; align-items: center; gap: 15px; color: var(--brand); text-decoration: none; }
.au-logo img { display: block; height: 48px; width: auto; }
.au-lt { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.au-lt b { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.au-lt small { font-size: 13px; font-weight: 600; line-height: 1.15; letter-spacing: 0.04em; color: #4D5F7A; white-space: nowrap; }
.au-top-r { text-align: right; }
.au-top-r a, .au-a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.au-top-r a:hover, .au-a:hover { text-decoration: underline; }
.au-h, .wiz-title { display: block; margin: 0; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; color: var(--brand); text-wrap: balance; }
.au-sub, .wiz-sub { margin: -10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
@media (min-width: 960px) { .au-h, .wiz-title { font-size: 30px; line-height: 1.22; } .au-sub, .wiz-sub { font-size: 15px; } }
/* มือถือ: แถบบนเตี้ยลง ให้หัวข้อขึ้นมาอยู่ราว 270-310px จากบนจอ (ใต้กล่องฉาก) */
@media (max-width: 959px) {
    .au-top { min-height: 42px; }
    .au-logo { gap: 9px; } .au-logo img { height: 28px; } .au-lt b { font-size: 24px; } .au-lt small { display: none; }
    .au-left { padding-top: 2px; } .au-col { gap: 12px; } .au-main { gap: 14px; }
    .au .wiz-progress { gap: 5px; } .au .wiz-label { line-height: 1.3; }
}
.center { text-align: center; }
.ink { color: var(--ink); font-weight: 600; }
.au-alt { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.au-alt a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.muted-link { color: var(--muted) !important; font-weight: 400 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.au-trust { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.au-trust li { display: inline-flex; align-items: center; gap: 5px; }
.au-trust .ic { color: var(--success); }
/* ที่ว่างปุ่ม Google (authGoogleSlot ซ่อนไว้) */
.g-slot { min-height: 48px; }
.au-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--placeholder); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== ช่องกรอก (มือถือ 16px กัน iPhone ซูมจอตอนแตะช่อง / คอม 15.5px ตาม DESIGN.md) ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.au .form-group { margin-bottom: 0; }
.form-group > label, .label-row label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-group > label small, .heard-field legend small { font-weight: 400; color: var(--muted); }
.form-group input:not([type=checkbox]):not([type=radio]), .slug-field { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--fill); font-size: 16px; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
@media (min-width: 960px) { .form-group input:not([type=checkbox]):not([type=radio]), .slug-field { font-size: 15.5px; } }
.form-group input::placeholder { color: var(--placeholder); }
.form-group input:not([type=checkbox]):not([type=radio]):focus, .slug-field:focus-within { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.form-group input.is-bad, .slug-field.is-bad { border-color: var(--danger-line); background: var(--danger-bg); box-shadow: 0 0 0 4px rgba(217, 45, 32, .10); }
.slug-field.is-ok { border-color: #7CC79A; }
.hint { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* ลิงก์ร้าน: ข้อความหน้าลิงก์ ($shopHostLabel/) อยู่ในกล่องเดียวกับช่องพิมพ์ */
.slug-field { display: flex; align-items: center; overflow: hidden; }
.slug-pre { color: var(--muted); white-space: nowrap; }
.form-group .slug-field input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 1px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.form-group .slug-field input:focus { box-shadow: none; background: transparent; }
.slug-status { display: flex; flex-direction: column; gap: 6px; min-height: 20px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.slug-status .st { display: flex; align-items: flex-start; gap: 6px; }
.slug-status .st .ic { margin-top: 2px; }
.slug-status.is-ok .st { color: var(--success); font-weight: 500; }
.slug-status.is-bad .st { color: var(--danger); font-weight: 500; }
.slug-sugs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.slug-sugs small { font-size: 12.5px; color: var(--muted); }
.slug-sugs button { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 3px 12px 3px 9px; border: 1.5px solid #CFE7D9; border-radius: 999px; background: #fff; color: var(--success); font-size: 13px; font-weight: 600; cursor: pointer; }
.slug-sugs button:hover { border-color: #7CC79A; }
.au-err { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--danger); }
.au-err .ic { margin-top: 2px; }

/* ประเภทร้าน: ตาราง 2 คอลัมน์ ไอคอน 3D 38px (กรมท่า / เลือกแล้วส้ม) / JS ใส่คลาส on */
.type-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.type-field legend { margin-bottom: 18px; }
.type-field .wiz-sub { margin: -10px 0 18px; }
.type-field .type-error { margin-top: 10px; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-card { position: relative; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.type-card:hover { border-color: #CDD5E0; }
.type-card input { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
.type-card .g3d { grid-row: span 2; }
.type-card b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.type-card small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.type-card .tc-tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-grad); color: #fff; display: none; place-items: center; }
.type-card.on { border-color: var(--accent); background: var(--accent-softer); box-shadow: 0 0 0 3px rgba(242, 138, 46, .16), 4px 10px 22px -12px rgba(223, 106, 31, .45); }
.type-card.on .tc-tick { display: grid; }
.type-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 380px) { .type-card { grid-template-columns: 1fr; row-gap: 8px; } .type-card .g3d { grid-row: auto; } }
.type-error { display: flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--danger); }
/* รู้จักเราจากไหน: ชิปเลือกได้ 1 อัน ไม่บังคับ */
.heard-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.heard-field legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.heard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.heard-chip { position: relative; cursor: pointer; }
.heard-chip input { position: absolute; opacity: 0; pointer-events: none; }
.heard-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--fill); font-size: 13.5px; transition: border-color .15s, background .15s, color .15s; }
.heard-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.heard-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* รหัสผ่าน + ปุ่มตา 44px (ไอคอนสลับตาม aria-pressed) */
.password-field { position: relative; }
.form-group .password-field input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--placeholder); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .i-hide, .pw-toggle[aria-pressed="true"] .i-show { display: none; }
.pw-toggle[aria-pressed="true"] .i-hide { display: block; }
.pw-match { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; color: var(--success); pointer-events: none; }
/* มิเตอร์ความแข็งแรง (authkit.js) */
.pw-meter { margin-top: 4px; }
.pw-meter-row { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.pw-bars i { height: 5px; border-radius: 9px; background: #E6EAF0; transition: background .2s; }
.pw-level { min-width: 52px; font-size: 12.5px; font-weight: 600; text-align: right; }
.pw-checks { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pw-checks li { display: flex; align-items: flex-start; gap: 7px; }
.pw-checks .ck { flex: none; margin-top: 2px; display: flex; color: #B4BCC8; }
.pw-checks li.ok, .pw-checks li.ok .ck { color: var(--success); }
.pw-checks li.bad, .pw-checks li.bad .ck { color: var(--danger); }
/* เดาอีเมลพิมพ์ผิด "หมายถึง …@gmail.com ใช่ไหม?" (authkit.js) */
.email-suggest { display: flex; align-items: center; gap: 10px; margin-top: 2px; padding: 7px 7px 7px 12px; border: 1px solid var(--notice-line); border-radius: 12px; background: var(--notice-bg); color: var(--notice-ink); font-size: 13.5px; line-height: 1.45; }
.email-suggest span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.email-suggest b { font-weight: 600; }
.email-suggest button { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid #F2B98A; border-radius: 9px; background: #fff; color: var(--accent-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.email-suggest.is-bad { padding: 10px 12px; border-color: #F4C7C2; background: var(--danger-bg); color: var(--danger); }

/* ยอมรับข้อกำหนด */
.check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.auth-card .check { margin: 4px 0 22px; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid #C9D1DC; border-radius: 6px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ''; width: 10px; height: 5px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); opacity: 0; }
.check input:checked { background: var(--primary-grad); border-color: #B3421A; }
.check input:checked::before { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--brand); font-weight: 500; text-decoration-color: #C9CFD8; text-underline-offset: 3px; }

/* ===== ปุ่ม (หนึ่งจอมีปุ่มหลักปุ่มเดียว) ===== */
.btn-primary, .btn-sec, .btn-line { width: 100%; min-height: 50px; padding: 0 22px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s, transform .1s, background .15s; }
.btn-primary { background: #C14D1C; background: var(--primary-grad); color: #fff; box-shadow: var(--sh-btn); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-sec { background: var(--sec-bg); color: var(--brand); }
.btn-sec:hover { background: var(--sec-bg-hover); }
.btn-line { background: #06C755; background: linear-gradient(180deg, #22D46E, #06B14C); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 2px 8px 16px -6px rgba(6, 177, 76, .6); }
.btn-primary:active, .btn-sec:active, .btn-line:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .8; cursor: wait; transform: none; filter: none; }
.logo-line { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-note { display: block; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.link-btn { padding: 4px 2px; border: 0; background: none; color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ข้อความแจ้ง */
.alert { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.auth-card .alert { margin-bottom: 20px; }
.alert .ic { flex: none; margin-top: 2px; }
.alert-error { background: var(--danger-bg); border: 1px solid #F4C7C2; color: var(--danger); }
.alert-ok { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--accent-soft); color: var(--notice-ink); }

/* ลิงก์สลับหน้า + ท้ายหน้า */
.switch { margin: 24px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.switch a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.switch a:hover { text-decoration: underline; }
.switch-tight { margin-top: 0; }
.auth-foot { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; font-size: 13px; color: var(--muted); }
.auth-wrap .auth-foot { margin-top: 32px; }
.auth-foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ===== หน้าสมัคร 3 ขั้น: ไม่มี JS = เห็นทุกขั้นต่อกัน / มี JS (.wiz-on) = ทีละขั้น ===== */
.wiz-progress { display: flex; flex-direction: column; gap: 7px; }
.wiz-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wiz-bar i { height: 6px; border-radius: 99px; background: #E6EAF0; transition: background .25s; }
.wiz-bar i.on { background: linear-gradient(90deg, #F59A45, #DF6A1F); }
.wiz-label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
#registerForm { display: flex; flex-direction: column; gap: 28px; }
.wiz-step { display: flex; flex-direction: column; gap: 18px; }
.wiz-on { gap: 0; }
.wiz-on .wiz-step { display: none; }
.wiz-on .wiz-step.on { display: flex; animation: wizIn .25s ease both; }
@keyframes wizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; gap: 10px; }
.wiz-nav .btn-primary { flex: 1; width: auto; }
.wiz-nav .btn-sec { flex: 0 0 auto; width: auto; }
/* มือถือ: ปุ่มติดล่างจอ (พื้นขาว เส้นบน) */
@media (max-width: 959px) {
    .wiz-on .wiz-nav { position: sticky; bottom: 0; z-index: 5; margin: 0 -20px; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
}

/* จุดเด่น 3 ข้อใต้การ์ดประเภท (มือถือ ขั้น 1) / คอมใช้แถวคำบรรยายใต้แท่นในแผงขวาแทน */
.au-claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 12px; border-radius: 16px; background: var(--page); list-style: none; }
.au-claims li { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12.5px; line-height: 1.38; font-weight: 600; color: var(--brand); }
.au-claims .g3d, .rp-cap .g3d { width: 32px; height: 32px; border-radius: 11px; }
@media (min-width: 960px) { .au-claims { display: none; } }

/* ===== กล่องฉาก ก1 บนมือถือ (< 960px สร้างด้วย authui.js ต่อจาก #punHome แล้วย้ายปุ่นเข้ามา) ===== */
.mst { position: relative; height: 216px; margin: 0 -4px; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, #E7EDF6, #F1EEEA); }
.mst-disc { position: absolute; left: calc(50% - 76px); top: 10px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #FFF8EE 0, #FFE8CF 50%, #FAD1A6 100%); box-shadow: inset -12px -18px 40px rgba(231, 140, 60, .2); }
.mst-table { position: absolute; left: 8px; right: 8px; bottom: -40px; height: 84px; border-radius: 50%; background: radial-gradient(ellipse at 46% 30%, #FFFFFF 0, #F8F2EA 50%, #E7DACA 100%); box-shadow: inset 0 2px 0 #fff; }
.mst-phone { position: absolute; right: 20px; top: 26px; z-index: 3; width: 142px; height: 260px; overflow: hidden; border: 6px solid #10151C; border-radius: 26px; background: #FBFAF8; transform: rotate(5deg); box-shadow: 14px 20px 28px -14px rgba(15, 30, 60, .42); }
.mst-phone::before { content: ""; position: absolute; top: 5px; left: 50%; z-index: 6; width: 40px; height: 11px; margin-left: -20px; border-radius: 99px; background: #10151C; }
.mst-screen { width: 375px; height: 720px; transform: scale(.3467); transform-origin: 0 0; pointer-events: none; }
.mst .sf-cart, .mst .sf-live { display: none; }
.mst-icon { position: absolute; right: 34px; top: 46px; z-index: 3; }
.mst-pun { position: absolute; left: 10px; bottom: 4px; z-index: 4; width: 114px; }
.mst-pun .pun-bub { position: absolute; left: 0; bottom: calc(100% - 6px); z-index: 6; width: max-content; max-width: 196px; padding: 8px 12px; font-size: 14px; }
.mst-pun .pun-bub::after { left: 44px; bottom: -6px; }
.mst .ov-arrow { left: auto; right: -14%; top: auto; bottom: -2%; transform: rotate(-90deg); animation: none; }
.mst-see { position: absolute; right: 12px; bottom: 12px; z-index: 7; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: #fff; color: var(--brand); font-size: 13px; font-weight: 600; box-shadow: var(--sh-1); cursor: pointer; }
@media (min-width: 960px) { .mst { display: none; } }

/* ===== หน้าสำเร็จ + การ์ดแอดเพื่อน LINE (ต้องอยู่หลังสร้างร้านเสมอ) ===== */
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.done-hero .au-sub { margin: 0; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 5px 5px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--sh-1); font-size: 14.5px; }
.shop-chip a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); text-decoration: none; }
.shop-chip a b { color: var(--brand); font-weight: 600; }
.shop-chip button { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--sec-bg); color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-chip button.is-done { background: var(--success-bg); color: var(--success); }
.verify-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 13.5px; line-height: 1.55; color: var(--body); }
.verify-note .ic { margin-top: 2px; color: var(--brand); }
.verify-note b { font-weight: 600; overflow-wrap: anywhere; }
.oa-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--card-line); border-radius: 18px; background: #fff; box-shadow: var(--sh-2); }
.oa-head { display: flex; align-items: center; gap: 12px; }
.oa-logo { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .55) 0 6%, transparent 34%), linear-gradient(145deg, #2BDB78, #05A847); box-shadow: inset 2px 3px 6px rgba(255, 255, 255, .4), inset -3px -4px 8px rgba(0, 80, 30, .3), 4px 8px 14px -6px rgba(6, 177, 76, .6); }
.oa-logo .logo-line { width: 26px; height: 26px; }
.oa-head b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.oa-head small { display: block; font-size: 12.5px; color: var(--muted); }
.oa-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 14px; }
.oa-perks li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.oa-perks .ic { margin-top: 2px; color: #06B14C; }
.oa-done { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--success); }

/* ===== ลืมรหัสผ่าน / ขอคืนอีเมล / รหัส 6 หลัก ===== */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { display: inline-flex; align-items: center; min-height: 32px; margin: -6px 0; font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.auth-card .steps { margin-bottom: 20px; }
.steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.steps .dot { width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--muted); }
.steps .done .dot { background: var(--success-bg); color: var(--success); }
.steps .now { color: var(--ink); font-weight: 600; }
.steps .now .dot { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.info-box { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.auth-card .info-box { margin-top: 24px; }
.info-box a { color: var(--accent-text); }
.info-box .ic { margin-top: 2px; }
.info-box-tight { display: flex; gap: 10px; }
.page-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; color: var(--brand); background: radial-gradient(circle at 30% 22%, #fff 0 9%, transparent 36%), linear-gradient(145deg, #FFFFFF, #E4E8EF); box-shadow: inset -3px -5px 8px rgba(16, 24, 40, .12), inset 2px 3px 6px #fff, 4px 10px 18px -8px rgba(16, 24, 40, .35); }
.auth-card .page-icon { margin-bottom: 14px; }
.code-field { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-boxes span { height: 58px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--fill); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--brand); transition: border-color .15s, box-shadow .15s, background .15s; }
.code-boxes span.active { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--ring); }
.code-field.is-error .code-boxes span { border-color: var(--danger-line); background: var(--danger-bg); }
.code-field input.code-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; opacity: .01; cursor: text; }
.code-submit { margin-top: 2px; }
.auth-card .code-submit { margin-top: 20px; }
@media (max-width: 360px) { .code-boxes { gap: 6px; } .code-boxes span { height: 52px; font-size: 22px; } }
.resend { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-card .resend { margin-top: 18px; }
.resend [data-countdown] { color: var(--placeholder); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt-form { margin: 0; }
.opt { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s; }
.opt:hover { border-color: #CDD5E0; }
.opt.main { border-color: var(--accent); background: var(--accent-softer); }
.opt-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--fill); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.opt.main .opt-icon { background: var(--accent-soft); color: var(--accent-text); }
.opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.opt-text b { font-size: 15px; font-weight: 600; line-height: 1.45; }
.opt-text small { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.opt .chev { margin-top: 10px; display: flex; color: var(--placeholder); }
.opt.main .chev { color: var(--accent-text); }

/* ===== ของ 3D ทำด้วย CSS (จุดแสงซ้ายบน เงาขวาล่าง) ===== */
.g3d { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; font-style: normal; }
.g3d.sm { width: 38px; height: 38px; border-radius: 12px; }
.g3d.big { width: 76px; height: 76px; border-radius: 24px; }
.g3d.huge { width: 120px; height: 120px; border-radius: 36px; }
.g3d.o { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .85) 0 7%, transparent 32%), linear-gradient(145deg, #FFAA55, #E0661A); box-shadow: inset -3px -5px 8px rgba(120, 40, 0, .25), inset 2px 3px 6px rgba(255, 255, 255, .5), 4px 10px 18px -8px rgba(224, 102, 26, .6); }
.g3d.n { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .6) 0 7%, transparent 32%), linear-gradient(145deg, #3D6699, #18304F); box-shadow: inset -3px -5px 8px rgba(0, 0, 0, .3), inset 2px 3px 6px rgba(255, 255, 255, .3), 4px 10px 18px -8px rgba(24, 48, 79, .6); }
.g3d.m { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .85) 0 7%, transparent 32%), linear-gradient(145deg, #7FD8C6, #2E9C86); box-shadow: inset -3px -5px 8px rgba(0, 60, 50, .25), inset 2px 3px 6px rgba(255, 255, 255, .5), 4px 10px 18px -8px rgba(46, 156, 134, .6); }
.g3d.y { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .9) 0 7%, transparent 32%), linear-gradient(145deg, #FFD36A, #E09A12); box-shadow: inset -3px -5px 8px rgba(120, 80, 0, .25), inset 2px 3px 6px rgba(255, 255, 255, .5), 4px 10px 18px -8px rgba(224, 154, 18, .6); }
.g3d.w { color: var(--brand); background: radial-gradient(circle at 30% 22%, #fff 0 9%, transparent 36%), linear-gradient(145deg, #FFFFFF, #E4E8EF); box-shadow: inset -3px -5px 8px rgba(16, 24, 40, .12), inset 2px 3px 6px #fff, 4px 10px 18px -8px rgba(16, 24, 40, .35); }
.g3d.l { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .7) 0 7%, transparent 32%), linear-gradient(145deg, #2BDB78, #05A847); box-shadow: inset -3px -5px 8px rgba(0, 80, 30, .28), inset 2px 3px 6px rgba(255, 255, 255, .4), 4px 10px 18px -8px rgba(6, 177, 76, .6); }
.g3d.r { background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .8) 0 7%, transparent 32%), linear-gradient(145deg, #FF8A7A, #D63B2B); box-shadow: inset -3px -5px 8px rgba(120, 0, 0, .25), inset 2px 3px 6px rgba(255, 255, 255, .45), 4px 10px 18px -8px rgba(214, 59, 43, .6); }

/* ===== ปุ่น: ภาพท่า + บับเบิล (role=status) + ของซ้อน (ใช้แทนท่าที่ยังไม่มีภาพ) ===== */
.pun { position: relative; }
.pun-fig { position: relative; container-type: inline-size; animation: pun-idle 4.5s ease-in-out infinite; }
.pun-img { display: block; width: 100%; height: auto; filter: drop-shadow(8px 16px 14px rgba(15, 30, 60, .25)); transform-origin: 50% 92%; }
.pun-bub { position: relative; margin: 0; padding: 10px 14px; border-radius: 18px; background: #fff; color: var(--brand); font-size: 14.5px; font-weight: 500; line-height: 1.45; box-shadow: var(--sh-2); }
.pun-bub.pop { animation: pun-pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.pun-bub::after { content: ""; position: absolute; width: 14px; height: 14px; background: inherit; border-radius: 3px; transform: rotate(45deg); }
/* ไม่มี JS (ปุ่นยังอยู่เหนือฟอร์ม): ปุ่นกว้าง 84px บับเบิลขวา / มี JS = ย้ายเข้ากล่องฉาก (มือถือ) หรือแผงขวา (คอม) */
#punHome > .pun { display: flex; align-items: flex-end; gap: 10px; padding-top: 4px; }
#punHome > .pun .pun-fig { width: 84px; flex: none; order: -1; }
#punHome > .pun .pun-bub { flex: 1; margin-bottom: 18px; padding: 9px 12px; font-size: 14px; }
#punHome > .pun .pun-bub::after { left: -6px; bottom: 14px; }
#punHome:empty { display: none; }
/* ของซ้อน: cqw = เทียบความกว้างตัวปุ่น (เบราว์เซอร์เก่าใช้ px แทน) */
.pun-ov > * { position: absolute; pointer-events: none; }
.ov-chip { right: -6%; top: 6%; width: 30%; aspect-ratio: 1; border-radius: 28%; animation: pun-bob 3s ease-in-out infinite; }
.ov-chip svg { width: 55%; height: 55%; }
.ov-sign { left: 50%; bottom: 18%; max-width: 112%; padding: 2.5cqw 5cqw; border: 2px solid #E7D7BC; border-radius: 6px; background: #fff; color: var(--brand); font-size: 14px; font-size: 7.5cqw; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%) rotate(-3deg); box-shadow: 3px 6px 10px -4px rgba(0, 0, 0, .3); }
/* ภาพป้ายจริง (otter-sign.webp 480x560): เขียนลิงก์ลงบนป้ายขาวในภาพ ช่วงว่างระหว่างอุ้งมือ x 27-88% y 56-71% เอียง -4° */
.pun.is-real.p-sign .ov-sign { left: 57.5%; top: 63.5%; bottom: auto; max-width: 56%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 12px; font-size: 6.5cqw; line-height: 1.2; transform: translate(-50%, -50%) rotate(-4deg); }
.ov-q { right: 2%; top: -4%; font-size: 40px; font-size: 30cqw; line-height: 1; font-weight: 800; color: var(--accent); text-shadow: 3px 4px 0 rgba(31, 58, 95, .15); animation: pun-bob 2s ease-in-out infinite; }
.ov-arrow { left: -16%; top: 36%; width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #FDECEA; color: var(--danger); box-shadow: 3px 6px 12px -6px rgba(180, 35, 24, .5); animation: pun-nudge 1s ease-in-out infinite; }
.ov-arrow svg { width: 56%; height: 56%; }
#punHome > .pun .ov-arrow { left: auto; right: -14%; top: auto; bottom: -2%; transform: rotate(-90deg); animation: none; }
.ov-conf { inset: -30% -50% 30%; }
.ov-conf i { position: absolute; left: var(--x); top: var(--y); width: 6%; height: 2.6%; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: pun-fall 1.8s var(--d) ease-in infinite; }
/* ท่าที่ยังไม่มีภาพ: ขยับด้วย CSS (ภาพจริง .is-real ไม่ต้องกลับด้าน/เอียง) */
.pun:not(.is-real).p-cover .pun-img { transform: scaleX(-1); }
.pun:not(.is-real).p-confused .pun-img { animation: pun-tilt 2.6s ease-in-out infinite; }
.pun:not(.is-real).p-welcome .pun-img { animation: pun-sway 3s ease-in-out infinite; }
.p-thumbs .pun-fig, .p-proud .pun-fig { animation: pun-hop .7s cubic-bezier(.3, 1.6, .5, 1) 1, pun-idle 4.5s .7s ease-in-out infinite; }
.p-worried .pun-fig { animation: pun-shake .45s 2, pun-idle 4.5s .9s ease-in-out infinite; }
.p-party .pun-fig { animation: pun-jump .9s ease-in-out infinite; }
@keyframes pun-idle { 50% { transform: translateY(-5px); } }
@keyframes pun-bob { 50% { transform: translateY(-7px); } }
@keyframes pun-hop { 0% { transform: translateY(0); } 35% { transform: translateY(-16px) scale(1.03); } 100% { transform: translateY(0); } }
@keyframes pun-tilt { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(-3deg); } }
@keyframes pun-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pun-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-3deg); } }
@keyframes pun-sway { 50% { transform: rotate(3deg); } }
@keyframes pun-nudge { 50% { transform: translateX(-5px); } }
@keyframes pun-fall { 0% { transform: translateY(-10px) rotate(var(--r)); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(140px) rotate(calc(var(--r) + 220deg)); opacity: 0; } }
@keyframes pun-pop { from { transform: scale(.9); } to { transform: none; } } /* เริ่มจากสภาพที่มองเห็นแล้ว ไม่เริ่มจากโปร่งใส */

/* ===== แผงขวา ก1 สตูดิโอถ่ายสินค้า (คอมเท่านั้น สร้างด้วย authui.js) =====
   ฉากออกแบบที่ 724 x 768 (แผงของจอ 1280 x 800) ย่อ/ขยายทั้งกล่องด้วย --k (authui.js วัดขนาดแผง) วางชิดล่าง ไม่ซ่อนชิ้นไหน
   ตัวหนังสือในฉากมีขนาดเล็กสุดกันอ่านไม่ออกตอนแผงเล็ก: max(ขนาดตามแบบ, ขนาดเล็กสุด / k) */
.rp { --k: 1; position: relative; height: 100%; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 14% 8%, rgba(255, 255, 255, .9) 0, transparent 36%), linear-gradient(180deg, #E7EDF6 0%, #EDF1F7 60%, #F4EDE5 100%); }
.rp-scene { position: absolute; left: 50%; bottom: 0; width: 724px; height: 768px; transform: translateX(-50%) scale(var(--k)); transform-origin: 50% 100%; }
.st-disc { position: absolute; left: 104px; top: 40px; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #FFF8EE 0, #FFE8CF 50%, #FAD1A6 100%); box-shadow: inset -24px -34px 70px rgba(231, 140, 60, .2); }
.st-table { position: absolute; left: 40px; top: 604px; width: 644px; height: 108px; border-radius: 50%; background: radial-gradient(ellipse at 46% 30%, #FFFFFF 0, #F8F2EA 50%, #E7DACA 100%); box-shadow: inset 0 2px 0 #fff, inset 0 -8px 16px rgba(160, 120, 80, .12), 16px 26px 40px -22px rgba(15, 30, 60, .4); }
.rp-cap { position: absolute; z-index: 5; left: 28px; right: 28px; bottom: 18px; margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.rp-cap li { display: flex; align-items: center; gap: 9px; font-size: max(13px, calc(11.5px / var(--k))); line-height: 1.35; font-weight: 600; color: var(--brand); }
.rp-eye { position: absolute; left: 24px; top: 22px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: var(--brand); font-size: 12.5px; font-weight: 600; box-shadow: var(--sh-1); }
.rp-eye i { width: 7px; height: 7px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.rp-pill { position: absolute; left: 486px; top: 30px; z-index: 7; transform: translateX(-50%); }
/* มือถือยืนบนแท่น: ฐานจมลงบนแท่น 48px / ร้านวาดกว้าง 375 แล้วย่อ .7147 (= จอใน 268px) */
.rp-phone { position: absolute; left: 342px; top: 84px; z-index: 3; width: 286px; height: 568px; overflow: hidden; border: 9px solid #10151C; border-radius: 44px; background: #FBFAF8; transform: perspective(1400px) rotateY(-12deg) rotateZ(1.2deg); box-shadow: 30px 40px 56px -26px rgba(15, 30, 60, .42), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.rp-phone::before { content: ""; position: absolute; top: 8px; left: 50%; z-index: 6; width: 84px; height: 22px; margin-left: -42px; border-radius: 99px; background: #10151C; }
.rp-phone::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(115deg, rgba(255, 255, 255, .2), transparent 36%); pointer-events: none; }
.rp-screen { width: 375px; height: 770px; transform: scale(.7147); transform-origin: 0 0; }
.pl { display: inline-flex; align-items: center; gap: 6px; max-width: 320px; padding: 6px 14px 6px 7px; border: 1.5px solid transparent; border-radius: 99px; background: #fff; color: var(--muted); font-size: max(13px, calc(11.5px / var(--k))); white-space: nowrap; box-shadow: var(--sh-2); }
.pl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pl b { color: var(--brand); }
.pl > i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sec-bg); color: var(--brand); }
.pl.is-ok { border-color: #9FD8B5; }
.pl.is-ok > i { background: #1F9D57; color: #fff; }
.pl.is-bad { border-color: #F4A79F; animation: pun-shake .45s 2; }
.pl.is-bad > i { background: var(--danger-line); color: #fff; }
.pl.is-bad b { color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* ปุ่นยืนหน้าแท่น ทับขอบซ้ายมือถือได้เล็กน้อย / บับเบิลเหนือหัว หางชี้ลงที่หัว */
.rp-pun { position: absolute; left: 38px; bottom: 92px; z-index: 4; width: 318px; }
.rp-pun .pun-bub { position: absolute; left: 16px; bottom: calc(100% - 4px); z-index: 6; width: max-content; max-width: 300px; font-size: max(14.5px, calc(12.5px / var(--k))); }
.rp-pun .pun-bub::after { left: 118px; bottom: -6px; }
/* แผงลืมรหัส: กล่องกลางแผงวางบนแท่นแทนมือถือ */
.calm { position: absolute; left: 362px; top: 330px; z-index: 3; width: 322px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 22px 20px; border-radius: 24px; background: rgba(255, 255, 255, .94); text-align: center; box-shadow: var(--sh-3); }
.calm .g3d { margin: -86px 0 6px; animation: pun-bob 5s ease-in-out infinite; }
.calm b { font-size: max(18px, calc(15px / var(--k))); color: var(--brand); }
.calm p { margin: 0; font-size: max(14px, calc(12px / var(--k))); color: var(--muted); }
.calm ol { width: 100%; display: flex; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.calm li { flex: 1; padding: 6px 4px; border-radius: 10px; background: var(--fill); color: var(--muted); font-size: max(12px, calc(11px / var(--k))); }
.calm li.done { background: var(--success-bg); color: var(--success); font-weight: 600; }
.calm li.now { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

/* ===== หน้าร้านตัวอย่าง (วาดกว้าง 375 เท่าหน้าร้านจริง แล้วย่อในมือถือเอียง / เต็มกว้างในชีต) ===== */
.sf { position: relative; width: 375px; min-height: 100%; overflow: hidden; background: #FBFAF8; color: #1E2430; font-family: var(--font); line-height: 1.45; }
.au-sheet .sf { width: 100%; }
.sf-cover { height: 150px; background-color: var(--sc); background-image: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18)); }
.sf-cover.pt-dots { background-image: radial-gradient(rgba(255, 255, 255, .3) 1.5px, transparent 2.5px), linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18)); background-size: 18px 18px, auto; }
.sf-cover.pt-grid { background-image: linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18)); background-size: 20px 20px, 20px 20px, auto; }
.sf-cover.pt-diag { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 6px, transparent 6px 16px), linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18)); }
.sf-cover.pt-waves { background-image: radial-gradient(circle at 50% 100%, transparent 9px, rgba(255, 255, 255, .22) 10px 12px, transparent 13px), linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18)); background-size: 28px 14px, auto; }
.sf-cover.pt-gingham { background-image: linear-gradient(90deg, rgba(255, 255, 255, .2) 50%, transparent 50%), linear-gradient(rgba(255, 255, 255, .2) 50%, transparent 50%), linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .18)); background-size: 24px 24px, 24px 24px, auto; }
.sf-cover.pt-mesh { background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .38), transparent 45%), radial-gradient(circle at 85% 70%, rgba(0, 0, 0, .22), transparent 50%); }
.sf-cover.pt-rings { background-image: repeating-radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .18) 0 2px, transparent 2px 14px), linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .18)); }
.sf-head { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: -42px; padding: 0 20px; text-align: center; }
.sf-logo { width: 84px; height: 84px; border: 4px solid #FBFAF8; border-radius: 50%; display: grid; place-items: center; background-color: var(--sc); background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 50%); color: var(--si, #fff); box-shadow: 4px 8px 16px -8px rgba(0, 0, 0, .35); }
.sf-name { max-width: 100%; margin-top: 6px; overflow: hidden; font-size: 21px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sf-name.ph { color: #B4BAC4; }
.sf-desc { margin: 0; font-size: 13.5px; color: #5B6574; }
.sf-ics { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 10px 0 2px; }
.sf-open { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: #E7F5EC; color: #1F7A47; font-size: 12.5px; font-style: normal; font-weight: 600; }
.sf-ics .sf-open i { width: 7px; height: 7px; border-radius: 50%; background: #22A35A; -webkit-mask: none; mask: none; }
.sf-ics span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 2px 5px 10px -6px rgba(0, 0, 0, .4); }
.sf-ics i { width: 19px; height: 19px; background: #fff; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.sf-notice { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 9px 12px; border: 1px solid #E6E2DA; border-radius: 12px; background: #fff; color: #3B4250; font-size: 13px; }
.sf-notice svg { flex: none; color: var(--sc); }
.sf-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 16px 8px; }
.sf-sec b { font-size: 16px; }
.sf-sec span { font-size: 12px; color: #8A94A6; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 96px; }
.sf-card { position: relative; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 2px 6px 14px -8px rgba(0, 0, 0, .18); }
.sf-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #F2EEE8; }
.sf-ci { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; }
.sf-ci b { min-height: 34px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.sf-ci span { padding-right: 44px; font-size: 14.5px; font-weight: 700; color: var(--sc); }
.sf-ci s { margin-left: 3px; font-size: 11.5px; font-weight: 400; color: #9AA3B2; }
.sf-add { position: absolute; right: 8px; bottom: 9px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 99px; display: grid; place-items: center; background: var(--sc); color: var(--si, #fff); font-size: 12px; font-style: normal; font-weight: 600; box-shadow: 2px 5px 10px -5px rgba(0, 0, 0, .45); }
.sf-badge { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 1px 8px; border-radius: 99px; background: #fff; color: #1E2430; font-size: 11px; font-style: normal; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
/* แถบสรุปออเดอร์ติดล่างจอ (พื้น brand) ให้เห็นว่าสั่งได้จริง / ร้านที่ไม่มีตะกร้า = ทักแชท */
.sf-cart { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 9px; height: 56px; padding: 0 8px 0 14px; border-radius: 18px; background: #1F3A5F; color: #fff; font-size: 14px; box-shadow: 0 12px 24px -10px rgba(15, 30, 60, .6); }
.au-sheet .sf-cart { position: sticky; }
.sf-cart span { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sf-cart .n { width: 24px; height: 24px; flex: none; justify-content: center; border-radius: 50%; background: #F28A2E; color: #1F1206; font-size: 13px; font-weight: 700; }
.sf-cart b { margin-left: auto; white-space: nowrap; }
.sf-cart em { flex: none; padding: 9px 13px; border-radius: 12px; background: var(--primary-grad); font-size: 14px; font-style: normal; font-weight: 600; white-space: nowrap; }
.sf-cart em.ln { margin-left: auto; background: #06C755; }
.sf-live { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 99px; background: #fff; color: var(--success); font-size: 12.5px; font-weight: 700; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.sf-live i { width: 8px; height: 8px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 3px rgba(34, 163, 90, .2); }

/* ===== ชีต "ดูตัวอย่าง" บนมือถือ (สร้างเมื่อกดครั้งแรก) ===== */
.au-sheet { position: fixed; inset: 0; z-index: 50; }
.au-dim { position: absolute; inset: 0; background: rgba(14, 27, 51, .4); }
.au-sheet-box { position: absolute; left: 0; right: 0; bottom: 0; top: 56px; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(15, 30, 60, .25); animation: au-up .3s ease-out; }
.au-sheet-box header { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--card-line); font-size: 14px; font-weight: 600; }
.au-sheet-box header button { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sec-bg); color: var(--brand); cursor: pointer; }
.au-sheet-sf { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
@keyframes au-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ลดการเคลื่อนไหว: ปิดทุกการขยับ เหลือแค่สลับท่า */
@media (prefers-reduced-motion: reduce) {
    .au *, .au *::before, .au *::after, .au-sheet *, .auth-wrap * { animation: none !important; transition: none !important; }
    .ov-conf { display: none; }
}

/* ===== หน้าข้อกำหนดการใช้งาน / นโยบายความเป็นส่วนตัว ===== */
.legal-bar { position: sticky; top: 0; z-index: 10; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.legal-bar .brand { margin: 0; gap: 8px; font-size: 21px; }
.legal-bar .brand img { height: 24px; }
.brand-sub { color: var(--primary); }
@media (max-width: 480px) { .legal-bar .brand-sub { display: none; } }
@media (max-width: 360px) { .legal-bar .brand-text { display: none; } }
.legal-switch { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--sec-bg); color: var(--sec-ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.legal-switch:hover { background: var(--sec-bg-hover); }

.legal { max-width: 720px; margin: 0 auto; padding: 36px 20px 64px; }
.legal h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.legal .meta { margin: 8px 0 24px; font-size: 14px; color: var(--muted); }
.legal .intro { font-size: 16px; }
.toc { margin: 28px 0 8px; padding: 18px 20px; border-radius: 20px; background: var(--fill); }
.toc b { display: block; margin-bottom: 6px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 230px; column-gap: 28px; font-size: 14.5px; line-height: 1.9; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--primary); }
.legal h2 { margin: 40px 0 10px; font-size: 19px; font-weight: 600; line-height: 1.45; scroll-margin-top: 84px; }
.legal h3 { margin: 22px 0 4px; font-size: 16px; font-weight: 600; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.8; color: var(--body); }
.legal p { margin: 8px 0; }
.legal ul { margin: 8px 0; padding-left: 1.3em; }
.legal li + li { margin-top: 4px; }
.legal li b, .legal p b { font-weight: 600; color: var(--ink); }
.legal a { color: var(--sec-ink); text-underline-offset: 2px; }
.basis { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--sec-bg); color: var(--sec-ink); font-size: 12.5px; font-weight: 500; line-height: 1.8; white-space: nowrap; }
.legal .box { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--sec-bg); color: var(--sec-ink); font-size: 15px; line-height: 1.7; }
.contact-card { margin: 12px 0; padding: 16px 18px; border: 1px solid var(--card-line); border-radius: 20px; box-shadow: var(--shadow); }
.contact-card p { margin: 2px 0; }
.legal-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13.5px; color: var(--muted); }
.legal-foot a { color: var(--muted); text-decoration: none; }
.legal-foot a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 480px) {
    .legal { padding-top: 28px; }
    .legal h1 { font-size: 26px; }
}

/* ===== หน้าที่ป้าย "สร้างด้วย PuenWeb" ท้ายหน้าร้านพาไป (start.php) ===== */
.lp-feats { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lp-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.lp-feats li .ic { margin-top: 2px; color: var(--success); }
.lp-feats b { color: var(--ink); font-weight: 600; }
.lp-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font-size: 13.5px; color: var(--muted); }
.lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.lp-service { padding: 16px 16px 6px; border-radius: 18px; background: var(--fill); }
.lp-service h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.lp-service ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.lp-service b { color: var(--ink); font-weight: 600; }
.lp-service .btn-sec { margin: 14px 0 10px; background: var(--bg); border: 1px solid var(--line); }