/* ONEVA — ดีไซน์ V5 "Clean Shop" (ขาวอมม่วง · สีคราม · Poppins + Prompt) · มือถือก่อน คอลัมน์เดียวกว้างสุด 480 */
:root {
  --ac: #5b4bf5; --ac2: #8b7bff; --acs: #efedff; --tx: #17172b; --tx2: #6e6f86; --ln: #ececf4; --bg: #fafafd;
  --ok: #12a150; --warn: #e8890c; --bad: #e5484d; --gold: #f5b400;
  --r: 18px; --sh: 0 10px 24px -16px rgba(60, 50, 140, .3);
  --font: "Poppins", "Prompt", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --sbot: env(safe-area-inset-bottom, 0px); --stop: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 14px/1.5 var(--font); color: var(--tx); background: #eceaf6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app { position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; padding: calc(var(--stop) + 6px) 0 calc(var(--sbot) + 96px); background: radial-gradient(90% 260px at 100% 0, rgba(139, 123, 255, .16), transparent 70%), linear-gradient(180deg, #f4f2ff 0, #fff 300px, var(--bg) 100%); overflow-x: hidden; }
@media (min-width: 520px) { body { padding: 20px 0; } .app { min-height: calc(100vh - 40px); border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(40, 30, 120, .35); } }
.wrap { padding: 0 18px; }
.mut { color: var(--tx2); }

/* ---------- ทั่วไป ---------- */
.ib { position: relative; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--tx); flex: none; }
.bd { position: absolute; right: 3px; top: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ac); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.card { background: #fff; border: 1px solid var(--ln); border-radius: var(--r); box-shadow: var(--sh); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 48px; padding: 0 20px; border-radius: 14px; background: var(--ac); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 20px -12px rgba(91, 75, 245, .8); }
.btn.w { width: 100%; } .btn.ghost { background: var(--acs); color: var(--ac); box-shadow: none; } .btn.line { background: #fff; color: var(--tx); border: 1px solid var(--ln); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg.i { width: 19px; height: 19px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--acs); color: var(--ac); }
.chip.ok { background: #e6f6ec; color: var(--ok); } .chip.warn { background: #fff3e0; color: var(--warn); } .chip.bad { background: #fdecec; color: var(--bad); } .chip.gray { background: #f1f1f6; color: var(--tx2); }
.st { font-size: 11.5px; color: var(--tx2); white-space: nowrap; } .st::first-letter { color: var(--gold); }
.hs { display: flex; align-items: baseline; margin: 22px 18px 10px; } .hs b { font-size: 16.5px; font-weight: 600; } .hs a { margin-left: auto; font-size: 12.5px; color: var(--tx2); }
.empty { text-align: center; color: var(--tx2); padding: 40px 20px; }
.empty svg.i { width: 44px; height: 44px; color: #c9c8da; margin: 0 auto 8px; }
.toast { position: fixed; left: 50%; top: calc(var(--stop) + 14px); transform: translateX(-50%); z-index: 99; max-width: 90vw; padding: 11px 18px; border-radius: 14px; background: var(--tx); color: #fff; font-size: 13.5px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); animation: tIn .3s ease, tOut .4s ease 3.2s forwards; }
.toast.bad { background: var(--bad); }
@keyframes tIn { from { opacity: 0; transform: translate(-50%, -10px); } } @keyframes tOut { to { opacity: 0; visibility: hidden; } }
.row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; }   /* 2026-11-19 snap ชิดขอบซ้าย → เว้นซ้ายเท่า padding */
.row::-webkit-scrollbar, .cat::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.row > a { scroll-snap-align: start; }

/* ---------- หัวหน้าย่อย ---------- */
.sh { display: flex; align-items: center; gap: 8px; padding: 8px 12px 6px; position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sh h1 { flex: 1; font-size: 17px; font-weight: 600; text-align: center; margin-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-r { display: flex; gap: 4px; position: absolute; right: 12px; }

/* ---------- เมนูล่าง ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30; width: 100%; max-width: 480px; height: calc(68px + var(--sbot)); padding: 0 6px var(--sbot); display: flex; background: #fff; border-top: 1px solid var(--ln); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px -18px rgba(60, 50, 140, .3); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #9a9bb0; font-size: 11px; font-weight: 500; }
.nav a.on { color: var(--ac); font-weight: 600; } .nav a.on svg { fill: rgba(91, 75, 245, .14); }
@media (min-width: 520px) { .nav { bottom: 20px; border-radius: 0 0 28px 28px; } }

/* ---------- หน้าแรก ---------- */
.hd { display: flex; align-items: center; gap: 10px; padding: 8px 18px 6px; }
.hd .ib:first-child { margin-left: -8px; }
.hi { flex: 1; min-width: 0; line-height: 1.3; } .hi b { display: block; font-size: 17px; font-weight: 600; } .hi small { font-size: 12.5px; color: var(--tx2); }
.search { display: flex; align-items: center; gap: 10px; margin: 8px 18px 0; height: 48px; padding: 0 6px 0 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ln); box-shadow: 0 8px 20px -14px rgba(60, 50, 140, .3); color: #8d8ea3; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--tx); }
.search input::placeholder { color: #a5a6b8; }
.search .f { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--tx); }
.search svg.i { width: 19px; height: 19px; }
.ban { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px 18px 0; border-radius: 22px; scrollbar-width: none; } .ban::-webkit-scrollbar { display: none; }
.sl { flex: none; width: 100%; height: 158px; scroll-snap-align: start; position: relative; display: flex; align-items: center; border-radius: 22px; overflow: hidden; color: #fff; background: linear-gradient(120deg, #6c5cf6, #9b8cff); }
.sl::before { content: ""; position: absolute; right: -40px; bottom: -70px; width: 240px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.sl .tx { position: relative; z-index: 1; padding-left: 20px; width: 58%; }
.sl small { font-size: 11.5px; opacity: .85; } .sl b { display: block; font-size: 20px; font-weight: 600; line-height: 1.25; margin: 3px 0 12px; }
.sl em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; background: #fff; color: var(--tx); font-size: 12.5px; font-weight: 600; padding: 7px 12px 7px 14px; border-radius: 10px; }
.sl em svg.i { width: 15px; height: 15px; }
.sl .im { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 40%; border-radius: 16px; background: center / cover; box-shadow: 0 12px 24px -10px rgba(20, 10, 80, .5); }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; } .dots i { width: 6px; height: 6px; border-radius: 3px; background: #d9d8e8; transition: .25s; } .dots i.on { width: 18px; background: var(--ac); }
.wal { display: flex; align-items: center; gap: 12px; margin: 14px 18px 0; padding: 12px 12px 12px 14px; }
.wal .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--acs); color: var(--ac); display: grid; place-items: center; flex: none; }
.wal small { display: block; font-size: 11px; color: var(--tx2); line-height: 1.2; } .wal b { font-size: 16px; font-weight: 600; }
.wal .sep { width: 1px; height: 28px; background: var(--ln); }
.wal .go { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--ac); padding: 9px 12px; border-radius: 12px; white-space: nowrap; }
.wal .go svg.i { width: 16px; height: 16px; }
.cat { display: flex; gap: 14px; overflow-x: auto; padding: 0 18px; scrollbar-width: none; }
.cat a { flex: none; width: 62px; text-align: center; font-size: 11.5px; line-height: 1.3; }
.cat span { display: block; width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; background: #eee center / cover; border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(60, 50, 140, .35), 0 0 0 1px var(--ln); }
.pc { flex: none; width: 148px; padding: 8px 8px 10px; display: flex; flex-direction: column; }
.pc .im { position: relative; display: block; aspect-ratio: 1; border-radius: 13px; background: #f2f2f7 center / cover; margin-bottom: 8px; }
.hrt { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--tx); z-index: 2; }
.hrt svg.i { width: 15px; height: 15px; } .hrt.on { color: #ff4d6d; } .hrt.on svg { fill: #ff4d6d; }
.pc .im em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 7px; background: #ff4d6d; color: #fff; }
.pc b { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pc .rw { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; } .pc .rw strong { font-size: 14.5px; font-weight: 600; }
.pc small { font-size: 11px; color: var(--tx2); margin-top: 2px; }
.sc { flex: none; width: 236px; padding: 8px; }
.sc .im { position: relative; display: block; height: 118px; border-radius: 13px; background: center / cover; }
.sc .im em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .94); display: flex; align-items: center; gap: 3px; }
.sc .im em svg.i { width: 12px; height: 12px; color: var(--ac); }
.sc .tx { display: block; padding: 8px 4px 2px; } .sc b { display: block; font-size: 14px; font-weight: 600; } .sc small { font-size: 11.5px; color: var(--tx2); }
.sc .cp { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; color: var(--ac); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc .cp svg.i { width: 14px; height: 14px; }
.lc { flex: none; width: 250px; display: flex; gap: 10px; align-items: center; padding: 8px; }
.lc .im { flex: none; width: 82px; height: 82px; border-radius: 13px; background: center / cover; display: grid; place-items: center; }
.lc .im i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ac); }
.lc .im i svg.i { width: 14px; height: 14px; }
.lc .tx { flex: 1; min-width: 0; } .lc small { display: block; font-size: 11px; color: var(--tx2); } .lc b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 1px 0 5px; }
.pg { display: block; height: 5px; border-radius: 3px; background: var(--acs); overflow: hidden; margin-bottom: 4px; } .pg i { display: block; height: 100%; border-radius: 3px; background: var(--ac); }
.promo { display: flex; align-items: center; gap: 12px; margin: 16px 18px 0; padding: 14px 14px 14px 16px; border-radius: 18px; background: linear-gradient(110deg, #efedff, #f7f2ff); border: 1px solid #e6e2ff; }
.promo span { flex: 1; min-width: 0; } .promo b { display: block; font-size: 14px; font-weight: 600; } .promo small { font-size: 11.5px; color: var(--tx2); }
.promo svg.gift { width: 44px; height: 44px; flex: none; }
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px; }
.biz a { padding: 12px 8px; text-align: center; }
.biz b { display: block; font-size: 16px; font-weight: 600; color: var(--ac); min-height: 24px; } .biz small { font-size: 11.5px; color: var(--tx2); }

/* ---------- แจ้งเตือน ---------- */
.np { position: absolute; right: 12px; top: 58px; z-index: 40; width: min(330px, calc(100% - 24px)); padding: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--ln); box-shadow: 0 24px 50px -20px rgba(40, 30, 120, .45); }
.np a { display: flex; gap: 10px; padding: 10px; border-radius: 12px; } .np a:hover { background: #f7f6ff; }
.np a i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); margin-top: 7px; flex: none; } .np a.rd i { background: transparent; }
.np b { display: block; font-size: 13.5px; font-weight: 600; } .np small { font-size: 12px; color: var(--tx2); }
.np .ft { display: block; text-align: center; font-size: 12.5px; color: var(--ac); padding: 8px; }

/* ---------- รายการ / ตาราง ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px; }
.grid2 .pc { width: auto; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 18px 12px; scrollbar-width: none; }
.tabs a { flex: none; font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: 12px; background: #fff; border: 1px solid var(--ln); color: var(--tx2); }
.tabs a.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.list { margin: 0 18px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--ln); }
.li:first-child { border-top: 0; }
.li .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--acs); color: var(--ac); display: grid; place-items: center; flex: none; }
.li .ico svg.i { width: 19px; height: 19px; }
.li .t { flex: 1; min-width: 0; } .li .t b { display: block; font-weight: 500; font-size: 14px; } .li .t small { font-size: 12px; color: var(--tx2); }
.li > svg.i { width: 18px; height: 18px; color: #b8b9cb; }

/* ---------- ฟอร์ม ---------- */
.fm { display: grid; gap: 14px; }
.fm label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.in { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--ln); background: #fff; font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea.in { height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; }
.in:focus { border-color: var(--ac); box-shadow: 0 0 0 4px rgba(91, 75, 245, .12); }
.err { padding: 11px 14px; border-radius: 12px; background: #fdecec; color: var(--bad); font-size: 13px; }
.note { padding: 11px 14px; border-radius: 12px; background: var(--acs); color: #3b2fc4; font-size: 13px; }

/* ---------- เข้าสู่ระบบ ---------- */
.auth { padding: 30px 24px 40px; }
.auth .logo { width: 150px; height: 46px; background: url(../img/oneva_logo.webp?v=20261122) left center / contain no-repeat; filter: drop-shadow(0 2px 4px rgba(30, 30, 80, .35)); margin-bottom: 26px; }
html[data-mode="light"] .auth .logo { filter: brightness(.42) saturate(1.8) contrast(1.15) drop-shadow(0 1px 1px rgba(255,255,255,.6)); }   /* 2026-11-23 ผู้ใช้: โหมดสว่าง โลโก้เงินบนพื้นขาวมองไม่เห็น → ทำโลโก้ให้เข้มขึ้น */
.auth h1 { font-size: 26px; font-weight: 700; line-height: 1.25; } .auth p.mut { margin: 6px 0 22px; }
.auth .alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--tx2); } .auth .alt a { color: var(--ac); font-weight: 600; }

/* ---------- สินค้า ---------- */
.pd-img { position: relative; margin: 0 18px; aspect-ratio: 1; border-radius: 24px; background: #f2f2f7 center / cover; }
.pd-img .hrt { right: 12px; top: 12px; width: 38px; height: 38px; } .pd-img .hrt svg.i { width: 19px; height: 19px; }
.pd-b { padding: 16px 18px 0; }
.pd-b h1 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.pd-pr { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; } .pd-pr b { font-size: 26px; font-weight: 700; color: var(--ac); } .pd-pr s { color: var(--tx2); font-size: 14px; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pd-d { margin: 16px 18px 0; padding: 14px 16px; font-size: 14px; line-height: 1.7; color: #393a52; }
.buybar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 31; width: 100%; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 12px 18px calc(12px + var(--sbot)); background: #fff; border-top: 1px solid var(--ln); box-shadow: 0 -10px 30px -18px rgba(60, 50, 140, .3); }
.qty { display: flex; align-items: center; height: 48px; border: 1px solid var(--ln); border-radius: 14px; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; } .qty button svg.i { width: 17px; height: 17px; }
.qty input { width: 36px; text-align: center; border: 0; outline: 0; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
body.has-buy .app { padding-bottom: calc(var(--sbot) + 90px); }
@media (min-width: 520px) { .buybar { bottom: 20px; border-radius: 0 0 28px 28px; } }

/* ---------- ตะกร้า / ชำระเงิน ---------- */
.ci { display: flex; gap: 12px; padding: 12px; align-items: center; }
.ci .im { width: 72px; height: 72px; border-radius: 14px; background: #f2f2f7 center / cover; flex: none; }
.ci .t { flex: 1; min-width: 0; } .ci .t b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; } .ci .t strong { display: block; color: var(--ac); font-weight: 600; margin-top: 3px; }
.ci .qty { height: 36px; border-radius: 11px; } .ci .qty button { width: 32px; } .ci .qty input { width: 28px; }
.ci .del { color: #b8b9cb; padding: 4px; } .ci .del svg.i { width: 18px; height: 18px; }
.sum { margin: 14px 18px 0; padding: 14px 16px; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--tx2); }
.sum div b { color: var(--tx); font-weight: 500; } .sum .tot { padding-top: 10px; border-top: 1px dashed var(--ln); font-size: 15px; color: var(--tx); } .sum .tot b { font-size: 19px; font-weight: 700; color: var(--ac); }
.cpn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.cpn input { width: 20px; height: 20px; accent-color: var(--ac); }
.paybox { margin: 14px 18px 0; padding: 16px; text-align: center; }
.paybox .qrb { width: 180px; height: 180px; margin: 10px auto; border-radius: 16px; border: 1px solid var(--ln); display: grid; place-items: center; background: #fff; }
.paybox .acc { margin-top: 10px; font-size: 13.5px; } .paybox .acc b { font-size: 17px; letter-spacing: .5px; }
.drop { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2px dashed #d9d6f5; border-radius: 16px; color: var(--tx2); font-size: 13px; cursor: pointer; background: #fbfaff; text-align: center; }
.drop svg.i { width: 30px; height: 30px; color: var(--ac); }
.drop img { max-height: 220px; border-radius: 12px; }

/* ---------- คำสั่งซื้อ ---------- */
.od { margin: 0 18px 12px; padding: 14px; }
.od .top { display: flex; align-items: center; gap: 8px; } .od .top b { font-size: 14px; font-weight: 600; } .od .top .chip { margin-left: auto; }
.od .its { display: flex; gap: 6px; margin: 10px 0; } .od .its i { width: 46px; height: 46px; border-radius: 10px; background: #f2f2f7 center / cover; }
.od .bt { display: flex; justify-content: space-between; font-size: 13px; color: var(--tx2); } .od .bt b { color: var(--tx); font-size: 15px; }

/* ---------- ร้านใกล้ฉัน ---------- */
.shop { display: flex; gap: 12px; padding: 10px; margin: 0 18px 12px; align-items: center; }
.shop .im { width: 92px; height: 92px; border-radius: 14px; background: center / cover; flex: none; }
.shop .t { flex: 1; min-width: 0; } .shop .t b { display: block; font-size: 15px; font-weight: 600; } .shop .t small { display: block; font-size: 12px; color: var(--tx2); }
.shop .t .cp { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ac); font-weight: 500; margin-top: 4px; } .shop .t .cp svg.i { width: 14px; height: 14px; }
.shop .km { text-align: center; font-size: 15px; font-weight: 600; color: var(--ac); flex: none; } .shop .km small { display: block; font-size: 11px; color: var(--tx2); font-weight: 400; }
.locbar { display: flex; align-items: center; gap: 8px; margin: 4px 18px 12px; font-size: 12.5px; color: var(--tx2); } .locbar svg.i { width: 16px; height: 16px; color: var(--ac); } .locbar button { color: var(--ac); font-weight: 600; margin-left: auto; }
.st-hero { position: relative; margin: 0 18px; height: 230px; border-radius: 24px; background: center / cover; }
.st-info { padding: 16px 18px 0; } .st-info h1 { font-size: 22px; font-weight: 600; }
.kv { display: grid; gap: 10px; margin: 14px 18px 0; padding: 14px 16px; font-size: 13.5px; }
.kv div { display: flex; gap: 10px; align-items: flex-start; } .kv svg.i { width: 18px; height: 18px; color: var(--ac); margin-top: 1px; }
.map { margin: 14px 18px 0; height: 180px; border-radius: 18px; overflow: hidden; border: 1px solid var(--ln); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- คอร์ส ---------- */
.cr { display: flex; gap: 12px; padding: 10px; margin: 0 18px 12px; align-items: center; }
.cr .im { width: 100px; height: 80px; border-radius: 14px; background: center / cover; flex: none; display: grid; place-items: center; }
.cr .im i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ac); } .cr .im i svg.i { width: 14px; height: 14px; }
.cr .t { flex: 1; min-width: 0; } .cr .t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; } .cr .t small { display: block; font-size: 12px; color: var(--tx2); margin-top: 2px; }

/* ---------- โปรไฟล์ / กระเป๋า ---------- */
.pf { display: flex; align-items: center; gap: 14px; margin: 6px 18px 0; padding: 16px; }
.av { width: 64px; height: 64px; border-radius: 20px; background: var(--acs) center / cover; display: grid; place-items: center; font-size: 24px; font-weight: 600; color: var(--ac); flex: none; }
.pf .t { flex: 1; min-width: 0; } .pf .t b { display: block; font-size: 18px; font-weight: 600; } .pf .t small { font-size: 12.5px; color: var(--tx2); }
.wcard { margin: 14px 18px 0; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(130deg, #5b4bf5, #8b7bff); position: relative; overflow: hidden; box-shadow: 0 20px 34px -18px rgba(91, 75, 245, .8); }
.wcard::before { content: ""; position: absolute; right: -50px; top: -70px; width: 220px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.wcard small { opacity: .85; font-size: 12px; } .wcard b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.wcard .r { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; position: relative; } .wcard .r div { background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 10px 12px; } .wcard .r b { font-size: 17px; }
.lot { display: flex; align-items: center; gap: 12px; margin: 0 18px 10px; padding: 14px; }
.lot .rg { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--c, var(--ac)) calc(var(--p) * 1%), var(--acs) 0); }
.lot .rg span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 17px; font-weight: 700; line-height: 1; text-align: center; } .lot .rg small { display: block; font-size: 9px; font-weight: 500; line-height: 1; color: var(--tx2); }   /* 2026-11-18 ผู้ใช้: ตัวเลขวันอยู่กลาง + ใหญ่ขึ้น */
.lot .t { flex: 1; } .lot .t b { display: block; font-size: 19px; font-weight: 700; } .lot .t small { font-size: 12px; color: var(--tx2); }
.qrme { margin: 14px 18px 0; padding: 18px; text-align: center; }
.qrme canvas, .qrme img { margin: 10px auto; }

/* ---------- สายงาน ---------- */
.tbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 18px 0; }
.tbar div { padding: 14px; text-align: center; } .tbar b { display: block; font-size: 20px; font-weight: 700; } .tbar small { font-size: 12px; color: var(--tx2); }
.tbar .l b { color: #3b82f6; } .tbar .r b { color: #e8890c; }
.tree { margin: 14px 18px 0; padding: 18px 8px 16px; text-align: center; }
.tn { display: inline-flex; flex-direction: column; align-items: center; width: 33%; padding: 4px 2px; vertical-align: top; }
.tn .av { width: 54px; height: 54px; border-radius: 50%; font-size: 18px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ac2); }
.tn.root .av { width: 70px; height: 70px; box-shadow: 0 0 0 3px var(--ac); }
.tn b { font-size: 12.5px; font-weight: 600; margin-top: 6px; } .tn small { font-size: 11px; color: var(--tx2); } .tn em { font-style: normal; font-size: 11.5px; color: var(--ac); font-weight: 600; }
.tn.empty .av { background: #fff; border: 2px dashed #c9c5f5; box-shadow: none; color: var(--ac2); }
.lvl { display: flex; } .lvl > div { flex: 1; } .lvl.l3 .tn { width: 50%; }
.tline { height: 14px; margin: 2px 16% 4px; border: 2px solid #dedbfa; border-bottom: 0; border-radius: 10px 10px 0 0; }

/* ================= ธีมน้ำเงินไล่เฉด (ทดลอง 2026-11-10) — body.th-a | th-b | th-c · ?th= จำในคุกกี้ =================
   A ฟ้าคราม: น้ำเงินสด → ฟ้า · B ทะเลลึก: กรมท่า → น้ำเงิน → ฟ้าน้ำทะเล · C หัวน้ำเงินเต็ม: แถบไล่สีด้านบนหลังหัว/ค้นหา/แบนเนอร์ */
body.th-a { --ac: #1f63ff; --ac2: #4aa8ff; --acs: #e8f1ff; --grad: linear-gradient(120deg, #1f63ff 0%, #4aa8ff 100%); --tint: rgba(74, 168, 255, .2); --top: #eaf3ff; --gl: 31, 99, 255; background: #e4ecf8; }
body.th-b { --ac: #1257d6; --ac2: #22b8ee; --acs: #e6f2fd; --grad: linear-gradient(135deg, #0b2a6f 0%, #1565d8 55%, #22c1ee 100%); --tint: rgba(34, 193, 238, .18); --top: #e8f4fc; --gl: 18, 87, 214; background: #dfe9f5; }
body.th-c { --ac: #2563eb; --ac2: #60a5fa; --acs: #e7f0ff; --grad: linear-gradient(125deg, #0f3fae 0%, #2563eb 60%, #3b8bf6 100%); --tint: rgba(96, 165, 250, .2); --top: #f2f7ff; --gl: 37, 99, 235; background: #e2eaf7; }
body[class*="th-"] { --sh: 0 10px 24px -16px rgba(var(--gl), .32); }
body[class*="th-"] .app { background: radial-gradient(90% 260px at 100% 0, var(--tint), transparent 70%), linear-gradient(180deg, var(--top) 0, #fff 300px, #f8fafd 100%); }
body[class*="th-"] .sl, body[class*="th-"] .wcard { background: var(--grad); }
body[class*="th-"] .wcard { box-shadow: 0 20px 34px -18px rgba(var(--gl), .8); }
body[class*="th-"] .wal .go, body[class*="th-"] .btn:not(.ghost):not(.line), body[class*="th-"] .tabs a.on { background: var(--grad); border-color: transparent; }
body[class*="th-"] .btn:not(.ghost):not(.line) { box-shadow: 0 10px 20px -12px rgba(var(--gl), .85); }
body[class*="th-"] .nav a.on svg { fill: rgba(var(--gl), .14); }
body[class*="th-"] .in:focus { box-shadow: 0 0 0 4px rgba(var(--gl), .14); }
body[class*="th-"] .note { color: var(--ac); }
body[class*="th-"] .promo { background: linear-gradient(110deg, var(--acs), #f4f9ff); border-color: rgba(var(--gl), .15); }
body[class*="th-"] .promo svg.gift rect:nth-child(1) { fill: var(--ac2); } body[class*="th-"] .promo svg.gift rect:nth-child(2) { fill: var(--ac); }
body[class*="th-"] .np a:hover { background: var(--acs); }
body[class*="th-"] .dots i { background: #d3deef; } body[class*="th-"] .dots i.on { background: var(--grad); }
body[class*="th-"] .drop { border-color: rgba(var(--gl), .25); background: #f7faff; }
body[class*="th-"] .tline { border-color: rgba(var(--gl), .18); } body[class*="th-"] .tn.empty .av { border-color: rgba(var(--gl), .35); }
body[class*="th-"] .pd-pr b, body[class*="th-"] .sum .tot b, body[class*="th-"] .biz b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body[class*="th-"] .cat span { box-shadow: 0 6px 14px -6px rgba(var(--gl), .35), 0 0 0 1px var(--ln); }
/* B: แบนเนอร์มีวงแสงฟ้าน้ำทะเล + การ์ดกระเป๋าขอบไล่สี */
body.th-b .sl::before { background: radial-gradient(circle, rgba(34, 193, 238, .45), transparent 70%); right: -30px; bottom: -60px; }
body.th-b .wal { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
body.th-b .wal .ic { background: var(--grad); color: #fff; }
/* C: แถบน้ำเงินเต็มด้านบนของหน้าแรก · หัว/ค้นหาบนแถบ · การ์ดกระเป๋าลอยคร่อมขอบแถบ */
body.th-c .app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300px; z-index: 0; background: radial-gradient(70% 60% at 100% 0, rgba(147, 197, 253, .55), transparent 70%), var(--grad); border-radius: 0 0 32px 32px; pointer-events: none; }
body.th-c .app > * { position: relative; z-index: 1; }
body.th-c .app > .nav, body.th-c .app > .buybar, body.th-c .app > .toast, body.th-c .app > .np { position: fixed; z-index: 30; }
body.th-c .app > .np { position: absolute; z-index: 40; }
body.th-c .hd, body.th-c .hd .ib { color: #fff; } body.th-c .hi small { color: rgba(255, 255, 255, .78); }
body.th-c .hd .bd { background: #ffd166; color: #3a2a00; border-color: transparent; }
body.th-c .search { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.th-c .search input { color: #fff; } body.th-c .search input::placeholder { color: rgba(255, 255, 255, .72); } body.th-c .search .f { color: #fff; }
body.th-c .sl { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.th-c .sl em { color: var(--ac); }
body.th-c .dots i { background: rgba(255, 255, 255, .45); } body.th-c .dots i.on { background: #fff; }
body.th-c .wal { box-shadow: 0 18px 34px -16px rgba(15, 63, 174, .45); }
/* หน้าย่อยในธีม C: หัวหน้าเป็นแถบน้ำเงิน */
body.th-c .sh { background: var(--grad); color: #fff; border-radius: 0 0 22px 22px; padding-bottom: 10px; } body.th-c .sh .ib { color: #fff; }
body.th-c .app:has(.sh)::before { display: none; }

/* ================= ดีไซน์กรมท่า (ทดลอง 2026-11-10 · ref แอปคลินิก) — body.nv + th-d | th-e | th-f =================
   กรมท่าเข้ม + ฟ้าอ่อน + การ์ดขาวมุมมน · ปุ่มกลมขาว · เมนูล่างแคปซูลลอย (แท็บที่เลือก = แคปซูลกรมท่า) · หน้าแรก layout ใหม่อยู่ใน inc/home_nv.php */
body.nv { --ac: #152a52; --ac2: #5c8ee6; --acs: #e6edf8; --tx: #0f1b33; --tx2: #7a8499; --ln: #e4e8f0; --r: 22px; --sh: 0 12px 30px -20px rgba(15, 30, 58, .28); --nv: linear-gradient(135deg, #0c1a34 0%, #1d3a6a 100%); --pale: linear-gradient(160deg, #dfe8f8 0%, #c9d9f3 100%); background: #e2e6ee; }
body.nv .app { background: #f1f3f7; padding-bottom: calc(var(--sbot) + 104px); }
body.nv .card { border: 0; }
body.nv .btn:not(.ghost):not(.line), body.nv .tabs a.on, body.nv .wal .go { background: var(--nv); border-color: transparent; box-shadow: 0 12px 22px -14px rgba(13, 27, 54, .8); }
body.nv .btn { border-radius: 16px; }
body.nv .in:focus { border-color: var(--ac2); box-shadow: 0 0 0 4px rgba(92, 142, 230, .15); }
body.nv .note { color: var(--ac); }
body.nv .bd { background: #3d72d9; }
body.nv .wcard { background: radial-gradient(70% 90% at 100% 0, rgba(120, 165, 240, .35), transparent 70%), var(--nv); box-shadow: 0 22px 36px -20px rgba(13, 27, 54, .75); }
body.nv .wcard::before { display: none; }
body.nv .pd-pr b, body.nv .sum .tot b, body.nv .biz b, body.nv .ci .t strong { color: var(--ac); }
body.nv .np a:hover { background: var(--acs); }
body.nv .dots i { background: #cfd7e5; } body.nv .dots i.on { background: var(--ac); }
body.nv .hs b { font-size: 16px; }
body.nv .pc, body.nv .sc, body.nv .lc { border-radius: 20px; } body.nv .pc .im, body.nv .sc .im, body.nv .lc .im { border-radius: 15px; }
body.nv .ib { border-radius: 50%; }
body.nv .sh { background: rgba(241, 243, 247, .9); }
body.nv .sh .ib, body.nv .nhd .ib { width: 42px; height: 42px; background: #fff; box-shadow: 0 6px 16px -10px rgba(15, 30, 58, .4); }
/* เมนูล่างแคปซูลลอย */
body.nv .nav { bottom: calc(12px + var(--sbot)); width: calc(100% - 28px); max-width: 452px; height: 62px; padding: 0 8px; align-items: center; gap: 2px; border: 0; border-radius: 31px; box-shadow: 0 16px 32px -16px rgba(15, 30, 58, .4); }
body.nv .nav a { flex: 1 1 0; flex-direction: row; height: 46px; border-radius: 23px; gap: 6px; color: #8a93a6; font-size: 12.5px; transition: flex .25s; }
body.nv .nav a span { display: none; }
body.nv .nav a.on { flex: 1.9 1 0; background: var(--nv); color: #fff; } body.nv .nav a.on span { display: inline; } body.nv .nav a.on svg { fill: none; }
body.nv .nav svg.i { width: 21px; height: 21px; }
@media (min-width: 520px) { body.nv .nav { bottom: 34px; border-radius: 31px; } }

/* หัว + ค้นหา */
.nhd { display: flex; align-items: center; gap: 10px; padding: 10px 18px 4px; }
.nhd .hi { flex: 1; min-width: 0; line-height: 1.3; } .nhd .hi small { display: block; font-size: 12.5px; color: var(--tx2); } .nhd .hi b { font-size: 18px; font-weight: 600; }
.nav-av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--acs) center / cover; color: var(--ac); font-size: 18px; font-weight: 600; border: 2px solid #fff; box-shadow: 0 6px 16px -8px rgba(15, 30, 58, .45); }
.nav-av svg.i { width: 20px; height: 20px; }
.nsr { display: flex; gap: 10px; margin: 12px 18px 0; }
.nsr label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 25px; background: #fff; color: var(--tx2); box-shadow: 0 8px 22px -16px rgba(15, 30, 58, .35); }
.nsr input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--tx); } .nsr input::placeholder { color: #a3abbb; }
.nsr svg.i { width: 19px; height: 19px; }
.nsr .f { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: var(--tx); box-shadow: 0 8px 22px -16px rgba(15, 30, 58, .35); }

/* การ์ดกรมท่า (E-Coupon) */
.nhero { position: relative; display: block; margin: 14px 18px 0; min-height: 156px; padding: 18px; border-radius: 24px; background: var(--nv); color: #fff; overflow: hidden; box-shadow: 0 22px 38px -22px rgba(13, 27, 54, .8); }
.nhero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(120, 165, 240, .4), transparent 68%); }
.nhero .tx { position: relative; z-index: 1; display: block; width: 58%; }
.nhero small { font-size: 12px; opacity: .7; } .nhero b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.8px; line-height: 1.15; margin: 4px 0 3px; } .nhero b.sm { font-size: 21px; letter-spacing: 0; }
.nhero em { display: block; font-style: normal; font-size: 12.5px; opacity: .75; }
.nhero .ph { position: absolute; right: 14px; top: 14px; bottom: 14px; width: 36%; border-radius: 18px; background: center / cover; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); }
.nhero .go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); }
.nhero .go svg.i { width: 15px; height: 15px; }
.nhero.mini { min-height: 128px; } .nhero.mini b { font-size: 26px; }

/* ภาพรวมธุรกิจ (ฟ้าอ่อน) */
.nov { margin: 14px 18px 0; padding: 16px; border-radius: 22px; background: var(--pale); }
.nov .t { display: flex; align-items: center; } .nov .t b { font-size: 14.5px; font-weight: 600; }
.nov .ch { margin-left: auto; font-size: 11.5px; padding: 3px 11px; border-radius: 10px; background: rgba(255, 255, 255, .75); color: var(--ac); }
.nov .g { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.nov .g a { padding: 0 10px; border-left: 1px solid rgba(21, 42, 82, .12); } .nov .g a:first-child { padding-left: 0; border-left: 0; }
.nov small { display: block; font-size: 11.5px; color: #5d6a82; } .nov .g b { display: block; font-size: 23px; font-weight: 700; margin: 1px 0; }
.nov .g span { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #5d6a82; } .nov em { font-style: normal; } .nov .g svg.i { width: 16px; height: 16px; color: #3d72d9; }

/* เมนูด่วน */
.nqa { margin: 14px 18px 0; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--sh); }
.nqa .t b { font-size: 14.5px; font-weight: 600; }
.nqa nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.nqa a { text-align: center; font-size: 11.5px; line-height: 1.3; }
.nqa a span { width: 54px; height: 54px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; background: #f0f3f8; color: var(--ac); }
.nqa a.on span { background: var(--pale); color: #1d3a6a; }

/* การ์ดภาพ (ข้อความทับภาพ + ลูกศรกลม) */
.npic { position: relative; display: block; overflow: hidden; border-radius: 22px; background: #cfd6e2 center / cover; color: #fff; }
body.nv .npic::before { content: ""; position: absolute; inset: 0; right: 0; bottom: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(0deg, rgba(10, 20, 40, .78) 0%, rgba(10, 20, 40, .1) 58%, transparent 100%); }
.npic > span { position: absolute; left: 16px; right: 62px; bottom: 14px; z-index: 1; } .npic b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; } .npic small { display: block; font-size: 11.5px; opacity: .8; margin-top: 1px; }
.npic > i { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tx); } .npic > i svg.i { width: 18px; height: 18px; }
.npic.big { height: 196px; } .npic.sm { height: 150px; } .npic.sm b { font-size: 13.5px; } .npic.sm > span { left: 12px; right: 50px; bottom: 12px; } .npic.sm > i { width: 32px; height: 32px; right: 10px; bottom: 10px; } .npic.sm > i svg.i { width: 15px; height: 15px; }
body.nv .ban { margin: 0 18px; border-radius: 22px; }
body.nv .ban .npic.sl { flex: none; width: 100%; height: 184px; display: block; background: #cfd6e2 center / cover; border-radius: 22px; scroll-snap-align: start; }
.npic.mid { flex: none; width: 240px; height: 150px; }

/* E · แถบกรมท่าด้านบน + แผ่นขาว */
.ntop { margin-top: calc(-6px - var(--stop)); padding: calc(var(--stop) + 8px) 0 62px; color: #fff; background: radial-gradient(80% 70% at 100% 0, rgba(110, 155, 235, .35), transparent 70%), var(--nv); }
.ntop h1 { margin: 16px 18px 0; font-size: 26px; font-weight: 600; line-height: 1.25; } .ntop h1 span { color: #9fbdf0; }
.nhd.w .hi small { color: rgba(255, 255, 255, .7); } body.nv .nhd.w .ib { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; } .nhd.w .nav-av { border-color: rgba(255, 255, 255, .35); }
.nsr.w { margin-top: 16px; } .nsr.w .f { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.nsheet { position: relative; z-index: 2; margin: -38px 0 0; padding: 16px; border-radius: 30px 30px 26px 26px; background: #fff; box-shadow: 0 -10px 30px -22px rgba(15, 30, 58, .5); }
.ntwo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.nnear { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 20px; background: var(--pale); }
.nnear .t { flex: 1; min-width: 0; } .nnear b { display: block; font-size: 14px; font-weight: 600; } .nnear small { font-size: 11.5px; color: #5d6a82; }
.nnear .avs { display: flex; } .nnear .avs i { width: 32px; height: 32px; border-radius: 50%; margin-left: -10px; border: 2px solid #fff; background: center / cover; } .nnear .avs i:first-child { margin-left: 0; }
.nnear .go { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; } .nnear .go svg.i { width: 17px; height: 17px; }

/* F · ภาพใหญ่ + แผ่นสมาชิก */
.ngal { position: relative; display: block; margin: 8px 18px 0; height: 290px; border-radius: 28px; background: #cfd6e2 center / cover; overflow: hidden; color: #fff; }
.ngal::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 40, .55) 0%, transparent 40%); }
.ngal span { position: absolute; left: 20px; top: 18px; right: 20px; } .ngal small { font-size: 12px; opacity: .85; } .ngal b { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.nmem { position: relative; z-index: 2; margin: -64px 18px 0; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 18px 40px -24px rgba(15, 30, 58, .45); }
.nmem .tp { display: flex; align-items: center; gap: 10px; } .nmem .tp .t { flex: 1; min-width: 0; } .nmem .tp b { display: block; font-size: 19px; font-weight: 600; } .nmem .tp small { font-size: 12.5px; color: var(--tx2); }
.nmem .tp .ib { background: #f0f3f8; }
.nmem .ft { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0 4px; }
.nmem .ft a { text-align: center; min-width: 0; } .nmem .ft span { width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: #eef3fb; color: var(--ac); } .nmem .ft svg.i { width: 20px; height: 20px; }
.nmem .ft b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nmem .ft small { font-size: 10.5px; color: var(--tx2); }
.nmem .h { display: block; font-size: 14px; font-weight: 600; margin-top: 14px; } .nmem p { font-size: 12.5px; line-height: 1.6; color: var(--tx2); margin: 4px 0 14px; }
.ncta { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 22px; background: var(--nv); color: #fff; }
.ncta span { flex: 1; min-width: 0; } .ncta b { display: block; font-size: 15px; font-weight: 600; } .ncta small { font-size: 11.5px; opacity: .7; }
.ncta i { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: var(--tx); } .ncta i svg.i { width: 20px; height: 20px; }
.ngrow { padding-top: 2px; }

/* หน้าสินค้า: ภาพเต็มบน + แผ่นขาว + แถบซื้อกรมท่าลอย */
body.nv.has-buy .app { padding-top: 0; padding-bottom: calc(var(--sbot) + 104px); }
body.nv.has-buy .sh { position: absolute; left: 0; right: 0; top: var(--stop); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 12px 14px; }
body.nv.has-buy .sh h1 { visibility: hidden; }
body.nv .pd-img { margin: 0; aspect-ratio: auto; height: 380px; border-radius: 0; }
body.nv .pd-img .hrt { top: auto; bottom: 48px; right: 20px; width: 42px; height: 42px; }
body.nv .pd-b { position: relative; margin-top: -30px; padding: 22px 20px 6px; border-radius: 28px 28px 0 0; background: #fff; }
body.nv .pd-d { margin: 0; padding: 8px 20px 20px; border-radius: 0 0 28px 28px; box-shadow: 0 16px 30px -24px rgba(15, 30, 58, .4); }
body.nv .buybar { bottom: calc(12px + var(--sbot)); width: calc(100% - 28px); max-width: 452px; padding: 10px; border: 0; border-radius: 26px; background: var(--nv); box-shadow: 0 18px 34px -16px rgba(13, 27, 54, .7); }
body.nv .buybar .qty { border-color: rgba(255, 255, 255, .22); color: #fff; }
body.nv .buybar .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
body.nv .buybar .btn:not(.ghost) { background: #fff; color: var(--ac); box-shadow: none; }
@media (min-width: 520px) { body.nv .buybar { bottom: 34px; border-radius: 26px; } }
/* ================= ดีไซน์ขาว-ดำ (ทดลอง 2026-11-10 · ref แอปแฟชั่น) — body.mo + th-g | th-h | th-i =================
   ขาว/ดำ · หัวข้อมีคำตัวเอียงเซริฟ · การ์ดภาพมน + ป้ายราคาแคปซูลดำ · แถบดำปุ่มขาว + >>> · เมนูล่างแคปซูลดำ · หน้าแรกอยู่ใน inc/home_mo.php */
.ptag, .buybar .chev { display: none; }
svg.chv { width: 46px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.mo { --ac: #111; --ac2: #555; --acs: #f1f1f1; --tx: #111; --tx2: #8b8b8b; --ln: #ececec; --r: 22px; --sh: none; --serif: "Playfair Display", "Noto Serif Thai", serif; background: #e6e6e6; }
body.mo .app { background: #fff; padding-bottom: calc(var(--sbot) + 104px); }
body.mo .card { border: 1px solid #f0f0f0; box-shadow: none; }
body.mo .btn:not(.ghost):not(.line), body.mo .tabs a.on, body.mo .wal .go { background: #111; border-color: #111; box-shadow: none; }
body.mo .btn { border-radius: 26px; } body.mo .btn.ghost { background: #f1f1f1; color: #111; }
body.mo .in { border-radius: 26px; background: #f5f5f5; border-color: #f5f5f5; } body.mo .in:focus { border-color: #111; box-shadow: none; background: #fff; }
body.mo .tabs a { border-radius: 20px; background: #f3f3f3; border-color: #f3f3f3; color: #333; }
body.mo .chip { background: #f1f1f1; color: #111; }
body.mo .bd { background: #111; }
body.mo .ib { border-radius: 50%; }
body.mo .sh { background: rgba(255, 255, 255, .92); } body.mo .sh h1 { font-size: 15.5px; }
body.mo .sh .ib, body.mo .mo-hd .ib { width: 42px; height: 42px; border: 1px solid #e6e6e6; background: #fff; }
body.mo .hs b { font-size: 16px; } body.mo .hs a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
body.mo .st::first-letter { color: #f5b400; }
body.mo .wcard { background: #111; box-shadow: none; border-radius: 26px; } body.mo .wcard::before { display: none; } body.mo .wcard .r div { background: rgba(255, 255, 255, .1); }
body.mo .pd-pr b, body.mo .sum .tot b, body.mo .biz b, body.mo .ci .t strong { color: #111; }
body.mo .dots i.on { background: #111; }
body.mo .pc, body.mo .sc, body.mo .lc { border-radius: 22px; } body.mo .pc .im, body.mo .sc .im, body.mo .lc .im { border-radius: 18px; }
body.mo .lc .im i, body.mo .cr .im i { color: #111; } body.mo .pg i { background: #111; } body.mo .pg { background: #eee; }
body.mo .sc .im em svg.i, body.mo .sc .cp, body.mo .shop .t .cp, body.mo .shop .km, body.mo .kv svg.i, body.mo .locbar svg.i, body.mo .locbar button, body.mo .np .ft, body.mo .auth .alt a { color: #111; }
body.mo .np a i { background: #111; } body.mo .np a:hover { background: #f5f5f5; }
body.mo .tn .av { box-shadow: 0 0 0 2px #bbb; } body.mo .tn.root .av { box-shadow: 0 0 0 3px #111; } body.mo .tline { border-color: #e2e2e2; } body.mo .tn.empty .av { border-color: #ccc; color: #999; }
body.mo .tbar .l b, body.mo .tbar .r b, body.mo .tn em { color: #111; }
/* เมนูล่าง: แคปซูลดำลอย · แท็บที่เลือก = แคปซูลขาว */
body.mo .nav { bottom: calc(12px + var(--sbot)); width: calc(100% - 28px); max-width: 452px; height: 62px; padding: 0 8px; align-items: center; gap: 2px; border: 0; border-radius: 31px; background: #111; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); }
body.mo .nav a { flex: 1 1 0; flex-direction: row; height: 46px; border-radius: 23px; gap: 6px; color: #9a9a9a; font-size: 12.5px; }
body.mo .nav a span { display: none; } body.mo .nav a.on { flex: 1.9 1 0; background: #fff; color: #111; } body.mo .nav a.on span { display: inline; } body.mo .nav a.on svg { fill: none; }
body.mo .nav svg.i { width: 21px; height: 21px; }
@media (min-width: 520px) { body.mo .nav { bottom: 34px; border-radius: 31px; } }

/* หัว · หัวข้อ · ค้นหา · ชิป */
.mo-hd { display: flex; align-items: center; gap: 10px; padding: 10px 18px 4px; }
.mo-hd .hi { flex: 1; min-width: 0; line-height: 1.25; } .mo-hd .hi small { display: block; font-size: 12px; color: var(--tx2); } .mo-hd .hi b { font-size: 16px; font-weight: 600; }
.mo-av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #f1f1f1 center / cover; color: #111; font-size: 17px; font-weight: 600; }
.mo-av svg.i { width: 20px; height: 20px; }
.mo-t { margin: 16px 18px 0; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.3px; }
.mo-t em, .mo-hero em, .mo-splash em { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: 0; margin-top: 4px; }
.mo-sr { display: flex; gap: 10px; margin: 16px 18px 0; }
.mo-sr label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 25px; background: #f3f3f3; color: #8b8b8b; }
.mo-sr input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: #111; }
.mo-sr svg.i { width: 19px; height: 19px; }
.mo-sr .f { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #111; color: #fff; }
.mo-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px 2px; scrollbar-width: none; } .mo-chips::-webkit-scrollbar { display: none; }
.mo-chips a { flex: none; padding: 7px 18px; border-radius: 20px; font-size: 13px; background: #f3f3f3; color: #333; }
.mo-chips a.on { background: #111; color: #fff; font-weight: 600; }

/* แถบดำ ปุ่มขาว >>> */
.mo-bar { display: flex; align-items: center; gap: 12px; margin: 14px 18px 0; height: 62px; padding: 0 16px 0 7px; border-radius: 31px; background: #111; color: #fff; }
.mo-bar .tx { flex: 1; min-width: 0; padding-left: 14px; line-height: 1.2; } .mo-bar .tx small { display: block; font-size: 11px; color: #9a9a9a; } .mo-bar .tx b { font-size: 18px; font-weight: 600; }
.mo-bar .bt { height: 48px; padding: 0 24px; border-radius: 24px; display: grid; place-items: center; background: #fff; color: #111; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mo-bar:not(:has(.tx)) .bt { margin-right: auto; }
.mo-bar svg.chv { color: #fff; }

/* การ์ดสินค้า */
.mo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 0 18px; }
.mo-pc { display: block; min-width: 0; }
.mo-pc .im { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; background: #f2f2f2 center / cover; }
.mo-pc .hrt { right: 8px; top: 8px; width: 32px; height: 32px; }
.mo-pc .im em { position: absolute; right: 0; bottom: 0; font-style: normal; font-size: 12.5px; font-weight: 600; color: #fff; background: #111; padding: 6px 13px; border-radius: 16px 0 22px 0; border-top: 5px solid #fff; border-left: 5px solid #fff; border-top-left-radius: 20px; }
.mo-pc .nm { display: flex; align-items: baseline; gap: 6px; margin-top: 9px; } .mo-pc .nm b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-pc small { display: block; font-size: 11.5px; color: var(--tx2); }
.mo-tall { gap: 14px; } .mo-pc.tall { flex: none; width: 62%; max-width: 270px; scroll-snap-align: start; } .mo-pc.tall .im { aspect-ratio: 3 / 4; border-radius: 26px; } .mo-pc.tall .nm b { font-size: 15px; }
.mo-shop .sc { width: 260px; } .mo-shop .sc .im { height: 150px; }

/* H · ภาพเต็มบน ชื่อแบรนด์ตัวใหญ่ */
.mo-hero { position: relative; margin-top: calc(-6px - var(--stop)); padding-top: calc(var(--stop) + 8px); min-height: 600px; display: flex; flex-direction: column; background: #888 center 30% / cover; color: #fff; border-radius: 0 0 32px 32px; overflow: hidden; }
.mo-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 30%, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .78) 100%); }
.mo-hero > * { position: relative; }
.mo-hd.w .hi small { color: rgba(255, 255, 255, .75); } body.mo .mo-hd.w .ib { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.mo-hero .brand, .mo-splash b { display: block; margin: 46px 0 0; text-align: center; font-family: "Archivo Black", "Poppins", sans-serif; font-weight: 900; font-size: 104px; line-height: .9; letter-spacing: 2px; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .18); }
.mo-hero .ft { margin-top: auto; padding: 0 0 22px; }
.mo-hero h2 { margin: 0 20px; font-size: 25px; font-weight: 600; line-height: 1.25; } .mo-hero h2 em { display: inline; font-size: 26px; margin: 0 4px; }
.mo-hero p { margin: 8px 20px 0; font-size: 12.5px; opacity: .78; }
.mo-hero .mo-bar { background: rgba(0, 0, 0, .82); }
.mo-after .mo-bar { margin-top: 16px; }

/* I · การ์ดสมาชิกดำ */
.mo-card { display: block; margin: 16px 18px 0; padding: 18px 18px 8px; border-radius: 28px; background: #111; color: #fff; }
.mo-card .r1 { display: flex; align-items: center; } .mo-card small { font-size: 11.5px; color: #9a9a9a; display: block; }
.mo-card .ch { margin-left: auto; font-size: 11px; padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); }
.mo-card > b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -1px; margin: 2px 0 10px; }
.mo-card .r2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; font-weight: 600; } .mo-card .r2 > span { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.mo-bar.inn { margin: 14px -10px 0; background: #222; } .mo-bar.inn .bt { flex: 0 0 auto; width: auto; margin-right: auto; }

/* หน้าเข้าสู่ระบบ: ภาพเต็ม + ชื่อแบรนด์ */
.mo-splash { position: relative; margin-top: calc(-6px - var(--stop)); height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--stop) + 10px) 20px 22px; background: #888 center 20% / cover; color: #fff; border-radius: 0 0 32px 32px; overflow: hidden; }
.mo-splash::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .7)); }
.mo-splash > * { position: relative; } .mo-splash b { margin-top: 30px; font-size: 96px; }
.mo-splash p { font-size: 24px; font-weight: 600; line-height: 1.25; } .mo-splash p em { display: inline; font-size: 25px; margin: 0 4px 0 2px; }
body.mo .mo-splash + .auth { padding-top: 22px; } body.mo .mo-splash + .auth .logo { display: none; } body.mo .auth h1 { font-size: 23px; }

/* หน้าสินค้า: การ์ดภาพมน + ป้ายราคาดำ · แถบดำ (จำนวน · ปุ่มขาว · >>>) */
body.mo .pd-img { margin: 4px 18px 0; aspect-ratio: 4 / 4.4; border-radius: 30px; }
body.mo .pd-img .hrt { right: 14px; top: 14px; width: 42px; height: 42px; }
body.mo .ptag { display: block; position: absolute; right: 0; bottom: 0; padding: 10px 22px; font-size: 18px; font-weight: 700; color: #fff; background: #111; border-radius: 26px 0 30px 0; border-top: 7px solid #fff; border-left: 7px solid #fff; }
body.mo .pd-pr { display: none; }
body.mo .pd-d { box-shadow: none; }
body.mo .buybar { bottom: calc(12px + var(--sbot)); width: calc(100% - 28px); max-width: 452px; padding: 7px 14px 7px 7px; border: 0; border-radius: 32px; background: #111; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); }
body.mo .buybar .qty { height: 48px; border: 0; border-radius: 24px; background: #2a2a2a; color: #fff; }
body.mo .buybar .btn.ghost { display: none; }
body.mo .buybar .btn:not(.ghost) { background: #fff; color: #111; border-color: #fff; height: 48px; border-radius: 24px; }
body.mo .buybar .chev { display: block; color: #fff; }
@media (min-width: 520px) { body.mo .buybar { bottom: 34px; border-radius: 32px; } }
/* 2026-11-10 ขาว-ดำ: แท็บที่เลือกตัวขาว · ภาพหัวหน้าแรกสไลด์ได้ · ปุ่มในแถบดำลากไปขวาได้ */
body.mo .tabs a.on { background: #111; border-color: #111; color: #fff; }
.mo-hero > .slides { position: absolute; inset: 0; z-index: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mo-hero > .slides::-webkit-scrollbar { display: none; }
.mo-hero > .slides i { flex: none; width: 100%; height: 100%; scroll-snap-align: start; background: #888 center 30% / cover; }
.mo-hero::before { z-index: 1; pointer-events: none; }
.mo-hero > :not(.slides) { z-index: 2; }
.mo-hero .brand, .mo-hero .ft { pointer-events: none; } .mo-hero .ft .mo-bar, .mo-hero .mo-hd { pointer-events: auto; }
.mo-dots { display: flex; gap: 5px; margin: 14px 20px 0; } .mo-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: .25s; } .mo-dots i.on { width: 20px; background: #fff; }
.mo-hero .mo-bar { margin-top: 12px; }
.mo-bar[data-slide] { position: relative; user-select: none; -webkit-user-select: none; }
.mo-bar[data-slide] .bt { position: relative; z-index: 1; touch-action: pan-y; cursor: grab; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.mo-bar[data-slide].drag .bt { transition: none; cursor: grabbing; }
.mo-bar[data-slide] svg.chv path { animation: moChv 1.4s infinite; } .mo-bar[data-slide] svg.chv path:nth-child(2) { animation-delay: .2s; } .mo-bar[data-slide] svg.chv path:nth-child(3) { animation-delay: .4s; }
@keyframes moChv { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
/* 2026-11-11 ภาพขวดคู่กล่องในหน้าสินค้า */
.pd-set { display: block; width: calc(100% - 36px); margin: 14px 18px 0; border-radius: 22px; background: #fff; border: 1px solid #eee; }


/* 2026-11-11 ปุ่มธรรมดาในแถบที่มีข้อความ (ไม่มี >>>) */
.mo-bar.pl { padding-right: 7px; }

/* 2026-11-11 ทดลองแบนเนอร์น้ำเงินไล่เฉด ?hb=1|2|3 */
/* 1 ภาพเดิม + ฟิลเตอร์น้ำเงินไล่เฉด */
.mo-hero.hb1::before { background: linear-gradient(180deg, rgba(12, 30, 92, .55) 0%, rgba(37, 99, 235, .28) 38%, rgba(29, 78, 216, .45) 62%, rgba(7, 18, 64, .94) 100%); }
.mo-hero.hb1 .mo-bar { background: rgba(7, 20, 70, .78); backdrop-filter: blur(8px); }
.mo-hero.hb1 .mo-bar .bt { color: #0b2a8a; }
/* 2 น้ำเงินล้วน ไล่เฉด + วงแสง */
.mo-hero.hb2 { background: linear-gradient(165deg, #0a1a55 0%, #1638b8 42%, #2f6bf0 70%, #5cc8ff 100%); }
.mo-hero.hb2 > .slides, .mo-hero.hb2 .mo-dots { display: none; }
.mo-hero.hb2::before { background: radial-gradient(circle at 85% 18%, rgba(140, 220, 255, .55) 0, transparent 38%), radial-gradient(circle at 8% 62%, rgba(99, 102, 241, .5) 0, transparent 42%), linear-gradient(180deg, transparent 55%, rgba(5, 14, 52, .55) 100%); }
.mo-hero.hb2::after { content: ""; position: absolute; z-index: 1; width: 420px; height: 420px; right: -170px; top: 120px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 46px rgba(255, 255, 255, .05), 0 0 0 92px rgba(255, 255, 255, .035); pointer-events: none; }
.mo-hero.hb2 .brand { text-shadow: 0 10px 40px rgba(6, 20, 80, .35); }
.mo-hero.hb2 .mo-bar { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.mo-hero.hb2 .mo-bar .bt { color: #1638b8; }
/* 3 ภาพขาวดำ ย้อมโทนน้ำเงิน (duotone) */
.mo-hero.hb3 > .slides i { filter: grayscale(1) contrast(1.08) brightness(1.05); }
.mo-hero.hb3::before { background: linear-gradient(180deg, #3b6cf6 0%, #1d4ed8 45%, #0b1a5c 100%); mix-blend-mode: multiply; }
.mo-hero.hb3::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(120, 190, 255, .18) 0%, transparent 35%, rgba(4, 12, 48, .55) 78%, rgba(4, 12, 48, .85) 100%); }
.mo-hero.hb3 .mo-bar { background: #fff; }
.mo-hero.hb3 .mo-bar .bt { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; }
.mo-hero.hb3 .mo-bar svg.chv { color: #1d4ed8; }
/* ===== 2026-11-11 ดีไซน์ "Clean Beauty" (th-j/k/l → body.cl) · ref แอปเครื่องสำอาง: ขาวสะอาด การ์ดโปรสีตามสินค้า ชิปขอบเส้น ปุ่ม + ดำ ===== */
body.cl { --ac: #111; --ac2: #444; --acs: #f2f2f2; --tx: #151515; --tx2: #8e8e93; --ln: #ececec; --r: 20px; --sh: none; background: #e9e9ec; }
body.cl .app { background: #fff; }
body.cl .nav { border-top: 1px solid #f0f0f0; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .18); }
body.cl .nav a { color: #9b9ba1; } body.cl .nav a span { display: none; }
body.cl .nav a.on { color: #111; } body.cl .nav a.on svg { fill: none; }
body.cl .nav a.on::after { content: ""; width: 18px; height: 2.5px; border-radius: 2px; background: #111; margin-top: 4px; }
body.cl .nav svg.i { width: 23px; height: 23px; }
.cl-hd { display: flex; align-items: center; gap: 10px; padding: calc(var(--stop) + 18px) 20px 6px; }
.cl-hd .hi { flex: 1; min-width: 0; line-height: 1.2; } .cl-hd .hi small { display: block; font-size: 13px; color: #6b6b70; } .cl-hd .hi b { font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.cl-av { position: relative; overflow: hidden; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #f1f1f3; font-weight: 600; color: #111; }
.cl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-ib { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #f3f3f5; border: 0; color: #111; cursor: pointer; }
.cl-ib svg.i { width: 21px; height: 21px; } .cl-ib .bd { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px; background: #111; color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.cl-hs { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 20px 10px; } .cl-hs b { font-size: 17px; font-weight: 600; } .cl-hs a { font-size: 12.5px; color: #a0a0a6; }
.cl-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; } .cl-row::-webkit-scrollbar { display: none; }
/* การ์ดโปร */
.cl-promo { padding-top: 14px; }
.cl-pr { flex: none; width: 84%; max-width: 360px; height: 196px; border-radius: 22px; scroll-snap-align: start; position: relative; overflow: hidden; display: flex; color: #fff; background: radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .28) 0, transparent 46%), linear-gradient(140deg, var(--c1), var(--c2)); }
.cl-pr .tx { flex: 1; min-width: 0; padding: 16px 0 16px 18px; display: flex; flex-direction: column; z-index: 1; }
.cl-pr small { font-size: 12.5px; font-weight: 500; opacity: .9; }
.cl-pr b { font-size: 21px; line-height: 1.12; font-weight: 600; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.2px; }
.cl-pr em { font-style: normal; font-size: 11px; line-height: 1.35; opacity: .88; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-pr .go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); color: #222; font-size: 11.5px; font-weight: 600; }
.cl-pr .go i { width: 1px; height: 12px; background: #bbb; }
.cl-pr .im { width: 44%; flex: none; display: grid; place-items: center; position: relative; }
.cl-pr .im::before { content: ""; position: absolute; width: 132px; height: 132px; border-radius: 50%; background: #fff; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .35); }
.cl-pr .im img { position: relative; width: 116px; height: 116px; object-fit: contain; border-radius: 50%; }
.cl-promo.full { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px 0 0; gap: 0; } .cl-promo.full::-webkit-scrollbar { display: none; }
.cl-promo.full .cl-pr { width: calc(100% - 40px); max-width: none; margin: 0 20px; height: 210px; scroll-snap-align: center; }
.cl-promo.full .cl-pr + .cl-pr { margin-left: 0; }
.cl-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; } .cl-dots i { width: 6px; height: 6px; border-radius: 3px; background: #d6d6da; transition: .25s; } .cl-dots i.on { width: 18px; background: #111; }
/* ชิปหมวด / หมวดวงกลม */
.cl-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 2px; scrollbar-width: none; } .cl-chips::-webkit-scrollbar { display: none; }
.cl-chips a { flex: none; height: 40px; padding: 0 18px; border-radius: 20px; border: 1.3px solid #e3e3e6; display: grid; place-items: center; font-size: 13.5px; color: #222; white-space: nowrap; }
.cl-chips a:active { background: #111; color: #fff; border-color: #111; }
.cl-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding: 0 20px; }
.cl-cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; color: #333; }
.cl-cats span { width: 62px; height: 62px; border-radius: 50%; background: #f2f2f4 center / cover; border: 3px solid #fff; box-shadow: 0 0 0 1.3px #e6e6ea; }
/* การ์ดสินค้า */
.cl-pc { position: relative; flex: none; width: 46%; max-width: 200px; scroll-snap-align: start; border: 1.3px solid #ededf0; border-radius: 20px; padding: 10px 10px 12px; display: flex; flex-direction: column; background: #fff; }
.cl-pc .im { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.cl-pc .im img { width: 100%; height: 100%; object-fit: contain; }
.cl-pc .tg { position: absolute; z-index: 1; top: 0; left: 0; background: #111; color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .3px; padding: 3px 8px; border-radius: 8px; }
.cl-pc .hrt { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; color: #111; cursor: pointer; }
.cl-pc .hrt svg.i { width: 21px; height: 21px; } .cl-pc .hrt.on { color: #6cc24a; } .cl-pc .hrt.on svg { fill: #6cc24a; }
.cl-pc .nm { display: block; margin-top: 8px; min-height: 52px; } .cl-pc .nm small { display: block; font-size: 11.5px; color: #a3a3a8; }
.cl-pc .nm b { font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-pc .ft { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.cl-pc .pz { height: 30px; padding: 0 12px; border: 1.3px solid #e6e6ea; border-radius: 15px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
.cl-pc .pl { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #111; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.cl-pc .pl svg.i { width: 16px; height: 16px; stroke-width: 2.4; } .cl-pc .pl:disabled { opacity: .5; }
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px; } .cl-grid .cl-pc { width: auto; max-width: none; }
/* ร้านใกล้คุณ */
.cl-sc { flex: none; width: 62%; max-width: 250px; scroll-snap-align: start; }
.cl-sc .im { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; background: #eee center / cover; }
.cl-sc .im em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 11px; font-weight: 600; background: #fff; border-radius: 10px; padding: 2px 8px; }
.cl-sc b { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; } .cl-sc small { display: block; font-size: 12px; color: #9a9aa0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* K ช่องค้นหา */
.cl-sr { padding: 10px 20px 0; } .cl-sr label { display: flex; align-items: center; gap: 10px; height: 48px; border-radius: 24px; background: #f3f3f5; padding: 0 16px; color: #8e8e93; }
.cl-sr input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: 14px; color: #111; }
/* L การ์ด E-Coupon + ขายดี */
.cl-wl { display: flex; align-items: center; gap: 10px; margin: 14px 20px 0; padding: 16px 16px 16px 20px; border-radius: 22px; background: #111; color: #fff; }
.cl-wl span { flex: 1; min-width: 0; } .cl-wl small { display: block; font-size: 11.5px; color: #a7a7ad; } .cl-wl b { font-size: 24px; font-weight: 600; }
.cl-wl .r { text-align: right; } .cl-wl em { display: inline-grid; place-items: center; height: 34px; padding: 0 16px; margin-top: 6px; border-radius: 17px; background: #fff; color: #111; font-style: normal; font-size: 12.5px; font-weight: 600; }
.cl-list { margin: 0 20px; border: 1.3px solid #ededf0; border-radius: 20px; overflow: hidden; }
.cl-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #f0f0f2; } .cl-list a:first-child { border-top: 0; }
.cl-list .no { width: 22px; font-weight: 600; color: #b0b0b5; text-align: center; } .cl-list img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: #fff; }
.cl-list .t { flex: 1; min-width: 0; } .cl-list .t small { display: block; font-size: 11.5px; color: #a3a3a8; } .cl-list .t b { font-weight: 500; font-size: 13.5px; }
.cl-list .pz { font-weight: 600; font-size: 13.5px; }
body.cl .np { top: calc(var(--stop) + 70px); }body.cl .cl-dots { position: static; } body.cl .cl-dots i { width: 6px; height: 6px; background: #d6d6da; } body.cl .cl-dots i.on { width: 18px; background: #111; }

/* ===== 2026-11-11 ดีไซน์ฟ้าน้ำเงินไล่เฉด (th-m/n/o → body.lv) · โครงตาม ref แอปแว่นตาพาสเทล แต่สีฟ้า-น้ำเงิน ===== */
body.lv { --ac: #1d4ed8; --ac2: #3b82f6; --acs: #e6efff; --tx: #121a33; --tx2: #6b7591; --ln: #e2e8f5; --r: 22px; --sh: 0 12px 26px -18px rgba(29, 78, 216, .35); --lg: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #38bdf8 100%); background: #dfe7f6; }
body.lv .app { background: linear-gradient(180deg, #cfe0ff 0%, #e6efff 22%, #f5f8ff 46%, #fff 70%); }
.lv-hd { display: flex; align-items: center; gap: 10px; padding: calc(var(--stop) + 16px) 18px 4px; }
.lv-hd .hi { flex: 1; min-width: 0; line-height: 1.2; } .lv-hd .hi small { display: block; font-size: 12.5px; color: #5b6b8f; } .lv-hd .hi b { font-size: 19px; font-weight: 600; }
.lv-av { position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: #1d4ed8; font-weight: 600; border: 2px solid #fff; box-shadow: 0 6px 14px -8px rgba(29, 78, 216, .5); }
.lv-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-ib { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; border: 0; color: #1d4ed8; cursor: pointer; box-shadow: 0 6px 14px -10px rgba(29, 78, 216, .5); }
.lv-ib svg.i { width: 20px; height: 20px; } .lv-ib .bd { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.lv-sr { padding: 10px 18px 0; } .lv-sr label { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; background: #fff; padding: 0 16px 0 5px; box-shadow: 0 8px 20px -16px rgba(29, 78, 216, .6); max-width: 330px; }
.lv-sr .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e3ecff; color: #1d4ed8; flex: none; } .lv-sr .ic svg.i { width: 18px; height: 18px; }
.lv-sr input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: 13.5px; color: #111; }
/* การ์ดเด่น */
.lv-one { padding: 14px 18px 0; }
.lv-hero { position: relative; display: flex; min-height: 238px; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #fff 0%, #f1f6ff 55%, #dbe8ff 100%); box-shadow: 0 16px 34px -24px rgba(29, 78, 216, .55); }
.lv-hero.in { animation: lvIn .35s ease; } @keyframes lvIn { from { opacity: .3; transform: translateY(6px); } }
.lv-hero .tx { position: relative; z-index: 2; width: 58%; padding: 16px 0 16px 16px; display: flex; flex-direction: column; }
.lv-hero .ct { font-weight: 600; font-size: 15px; background: var(--lg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-hero b { font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.lv-hero small { font-size: 11px; color: #5b6b8f; line-height: 1.35; }
.lv-hero .lb { font-size: 10.5px; color: #6b7591; margin-top: 10px; }
.lv-hero .sw { display: flex; gap: 6px; margin-top: 4px; } .lv-hero .sw i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px #d5def0; cursor: pointer; } .lv-hero .sw i.on { box-shadow: 0 0 0 2px #1d4ed8; }
.lv-hero strong { margin-top: auto; padding-top: 10px; font-size: 22px; font-weight: 600; color: #1d4ed8; }
.lv-hero s { font-size: 11.5px; color: #8a93ab; } .lv-hero s em { font-style: normal; color: #1d4ed8; font-weight: 600; } .lv-hero s.z { text-decoration: none; }
.lv-hero .md { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: center 20% / cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.lv-hero .pi { position: absolute; z-index: 3; left: 44%; bottom: 14px; width: 84px; height: 84px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -12px rgba(18, 26, 51, .45); }
.lv-hero .pi img { width: 74px; height: 74px; object-fit: contain; }
.lv-slide { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; padding: 14px 18px 4px; scrollbar-width: none; } .lv-slide::-webkit-scrollbar { display: none; }
.lv-slide .lv-hero { flex: none; width: 100%; scroll-snap-align: center; }
body.lv .lv-dots { margin-top: 8px; } body.lv .lv-dots i { background: #c7d4ee; } body.lv .lv-dots i.on { background: #1d4ed8; }
/* หมวดวงกลม */
.lv-cats { display: flex; gap: 12px; overflow-x: auto; padding: 18px 18px 4px; scrollbar-width: none; } .lv-cats::-webkit-scrollbar { display: none; }
.lv-cats a { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: #4b5675; text-align: center; }
.lv-cats span { width: 64px; height: 54px; border-radius: 27px; background: #e6eeff center / cover; border: 3px solid #fff; box-shadow: 0 8px 18px -12px rgba(29, 78, 216, .6); }
/* แบนเนอร์ % */
.lv-ban { position: relative; display: flex; align-items: center; margin: 16px 18px 0; height: 118px; border-radius: 22px; overflow: hidden; background: linear-gradient(100deg, #dbe7ff 0%, #eef4ff 55%, #fff 100%); box-shadow: 0 14px 28px -22px rgba(29, 78, 216, .6); }
.lv-ban .md { width: 38%; height: 100%; background: center 25% / cover; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); flex: none; }
.lv-ban .tx { flex: 1; min-width: 0; padding: 0 70px 0 8px; display: flex; flex-direction: column; } .lv-ban .tx b { font-size: 16px; font-weight: 600; } .lv-ban .tx small { font-size: 11px; color: #5b6b8f; }
.lv-ban .tx em { align-self: flex-start; margin-top: 8px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #1d4ed8; background: #fff; border-radius: 12px; padding: 4px 12px; box-shadow: 0 4px 10px -6px rgba(29, 78, 216, .5); }
.lv-ban .pct { position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 12px; padding: 2px 10px; font-size: 11px; color: #5b6b8f; box-shadow: 0 4px 12px -6px rgba(29, 78, 216, .4); } .lv-ban .pct b { font-size: 18px; background: var(--lg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-ban img { position: absolute; right: 12px; bottom: 8px; width: 62px; height: 62px; object-fit: contain; border-radius: 14px; background: #fff; }
/* การ์ดสั่งเลย */
.lv-hs { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 18px 8px; } .lv-hs b { font-size: 16px; font-weight: 600; } .lv-hs a { font-size: 12.5px; color: #1d4ed8; }
.lv-od { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 6px 12px; margin: 14px 18px 0; padding: 12px; border-radius: 22px; background: linear-gradient(180deg, #f5f8ff, #edf3ff); border: 1px solid #e1e9fa; }
.lv-hs + .lv-od { margin-top: 0; }
.lv-od .im { width: 74px; height: 74px; border-radius: 16px; background: #fff; display: grid; place-items: center; } .lv-od .im img { width: 66px; height: 66px; object-fit: contain; }
.lv-od .tx { min-width: 0; } .lv-od .tx b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; } .lv-od .tx small { display: block; font-size: 11px; color: #6b7591; }
.lv-od .pr { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; } .lv-od .pr strong { font-size: 18px; font-weight: 600; } .lv-od .pr s { font-size: 11.5px; color: #8a93ab; }
.lv-od .tags { position: absolute; right: 12px; top: 54px; display: flex; gap: 4px; } .lv-od .tags span { font-size: 10px; border: 1px solid #c9d6f0; border-radius: 10px; padding: 1px 8px; color: #4b5675; background: #fff; }
.lv-od .ac { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.lv-od .go { height: 32px; padding: 0 16px; border-radius: 16px; border: 0; background: var(--lg); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(29, 78, 216, .8); }
.lv-od .fv { position: static; width: auto; height: 32px; padding: 0 12px; border-radius: 16px; border: 1.3px solid #c9d6f0; background: #fff; color: #4b5675; font: inherit; font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; }
.lv-od .fv.on { border-color: #1d4ed8; color: #1d4ed8; }
.lv-od .dt { margin-left: auto; display: flex; gap: 5px; } .lv-od .dt a { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px #d5def0; } .lv-od .dt a.on { box-shadow: 0 0 0 2px #1d4ed8; }
/* N สินค้า 2 คอลัมน์ */
.lv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px; }
.lv-gc { position: relative; padding: 8px 8px 10px; border-radius: 20px; background: linear-gradient(180deg, #f5f8ff, #edf3ff); border: 1px solid #e1e9fa; }
.lv-gc .im { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: #fff; overflow: hidden; } .lv-gc .im img { width: 88%; height: 88%; object-fit: contain; }
.lv-gc .im em { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff; background: var(--lg); border-radius: 10px; padding: 2px 8px; }
.lv-gc .hrt { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; color: #1d4ed8; box-shadow: 0 4px 10px -6px rgba(29, 78, 216, .6); }
.lv-gc .hrt svg.i { width: 18px; height: 18px; } .lv-gc .hrt.on svg { fill: #1d4ed8; }
.lv-gc b { display: block; margin: 8px 2px 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; min-height: 35px; }
.lv-gc .ft { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 0; } .lv-gc .ft strong { font-weight: 600; color: #1d4ed8; }
.lv-gc .ft button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--lg); color: #fff; display: grid; place-items: center; cursor: pointer; } .lv-gc .ft button svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
/* O การ์ด E-Coupon */
.lv-wl { display: flex; align-items: center; gap: 12px; margin: 12px 18px 0; padding: 16px 16px 16px 18px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .25) 0, transparent 40%), var(--lg); box-shadow: 0 16px 30px -18px rgba(29, 78, 216, .8); }
.lv-wl > span { flex: 1; min-width: 0; } .lv-wl small { display: block; font-size: 11.5px; opacity: .85; } .lv-wl b { font-size: 26px; font-weight: 600; } .lv-wl .mt { display: block; font-size: 11px; opacity: .8; }
.lv-wl em { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 19px; background: #fff; color: #1d4ed8; font-style: normal; font-size: 12.5px; font-weight: 600; } .lv-wl em svg.i { width: 17px; height: 17px; }
/* เมนูล่าง: แถบฟ้าอ่อน · หน้าที่เปิดเป็นแคปซูลขาว (ไอคอนวงน้ำเงิน + ชื่อ) · อื่นเป็นวงกลมขาว */
body.lv .nav { bottom: calc(10px + var(--sbot)); width: calc(100% - 24px); max-width: 456px; height: 64px; padding: 0 7px; align-items: center; gap: 6px; border: 0; border-radius: 32px; background: linear-gradient(90deg, #c9dbff, #dce8ff); box-shadow: 0 14px 30px -16px rgba(29, 78, 216, .55); }
body.lv .nav a { flex: 0 0 48px; height: 48px; border-radius: 24px; background: #fff; color: #1d4ed8; flex-direction: row; gap: 8px; font-size: 13px; }
body.lv .nav a span { display: none; } body.lv .nav a.on { flex: 1 1 auto; justify-content: flex-start; padding: 0 16px 0 5px; color: #1d4ed8; font-weight: 600; }
body.lv .nav a.on span { display: inline; } body.lv .nav a.on svg { fill: none; }
body.lv .nav a.on svg.i { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--lg); color: #fff; }
body.lv .nav svg.i { width: 21px; height: 21px; }
body.lv .np { top: calc(var(--stop) + 66px); }.lv-hero .wz { font-size: 11.5px; color: #8a93ab; } .lv-hero .wz em { font-style: normal; color: #1d4ed8; font-weight: 600; }
.lv-ban .pct { white-space: nowrap; top: 10px; right: 10px; padding: 1px 9px; } .lv-ban .pct b { font-size: 16px; } .lv-ban img { width: 54px; height: 54px; bottom: 10px; }
body.lv { --grad: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 45%, #38bdf8 100%); --tint: rgba(56, 189, 248, .2); --top: #e6efff; --gl: 29, 78, 216; } /* ตัวแปรที่หน้าอื่น (ปุ่ม/การ์ด E-Coupon/ราคา) ใช้ */
a.od { display: block; } /* 2026-11-11 การ์ดออเดอร์เป็นลิงก์ (inline) → กล่องเพี้ยนทุกธีม */

/* 2026-11-11 หัวหน้าย่อย (sub_head) ให้เหมือนหน้าแรกแบบ B: พื้นฟ้าไล่เฉดโปร่ง · ปุ่มวงกลมขาวมีเงา · ชื่อหน้าตัวหนา */
body.lv .sh { padding: calc(var(--stop) + 14px) 18px 10px; background: linear-gradient(180deg, rgba(207, 224, 255, .95) 0%, rgba(230, 239, 255, .88) 100%); }
body.lv .sh h1 { font-size: 18px; font-weight: 600; color: #121a33; margin-right: 44px; }
body.lv .sh .ib { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1d4ed8; box-shadow: 0 6px 14px -10px rgba(29, 78, 216, .55); }
body.lv .sh .ib svg.i { width: 20px; height: 20px; }
body.lv .sh-r { right: 18px; top: calc(var(--stop) + 14px); }
body.lv .sh .bd { background: #ef4444; }
body.lv .locbar { margin: 4px 18px 10px; border-radius: 23px; background: #fff; box-shadow: 0 8px 20px -16px rgba(29, 78, 216, .6); }
body.lv .locbar svg.i { color: #1d4ed8; } body.lv .locbar button { color: #1d4ed8; font-weight: 600; }body.lv .locbar { height: 44px; padding: 0 16px 0 14px; }
.shop .t small svg.i { width: 14px; height: 14px; vertical-align: -2px; } /* ไอคอนนาฬิกาในการ์ดร้านเคยใหญ่ */

/* ===== 2026-11-11 ดีไซน์ "Blue Band" (th-p/q/r → body.lv.bb · หน้าอื่นใช้สไตล์ lv ร่วม) ===== */
body.bb .app { background: #f4f7fd; }
.bb-top { position: relative; padding: calc(var(--stop) + 14px) 18px 20px; border-radius: 0 0 30px 30px; color: #fff; background: radial-gradient(circle at 88% 0, rgba(125, 211, 252, .55) 0, transparent 45%), linear-gradient(150deg, #172f7a 0%, #1d4ed8 55%, #3b82f6 100%); box-shadow: 0 18px 34px -24px rgba(29, 78, 216, .9); }
.bb-top.tall { padding-bottom: 96px; }
.bb-hd { display: flex; align-items: center; gap: 10px; }
.bb-hd .hi { flex: 1; min-width: 0; line-height: 1.25; } .bb-hd .hi small { display: block; font-size: 12px; opacity: .78; }
.bb-hd .hi a { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; } .bb-hd .hi a svg.i { width: 16px; height: 16px; }
.bb-av { position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; border: 2px solid rgba(255, 255, 255, .7); }
.bb-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .bb-av svg.i { width: 20px; height: 20px; }
.bb-ib { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.bb-ib svg.i { width: 20px; height: 20px; } .bb-ib .bd { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.bb-sr { display: flex; gap: 10px; margin-top: 16px; }
.bb-sr label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 48px; border-radius: 24px; background: #fff; padding: 0 6px 0 16px; color: #8a93ab; }
.bb-sr label svg.i { width: 19px; height: 19px; }
.bb-sr input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: 14px; color: #121a33; }
.bb-sr .sc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #eef3ff; color: #1d4ed8; } .bb-sr .sc svg.i { width: 18px; height: 18px; }
.bb-sr .ft { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: #1d4ed8; } .bb-sr .ft svg.i { width: 20px; height: 20px; }
.bb-hs { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 18px 10px; } .bb-hs b { font-size: 17px; font-weight: 600; } .bb-hs a { font-size: 12.5px; color: #1d4ed8; }
/* การ์ดโปร */
.bb-ofs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .bb-ofs::-webkit-scrollbar { display: none; }
.bb-of { flex: none; width: calc(100% - 36px); margin: 0 0 0 18px; scroll-snap-align: center; position: relative; height: 168px; border-radius: 22px; overflow: hidden; display: flex; background: linear-gradient(110deg, #ffffff 0%, #eef4ff 52%, #c7dbff 100%); border: 1px solid #e1e9fa; }
.bb-of:last-child { margin-right: 18px; }
.bb-of .tx { position: relative; z-index: 2; width: 58%; padding: 14px 0 14px 16px; display: flex; flex-direction: column; }
.bb-of .tg { align-self: flex-start; font-size: 10px; font-weight: 600; color: #fff; background: #121a33; border-radius: 8px; padding: 2px 8px; }
.bb-of b { font-size: 15px; font-weight: 600; line-height: 1.2; margin-top: 6px; color: #121a33; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-of .up { font-size: 11.5px; color: #5b6b8f; margin-top: 2px; } .bb-of .up strong { font-size: 30px; line-height: 1; font-weight: 700; color: #1d4ed8; font-style: italic; } .bb-of .up sup { font-size: 14px; }
.bb-of em { margin-top: auto; align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; padding: 7px 16px; border-radius: 16px; background: linear-gradient(120deg, #1e3a8a, #1d4ed8 45%, #38bdf8); box-shadow: 0 8px 16px -10px rgba(29, 78, 216, .9); }
.bb-of .md { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: center 18% / cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.bb-of .pi { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 60px; height: 60px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -10px rgba(18, 26, 51, .45); } .bb-of .pi img { width: 52px; height: 52px; object-fit: contain; }
body.bb .bb-dots { margin-top: 10px; } body.bb .bb-dots i { background: #c7d4ee; } body.bb .bb-dots i.on { background: #1d4ed8; }
.bb-over { margin-top: -80px; position: relative; z-index: 2; } .bb-over .bb-of { box-shadow: 0 18px 30px -20px rgba(18, 26, 51, .5); }
/* หมวด */
.bb-cat { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 2px; scrollbar-width: none; } .bb-cat::-webkit-scrollbar { display: none; }
.bb-cat a { flex: none; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 6px; border-radius: 21px; background: #fff; border: 1px solid #e1e9fa; font-size: 13px; color: #121a33; white-space: nowrap; }
.bb-cat a span { width: 30px; height: 30px; border-radius: 50%; background: #eef3ff center / cover; }
.bb-cat a.on { padding-left: 12px; color: #fff; border-color: transparent; background: linear-gradient(120deg, #1e3a8a, #1d4ed8 45%, #38bdf8); } .bb-cat a.on svg.i { width: 18px; height: 18px; }
.bb-circ { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 2px; scrollbar-width: none; } .bb-circ::-webkit-scrollbar { display: none; }
.bb-circ a { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: #4b5675; text-align: center; }
.bb-circ span { width: 60px; height: 60px; border-radius: 50%; background: #eef3ff center / cover; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #c7d8fb; }
/* การ์ดสินค้า */
.bb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px; }
.bb-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; } .bb-row::-webkit-scrollbar { display: none; }
.bb-pc { position: relative; padding: 8px 8px 10px; border-radius: 20px; background: #fff; border: 1px solid #e6ecf7; box-shadow: 0 10px 22px -20px rgba(29, 78, 216, .6); }
.bb-pc.w { flex: none; width: 46%; scroll-snap-align: start; }
.bb-pc .im { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: #f4f7fd; overflow: hidden; } .bb-pc .im img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.bb-pc .im em { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff; background: #ef4444; border-radius: 10px; padding: 2px 8px; }
.bb-pc .hrt { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; color: #8a93ab; box-shadow: 0 4px 10px -6px rgba(29, 78, 216, .6); }
.bb-pc .hrt svg.i { width: 18px; height: 18px; } .bb-pc .hrt.on { color: #ef4444; } .bb-pc .hrt.on svg { fill: #ef4444; }
.bb-pc .nm { display: block; margin: 8px 2px 0; } .bb-pc .nm b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; min-height: 35px; } .bb-pc .nm small { font-size: 11px; color: #8a93ab; }
.bb-pc .ft { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 0; } .bb-pc .ft strong { font-weight: 600; font-size: 15px; color: #1d4ed8; }
.bb-pc .ft button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: linear-gradient(120deg, #1e3a8a, #1d4ed8 45%, #38bdf8); color: #fff; display: grid; place-items: center; cursor: pointer; } .bb-pc .ft button svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
/* R การ์ด E-Coupon ในแถบหัว */
.bb-wl { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 14px 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.bb-wl > span { flex: 1; min-width: 0; } .bb-wl small { display: block; font-size: 11.5px; opacity: .8; } .bb-wl b { font-size: 26px; font-weight: 600; } .bb-wl .mt { display: block; font-size: 11px; opacity: .75; }
.bb-wl em { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 19px; background: #fff; color: #1d4ed8; font-style: normal; font-size: 12.5px; font-weight: 600; } .bb-wl em svg.i { width: 17px; height: 17px; }
/* เมนูล่าง: แคปซูลดำ · หน้าที่เลือก = วงน้ำเงินไล่เฉด */
body.bb .nav { bottom: calc(10px + var(--sbot)); width: calc(100% - 28px); max-width: 452px; height: 64px; padding: 0 8px; align-items: center; gap: 0; border: 0; border-radius: 32px; background: #111827; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
body.bb .nav a { flex: 1; height: 48px; border-radius: 24px; background: none; color: #9ca3af; padding: 0; justify-content: center; }
body.bb .nav a.on { flex: 1; padding: 0; justify-content: center; } body.bb .nav a.on span, body.bb .nav a span { display: none; }
body.bb .nav a.on svg.i { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: linear-gradient(120deg, #1e3a8a, #1d4ed8 45%, #38bdf8); color: #fff; box-shadow: 0 8px 18px -8px rgba(56, 189, 248, .8); }
body.bb .np { top: calc(var(--stop) + 70px); }.bb-hd .hi small { color: rgba(255, 255, 255, .85); opacity: 1; } .bb-row { scroll-padding: 0 18px; }

/* ===== 2026-11-11 ดีไซน์โหมดมืด/สว่าง ส้ม (th-s/t/u → body.dm) · html[data-mode=light|dark] สลับด้วยปุ่มบนหัว (app.js) ===== */
body.dm { --ac: #ff7a00; --ac2: #ff9a3c; --acs: rgba(255, 122, 0, .14); --grad: linear-gradient(120deg, #ff6a00 0%, #ff9a3c 100%); --tint: rgba(255, 122, 0, .12); --gl: 255, 122, 0;
  --bg0: #0d0d0d; --bg1: #151515; --sf: #1f1f1f; --sf2: #2a2a2a; --tx: #f4f4f5; --tx2: #a1a1aa; --ln: #2f2f33; --top: #1a1a1a; --sh: none; background: #000; color: var(--tx); color-scheme: dark; }
html[data-mode="light"] body.dm { --bg0: #ececec; --bg1: #f6f6f7; --sf: #ffffff; --sf2: #f1f1f3; --tx: #18181b; --tx2: #71717a; --ln: #e7e7ea; --top: #ffffff; background: #ddd; color-scheme: light; }
body.dm .app { background: linear-gradient(180deg, var(--bg1) 0, var(--bg0) 100%); color: var(--tx); }
html[data-mode="light"] body.dm .app { background: var(--bg1); }
body.dm, body.dm .app { transition: background-color .3s, color .3s; }
/* หัว */
.dm-hd { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: calc(var(--stop) + 10px) 16px 10px; background: var(--top); border-bottom: 1px solid var(--ln); }
.dm-logo { flex: 1; text-align: center; font-size: 22px; font-weight: 300; letter-spacing: 1px; color: var(--tx); line-height: 1; }
.dm-logo b { font-weight: 700; color: var(--ac); font-style: italic; } .dm-logo small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--tx2); margin-top: 2px; }
.dm-mode { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ln); background: var(--sf); color: var(--ac); display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.dm-mode svg.i { position: absolute; width: 20px; height: 20px; transition: transform .35s, opacity .35s; }
.dm-mode .s { transform: translateY(26px); opacity: 0; } html[data-mode="light"] .dm-mode .s { transform: none; opacity: 1; } html[data-mode="light"] .dm-mode .m { transform: translateY(-26px); opacity: 0; }
.dm-cart { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: var(--tx); } .dm-cart svg.i { width: 26px; height: 26px; }
.dm-cart .bd { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--ac); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.dm-av { position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sf2); color: var(--tx); font-weight: 600; border: 2.5px solid var(--ac); box-shadow: 0 0 0 2px var(--top) inset; }
.dm-av img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; object-fit: cover; } .dm-av svg.i { width: 20px; height: 20px; }
/* แถบส้มเมนูลัด */
.dm-act { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--grad); padding: 12px 6px; }
.dm-act a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12.5px; font-weight: 500; text-align: center; }
.dm-act span { display: grid; place-items: center; } .dm-act svg.i { width: 34px; height: 34px; stroke-width: 1.7; }
.dm-act.float { margin: -36px 16px 0; position: relative; z-index: 3; border-radius: 22px; box-shadow: 0 16px 30px -16px rgba(var(--gl), .8); }
.dm-act.in { background: rgba(255, 255, 255, .14); border-radius: 18px; margin-top: 14px; padding: 10px 4px; } .dm-act.in svg.i { width: 28px; height: 28px; }
/* ภาพใหญ่ */
.dm-hero { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .dm-hero::-webkit-scrollbar { display: none; }
.dm-hero a { flex: none; width: 100%; height: 300px; scroll-snap-align: start; background: #333 center 30% / cover; }
body.dm .dm-dots { margin-top: 10px; } body.dm .dm-dots i { background: var(--ln); } body.dm .dm-dots i.on { background: var(--ac); }
/* แบนเนอร์ */
.dm-ban { position: relative; display: flex; align-items: center; margin: 16px 12px 0; min-height: 124px; border-radius: 16px; overflow: hidden; background: #fff; color: #1b1b1b; box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .6); }
.dm-ban .tx { position: relative; z-index: 2; padding: 12px 0 12px 16px; display: flex; flex-direction: column; width: 40%; }
.dm-ban .tx small { font-size: 10.5px; color: #555; } .dm-ban .tx b { font-size: 17px; font-weight: 700; line-height: 1.15; } .dm-ban .tx b em { font-style: normal; color: var(--ac); }
.dm-ban .vc { align-self: flex-start; margin-top: 6px; font-size: 9px; letter-spacing: 1.5px; color: #fff; background: var(--ac); padding: 1px 8px; border-radius: 4px; }
.dm-ban .tx strong { font-size: 34px; line-height: 1; font-weight: 700; color: var(--ac); } .dm-ban .tx strong sup { font-size: 18px; }
.dm-ban .im { position: absolute; left: 38%; top: 50%; transform: translateY(-50%); width: 112px; height: 112px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35), 0 0 0 10px var(--ring, #f6efe7); display: grid; place-items: center; }
.dm-ban .im img { width: 88px; height: 88px; object-fit: contain; }
.dm-ban .go { margin-left: auto; padding-right: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.dm-ban .go em { font-style: normal; font-size: 15px; font-weight: 600; color: #fff; background: var(--grad); padding: 9px 18px; border-radius: 12px; box-shadow: 0 8px 16px -8px rgba(var(--gl), .8); }
.dm-ban .go small { font-size: 10px; color: #777; }
/* กล่องยอด 3 ช่อง */
.dm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 12px 0; }
.dm-tiles a { background: var(--sf); border: 1px solid var(--ln); border-radius: 12px; padding: 10px 10px 14px; color: var(--tx); }
.dm-tiles .h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.dm-tiles .h i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; } .dm-tiles .h svg.i { width: 15px; height: 15px; }
.dm-tiles b { display: block; text-align: center; font-size: 22px; font-weight: 600; margin-top: 8px; }
/* การ์ดยอดใหญ่ (U) */
.dm-wal { margin: 14px 12px 0; padding: 18px 16px 12px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 90% 0, rgba(255, 255, 255, .25) 0, transparent 45%), var(--grad); box-shadow: 0 18px 34px -20px rgba(var(--gl), .9); }
.dm-wal .t small { display: block; font-size: 12px; opacity: .9; } .dm-wal .t b { font-size: 32px; font-weight: 700; }
.dm-wal .r { display: flex; gap: 10px; margin-top: 8px; } .dm-wal .r span { flex: 1; background: rgba(0, 0, 0, .15); border-radius: 12px; padding: 8px 10px; font-weight: 600; } .dm-wal .r small { display: block; font-size: 11px; font-weight: 400; opacity: .85; }
/* หัวข้อ + สินค้า */
.dm-hs { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 14px 10px; } .dm-hs b { font-size: 16px; font-weight: 600; color: var(--tx); } .dm-hs a { font-size: 13px; color: var(--tx); }
.dm-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 12px; scrollbar-width: none; } .dm-row::-webkit-scrollbar { display: none; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.dm-pc { position: relative; padding: 8px 8px 10px; border-radius: 16px; background: var(--sf); border: 1px solid var(--ln); }
.dm-pc.w { flex: none; width: 44%; scroll-snap-align: start; }
.dm-pc .im { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: #fff; overflow: hidden; } .dm-pc .im img { width: 88%; height: 88%; object-fit: contain; }
.dm-pc .hrt { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 0; display: grid; place-items: center; color: #fff; }
.dm-pc .hrt svg.i { width: 17px; height: 17px; } .dm-pc .hrt.on svg { fill: var(--ac); color: var(--ac); }
.dm-pc .nm { display: block; margin: 8px 2px 0; } .dm-pc .nm b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; min-height: 35px; color: var(--tx); } .dm-pc .nm small { font-size: 11px; color: var(--tx2); }
.dm-pc .ft { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 0; } .dm-pc .ft strong { font-weight: 600; font-size: 15px; color: var(--ac); }
.dm-pc .ft button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; } .dm-pc .ft button svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.dm-sc { flex: none; width: 60%; scroll-snap-align: start; color: var(--tx); }
.dm-sc .im { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; background: #333 center / cover; }
.dm-sc .im em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 11px; font-weight: 600; background: var(--ac); color: #fff; border-radius: 8px; padding: 2px 8px; }
.dm-sc b { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; } .dm-sc small { display: block; font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* เมนูล่าง */
body.dm .nav { background: var(--top); border-top: 1px solid var(--ln); border-radius: 0; }
body.dm .nav a { color: var(--tx2); } body.dm .nav a.on { color: var(--ac); } body.dm .nav a.on svg { fill: none; }
/* หน้าอื่นในโหมดนี้: พื้น/การ์ด/ช่องกรอก/แท็บ ใช้สีตามโหมด */
body.dm .sh { background: var(--top); border-bottom: 1px solid var(--ln); color: var(--tx); }
body.dm .sh .ib, body.dm .ib { background: var(--sf2); color: var(--tx); }
body.dm .card, body.dm .np, body.dm .buybar, body.dm .pd-img, body.dm .tabs a, body.dm .chips a, body.dm .in, body.dm .search, body.dm .sr label, body.dm .qty, body.dm .qty input, body.dm .locbar, body.dm .tg2 { background-color: var(--sf); color: var(--tx); border-color: var(--ln); }
/* 2026-11-19: บังคับสี option ใน <select> ธีมมืด เพราะ Chrome ไม่รับสีที่ inherit มาจาก .in เข้าไปใน popup ของ option ทำให้ตัวเลือกจางอ่านไม่ออก */
body.dm select.in option { background-color: var(--sf); color: var(--tx); }
body.dm .pd-img { background-color: #fff; }
body.dm .tabs a.on, body.dm .chips a.on { background: var(--grad); color: #fff; }
body.dm .mut, body.dm small, body.dm .empty { color: var(--tx2); }
body.dm .np a b, body.dm h1, body.dm h2, body.dm h3, body.dm b, body.dm strong { color: inherit; }
body.dm .toast { background: var(--sf2); color: var(--tx); }body.dm .wcard small, body.dm .wcard .mut, body.dm .sl small { color: rgba(255, 255, 255, .88); } /* ตัวหนังสือเล็กบนการ์ดส้ม */
body.dm .lot .rg span { background: var(--sf); color: var(--tx); }

/* ===== 2026-11-11 แบบ A (โหมดมืด/สว่าง) สีน้ำเงินไล่เฉด 3 โทน: b1 กรมท่า→ฟ้า · b2 คราม→ฟ้าน้ำทะเล (สด) · b3 น้ำเงินเข้มพรีเมียม ===== */
body.dm.b1 { --ac: #3b82f6; --ac2: #60a5fa; --acs: rgba(59, 130, 246, .16); --gl: 37, 99, 235; --ring: #e3edff;
  --grad: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #38bdf8 100%); --bg0: #070d1c; --bg1: #0c1428; --sf: #131d36; --sf2: #1b2745; --ln: #24314f; --top: #0c1428; --tx2: #9aa8c7; }
body.dm.b2 { --ac: #06b6d4; --ac2: #22d3ee; --acs: rgba(6, 182, 212, .16); --gl: 14, 116, 220; --ring: #dcf6fb;
  --grad: linear-gradient(120deg, #4338ca 0%, #2563eb 50%, #06b6d4 100%); --bg0: #05070f; --bg1: #0a0f1e; --sf: #11182c; --sf2: #19223a; --ln: #222c47; --top: #0a0f1e; --tx2: #94a3c4; }
body.dm.b3 { --ac: #60a5fa; --ac2: #93c5fd; --acs: rgba(96, 165, 250, .16); --gl: 30, 64, 175; --ring: #e6eefc;
  --grad: linear-gradient(135deg, #0b1533 0%, #1e40af 55%, #3b82f6 100%); --bg0: #04060c; --bg1: #090d18; --sf: #10172a; --sf2: #182139; --ln: #1f2a44; --top: #090d18; --tx2: #8e9bb8; }
html[data-mode="light"] body.dm.b1 { --bg0: #e4ecfb; --bg1: #f3f7ff; --sf: #fff; --sf2: #eaf1ff; --ln: #dde6f6; --top: #fff; --tx2: #5f6d8c; }
html[data-mode="light"] body.dm.b2 { --bg0: #e2f3fb; --bg1: #f2fbff; --sf: #fff; --sf2: #e6f7fc; --ln: #d8ebf3; --top: #fff; --tx2: #5b6f86; }
html[data-mode="light"] body.dm.b3 { --bg0: #e6eaf3; --bg1: #f5f7fb; --sf: #fff; --sf2: #edf1f8; --ln: #dfe4ee; --top: #fff; --tx2: #5e6a82; }
/* b3: แถบเมนูลัดมีขอบทองบาง ๆ ให้ดูพรีเมียม · b2: ไอคอนในแถบมีวงโปร่ง */
body.dm.b3 .dm-act { box-shadow: inset 0 -2px 0 rgba(147, 197, 253, .45); }
body.dm.b2 .dm-act span { width: 50px; height: 50px; border-radius: 16px; background: rgba(255, 255, 255, .16); } body.dm.b2 .dm-act svg.i { width: 28px; height: 28px; }
body.dm.b1 .dm-logo b, body.dm.b2 .dm-logo b, body.dm.b3 .dm-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
body.dm.b3 .dm-logo b { background: linear-gradient(120deg, #60a5fa, #bfdbfe); -webkit-background-clip: text; background-clip: text; }
/* 2026-11-11 ลูกค้า: พื้น/การ์ดให้เป็นเทา-ดำเหมือนแบบส้มเดิม · เฉพาะปุ่ม/แถบ/ไอคอนเป็นน้ำเงิน → คืนค่าพื้นเป็นกลางให้ b1/b2/b3 */
body.dm.b1, body.dm.b2, body.dm.b3 { --bg0: #0d0d0d; --bg1: #151515; --sf: #1f1f1f; --sf2: #2a2a2a; --ln: #2f2f33; --top: #1a1a1a; --tx2: #a1a1aa; }
html[data-mode="light"] body.dm.b1, html[data-mode="light"] body.dm.b2, html[data-mode="light"] body.dm.b3 { --bg0: #ececec; --bg1: #f6f6f7; --sf: #fff; --sf2: #f1f1f3; --ln: #e7e7ea; --top: #fff; --tx2: #71717a; }
body.dm.b1 .dm-ban .im, body.dm.b2 .dm-ban .im, body.dm.b3 .dm-ban .im { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35), 0 0 0 10px #eef0f3; }
/* ชื่อกล่องยอดไม่ตัดบรรทัด (จอแคบ "E-Coupon" / "BV เดือนนี้" เคยขึ้น 2 บรรทัด) */
.dm-tiles .h { font-size: 12px; white-space: nowrap; gap: 5px; } .dm-tiles .h i { width: 22px; height: 22px; } .dm-tiles .h svg.i { width: 13px; height: 13px; }body.dm .promo { background: linear-gradient(110deg, var(--acs), var(--sf)); border-color: var(--ln); color: var(--tx); } /* หน้าร้าน: การ์ดโปรเดิมไล่ไปขาว อ่านไม่ออกในโหมดมืด */
body.dm .btn.line { background: var(--sf); color: var(--tx); border-color: var(--ln); }
body.dm .locbar { height: 44px; padding: 0 16px 0 14px; border-radius: 22px; border: 1px solid var(--ln); }

/* 2026-11-11 กล่องยอดรองรับยอดหลักหมื่น/แสน/ล้าน: ย่อตัวเลขตามความยาว ไม่ตัด ไม่ล้นกล่อง */
.dm-tiles b { white-space: nowrap; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.dm-tiles b.n1 { font-size: 22px; } .dm-tiles b.n2 { font-size: 18px; } .dm-tiles b.n3 { font-size: 15.5px; } .dm-tiles b.n4 { font-size: 13.5px; }
/* b: E-Coupon เต็มแถว + 2 ช่องล่าง */
.dm-tiles.tb { grid-template-columns: 1fr 1fr; }
.dm-tiles.tb .wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 12px 14px 14px; }
.dm-tiles.tb .wide .h { grid-column: 1 / -1; } .dm-tiles.tb .wide b { text-align: left; font-size: 30px; margin-top: 6px; }
.dm-tiles.tb .wide b.n3 { font-size: 26px; } .dm-tiles.tb .wide b.n4 { font-size: 22px; }
.dm-tiles.tb .wide em { font-style: normal; font-size: 12.5px; color: var(--ac); font-weight: 500; padding-bottom: 6px; }
.dm-tiles.tb a:not(.wide) b.n1, .dm-tiles.tb a:not(.wide) b.n2 { font-size: 21px; } .dm-tiles.tb a:not(.wide) b.n3 { font-size: 19px; } .dm-tiles.tb a:not(.wide) b.n4 { font-size: 17px; }
/* c: แถวรายการในการ์ดเดียว (ตัวเลขยาวแค่ไหนก็พอ) */
.dm-tiles.tc { display: block; background: var(--sf); border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; }
.dm-tiles.tc a { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 0; padding: 12px 14px; border-top: 1px solid var(--ln); background: none; }
.dm-tiles.tc a:first-child { border-top: 0; }
.dm-tiles.tc i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; } .dm-tiles.tc i svg.i { width: 16px; height: 16px; }
.dm-tiles.tc span { flex: 1; font-size: 14px; } .dm-tiles.tc b { margin: 0; font-size: 20px; text-align: right; } .dm-tiles.tc em { font-style: normal; color: var(--tx2); font-size: 18px; }
/* 2026-11-11 การ์ดคอมมิชชั่นเต็มแถว + กราฟเส้น (a พื้นที่เต็มกว้าง / b กราฟเล็ก+แท็บช่วงเวลา / c จุดทุกเดือน แตะดูยอด) */
.dm-tiles .com { grid-column: 1 / -1; display: block; background: var(--sf); border: 1px solid var(--ln); border-radius: 14px; padding: 12px 14px 10px; color: var(--tx); position: relative; overflow: hidden; }
.dm-tiles .com::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 70%); pointer-events: none; }
.dm-tiles .com .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.dm-tiles .com b { text-align: left; font-size: 30px; margin: 0; } .dm-tiles .com b.n3 { font-size: 26px; } .dm-tiles .com b.n4 { font-size: 22px; }
.dm-tiles .com .up { flex: none; font-size: 11px; font-weight: 600; color: #fff; background: #06b6d4; border-radius: 10px; padding: 2px 9px; white-space: nowrap; }
.dm-tiles .com .cw { position: relative; display: block; margin-top: 6px; }
.dm-tiles .com svg.sp { display: block; width: 100%; height: 84px; overflow: visible; margin: 0; padding: 0; }   /* 2026-11-17 กันคลาส .sp ส่วนกลาง (margin 12px 18px) ทำให้จุดกับเส้นไม่ตรงกัน */
.dm-tiles .com .ln { fill: none; stroke: #22d3ee; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dm-tiles .com .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #22d3ee; border: 2.5px solid var(--sf); box-shadow: 0 0 0 4px rgba(34, 211, 238, .3), 0 0 14px rgba(34, 211, 238, .8); }
.dm-tiles .com .mo { display: flex; justify-content: space-between; padding: 4px 2px 0; } .dm-tiles .com .mo i { font-style: normal; font-size: 10.5px; color: var(--tx2); }
.dm-tiles .com .ft { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ln); font-size: 12px; color: var(--ac); font-weight: 500; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; background: none; padding-left: 0; padding-right: 0; padding-bottom: 0; }
.dm-tiles .com .ft span { color: var(--tx2); font-weight: 400; font-size: 11px; }
/* b */
.dm-tiles .com.gb .row { align-items: flex-end; } .dm-tiles .com.gb .l { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .dm-tiles .com.gb .up { align-self: flex-start; }
.dm-tiles .com.gb svg.sp { width: 46%; height: 64px; flex: none; }
.dm-tiles .com .tabs3 { display: flex; gap: 4px; margin-top: 10px; background: var(--sf2); border-radius: 10px; padding: 3px; }
.dm-tiles .com .tabs3 button { flex: 1; border: 0; background: none; color: var(--tx2); font: inherit; font-size: 12px; padding: 5px; border-radius: 8px; cursor: pointer; }
.dm-tiles .com .tabs3 button.on { background: var(--grad); color: #fff; font-weight: 600; }
.dm-tiles .com .sp path { transition: d .45s ease; }
/* c */
.dm-tiles .com.gc svg.sp { height: 110px; } .dm-tiles .com .gd { stroke: var(--ln); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.dm-tiles .com .pt { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 0; background: none; cursor: pointer; padding: 0; }
.dm-tiles .com .pt::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sf); border: 2.5px solid #22d3ee; }
.dm-tiles .com .pt.on::after { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .3); }
.dm-tiles .com .tip { position: absolute; transform: translate(-90%, -150%); white-space: nowrap; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(120deg, #4338ca, #2563eb 50%, #06b6d4); border-radius: 8px; padding: 3px 8px; pointer-events: none; }.dm-tiles.tb .com { display: block; padding: 12px 14px 10px; } /* กันกฎ .wide (grid 2 คอลัมน์) ของแบบ b เดิม */
.dm-tiles .com .mo { display: flex; } .dm-tiles .com .row { display: flex; } .dm-tiles .com .tabs3 { display: flex; } .dm-tiles .com .ft { display: flex; }
/* 2026-11-11 โลโก้กลางจอจริง (เดิมซ้ายมีปุ่ม 1 ปุ่ม ขวามี 2 ปุ่ม → โลโก้เยื้องซ้าย) */
.dm-hd { position: sticky; } .dm-logo { position: absolute; left: 50%; transform: translateX(-50%); flex: none; pointer-events: auto; } .dm-cart { margin-left: auto; }

/* 2026-11-11 ร้านใกล้ฉัน · สลับ รายการ / แผนที่ (nearby.php) */
.nbm { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; top: var(--nbt, 60px); bottom: calc(68px + var(--sbot)); z-index: 10; overflow: hidden; isolation: isolate; background: var(--sf2, #e9edf3); }
.nbm[hidden] { display: none; }
.app.nb-onmap { padding-bottom: 0; min-height: 100vh; overflow: hidden; }
.nbm-map { position: absolute; inset: 0; z-index: 0; }
.nbm-map .leaflet-tile-pane { filter: saturate(.55) brightness(1.04) contrast(.95); }
html[data-mode="dark"] .nbm-map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) saturate(.35) brightness(.82) contrast(.9); }
html[data-mode="dark"] .nbm .leaflet-control-attribution { background: rgba(0, 0, 0, .55); color: #999; } html[data-mode="dark"] .nbm .leaflet-control-attribution a { color: #bbb; }
.nbm-chips { position: absolute; left: 0; right: 0; top: 10px; z-index: 600; display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 6px; scrollbar-width: none; }
.nbm-chips::-webkit-scrollbar { display: none; }
.nbm-chips a { flex: none; font-size: 13px; font-weight: 500; padding: 7px 15px; border-radius: 999px; background: var(--sf, #fff); color: var(--tx); border: 1px solid var(--ln); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.nbm-chips a.on { background: var(--grad); color: #fff; border-color: transparent; }
.nbm-fab { position: absolute; right: 14px; bottom: calc(var(--shh, 44%) + 14px); z-index: 600; width: 46px; height: 46px; border-radius: 50%; background: var(--sf, #fff); color: #22d3ee; border: 1px solid var(--ln); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: bottom .42s cubic-bezier(.2, .9, .25, 1.05); }
.nbm-fab svg.i { width: 22px; height: 22px; }
.nbm-me { display: block; width: 22px; height: 22px; border-radius: 50%; background: #2563eb; border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(34, 211, 238, .28), 0 2px 8px rgba(0, 0, 0, .3); }
.nbm-pin { display: block; width: 44px; height: 54px; position: relative; cursor: pointer; }
.nbm-pin::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); transition: background .2s; }
.nbm-pin span { position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; background: #ddd center / cover; }
.nbm-pin.on::before { background: linear-gradient(120deg, #4338ca, #2563eb 50%, #06b6d4); }
.nbm-pin.on { transform: scale(1.15); transform-origin: 50% 100%; }
.nbm-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 650; height: 44%; display: flex; flex-direction: column; background: var(--top, #fff); color: var(--tx); border-radius: 24px 24px 0 0; border-top: 1px solid var(--ln); box-shadow: 0 -10px 30px rgba(0, 0, 0, .3); transition: height .42s cubic-bezier(.2, .9, .25, 1.05); }
.nbm-sheet .grab { display: block; height: 22px; position: relative; cursor: grab; touch-action: none; }
.nbm-sheet .grab::after { content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: var(--ln); }
.nbm-sheet .hd { display: flex; align-items: baseline; gap: 8px; padding: 0 18px 8px; cursor: grab; touch-action: none; user-select: none; }
.nbm-sheet .hd b { font-size: 16px; } .nbm-sheet .hd small { font-size: 12px; color: var(--tx2); }
.nbm-sheet .nbm-scr { flex: 1; overflow-y: auto; padding: 0 10px 14px; }
.nbm-row { display: flex; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 16px; color: var(--tx); transition: background .2s; }
.nbm-row.on { background: var(--sf2); }
.nbm-row .im { width: 60px; height: 60px; border-radius: 14px; background: #333 center / cover; flex: none; }
.nbm-row .t { flex: 1; min-width: 0; } .nbm-row .t b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbm-row .t small { display: block; font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbm-row .t em { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-style: normal; font-size: 11.5px; font-weight: 500; color: #22d3ee; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nbm-row .t em svg.i { width: 13px; height: 13px; flex: none; }
html[data-mode="light"] .nbm-row .t em { color: #0891b2; }
.nbm-row .km { text-align: center; font-size: 11px; color: var(--tx2); flex: none; min-width: 40px; } .nbm-row .km b { display: block; font-size: 16px; color: #22d3ee; } html[data-mode="light"] .nbm-row .km b { color: #0891b2; }

/* A: แถบสลับใต้หัว */
.nb-segw { position: sticky; top: var(--shh0, 57px); z-index: 19; padding: 10px 18px; background: var(--top); }
body.dm .nb-segw { border-bottom: 1px solid var(--ln); }
.nb-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--sf2); border: 1px solid var(--ln); }
.nb-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 500; color: var(--tx2); background: none; border: 0; cursor: pointer; transition: background .2s, color .2s; }
.nb-seg button svg.i { width: 18px; height: 18px; }
.nb-seg button.on { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .8); }
/* B: ปุ่มลอยกลางล่าง */
.nb-fl { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(68px + var(--sbot) + 16px); z-index: 700; transition: bottom .42s cubic-bezier(.2, .9, .25, 1.05); }
.nb-fl button { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -6px rgba(37, 99, 235, .7), 0 0 0 3px rgba(34, 211, 238, .25); cursor: pointer; }
.nb-fl button svg.i { width: 19px; height: 19px; }
.nb-fl button:not(.on) { display: flex; }
.nb-onmap .nb-fl { bottom: calc(68px + var(--sbot) + var(--shh, 44vh) + 14px); }
.nb-b .nbm-fab { right: 14px; }
.app:not(.nb-onmap) .nb-fl { bottom: calc(68px + var(--sbot) + 16px); }
/* C: ไอคอนมุมขวาบน */
.nb-ict { display: flex; padding: 3px; border-radius: 12px; background: var(--sf2); border: 1px solid var(--ln); }
.nb-ict button { width: 36px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 0; background: none; color: var(--tx2); cursor: pointer; }
.nb-ict button svg.i { width: 18px; height: 18px; }
.nb-ict button.on { background: var(--grad); color: #fff; }
/* 2026-11-11 แถบชื่อหน้า + ปุ่มสลับ (ร้านใกล้ฉัน แบบ C ใต้หัวหน้าแรก) */
.nb-ttl { position: sticky; top: var(--shh0, 63px); z-index: 19; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--top); border-bottom: 1px solid var(--ln); }
.nb-ttl h1 { font-size: 17px; font-weight: 600; flex: 1; }
/* 2026-11-11 สายงาน: ผังแบบ ref (เส้นหักมุมมน · รูปเล็ก · หลายชั้น) · tree.php ?tv=a|b|c */
body[class*="tv-"] { --btl: rgba(148, 163, 184, .38); }
html[data-mode="light"] body[class*="tv-"] { --btl: #c7d2e0; }
.bt-ttl { display: flex; align-items: center; gap: 10px; padding: 14px 18px 6px; }
.bt-ttl h1 { flex: 1; font-size: 17px; font-weight: 600; }
.bt-ttl .bk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sf2); color: var(--tx); border: 1px solid var(--ln); } .bt-ttl .bk svg.i { width: 18px; height: 18px; }
.bt-ttl .iv { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: #fff; padding: 7px 14px; border-radius: 999px; background: var(--grad); box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .8); } .bt-ttl .iv svg.i { width: 15px; height: 15px; }
/* รูป / ตัวอักษรแรก */
.bt-n .av, .bt-me .av, .bt-root .av, .bt-rc .av { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
.bt-n .av img, .bt-me .av img, .bt-root .av img, .bt-rc .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* การ์ดหัว */
.bt-me { display: flex; align-items: center; gap: 12px; margin: 6px 18px 0; padding: 14px; }
.bt-me .av.big, .bt-root .av.big { width: 54px; height: 54px; font-size: 20px; box-shadow: 0 0 0 2px var(--top), 0 0 0 4px #22d3ee; }
.bt-me .t, .bt-root .t { flex: 1; min-width: 0; } .bt-me .t b, .bt-root .t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-me .t small, .bt-root .t small { display: block; font-size: 11.5px; color: var(--tx2); }
.bt-me .pl { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: #fff; background: #06b6d4; padding: 1px 9px; border-radius: 999px; }
.bt-me .tot, .bt-root .tot { text-align: right; flex: none; } .bt-me .tot small, .bt-root .tot small { display: block; font-size: 10.5px; color: var(--tx2); }
.bt-me .tot b, .bt-root .tot b { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 18px 0; }
.bt-legs .card { padding: 10px 12px; } .bt-legs small { font-size: 11px; color: var(--tx2); display: block; }
.bt-legs b { display: block; font-size: 18px; font-weight: 700; } .bt-legs b i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--tx2); }
.bt-legs .l b { color: #60a5fa; } .bt-legs .r b { color: #22d3ee; }
.bt-legs .br { display: block; height: 4px; border-radius: 3px; background: var(--sf2); margin-top: 6px; overflow: hidden; } .bt-legs .br i { display: block; height: 100%; border-radius: 3px; }
.bt-legs .l .br i { background: linear-gradient(90deg, #4338ca, #3b82f6); } .bt-legs .r .br i { background: linear-gradient(90deg, #2563eb, #22d3ee); }
.bt-weak { margin: 10px 18px 0; font-size: 11.5px; color: var(--tx2); text-align: center; } .bt-weak span { display: inline-block; margin-right: 6px; font-weight: 600; color: #fff; background: #06b6d4; padding: 1px 10px; border-radius: 999px; }
/* ผัง */
.bt { margin: 12px 18px 0; padding: 16px 6px 14px; overflow: hidden; }
.bt-tree { display: flex; justify-content: center; }
.bt-n { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.bt-n > .nd { display: flex; flex-direction: column; align-items: center; max-width: 100%; color: var(--tx); text-align: center; line-height: 1.25; }
.bt-n .nd .cd { font-size: 8.5px; color: var(--tx2); margin-top: 3px; white-space: nowrap; }
.bt-n .nd b { font-size: 9.5px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bt-n .nd em { font-style: normal; font-size: 9px; font-weight: 600; color: #22d3ee; white-space: nowrap; } html[data-mode="light"] .bt-n .nd em { color: #0891b2; }
.bt-n .av { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 0 0 1.5px var(--top), 0 0 0 3px rgba(34, 211, 238, .55); }
.bt-n.l0 .av { width: 50px; height: 50px; font-size: 18px; box-shadow: 0 0 0 2px var(--top), 0 0 0 4px #22d3ee; } .bt-n.l0 > .nd .cd { font-size: 10px; } .bt-n.l0 > .nd b { font-size: 12px; } .bt-n.l0 > .nd em { font-size: 11px; }
.bt-n.l1 .av { width: 38px; height: 38px; font-size: 14px; } .bt-n.l1 > .nd .cd { font-size: 9px; } .bt-n.l1 > .nd b { font-size: 10.5px; } .bt-n.l1 > .nd em { font-size: 10px; }
.bt-n.l2 .av { width: 32px; height: 32px; font-size: 12px; }
.bt-n.l3 .av, .bt-n.l4 .av { width: 26px; height: 26px; font-size: 10px; } .bt-n.l3 > .nd .cd, .bt-n.l4 > .nd .cd { font-size: 7.5px; }
.bt-n.emp .av { background: none; border: 1.5px dashed rgba(34, 211, 238, .7); color: #22d3ee; box-shadow: none; font-size: 14px; }
.bt-n.emp .nd b { color: var(--tx2); font-weight: 500; }
.bt-k { display: flex; width: 100%; position: relative; margin-top: 10px; }
.bt-k::before { content: ""; position: absolute; left: 50%; top: -10px; height: 10px; border-left: 1.5px solid var(--btl); }
.bt-c { flex: 1 1 0; min-width: 0; position: relative; padding-top: 12px; display: flex; justify-content: center; }
.bt-c::before { content: ""; position: absolute; top: 0; height: 12px; border-top: 1.5px solid var(--btl); }
.bt-c.L::before { left: 50%; right: 0; border-left: 1.5px solid var(--btl); border-top-left-radius: 10px; }
.bt-c.R::before { left: 0; right: 50%; border-right: 1.5px solid var(--btl); border-top-right-radius: 10px; }
/* B: ผังกว้าง เลื่อน/ซูม */
.bt.wide { padding: 0 0 8px; }
.bt-zb { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--ln); } .bt-zb span { flex: 1; font-size: 11.5px; color: var(--tx2); }
.bt-zb button { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--ln); background: var(--sf2); color: var(--tx); font: inherit; font-size: 12px; display: grid; place-items: center; cursor: pointer; } .bt-zb button svg.i { width: 16px; height: 16px; }
.bt-pan { overflow: auto; padding: 14px 0 6px; cursor: grab; scrollbar-width: thin; }
.bt.wide .bt-tree { width: 1120px; }
.bt.wide .bt-n .av { width: 34px; height: 34px; font-size: 12px; } .bt.wide .bt-n.l0 .av { width: 60px; height: 60px; font-size: 22px; }
.bt.wide .bt-n .nd .cd { font-size: 10px; } .bt.wide .bt-n .nd b { font-size: 11.5px; } .bt.wide .bt-n .nd em { font-size: 11px; }
/* C: แยกสองขา */
.bt-root { display: flex; align-items: center; gap: 12px; margin: 6px 18px 0; padding: 14px; position: relative; }
.bt-fork { height: 22px; margin: 0 25%; position: relative; border: 1.5px solid var(--btl); border-bottom: 0; border-radius: 12px 12px 0 0; }
.bt-fork::before { content: ""; position: absolute; left: 50%; top: -1.5px; height: 0; }
.bt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 10px; }
.bt-half { padding: 0 2px 12px; overflow: hidden; }
.bt-half .hh { padding: 10px 10px 8px; margin-bottom: 10px; border-bottom: 1px solid var(--ln); }
.bt-half .hh small { display: block; font-size: 10.5px; color: var(--tx2); } .bt-half .hh b { font-size: 16px; font-weight: 700; } .bt-half .hh b i { font-style: normal; font-size: 10px; color: var(--tx2); font-weight: 500; }
.bt-half.L .hh b { color: #60a5fa; } .bt-half.R .hh b { color: #22d3ee; }
.bt-half .wk { display: table; margin-top: 3px; font-size: 9.5px; font-weight: 600; color: #fff; background: #06b6d4; padding: 0 8px; border-radius: 999px; }
.bt-half.L { --btl: rgba(96, 165, 250, .55); border-top: 3px solid #3b82f6; } .bt-half.R { --btl: rgba(34, 211, 238, .55); border-top: 3px solid #22d3ee; }
.bt-half.L .bt-n .av { box-shadow: 0 0 0 1.5px var(--top), 0 0 0 3px rgba(96, 165, 250, .7); }
.bt-half .bt-n.l1 .av { width: 40px; height: 40px; }
/* แนะนำตรงล่าสุด */
.bt-rc { margin: 0 18px; padding: 4px 14px; }
.bt-rc .li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ln); } .bt-rc .li:last-child { border: 0; }
.bt-rc .av { width: 36px; height: 36px; font-size: 14px; }
.bt-rc .t { flex: 1; min-width: 0; } .bt-rc .t b { display: block; font-size: 13.5px; font-weight: 600; } .bt-rc .t small { font-size: 11.5px; color: var(--tx2); }
.bt-rc .sd { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; } .bt-rc .sd.L { color: #60a5fa; background: rgba(59, 130, 246, .14); } .bt-rc .sd.R { color: #22d3ee; background: rgba(34, 211, 238, .14); }

/* 2026-11-11 โปรไฟล์ใหม่ (profile.php · body.pv · ผู้ใช้เลือกแบบ A): ปกไล่เฉด + รูปกลม · ฟอร์มอยู่ในแผ่นเลื่อนขึ้น .pv-sh */
body.pv { --pvc: #22d3ee; --pvs: rgba(34, 211, 238, .14); --pvr: #f87171; }
html[data-mode="light"] body.pv { --pvc: #0891b2; --pvs: rgba(6, 182, 212, .12); --pvr: #dc2626; }
.pv-av { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
.pv-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-av.xl { width: 96px; height: 96px; font-size: 36px; box-shadow: 0 0 0 4px var(--bg1, #fff), 0 0 0 6.5px #22d3ee; }
.pv-av.lg { width: 56px; height: 56px; font-size: 22px; }
.pv-id .rk { display: inline-block; font-size: 11px; font-weight: 600; color: var(--pvc); background: var(--pvs); padding: 2px 10px; border-radius: 999px; }
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(var(--gl), .9); cursor: pointer; white-space: nowrap; }
.pv-btn svg.i { width: 16px; height: 16px; } .pv-btn.gh { background: var(--pvs); color: var(--pvc); box-shadow: none; }
[data-qr] svg { display: block; width: 100%; height: 100%; }
/* แถวในรายการที่เป็นปุ่ม + ออกจากระบบ */
.list button.li { width: 100%; background: none; border: 0; border-top: 1px solid var(--ln); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.list button.li:first-child { border-top: 0; } .list form button.li, .list form button.li:first-child { border-top: 1px solid var(--ln); }
.pv-acc .li.out { color: var(--pvr); } .pv-acc .li.out .ico { background: rgba(248, 113, 113, .14); color: var(--pvr); }

/* 2026-11-11 คอร์ส & โปรแกรม (courses.php?cv=a|b|c · body.cz cz-a|cz-b|cz-c) — คอร์ส/E-book + เว็บไซต์ & โปรแกรมที่ลงขาย
   ชิ้นส่วนขึ้นต้น cv- ทั้งหมด (ห้ามตั้งชื่อ .cz…) · กฎที่ลงสี small/b/strong ต้องนำด้วย body.cz (ชนะ body.dm small/b) */
body.cz { --cvc: #22d3ee; --cvs: rgba(34, 211, 238, .14); --cvk: #04222b; --cvim: #1e293b; }
html[data-mode="light"] body.cz { --cvc: #0891b2; --cvs: rgba(6, 182, 212, .12); --cvk: #fff; --cvim: #dbe4f0; }
html.cv-lock, html.cv-lock body { overflow: hidden; }
body.cz .app { overflow-x: clip; } /* .app เดิม overflow-x: hidden = กลายเป็นกล่องเลื่อน → sticky (หัว + แถบหมวด) ไม่ติด · clip ไม่สร้างกล่องเลื่อน */
/* ปุ่ม · ป้าย · ราคา */
.cv-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(var(--gl), .9); white-space: nowrap; }
.cv-btn svg.i { width: 16px; height: 16px; } .cv-btn.gh { padding: 0 12px; background: var(--cvs); color: var(--cvc); box-shadow: none; } .cv-btn.full { flex: 1; }
.cv-bdg { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 16px); height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(8, 15, 40, .66); white-space: nowrap; overflow: hidden; }
.cv-bdg svg.i { flex: none; width: 12px; height: 12px; } .cv-bdg.sd { left: auto; right: 8px; background: rgba(8, 145, 178, .94); }
.cv-pr { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; } .cv-pr.inl { flex-direction: row; align-items: baseline; gap: 2px; }
body.cz .cv-pr strong { font-size: 15.5px; font-weight: 600; color: var(--cvc); } body.cz .cv-pr small { font-size: 10.5px; color: var(--tx2); }
/* ชิปกรอง · หัวข้อ */
.cv-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 12px 2px; scrollbar-width: none; } .cv-chips::-webkit-scrollbar { display: none; }
.cv-chips button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--tx2); background: var(--sf); border: 1px solid var(--ln); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.cv-chips button svg.i { width: 15px; height: 15px; } .cv-chips button.on { background: var(--cvs); border-color: var(--cvc); color: var(--cvc); font-weight: 600; }
.cv-chips button em { min-width: 19px; padding: 0 5px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 19px; text-align: center; background: var(--sf2); color: var(--tx2); } .cv-chips button.on em { background: var(--cvc); color: var(--cvk); }
.cv-chips.sub { padding-top: 8px; } .cv-chips.sub button { height: 30px; padding: 0 12px; font-size: 12px; }
.cv-hs { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 20px 14px 10px; }
body.cz .cv-hs b { font-size: 16px; font-weight: 600; color: var(--tx); } body.cz .cv-hs small { font-size: 12px; color: var(--tx2); }
.cv-hs button { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 500; color: var(--cvc); } .cv-hs button svg.i { width: 14px; height: 14px; }
.cv-row { align-items: stretch; }
/* การ์ดเรียนต่อ (แถวเลื่อนข้าง) */
.cv-go { flex: none; display: block; width: 62%; max-width: 250px; padding: 8px 8px 10px; border-radius: 16px; text-align: left; scroll-snap-align: start; background: var(--sf); border: 1px solid var(--ln); }
.cv-go .im { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 11px; background: var(--cvim) center / cover; }
.cv-go .im i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: #2563eb; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); } .cv-go .im i svg.i { width: 15px; height: 15px; }
body.cz .cv-go b { display: block; margin: 8px 2px 7px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-go .pg { margin: 0 2px 4px; } body.cz .cv-go small { display: block; margin: 0 2px; font-size: 11px; color: var(--tx2); }
/* แถวรายการ */
.cv-list { display: grid; gap: 10px; padding: 0 12px 6px; }
.cv-li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px 9px 9px; border-radius: 16px; text-align: left; }
.cv-li .im { position: relative; flex: none; width: 92px; height: 70px; border-radius: 12px; background: var(--cvim) center / cover; }
.cv-li .im i { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(8, 15, 40, .66); color: #fff; } .cv-li .im i svg.i { width: 13px; height: 13px; }
.cv-li .t { flex: 1; min-width: 0; display: block; }
body.cz .cv-li .t b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--tx); }
body.cz .cv-li .t small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cz .cv-li .t small.kd { margin: 0 0 1px; font-size: 11px; font-weight: 500; color: var(--cvc); }
/* 2026-11-22 ราคาสมาชิก/ทั่วไป + BV (เห็นเฉพาะสมาชิก) */
body.cz .cv-pr small.tg { font-size: 9.5px; font-weight: 600; letter-spacing: .02em; color: #22d3ee; } body.cz .cv-pr small.tg.gn { color: var(--tx2); font-weight: 500; }
body.cz .cv-pr small s { opacity: .8; } body.cz .cv-bv { display: inline-block; padding: 0 6px; border-radius: 999px; background: rgba(34,211,238,.16); color: #22d3ee; font-size: 10.5px; font-weight: 600; line-height: 17px; }
.cv-li .pg { margin: 6px 0 3px; } .cv-li .cv-pr { flex: none; align-items: flex-end; } .cv-li .cv-pr.inl { align-items: baseline; }
.cv-li .go { flex: none; padding: 5px 11px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--cvc); background: var(--cvs); }
/* การ์ดใหญ่ของเว็บไซต์/โปรแกรม (A) + รายการฟีเจอร์ */
.cv-wc { display: block; overflow: hidden; border-radius: 18px; cursor: pointer; } .cv-wc:focus-visible { outline: 2px solid var(--cvc); outline-offset: 2px; }
.cv-wc .im { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--cvim) center / cover; }
.cv-wc .wb { padding: 12px 14px 14px; }
body.cz .cv-wc .wb > b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--tx); } body.cz .cv-wc .wb > small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--tx2); }
.cv-ft { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin: 10px 0 0; padding: 0; }
.cv-ft li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--tx); }
.cv-ft li svg.i { flex: none; width: 14px; height: 14px; margin-top: 1.5px; color: var(--cvc); stroke-width: 2.6; }
.cv-wc .ft { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ln); } .cv-wc .ft .cv-pr { flex: 1; min-width: 0; } body.cz .cv-wc .ft .cv-pr strong { font-size: 17px; }
/* การ์ดตั้ง (แถวเลื่อนข้าง B · ตาราง C) */
.cv-pc { display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 10px; border-radius: 16px; text-align: left; background: var(--sf); border: 1px solid var(--ln); }
.cv-pc.w { flex: none; width: 46%; max-width: 190px; scroll-snap-align: start; } .cv-pc.w.wd { width: 60%; max-width: 240px; }
.cv-pc .im { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 11px; background: var(--cvim) center / cover; }
body.cz .cv-pc > b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 35px; margin: 8px 2px 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--tx); }
.cv-pc .mt { display: block; margin: 3px 2px 0; font-size: 11px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cv-pc .mt .st { font-size: 11px; }
.cv-pc .ft { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: auto 2px 0; padding-top: 8px; }
.cv-pc .ar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; } .cv-pc .ar svg.i { width: 15px; height: 15px; }
.cv-pc .prg { display: block; margin: auto 2px 0; padding-top: 12px; } body.cz .cv-pc .prg small { font-size: 11px; color: var(--tx2); }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 6px; }
/* A · สลับ 2 หมวด */
.cv-segw { position: sticky; top: var(--cvt, 57px); z-index: 19; padding: 10px 12px; background: var(--top); border-bottom: 1px solid var(--ln); }
.cv-seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--sf2); border: 1px solid var(--ln); }
.cv-seg button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; text-align: left; color: var(--tx2); transition: background .2s, color .2s; }
.cv-seg button > i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--sf); } .cv-seg button > i svg.i { width: 17px; height: 17px; }
.cv-seg button span { display: block; min-width: 0; line-height: 1.25; }
body.cz .cv-seg b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; } body.cz .cv-seg small { display: block; font-size: 10.5px; color: inherit; opacity: .8; }
.cv-seg button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(var(--gl), .9); } .cv-seg button.on > i { background: rgba(255, 255, 255, .2); }
/* B · หน้าร้าน */
.search.cv-q { margin: 12px 12px 0; }
.cv-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: 16px 10px 0; }
.cv-cats button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; line-height: 1.25; text-align: center; color: var(--tx); }
.cv-cats button i { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: var(--sf); border: 1px solid var(--ln); color: var(--cvc); transition: background .15s, color .15s; } .cv-cats button i svg.i { width: 23px; height: 23px; }
.cv-cats button.on { color: var(--cvc); font-weight: 600; } .cv-cats button.on i { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 18px -10px rgba(var(--gl), .9); }
.cv-hero { position: relative; display: flex; align-items: stretch; width: calc(100% - 24px); min-height: 136px; margin: 18px 12px 0; border-radius: 20px; overflow: hidden; text-align: left; color: #fff; background: radial-gradient(circle at 88% 0, rgba(255, 255, 255, .28) 0, transparent 48%), var(--grad); box-shadow: 0 18px 34px -20px rgba(var(--gl), .9); }
.cv-hero .tx { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 14px 0 14px 16px; }
body.cz .cv-hero small { font-size: 11px; color: rgba(255, 255, 255, .9); } body.cz .cv-hero b { margin: 2px 0 10px; font-size: 17px; font-weight: 600; line-height: 1.3; color: #fff; }
.cv-hero em { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding: 6px 12px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; color: #1d4ed8; background: #fff; white-space: nowrap; } .cv-hero em svg.i { width: 14px; height: 14px; }
.cv-hero .art { flex: none; width: 44%; margin: 20px -16px -12px 10px; border-radius: 12px 0 0 0; background: #fff left top / cover; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.cv-resh { display: flex; align-items: center; gap: 10px; padding: 18px 12px 12px; }
.cv-resh .bk { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sf2); color: var(--tx); } .cv-resh .bk svg.i { width: 18px; height: 18px; }
body.cz .cv-resh b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.cz .cv-resh small { flex: none; font-size: 12px; color: var(--tx2); }
/* C · แคตตาล็อกรวม */
.cv-bar { position: sticky; top: var(--cvt, 57px); z-index: 19; padding-bottom: 10px; background: var(--top); border-bottom: 1px solid var(--ln); } .cv-bar .cv-chips { padding-top: 10px; } .cv-bar .cv-chips.sub { padding-top: 8px; }
.cv-resume { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 12px 12px 0; padding: 10px 12px 10px 10px; border-radius: 20px; text-align: left; color: #fff; background: radial-gradient(circle at 92% 0, rgba(255, 255, 255, .26) 0, transparent 46%), var(--grad); box-shadow: 0 18px 34px -20px rgba(var(--gl), .9); }
.cv-resume .im { flex: none; width: 80px; height: 62px; border-radius: 13px; background: center / cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.cv-resume .t { flex: 1; min-width: 0; display: block; }
body.cz .cv-resume small { display: block; font-size: 11px; color: rgba(255, 255, 255, .9); } body.cz .cv-resume b { display: block; font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-resume .pg { margin: 6px 0 3px; background: rgba(255, 255, 255, .28); } .cv-resume .pg i { background: #fff; }
.cv-resume .go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #2563eb; } .cv-resume .go svg.i { width: 16px; height: 16px; }
.cv-tool { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; } body.cz .cv-tool > small { font-size: 12.5px; color: var(--tx2); }
.cv-sortw { position: relative; }
.cv-sortw > button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; color: var(--tx); background: var(--sf); border: 1px solid var(--ln); } .cv-sortw > button svg.i { width: 15px; height: 15px; }
.cv-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 18; min-width: 184px; padding: 6px; border-radius: 14px; background: var(--top); border: 1px solid var(--ln); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .5); animation: cvF .15s ease; }
.cv-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; font-size: 13px; text-align: left; color: var(--tx); }
.cv-menu button svg.i { width: 15px; height: 15px; color: var(--cvc); stroke-width: 2.6; visibility: hidden; } .cv-menu button.on { background: var(--cvs); color: var(--cvc); font-weight: 600; } .cv-menu button.on svg.i { visibility: visible; }
/* แผ่นรายละเอียด (ใช้ร่วมทุกแบบ) */
.cv-sh { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .58); animation: cvF .2s ease; }
.cv-shb { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: 92vh; border-radius: 24px 24px 0 0; overflow: hidden; background: var(--top, #fff); color: var(--tx); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); animation: cvU .32s cubic-bezier(.2, .9, .25, 1.05); }
.cv-shb > .x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 15, 40, .66); color: #fff; } .cv-shb > .x svg.i { width: 17px; height: 17px; }
.cv-dt { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cv-dt .cover { position: relative; flex: none; height: min(52vw, 250px, 32vh); background: var(--cvim) center / cover; } .cv-dt .cover .cv-bdg { left: 14px; top: auto; bottom: 10px; }
.cv-dt .db { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }
.cv-dt h2 { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--tx); }
.cv-dt .mt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-size: 12px; color: var(--tx2); } .cv-dt .mt span + span::before { content: "·"; margin-right: 8px; }
.cv-dt .prg { margin-top: 12px; padding: 12px 12px 8px; border-radius: 12px; background: var(--cvs); } body.cz .cv-dt .prg small { font-size: 11.5px; font-weight: 500; color: var(--cvc); }
.cv-dt p { margin-top: 12px; font-size: 13px; line-height: 1.65; color: var(--tx2); }
body.cz .cv-dt .fh { display: block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--tx); }
.cv-dt .cv-ft { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; } .cv-dt .cv-ft li { font-size: 13px; }
.cv-dt .act { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px calc(12px + var(--sbot)); border-top: 1px solid var(--ln); background: var(--top, #fff); }
.cv-dt .act .cv-pr { flex: 1; min-width: 0; } body.cz .cv-dt .act .cv-pr strong { font-size: 19px; } .cv-dt .act .cv-btn { height: 44px; font-size: 14px; }
@keyframes cvF { from { opacity: 0; } } @keyframes cvU { from { transform: translateY(100%); } }
/* ไอคอนทางลัด (คำสั่งซื้อ ฯลฯ) */
.pv-od { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 18px; padding: 14px 4px 12px; }
.pv-od a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--tx); text-align: center; white-space: nowrap; }
.pv-od .ico { position: relative; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--pvs); color: var(--pvc); }
.pv-od .ico svg.i { width: 22px; height: 22px; }
.pv-od .bd { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 0 0 2px var(--sf, #fff); }
/* ปก + ตัวตน + สถิติ + ชวนเพื่อน */
.pv-cover { position: relative; height: 116px; background: var(--grad); overflow: hidden; }
.pv-cover::before { content: ""; position: absolute; right: -50px; top: -80px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.pv-cover::after { content: ""; position: absolute; left: -40px; bottom: -110px; width: 200px; height: 200px; border-radius: 50%; background: rgba(34, 211, 238, .28); }
.pv-id { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -54px; padding: 0 18px; }
.pv-avw { position: relative; display: block; }
.pv-avw .cam { position: absolute; right: -4px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sf, #fff); color: var(--pvc); border: 1px solid var(--ln); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); cursor: pointer; }
.pv-avw .cam svg.i { width: 16px; height: 16px; }
.pv-id h1 { margin: 12px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.pv-id .mt { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pv-id .cd { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--tx2); cursor: pointer; }
.pv-id .cd svg.i { width: 14px; height: 14px; color: var(--pvc); }
.pv-id > small { margin-top: 5px; font-size: 12px; }
.pv-st { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 18px 0; padding: 14px 0; }
.pv-st a { min-width: 0; padding: 0 6px; text-align: center; border-left: 1px solid var(--ln); color: var(--tx); } .pv-st a:first-child { border-left: 0; }
.pv-st small { display: block; font-size: 11.5px; white-space: nowrap; }
.pv-st b { display: block; margin-top: 2px; font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; } .pv-st b.hl { color: var(--pvc); }
.pv-inv { display: flex; align-items: center; gap: 14px; margin: 0 18px; padding: 14px; }
.pv-inv .qr { flex: none; display: block; width: 100px; height: 100px; padding: 5px; border: 0; border-radius: 14px; background: #fff; cursor: pointer; }
.pv-inv .t { flex: 1; min-width: 0; } .pv-inv .t b { display: block; font-size: 14.5px; font-weight: 600; } .pv-inv .t small { display: block; font-size: 11.5px; line-height: 1.45; }
.pv-inv code, .pv-shb code { display: block; margin-top: 6px; font: 500 11px/1.3 ui-monospace, Consolas, monospace; color: var(--pvc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-inv .bs { display: flex; gap: 8px; margin-top: 10px; } .pv-inv .bs .pv-btn { height: 36px; padding: 0 10px; font-size: 12.5px; } .pv-inv .bs .pv-btn:first-child { flex: 1; }
/* แผ่นเลื่อนขึ้น */
.pv-sh { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .58); animation: pvF .2s ease; }
.pv-sh[hidden] { display: none; }
.pv-shb { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 18px 18px calc(20px + var(--sbot)); border-radius: 24px 24px 0 0; background: var(--top, #fff); color: var(--tx); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); animation: pvU .32s cubic-bezier(.2, .9, .25, 1.05); }
.pv-shb::before { content: ""; position: absolute; left: 50%; top: 8px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: var(--ln); }
.pv-shb .hd { display: flex; align-items: center; padding: 6px 0 14px; } .pv-shb .hd b { flex: 1; font-size: 16.5px; font-weight: 600; text-align: left; }
.pv-shb .x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--sf2, #f1f1f3); color: var(--tx); cursor: pointer; } .pv-shb .x svg.i { width: 17px; height: 17px; }
.pv-shb .err { margin-bottom: 12px; }
.pv-ph { display: flex; align-items: center; gap: 14px; } .pv-ph .pv-av { width: 68px; height: 68px; font-size: 26px; box-shadow: 0 0 0 2px var(--top, #fff), 0 0 0 4px #22d3ee; }
.pv-phr { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .fm .pv-phr label.pv-btn { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 600; } .pv-phr small { font-size: 11.5px; font-weight: 400; }
.pv-shb.qrs { display: flex; flex-direction: column; align-items: center; text-align: center; } .pv-shb.qrs .hd { width: 100%; }
.pv-shb.qrs .big { display: block; width: 212px; height: 212px; padding: 8px; border-radius: 18px; background: #fff; margin: 2px 0 14px; }
.pv-shb.qrs .nm { font-size: 15px; font-weight: 600; } .pv-shb.qrs small { display: block; max-width: 290px; margin-top: 4px; font-size: 12px; line-height: 1.5; } .pv-shb.qrs code { max-width: 100%; font-size: 12px; }
.pv-shb.qrs .bs { display: flex; gap: 10px; width: 100%; margin-top: 16px; } .pv-shb.qrs .bs .pv-btn { flex: 1; height: 46px; font-size: 14px; }
@keyframes pvF { from { opacity: 0; } } @keyframes pvU { from { transform: translateY(40%); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .pv-sh, .pv-shb { animation: none; } }

/* 2026-11-11 คอร์ส & โปรแกรม รอบ 2 — ทั้งสองหมวดอยู่หน้าเดียว (ปุ่มลัด data-cv-jump) */
.cv-sec + .cv-sec { margin-top: 8px; border-top: 1px solid var(--ln); }
.cv-seg button[data-cv-jump] { cursor: pointer; }
.cv-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 12px 0; }
.cv-sum button { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 18px; text-align: left; background: var(--sf); border: 1px solid var(--ln); color: var(--tx); }
.cv-sum button:first-child { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(var(--gl), .9); }
.cv-sum i { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 12px; display: grid; place-items: center; background: var(--cvs); color: var(--cvc); } .cv-sum i svg.i { width: 19px; height: 19px; }
.cv-sum button:first-child i { background: rgba(255, 255, 255, .2); color: #fff; }
body.cz .cv-sum b { font-size: 14.5px; font-weight: 600; color: inherit; white-space: nowrap; } body.cz .cv-sum small { font-size: 11.5px; color: inherit; opacity: .8; }
body.cz-b .cv-resume { margin-top: 14px; }

/* 2026-11-11 สายงาน: สลับ ผังไบนารี | ผังแนะนำตรง (tree.php · data-tm · ?sv=a|b|c) */
.tm-w { padding: 8px 18px 2px; }
.tm-w .nb-seg button.on { box-shadow: 0 6px 16px -8px rgba(var(--gl, 37, 99, 235), .8); }
.sp-me { margin: 10px 18px 0; padding: 14px; }
.sp-me .top { display: flex; align-items: center; gap: 12px; }
.sp-me .av, .sp-n .av, .sp-r .av, .sp-cd .av { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
.sp-me .av img, .sp-n .av img, .sp-r .av img, .sp-cd .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-me .av.big { width: 54px; height: 54px; font-size: 20px; box-shadow: 0 0 0 2px var(--top), 0 0 0 4px #22d3ee; }
.sp-me .t { flex: 1; min-width: 0; }
body.dm .sp-me .t b { display: block; font-size: 15px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.dm .sp-me .t small { display: block; font-size: 11.5px; color: var(--tx2); }
.sp-me .st { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ln); text-align: center; }
.sp-me .st span + span { border-left: 1px solid var(--ln); }
body.dm .sp-me .st b { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } body.dm .sp-me .st small { display: block; font-size: 10.5px; color: var(--tx2); }
[data-tm-pane="sp"] .empty .btn { margin-top: 12px; height: 40px; background: var(--grad); }
/* A ผังองค์กร */
.sp { margin: 12px 18px 0; padding: 0 0 14px; overflow: hidden; }
.sp-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 4px; }
body.dm .sp-hd b { font-size: 13.5px; font-weight: 600; color: var(--tx); } body.dm .sp-hd small { font-size: 10.5px; color: var(--tx2); }
.sp-pan { overflow-x: auto; padding: 10px 6px 0; scrollbar-width: thin; }
.sp-tree { width: max-content; min-width: 100%; display: flex; justify-content: center; }
.sp-n { display: flex; flex-direction: column; align-items: center; }
.sp-n > .nd { display: flex; flex-direction: column; align-items: center; width: 66px; color: var(--tx); text-align: center; line-height: 1.25; }
body.dm .sp-n .nd b { margin-top: 4px; font-size: 10.5px; font-weight: 600; color: var(--tx); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dm .sp-n .nd .cd { font-size: 8.5px; color: var(--tx2); }
.sp-n .nd em { font-style: normal; font-size: 9.5px; font-weight: 600; color: #22d3ee; } html[data-mode="light"] .sp-n .nd em { color: #0891b2; }
.sp-n .nd .mo { margin-top: 3px; font-size: 8.5px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: var(--cvs, rgba(34, 211, 238, .14)); color: #22d3ee; } html[data-mode="light"] .sp-n .nd .mo { color: #0891b2; background: rgba(6, 182, 212, .12); }
.sp-n .av { width: 32px; height: 32px; font-size: 12px; box-shadow: 0 0 0 1.5px var(--top), 0 0 0 3px rgba(34, 211, 238, .55); }
.sp-n.l0 .av { width: 52px; height: 52px; font-size: 19px; box-shadow: 0 0 0 2px var(--top), 0 0 0 4px #22d3ee; } .sp-n.l0 > .nd { width: 90px; } body.dm .sp-n.l0 > .nd b { font-size: 12.5px; } .sp-n.l0 > .nd em { font-size: 11px; }
.sp-n.l1 .av { width: 40px; height: 40px; font-size: 15px; }
.sp-k { display: flex; position: relative; margin-top: 10px; --btl: rgba(34, 211, 238, .45); }
.sp-k::before { content: ""; position: absolute; left: 50%; top: -10px; height: 10px; border-left: 1.5px solid var(--btl); }
.sp-c { position: relative; padding: 12px 2px 0; display: flex; justify-content: center; }
.sp-c::before, .sp-c::after { content: ""; position: absolute; top: 0; width: 50%; height: 12px; border-top: 1.5px solid var(--btl); }
.sp-c::before { right: 50%; } .sp-c::after { left: 50%; border-left: 1.5px solid var(--btl); }
.sp-c:first-child::before, .sp-c:last-child::after { border: 0; }
.sp-c:last-child::before { border-right: 1.5px solid var(--btl); border-top-right-radius: 10px; }
.sp-c:first-child::after { border-top-left-radius: 10px; }
.sp-c:only-child::after { border-top: 0; border-radius: 0; } .sp-c:only-child::before { display: none; }
/* B รายชื่อพับได้ */
.sp-all { margin-left: auto; font-size: 12.5px; font-weight: 500; color: #22d3ee; } html[data-mode="light"] .sp-all { color: #0891b2; }
.sp-list { margin: 0 18px; padding: 2px 12px; }
.sp-r .rw { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.sp-list > .sp-r + .sp-r { border-top: 1px solid var(--ln); }
.sp-r .av { width: 38px; height: 38px; font-size: 14px; }
.sp-r .t { flex: 1; min-width: 0; color: var(--tx); }
body.dm .sp-r .t b { display: block; font-size: 13.5px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.dm .sp-r .t small { display: block; font-size: 11px; color: var(--tx2); }
.sp-r .ex { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #22d3ee; background: rgba(34, 211, 238, .12); }
html[data-mode="light"] .sp-r .ex { color: #0891b2; background: rgba(6, 182, 212, .12); }
.sp-r .ex svg.i { width: 15px; height: 15px; transition: transform .2s; } .sp-r .ex.on svg.i { transform: rotate(90deg); } .sp-r .ex.on { background: var(--grad); color: #fff; }
.sp-r .no { flex: none; font-size: 10.5px; color: var(--tx2); }
.sp-r .sub { position: relative; margin-left: 18px; padding-left: 14px; border-left: 1.5px solid rgba(34, 211, 238, .4); }
.sp-r .sub .av { width: 32px; height: 32px; font-size: 12px; } .sp-r .sub .rw { padding: 7px 0; }
/* C แยกตามชั้น */
.sp-gen { margin: 12px 18px 0; padding: 6px; display: grid; gap: 4px; }
.sp-gen button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-align: left; color: var(--tx); }
.sp-gen button.on { background: rgba(34, 211, 238, .1); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5); }
.sp-gen .lb { flex: none; width: 44px; font-size: 12px; font-weight: 600; color: var(--tx2); } .sp-gen button.on .lb { color: #22d3ee; } html[data-mode="light"] .sp-gen button.on .lb { color: #0891b2; }
.sp-gen .br { flex: 1; height: 8px; border-radius: 6px; background: var(--sf2); overflow: hidden; } .sp-gen .br i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.sp-gen .nm { flex: none; width: 74px; text-align: right; line-height: 1.2; }
body.dm .sp-gen .nm b { display: block; font-size: 12.5px; font-weight: 600; color: var(--tx); } body.dm .sp-gen .nm small { display: block; font-size: 10px; color: var(--tx2); }
.sp-gp .hs small { margin-left: auto; font-size: 12px; color: var(--tx2); }
.sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 18px; }
.sp-cd { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px 6px 10px; text-align: center; color: var(--tx); line-height: 1.3; }
.sp-cd .av { width: 44px; height: 44px; font-size: 16px; margin-bottom: 6px; box-shadow: 0 0 0 2px var(--top), 0 0 0 3.5px rgba(34, 211, 238, .55); }
body.dm .sp-cd b { font-size: 12.5px; font-weight: 600; color: var(--tx); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.dm .sp-cd small { font-size: 9.5px; color: var(--tx2); }
.sp-cd em { font-style: normal; font-size: 11px; font-weight: 600; color: #22d3ee; } html[data-mode="light"] .sp-cd em { color: #0891b2; }
.sp-cd .by { margin-top: 5px; font-size: 9.5px; padding: 1px 8px; border-radius: 999px; background: var(--sf2); color: var(--tx2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2026-11-11 หน้าสินค้า: รูปเพิ่มเติม + วิดีโอ (product.php?pm=a|b|c · body.pmv) */
.pm-hero { position: relative; margin: 0 18px; aspect-ratio: 1; border-radius: 24px; background: #fff; overflow: hidden; }
body.dm .pm-hero { background: #fff; border: 1px solid var(--ln); }
.pm-hero .hrt { right: 12px; top: 12px; width: 38px; height: 38px; z-index: 3; } .pm-hero .hrt svg.i { width: 19px; height: 19px; }
.pm-sl { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; } .pm-sl::-webkit-scrollbar { display: none; }
.pm-s { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.pm-s img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.pm-s.vs { background: #fff; }
.pm-pane { position: absolute; inset: 0; }
.pm-cnt { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(15, 23, 42, .62); padding: 2px 10px; border-radius: 999px; }
.pm-jump { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(var(--gl, 37, 99, 235), .9); } .pm-jump svg.i { width: 18px; height: 18px; }
.pm-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.pm-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(15, 23, 42, .22); transition: width .2s, background .2s; } .pm-dots i.on { width: 20px; background: var(--grad); }
/* วิดีโอ */
.pm-vd { position: relative; width: 100%; height: 100%; background: #fff; }
.pm-vd video, .pm-vd iframe { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; background: #fff; } .pm-vd.yt, .pm-vd.yt iframe { background: #000; }
.pm-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 14px 30px -10px rgba(0, 0, 0, .6); }
.pm-play svg.i { width: 26px; height: 26px; margin-left: 3px; }
.pm-dur { position: absolute; right: 12px; bottom: 12px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); padding: 1px 9px; border-radius: 999px; }
.pm-vd.on .pm-play, .pm-vd.on .pm-dur { display: none; }
/* A แถบรูปย่อ */
.pm-th { display: flex; gap: 8px; overflow-x: auto; padding: 10px 18px 2px; scrollbar-width: none; } .pm-th::-webkit-scrollbar { display: none; }
.pm-th button { position: relative; flex: none; width: 62px; height: 62px; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid var(--ln); padding: 0; transition: border-color .15s; }
.pm-th button img { width: 100%; height: 100%; object-fit: contain; }
.pm-th button.on { border-color: #22d3ee; } html[data-mode="light"] .pm-th button.on { border-color: #0891b2; }
.pm-th button.v img { object-fit: cover; filter: brightness(.55); }
.pm-th button.v i { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); color: #fff; } .pm-th button.v i svg.i { width: 20px; height: 20px; }
.pm-th button.v span { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 9.5px; font-weight: 600; color: #fff; text-align: center; }
/* B การ์ดวิดีโอ + ตารางรูป */
.pm-vcard { margin: 0 18px; padding: 0; overflow: hidden; aspect-ratio: 4 / 5; }
body.pmv .hs .pm-n { margin-left: auto; font-size: 12px; color: var(--tx2); }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px; }
.pm-grid button { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--ln); padding: 0; cursor: zoom-in; }
.pm-grid img { width: 100%; height: 100%; object-fit: contain; }
.pm-grid span { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 600; color: #fff; background: var(--grad); padding: 1px 9px; border-radius: 999px; }
/* C ปุ่มสลับ รูปภาพ | วิดีโอ + แถบรูป */
.pm-tg { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 3; display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(15, 23, 42, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pm-tg button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .8); white-space: nowrap; } .pm-tg button svg.i { width: 16px; height: 16px; }
.pm-tg button.on { background: var(--grad); color: #fff; }
.pmv-c .pm-cnt { top: auto; bottom: 18px; left: 14px; }
.pmv-c .pm-vd video { object-fit: contain; }
.pm-strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 18px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: none; } .pm-strip::-webkit-scrollbar { display: none; }
.pm-strip button { flex: none; width: 42%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--ln); padding: 0; scroll-snap-align: start; cursor: zoom-in; }
.pm-strip img { width: 100%; height: 100%; object-fit: contain; }
/* ดูรูปเต็มจอ */
.pm-lb { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); animation: cvF .2s; }
.pm-lb .tr { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .pm-lb .tr::-webkit-scrollbar { display: none; }
.pm-lb figure { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 60px 12px; }
.pm-lb img { max-width: 100%; max-height: 100%; border-radius: 12px; background: #fff; }
.pm-lb .x { position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top)); z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); } .pm-lb .x svg.i { width: 22px; height: 22px; }
.pm-lb .n { position: absolute; left: 50%; top: max(22px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 2; font-size: 13px; font-weight: 600; color: #fff; }

/* 2026-11-11 หน้าแรก: สินค้า 2 คอลัมน์ลงมาเรื่อย ๆ (index.php?pgr=a|b|c · home_dm.php) */
.dm-hs .pg-n { font-size: 12px; color: var(--tx2); }
.pg-more { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 14px 12px 6px; height: 46px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--tx); background: var(--sf); border: 1px solid var(--ln); } .pg-more svg.i { width: 17px; height: 17px; }
/* B */
.pg-gb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.pg-c { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 18px; background: var(--sf); border: 1px solid var(--ln); overflow: hidden; }
.pg-c .im { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.4; background: #fff; } .pg-c .im img { width: 86%; height: 86%; object-fit: contain; }
.pg-c .bv, .pg-c .off { position: absolute; left: 8px; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.pg-c .bv { top: 8px; color: #fff; background: var(--grad); } .pg-c .off { top: 32px; color: #fff; background: #ef4444; }
.pg-c .hrt { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 0; display: grid; place-items: center; color: #fff; } .pg-c .hrt svg.i { width: 16px; height: 16px; } .pg-c .hrt.on svg { fill: var(--ac); color: var(--ac); }
.pg-c .nm { flex: 1; display: block; padding: 9px 10px 0; color: var(--tx); }
body.dm .pg-c .nm b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.3; min-height: 35px; color: var(--tx); }
.pg-c .pr { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; } body.dm .pg-c .pr strong { font-size: 16px; font-weight: 700; color: var(--ac); } .pg-c .pr s { font-size: 11px; color: var(--tx2); }
body.dm .pg-c .nm small { display: block; font-size: 10.5px; color: var(--tx2); }
.pg-c .add { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 9px 10px 10px; height: 36px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(var(--gl, 37, 99, 235), .9); } .pg-c .add svg.i { width: 16px; height: 16px; }
/* C */
.pg-top { position: relative; display: flex; gap: 12px; margin: 0 12px 10px; padding: 10px; border-radius: 20px; background: var(--sf); border: 1px solid var(--ln); }
.pg-top .im { flex: none; width: 42%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: #fff; } .pg-top .im img { width: 88%; height: 88%; object-fit: contain; }
.pg-top .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pg-top em { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); padding: 2px 10px 2px 7px; border-radius: 999px; } .pg-top em svg.i { width: 13px; height: 13px; fill: #fff; }
body.dm .pg-top .tx b { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--tx); } body.dm .pg-top .tx small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--tx2); }
.pg-top .ft { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; } body.dm .pg-top .ft strong { font-size: 18px; font-weight: 700; color: var(--ac); }
.pg-top .ft button { display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--grad); white-space: nowrap; } .pg-top .ft button svg.i { width: 15px; height: 15px; stroke-width: 2.4; }
.pg-top .hrt { position: absolute; top: 16px; left: 16px; right: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 0; display: grid; place-items: center; color: #fff; } .pg-top .hrt svg.i { width: 16px; height: 16px; } .pg-top .hrt.on svg { fill: var(--ac); color: var(--ac); }
.pg-c2 .dm-pc .rk { position: absolute; top: 14px; left: 14px; z-index: 1; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(15, 23, 42, .7); }

/* 2026-11-11 ผังแนะนำตรง ทีมใหญ่ ทดลอง (tree.php?tm=sp&sa=1|2|3 · demo=big) */
.sp.big .sp-pan { cursor: grab; padding-bottom: 6px; }
.sp-pp .av, .g3-root .av, .g3-sub .lh .av, .sp-res .av { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
.sp-pp .av img, .g3-root .av img, .g3-sub .lh .av img, .sp-res .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-pp { flex: none; display: flex; flex-direction: column; align-items: center; width: 92px; padding: 10px 4px 8px; border-radius: 16px; text-align: center; line-height: 1.25; color: var(--tx); background: var(--sf2); border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.sp-pp .av { width: 40px; height: 40px; font-size: 15px; margin-bottom: 5px; box-shadow: 0 0 0 2px var(--top), 0 0 0 3.5px rgba(34, 211, 238, .55); }
body.dm .sp-pp b { font-size: 12px; font-weight: 600; color: var(--tx); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.dm .sp-pp small { font-size: 9px; color: var(--tx2); }
.sp-pp em { font-style: normal; font-size: 10px; font-weight: 600; color: #22d3ee; } html[data-mode="light"] .sp-pp em { color: #0891b2; }
.sp-pp .tm { margin-top: 4px; font-size: 9.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; color: #fff; background: var(--grad); } .sp-pp .tm.no { color: var(--tx2); background: none; font-weight: 500; white-space: nowrap; }
.sp-pp.on { border-color: #22d3ee; background: rgba(34, 211, 238, .1); } html[data-mode="light"] .sp-pp.on { border-color: #0891b2; }
/* 2 ไล่ทีละชั้น */
.sp-dr { margin: 12px 18px 0; padding: 4px 0 12px; overflow: hidden; }
.sp-crumb { display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--ln); scrollbar-width: none; } .sp-crumb::-webkit-scrollbar { display: none; }
.sp-crumb button { flex: none; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--tx2); background: var(--sf2); } .sp-crumb button.on { color: #fff; background: var(--grad); font-weight: 600; }
.sp-crumb i { font-style: normal; color: var(--tx2); font-size: 13px; }
.sp-lv { position: relative; padding-top: 12px; }
.sp-lv + .sp-lv::before { content: ""; position: absolute; left: 22px; top: -4px; height: 16px; border-left: 1.5px dashed rgba(34, 211, 238, .5); }
.sp-lv .lh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 12px 8px; }
body.dm .sp-lv .lh b { font-size: 13px; font-weight: 600; color: var(--tx); } body.dm .sp-lv .lh small { font-size: 10.5px; color: var(--tx2); }
.sp-lv .pr { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 2px; scrollbar-width: none; } .sp-lv .pr::-webkit-scrollbar { display: none; }
.sp-dr .no, .sp-g3 .no, .sp-res .no { padding: 4px 12px 2px; font-size: 12px; color: var(--tx2); }
/* 3 ตาราง + ค้นหา */
.search.sp-q { margin: 12px 18px 0; }
.sp-res { margin: 8px 18px 0; padding: 4px 12px; max-height: 340px; overflow-y: auto; }
.sp-res .li { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; text-align: left; color: var(--tx); border-bottom: 1px solid var(--ln); } .sp-res .li:last-child { border: 0; }
.sp-res .av { width: 34px; height: 34px; font-size: 13px; } .sp-res .t { flex: 1; min-width: 0; }
body.dm .sp-res .t b { display: block; font-size: 13px; font-weight: 600; color: var(--tx); } body.dm .sp-res .t small { display: block; font-size: 10.5px; color: var(--tx2); }
.sp-res em { font-style: normal; font-size: 11px; font-weight: 600; color: #22d3ee; } html[data-mode="light"] .sp-res em { color: #0891b2; }
.sp-g3 { padding: 14px 10px 12px; }
.g3-root { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g3-root .av { width: 52px; height: 52px; font-size: 19px; box-shadow: 0 0 0 2px var(--top), 0 0 0 4px #22d3ee; }
body.dm .g3-root b { margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--tx); } body.dm .g3-root small { font-size: 10.5px; color: var(--tx2); }
.g3-fork { height: 14px; margin: 6px 12% 8px; border: 1.5px solid rgba(34, 211, 238, .45); border-bottom: 0; border-radius: 12px 12px 0 0; position: relative; }
.g3-fork::before { content: ""; position: absolute; left: 50%; top: -8px; height: 8px; border-left: 1.5px solid rgba(34, 211, 238, .45); }
.sp-gd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sp-gd .sp-pp { width: auto; min-width: 0; padding: 8px 2px 7px; }
.sp-gd .sp-pp .av { width: 34px; height: 34px; font-size: 13px; } body.dm .sp-gd .sp-pp b { font-size: 11px; } .sp-gd .sp-pp small { display: none; }
.g3-more { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; font-size: 18px; font-weight: 700; color: #22d3ee; background: rgba(34, 211, 238, .1); border: 1.5px dashed rgba(34, 211, 238, .55); } .g3-more small { font-size: 10.5px; font-weight: 500; }
html[data-mode="light"] .g3-more { color: #0891b2; }
.g3-sub { margin-top: 12px; padding: 10px 8px 8px; border-radius: 16px; background: var(--sf2); border-left: 3px solid #22d3ee; }
.g3-sub .lh { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; } .g3-sub .lh .av { width: 26px; height: 26px; font-size: 11px; }
body.dm .g3-sub .lh b { font-size: 12.5px; font-weight: 600; color: var(--tx); } body.dm .g3-sub .lh small { flex: 1; font-size: 10.5px; color: var(--tx2); }
.g3-sub .lh a { font-size: 11px; font-weight: 600; color: #22d3ee; } .g3-sub .lh .x { width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; color: var(--tx2); background: var(--sf); }
.g3-sub .sp-pp { background: var(--sf); }

/* 2026-11-11 ผังแนะนำตรง แบบตามภาพตัวอย่าง (tree.php?sv=d|e|f · .sx-*) */
.sx-hd { display: flex; align-items: center; gap: 10px; margin: 12px 18px 0; padding: 12px 12px 12px 18px; border-radius: 22px; background: var(--grad); box-shadow: 0 14px 28px -16px rgba(var(--gl, 37, 99, 235), .9); }
.sx-hd h1 { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-hd .bk { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .2); } .sx-hd .bk svg.i { width: 18px; height: 18px; }
.sx-tg { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.sx-tg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.sx-tg button.on { background: #fff; color: #1d4ed8; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .25); }
.sx-me { margin: 12px 18px 0; padding: 14px; }
.sx-me .top { display: flex; align-items: center; gap: 12px; }
.sx-me .av, .sx-r .av, .sx-dc .av { position: relative; display: grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
.sx-me .av img, .sx-r .av img, .sx-dc .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-me .av.big { width: 56px; height: 56px; font-size: 21px; box-shadow: 0 0 0 2px var(--top), 0 0 0 4px #60a5fa; }
.sx-me .t { flex: 1; min-width: 0; }
body.dm .sx-me .t b { display: block; font-size: 16px; font-weight: 600; color: var(--tx); } body.dm .sx-me .t small { display: block; font-size: 12px; color: var(--tx2); }
.sx-me .st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sx-me .st span { padding: 9px 11px; border-radius: 14px; background: var(--sf2); }
body.dm .sx-me .st small { display: block; font-size: 11.5px; color: var(--tx2); } body.dm .sx-me .st b { display: block; font-size: 18px; font-weight: 700; color: var(--tx); white-space: nowrap; }
.sx-lh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 2px 6px; }
body.dm .sx-lh b { font-size: 14.5px; font-weight: 600; color: var(--tx); } body.dm .sx-lh small { font-size: 11.5px; color: var(--tx2); }
.sx-lh.out { margin: 6px 18px 0; padding: 12px 0 2px; }
.sx-list { margin: 12px 18px 0; padding: 0 12px 6px; }
.sx-r .rw { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.sx-r .av { width: 44px; height: 44px; font-size: 16px; }
.sx-r .t { flex: 1; min-width: 0; color: var(--tx); }
body.dm .sx-r .t b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: 14px; font-weight: 600; color: var(--tx); }
body.dm .sx-r .t small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; color: var(--tx2); }
.sx-g { font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 6px; line-height: 1.5; }
.sx-g.g1 { color: #2563eb; background: rgba(59, 130, 246, .15); } .sx-g.g2 { color: #059669; background: rgba(16, 185, 129, .15); } .sx-g.sp-gd { color: #7c3aed; background: rgba(139, 92, 246, .15); } .sx-g.g4 { color: #ea580c; background: rgba(249, 115, 22, .15); }
html:not([data-mode="light"]) .sx-g.g1 { color: #93c5fd; } html:not([data-mode="light"]) .sx-g.g2 { color: #6ee7b7; } html:not([data-mode="light"]) .sx-g.sp-gd { color: #c4b5fd; } html:not([data-mode="light"]) .sx-g.g4 { color: #fdba74; }
.sx-r .ex, .sx-r .go { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #3b82f6; background: rgba(59, 130, 246, .12); }
html:not([data-mode="light"]) .sx-r .ex, html:not([data-mode="light"]) .sx-r .go { color: #93c5fd; }
.sx-r .ex svg.i, .sx-r .go svg.i { width: 17px; height: 17px; transition: transform .2s; } .sx-r .ex.on svg.i { transform: rotate(90deg); }
.sx-r .sub { position: relative; margin-left: 21px; padding-left: 16px; border-left: 2px solid var(--ln); }
.sx-r .sub .av { width: 40px; height: 40px; font-size: 15px; }
.sx-r.sxhit > .rw { background: rgba(34, 211, 238, .1); border-radius: 12px; box-shadow: 0 0 0 6px rgba(34, 211, 238, .1); }
.sx-no { padding: 8px 2px; font-size: 12.5px; color: var(--tx2); } .sx-no a { color: #3b82f6; font-weight: 600; }
.search.sx-q { margin: 12px 18px 0; } .sx-ch { padding: 10px 18px 0; }
/* F การ์ดต่อคน */
.sx-dc { margin: 10px 18px 0; padding: 12px; }
.sx-dc.top { box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, .55); }
.sx-dc .hd { display: flex; align-items: center; gap: 10px; }
.sx-dc .av.md { width: 48px; height: 48px; font-size: 18px; box-shadow: 0 0 0 2px var(--top), 0 0 0 3.5px #60a5fa; }
.sx-dc .t { flex: 1; min-width: 0; color: var(--tx); }
body.dm .sx-dc .hd b { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--tx); } body.dm .sx-dc .hd small { display: block; font-size: 11.5px; color: var(--tx2); }
.sx-dc .best { flex: none; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--grad); padding: 2px 9px; border-radius: 999px; }
.sx-dc .ms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 2px; }
.sx-dc .ms span { padding: 6px 8px; border-radius: 12px; background: var(--sf2); text-align: center; }
body.dm .sx-dc .ms b { display: block; font-size: 15px; font-weight: 700; color: var(--tx); } body.dm .sx-dc .ms small { display: block; font-size: 10.5px; color: var(--tx2); }
.sx-in { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--ln); margin-left: 23px; }
.sx-in .sx-r .av { width: 38px; height: 38px; font-size: 14px; }
.pg-c2 .dm-pc .off, .pg-top .im .off { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11.5px; font-weight: 700; color: #fff; background: #f43f5e; padding: 2px 9px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(244, 63, 94, .7); } .pg-top .im { position: relative; } .pg-top .im .off { top: 8px; left: 8px; } .pg-top .hrt { left: auto; right: 16px; }
.pg-c2 .dm-pc .was, .pg-top .was { display: block; margin: 4px 2px -4px; font-size: 12px; color: var(--tx2); text-decoration: line-through; } .pg-c2 .dm-pc .nm b { min-height: 0; } .pg-top .was { margin: 6px 0 -8px; font-size: 12.5px; }

/* 2026-11-11 BV เด่น ไม่มีดาว (index.php?bvs=a|b|c) */
.bvt { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; width: max-content; margin-top: 5px; font-weight: 700; white-space: nowrap; }
.bvt.a { font-size: 12.5px; color: #fff; background: var(--grad); padding: 2px 11px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(var(--gl, 37, 99, 235), .9); }
.bvt.b { position: absolute; left: 8px; bottom: 8px; margin: 0; font-size: 12px; color: #fff; background: var(--grad); padding: 3px 10px 3px 7px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(var(--gl, 37, 99, 235), .9); } .bvt.b svg.i { width: 13px; height: 13px; fill: #fff; }
.bvt.c { font-size: 13px; border-radius: 9px; overflow: hidden; background: rgba(34, 211, 238, .16); color: #0891b2; padding-right: 10px; gap: 7px; } .bvt.c i { font-style: normal; font-size: 11px; color: #fff; background: var(--grad); padding: 3px 8px; }
html:not([data-mode="light"]) .bvt.c { color: #67e8f9; }
.dm-pc .im { position: relative; } .pg-top .im { position: relative; }
body.dm .dm-pc .nm { display: flex; flex-direction: column; }
.pg-c2 .dm-pc .pl, .pg-top .pl { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 6px 2px 0; } .pg-c2 .dm-pc .pl .was, .pg-top .pl .was { margin: 0; } .pl .bvt { margin: 0; } .pg-c2 .dm-pc .ft { margin-top: 8px; } .pg-top .pl { margin: 8px 0 0; }
.pg-c2 .dm-pc .pv, .pg-top .pv { display: flex; align-items: center; gap: 6px; min-width: 0; } .pv .bvt.a { margin: 0; font-size: 10.5px; padding: 1px 7px; box-shadow: none; } .pg-c2 .dm-pc .was, .pg-top .was { margin: 6px 2px -2px; } .pg-c2 .dm-pc .ft { margin-top: 4px; }
.pv strong { line-height: 1.15; } .pv .bvt.a { line-height: 1.5; }

/* 2026-11-11 ร้านใกล้คุณ ทดลอง (index.php?shr=a|b|c) */
.sh-hs b { display: inline-flex; align-items: center; gap: 5px; } .sh-hs b svg.i { width: 18px; height: 18px; color: #22d3ee; } html[data-mode="light"] .sh-hs b svg.i { color: #0891b2; }
.sh-hs a { color: #22d3ee !important; font-weight: 500; } html[data-mode="light"] .sh-hs a { color: #0891b2 !important; }
/* A */
.sh-ca { position: relative; flex: none; width: 70%; aspect-ratio: 4 / 4.6; border-radius: 20px; overflow: hidden; background: #333 center / cover; scroll-snap-align: start; color: #fff; }
.sh-ca::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .82)); }
.sh-ca .km { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 3px 9px 3px 6px; border-radius: 999px; background: rgba(15, 23, 42, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } .sh-ca .km svg.i { width: 13px; height: 13px; }
.sh-ca .nr { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grad); }
.sh-ca .bt { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
body.dm .sh-ca .bt small { font-size: 11.5px; color: rgba(255, 255, 255, .8); } body.dm .sh-ca .bt b { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.25; }
.sh-ca .bt em { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; max-width: 100%; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 11px 4px 8px; border-radius: 999px; color: #04222b; background: #67e8f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sh-ca .bt em svg.i { width: 15px; height: 15px; flex: none; }
/* B */
.sh-cb { flex: none; width: 66%; border-radius: 20px; overflow: hidden; background: var(--sf); border: 1px solid var(--ln); scroll-snap-align: start; display: flex; flex-direction: column; }
.sh-cb .im { position: relative; display: block; aspect-ratio: 16 / 10; background: #333 center / cover; }
.sh-cb .ty { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; color: #fff; padding: 2px 10px; border-radius: 999px; background: rgba(15, 23, 42, .6); }
.sh-cb .km { position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 999px; background: var(--grad); }
.sh-cb .tx { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
body.dm .sh-cb .tx b { font-size: 15px; font-weight: 600; color: var(--tx); }
.sh-cb .cp { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #22d3ee; background: rgba(34, 211, 238, .1); border: 1.5px dashed rgba(34, 211, 238, .5); } .sh-cb .cp svg.i { width: 16px; height: 16px; flex: none; } .sh-cb .cp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-mode="light"] .sh-cb .cp { color: #0891b2; } .sh-cb .cp.no { color: var(--tx2); border-color: var(--ln); background: var(--sf2); font-weight: 500; }
.sh-cb .sh-go { display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; margin-top: auto; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); } .sh-cb .sh-go svg.i { width: 16px; height: 16px; }
/* C */
.sh-c { padding-bottom: 6px; }
.sh-cc { position: relative; flex: none; width: 84%; display: flex; min-height: 124px; border-radius: 18px; background: var(--sf); border: 1px solid var(--ln); scroll-snap-align: start; color: var(--tx); overflow: hidden; }
.sh-cc .im { position: relative; flex: none; width: 38%; background: #333 center / cover; }
.sh-cc .im em { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 999px; background: var(--grad); }
.sh-cc .tx { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px 14px 12px 18px; border-left: 2px dashed var(--ln); }
.sh-cc .tx::before, .sh-cc .tx::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg0, #0d0d0d); }
.sh-cc .tx::before { top: -9px; } .sh-cc .tx::after { bottom: -9px; }
body.dm .sh-cc .tx small { font-size: 11px; color: var(--tx2); } body.dm .sh-cc .tx b { font-size: 14.5px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dm .sh-cc .tx strong { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.3; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-cc .tx i { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 12px; font-weight: 600; color: #22d3ee; } .sh-cc .tx i svg.i { width: 14px; height: 14px; } html[data-mode="light"] .sh-cc .tx i { color: #0891b2; }
.dm-hs.sh-hs { align-items: center; }
body.dm .sx-hd h1, html[data-mode] body .sx-hd h1 { color: #fff; }
/* 2026-11-11 แบนเนอร์ลงทะเบียน: ตัวหนังสือไม่ชนวงกลมรูปสินค้า */
.dm-ban .tx { width: 44%; padding-left: 18px; } .dm-ban .tx b { font-size: clamp(13px, 3.7vw, 15.5px); white-space: nowrap; } .dm-ban .tx strong { font-size: clamp(28px, 8vw, 34px); }
.dm-ban .im { left: 47%; width: clamp(74px, 22vw, 94px); height: clamp(74px, 22vw, 94px); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35), 0 0 0 7px var(--ring, #eef0f3); } .dm-ban .im img { width: 76%; height: 76%; }
body.dm.b1 .dm-ban .im, body.dm.b2 .dm-ban .im, body.dm.b3 .dm-ban .im { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35), 0 0 0 7px #eef0f3; } .dm-ban .go em { padding: 9px 12px; font-size: 13.5px; white-space: nowrap; } .dm-ban .go { padding-right: 12px; }
/* 2026-11-11 แถบปุ่มลัดหน้าแรก (E-Coupon / สแกนจ่าย / ร้านใกล้ฉัน / ชวนเพื่อน) ติดใต้หัวเวลาเลื่อน · ติดแล้วย่อเล็กลง */
.app:has(.dm-act.stick) { overflow-x: clip; }
.dm-act.stick { position: sticky; top: var(--dmhd, 63px); z-index: 24; transition: padding .2s; }
.dm-act.stick a { transition: font-size .2s; } .dm-act.stick svg.i { transition: width .2s, height .2s; }
.dm-act.stick.stk { padding: 7px 6px; box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .6); } .dm-act.stick.stk a { font-size: 11px; gap: 2px; } .dm-act.stick.stk svg.i { width: 24px; height: 24px; }
body.dm .dm-act.stick span { transition: width .2s, height .2s, border-radius .2s; } body.dm .dm-act.stick.stk span { width: 34px; height: 34px; border-radius: 11px; } body.dm .dm-act.stick.stk svg.i { width: 20px; height: 20px; }
/* แบนเนอร์ลงทะเบียน: เรียงแบบ flex (ข้อความ · รูปวงกลม · ปุ่ม) ไม่ซ้อนกัน */
.dm-ban { gap: 10px; padding: 0 12px 0 16px; } .dm-ban .tx { flex: none; width: auto; padding: 12px 0; }
.dm-ban .im { position: static; transform: none; flex: none; margin: 0 auto; width: clamp(64px, 20vw, 92px); height: clamp(64px, 20vw, 92px); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35), 0 0 0 6px #eef0f3 !important; }
.dm-ban .go { flex: none; margin-left: 0; padding-right: 0; }
@media (max-width: 345px) { .dm-ban .im { display: none; } .dm-ban .go { margin-left: auto; } }

/* 2026-11-11 หน้าร้าน: เมนู / บริการ + ราคา (store.php?stv=a|b|c · body.stv) */
body.stv .app { overflow-x: clip; }
.so-hero { position: relative; margin: 0 18px; height: 250px; border-radius: 24px; overflow: hidden; background: #333 center / cover; }
.so-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78)); }
.so-hero.b::after { display: none; } .so-hero.b { height: 210px; }
.so-hero .hrt { right: 12px; top: 12px; width: 38px; height: 38px; z-index: 2; } .so-hero .hrt svg.i { width: 19px; height: 19px; }
.so-hero .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; color: #fff; }
body.dm .so-hero .cap small { font-size: 12px; color: rgba(255, 255, 255, .85); } body.dm .so-hero .cap b { font-size: 24px; font-weight: 700; color: #fff; line-height: 1.2; }
.so-hero.c { height: 190px; } body.dm .so-hero.c .cap b { font-size: 22px; }
.so-st { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.so-st i { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; } .so-st.on i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .3); } .so-st.off i { background: #f43f5e; }
.so-card .so-st, .so-line .so-st { margin: 0; background: var(--sf2); color: var(--tx); backdrop-filter: none; }
.so-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 12px 18px 0; }
.so-acts a, .so-acts button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--tx); background: var(--sf); border: 1px solid var(--ln); }
.so-acts a:first-child { color: #fff; background: var(--grad); border-color: transparent; } .so-acts svg.i { width: 18px; height: 18px; }
.so-cp { display: flex; align-items: center; gap: 12px; margin: 12px 18px 0; padding: 12px 14px; border-radius: 18px; color: var(--tx); background: linear-gradient(110deg, rgba(34, 211, 238, .16), rgba(59, 130, 246, .1)); border: 1.5px dashed rgba(34, 211, 238, .55); }
.so-cp .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); } .so-cp .ic svg.i { width: 22px; height: 22px; }
.so-cp .t { flex: 1; min-width: 0; } body.dm .so-cp .t b { display: block; font-size: 14px; font-weight: 700; color: var(--tx); } body.dm .so-cp .t small { display: block; font-size: 11px; color: var(--tx2); }
.so-cp .qr svg.i { width: 26px; height: 26px; color: var(--tx); }
.so-tabs { position: sticky; top: var(--soT, 60px); z-index: 18; display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding: 10px 18px; background: var(--top); border-bottom: 1px solid var(--ln); scrollbar-width: none; } .so-tabs::-webkit-scrollbar { display: none; }
.so-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--tx2); background: var(--sf); border: 1px solid var(--ln); white-space: nowrap; }
.so-tabs button em { font-style: normal; font-size: 10.5px; font-weight: 600; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--sf2); } .so-tabs button.on { color: #fff; background: var(--grad); border-color: transparent; font-weight: 600; } .so-tabs button.on em { background: rgba(255, 255, 255, .25); }
.so-sec h2 { margin: 18px 18px 8px; font-size: 16px; font-weight: 600; color: var(--tx); }
.so-list { margin: 0 18px; padding: 2px 14px; }
.so-row { display: flex; gap: 12px; padding: 12px 0; } .so-row + .so-row { border-top: 1px solid var(--ln); }
.so-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.dm .so-row .t b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--tx); } body.dm .so-row .t small { margin-top: 2px; font-size: 12px; color: var(--tx2); }
.so-row .pr { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 6px; }
body.dm .so-row .pr strong, body.dm .so-hc .pr strong, body.dm .so-gc .pr strong, body.dm .so-pl .pr strong { font-size: 16px; font-weight: 700; color: var(--ac); }
.so-row .pr s, .so-hc .pr s, .so-gc .pr s, .so-pl .pr s { font-size: 11.5px; color: var(--tx2); }
.so-row .im { position: relative; flex: none; width: 92px; height: 92px; border-radius: 16px; background: #333 center / cover; }
.so-off { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 700; color: #fff; padding: 1px 7px; border-radius: 999px; background: #f43f5e; }
.so-hot { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; padding: 1px 8px; border-radius: 999px; background: var(--grad); }
.so-dur { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11px; font-weight: 500; color: var(--tx2); padding: 1px 8px; border-radius: 999px; background: var(--sf2); } .so-dur svg.i { width: 12px; height: 12px; }
.so-dur.in { position: absolute; right: 6px; bottom: 6px; color: #fff; background: rgba(15, 23, 42, .65); }
.so-info { display: grid; gap: 10px; margin: 0 18px; padding: 14px 16px; font-size: 13.5px; } .so-info div { display: flex; gap: 10px; align-items: flex-start; } .so-info svg.i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #22d3ee; } html[data-mode="light"] .so-info svg.i { color: #0891b2; }
.so-map { margin-bottom: 6px; }
/* B */
.so-card { position: relative; z-index: 2; margin: -44px 28px 0; padding: 14px 14px 12px; text-align: center; }
body.dm .so-card .nm { display: block; font-size: 19px; font-weight: 700; color: var(--tx); } .so-card .sub { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--tx2); }
.so-card .rd { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.so-card .rd a, .so-card .rd button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--tx); }
.so-card .rd i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(var(--gl, 37, 99, 235), .9); } .so-card .rd svg.i { width: 20px; height: 20px; }
.so-seg { display: flex; gap: 4px; margin: 14px 18px 0; padding: 4px; border-radius: 14px; background: var(--sf2); border: 1px solid var(--ln); }
.so-seg button { flex: 1; height: 38px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--tx2); } .so-seg button.on { color: #fff; background: var(--grad); }
.so-hr { padding-bottom: 4px; }
.so-hc { flex: none; width: 42%; scroll-snap-align: start; color: var(--tx); }
.so-hc .im { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; background: #333 center / cover; }
body.dm .so-hc b { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .so-hc .pr { display: flex; align-items: baseline; gap: 6px; }
.so-ch { padding: 14px 18px 2px; }
.so-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 18px 0; }
.so-gc { display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 10px; border-radius: 16px; background: var(--sf); border: 1px solid var(--ln); color: var(--tx); }
.so-gc .im { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: #333 center / cover; } .so-gc .im.no { background: linear-gradient(135deg, rgba(67, 56, 202, .2), rgba(6, 182, 212, .25)); color: #22d3ee; } .so-gc .im.no svg.i { width: 28px; height: 28px; }
body.dm .so-gc b { margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--tx); } body.dm .so-gc small { font-size: 11px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-gc .pr { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; }
/* C */
.so-line { display: flex; align-items: center; gap: 8px; margin: 12px 18px 0; }
.so-line .so-st { margin-right: auto; }
.so-line a { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--grad); } .so-line a + a { color: var(--tx); background: var(--sf); border: 1px solid var(--ln); } .so-line svg.i { width: 15px; height: 15px; }
.so-big { position: relative; display: block; margin: 14px 18px 0; padding: 16px 18px; border-radius: 22px; overflow: hidden; color: #fff; background: var(--grad); box-shadow: 0 14px 28px -16px rgba(var(--gl, 37, 99, 235), .9); }
.so-big::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
body.dm .so-big small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .85); } body.dm .so-big b { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.25; color: #fff; }
.so-big span { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); } .so-big span svg.i { width: 15px; height: 15px; }
body.stv .hs .so-n { margin-left: auto; font-size: 12px; color: var(--tx2); }
.so-pl { margin: 0 18px 10px; padding: 12px 16px 8px; }
.so-pl h3 { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #22d3ee; } html[data-mode="light"] .so-pl h3 { color: #0891b2; }
.so-pl .ln { display: flex; align-items: baseline; gap: 8px; padding-top: 8px; }
.so-pl .nm { display: flex; align-items: center; gap: 6px; min-width: 0; } body.dm .so-pl .nm b { font-size: 14px; font-weight: 600; color: var(--tx); }
.so-pl .dot { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--ln); transform: translateY(-4px); }
.so-pl .pr { display: flex; align-items: baseline; gap: 6px; flex-direction: row-reverse; }
.so-pl .ds { display: block; padding-bottom: 6px; font-size: 11.5px; color: var(--tx2); }
.so-hero .hrt { color: #111; background: rgba(255, 255, 255, .94); } .so-dur { font-style: normal; }
.so-hc .im .so-dur.in { left: auto; top: auto; right: 6px; bottom: 6px; width: auto; height: auto; margin: 0; display: inline-flex; border-radius: 999px; box-shadow: none; }
/* หน้าร้าน แบบ A: รูปอยู่ซ้ายของรายการ */
.so-row .im { order: -1; } .so-row .im.no { display: grid; place-items: center; color: #22d3ee; background: linear-gradient(135deg, rgba(67, 56, 202, .18), rgba(6, 182, 212, .22)); } .so-row .im.no svg.i { width: 26px; height: 26px; } html[data-mode="light"] .so-row .im.no { color: #0891b2; }

/* 2026-11-11 หน้าเข้าสู่ระบบใหม่ + Animation (login.php?lg=a|b|c · body.lgp) */
body.lgp .app { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; isolation: isolate; }
.lg-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lg-back { position: absolute; left: 16px; top: calc(var(--stop, 0px) + 14px); z-index: 5; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--tx); background: color-mix(in srgb, var(--sf) 78%, transparent); border: 1px solid var(--ln); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: lgDrop .6s cubic-bezier(.2, .8, .2, 1) both; }
.lg-back svg.i { width: 18px; height: 18px; }
.lg-wrap { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100dvh; padding: calc(var(--stop, 0px) + 78px) 22px 40px; }
.lg-logo { width: 170px; height: auto; filter: drop-shadow(0 6px 18px rgba(37, 99, 235, .35)); animation: lgPop .8s cubic-bezier(.2, .9, .3, 1.3) both, lgFloat 5s ease-in-out 1s infinite; }
.lg-card { width: 100%; max-width: 420px; margin-top: 22px; padding: 24px 20px 20px; border-radius: 26px; background: color-mix(in srgb, var(--sf) 82%, transparent); border: 1px solid color-mix(in srgb, #fff 18%, var(--ln)); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .6); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); animation: lgRise .8s cubic-bezier(.2, .8, .2, 1) .1s both; }
body.dm .lg-card h1 { font-size: 25px; font-weight: 700; line-height: 1.25; color: var(--tx); }
.lg-sub { margin: 4px 0 18px; font-size: 13.5px; color: var(--tx2); }
.lg-in { animation: lgUp .6s cubic-bezier(.2, .8, .2, 1) both; } .d1 { animation-delay: .25s; } .d2 { animation-delay: .33s; } .d3 { animation-delay: .41s; } .d4 { animation-delay: .49s; } .d5 { animation-delay: .57s; } .d6 { animation-delay: .65s; }
.lg-err { margin-bottom: 14px; animation: lgShake .5s ease both; }
.lg-f { position: relative; display: block; margin-bottom: 14px; }
.lg-f input { width: 100%; height: 58px; padding: 22px 46px 6px 48px; border-radius: 16px; font: inherit; font-size: 15.5px; color: var(--tx); background: var(--sf2); border: 1.5px solid var(--ln); outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-f input:focus { border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); background: var(--sf); }
.lg-f .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tx2); transition: color .2s, transform .2s; } .lg-f .ic svg.i { width: 21px; height: 21px; }
.lg-f input:focus ~ .ic, .lg-f:focus-within .ic { color: #22d3ee; transform: translateY(-50%) scale(1.08); }
.lg-f .lb { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--tx2); pointer-events: none; transition: top .2s, font-size .2s, color .2s; }
.lg-f input:focus + .lb, .lg-f input:not(:placeholder-shown) + .lb { top: 16px; font-size: 11.5px; color: #22d3ee; }
/* 2026-11-22 ผู้ใช้เจอ: Chrome แสดงตัวอย่างข้อมูลที่บันทึกไว้ (autofill) ทับป้าย → ป้ายลอยขึ้นด้วยเมื่อ autofill */
.lg-f input:-webkit-autofill + .lb { top: 16px; font-size: 11.5px; color: #22d3ee; }
.lg-f input:autofill + .lb { top: 16px; font-size: 11.5px; color: #22d3ee; }
html[data-mode="light"] .lg-f input:focus + .lb, html[data-mode="light"] .lg-f input:not(:placeholder-shown) + .lb, html[data-mode="light"] .lg-f:focus-within .ic { color: #0891b2; }
.lg-f .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--tx2); } .lg-f .eye svg.i { width: 20px; height: 20px; } .lg-f .eye.on { color: #22d3ee; }
.lg-f .eye:not(.on)::after { content: ""; position: absolute; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.lg-btn { position: relative; overflow: hidden; width: 100%; height: 54px; margin-top: 6px; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--grad); background-size: 200% 100%; box-shadow: 0 14px 28px -14px rgba(var(--gl, 37, 99, 235), .95); transition: transform .15s, box-shadow .2s; animation-name: lgUp, lgGrad; animation-duration: .6s, 6s; animation-delay: .57s, 1.2s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; animation-timing-function: cubic-bezier(.2, .8, .2, 1), ease-in-out; }
.lg-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: lgShine 3.2s ease-in-out 1.6s infinite; }
.lg-btn:active { transform: scale(.98); }
.lg-btn .rp { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: lgRipple .65s ease-out forwards; pointer-events: none; }
.lg-btn .sp { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; opacity: 0; }
.lg-btn.ld .tx { opacity: 0; } .lg-btn.ld .sp { opacity: 1; animation: lgSpin .8s linear infinite; }
.lg-alt { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--tx2); } .lg-alt a { color: #22d3ee; font-weight: 700; } html[data-mode="light"] .lg-alt a { color: #0891b2; }
/* A ออโรร่า */
.lg-a .lg-bg { background: var(--bg0, #0d0d0d); }
.lg-a .lg-bg i { position: absolute; width: 70vmax; height: 70vmax; max-width: 620px; max-height: 620px; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; }
html[data-mode="light"] .lg-a .lg-bg i { mix-blend-mode: multiply; opacity: .35; }
.lg-a .b1 { left: -30%; top: -20%; background: #4338ca; animation: lgBlobA 14s ease-in-out infinite alternate; }
.lg-a .b2 { right: -35%; top: 10%; background: #06b6d4; animation: lgBlobB 17s ease-in-out infinite alternate; }
.lg-a .b3 { left: -10%; bottom: -35%; background: #2563eb; animation: lgBlobC 19s ease-in-out infinite alternate; }
/* B คลื่น */
.lg-b .lg-top { position: absolute; left: 0; right: 0; top: 0; height: 300px; background: var(--grad); overflow: hidden; }
.lg-b .lg-top img { position: absolute; width: 74px; height: 92px; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); opacity: .95; }
.lg-b .p1 { right: 8%; top: 70px; transform: rotate(10deg); animation: lgBob 5s ease-in-out infinite; }
.lg-b .p2 { right: 30%; top: 120px; width: 56px !important; height: 70px !important; transform: rotate(-8deg); animation: lgBob 6s ease-in-out .8s infinite; opacity: .8 !important; }
.lg-b .p3 { left: 6%; top: 150px; width: 48px !important; height: 60px !important; transform: rotate(-14deg); animation: lgBob 7s ease-in-out .4s infinite; opacity: .7 !important; }
.lg-b .wv { position: absolute; left: 0; bottom: -1px; width: 200%; height: 90px; }
.lg-b .wv .w1 { fill: var(--bg0, #0d0d0d); opacity: .55; animation: lgWave 9s linear infinite; } .lg-b .wv .w2 { fill: var(--bg0, #0d0d0d); animation: lgWave 6s linear infinite reverse; }
html[data-mode="light"] .lg-b .wv path { fill: #f6f6f7; }
.lg-b .lg-bg { background: var(--bg0, #0d0d0d); } html[data-mode="light"] .lg-b .lg-bg { background: #f6f6f7; }
.lg-b .lg-logo { align-self: flex-start; width: 150px; filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0, 0, 0, .3)); }
.lg-b .lg-wrap { align-items: stretch; } .lg-b .lg-card { margin-top: 120px; }
.lg-b .lg-back { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
/* C วงโคจร */
.lg-c .lg-bg { background: radial-gradient(120% 70% at 50% 0%, rgba(37, 99, 235, .35), transparent 60%), var(--bg0, #0d0d0d); }
html[data-mode="light"] .lg-c .lg-bg { background: radial-gradient(120% 70% at 50% 0%, rgba(37, 99, 235, .18), transparent 60%), #f6f6f7; }
.lg-c .pt { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; opacity: 0; box-shadow: 0 0 10px #22d3ee; animation: lgRiseP 9s linear infinite; }
.lg-c .p1 { left: 6%; animation-delay: 0s; } .lg-c .p2 { left: 14%; animation-delay: 2.2s; width: 4px; height: 4px; } .lg-c .p3 { left: 22%; animation-delay: 4.8s; } .lg-c .p4 { left: 31%; animation-delay: 1.4s; width: 3px; height: 3px; } .lg-c .p5 { left: 39%; animation-delay: 6.2s; } .lg-c .p6 { left: 47%; animation-delay: 3.3s; width: 4px; height: 4px; } .lg-c .p7 { left: 55%; animation-delay: 7.4s; }
.lg-c .p8 { left: 63%; animation-delay: .8s; width: 3px; height: 3px; } .lg-c .p9 { left: 70%; animation-delay: 5.5s; } .lg-c .p10 { left: 78%; animation-delay: 2.9s; width: 4px; height: 4px; background: #818cf8; box-shadow: 0 0 10px #818cf8; } .lg-c .p11 { left: 85%; animation-delay: 8.1s; } .lg-c .p12 { left: 92%; animation-delay: 4.1s; width: 3px; height: 3px; } .lg-c .p13 { left: 10%; animation-delay: 6.9s; background: #818cf8; box-shadow: 0 0 10px #818cf8; } .lg-c .p14 { left: 60%; animation-delay: 3.9s; }
.lg-orb { position: relative; width: 132px; height: 132px; display: grid; place-items: center; animation: lgPop .9s cubic-bezier(.2, .9, .3, 1.3) both; }
.lg-orb img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(37, 99, 235, .55)); animation: lgFloat 4.5s ease-in-out 1s infinite; }
.lg-orb .r { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; }
.lg-orb .r1 { border-top-color: #22d3ee; border-right-color: rgba(34, 211, 238, .25); animation: lgSpin 3.5s linear infinite; }
.lg-orb .r2 { inset: 14px; border-bottom-color: #6366f1; border-left-color: rgba(99, 102, 241, .25); animation: lgSpin 5s linear infinite reverse; }
.lg-orb .r1::after { content: ""; position: absolute; top: 9px; right: 17px; width: 9px; height: 9px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.lg-c .lg-card { margin-top: 18px; text-align: left; animation: lgFlip .9s cubic-bezier(.2, .8, .2, 1) .15s both; transform-origin: 50% 0; }
.lg-c .tw { display: inline-block; animation: lgType 1.6s steps(30) .5s both; }
@keyframes lgUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lgRise { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lgDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes lgPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes lgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lgShake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes lgShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes lgGrad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes lgRipple { to { width: 320px; height: 320px; margin: -160px 0 0 -160px; opacity: 0; } }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgBlobA { to { transform: translate(30%, 25%) scale(1.15); } }
@keyframes lgBlobB { to { transform: translate(-25%, 30%) scale(.9); } }
@keyframes lgBlobC { to { transform: translate(20%, -30%) scale(1.1); } }
@keyframes lgBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes lgWave { to { transform: translateX(-50%); } }
@keyframes lgRiseP { 0% { opacity: 0; transform: translateY(0) scale(.6); } 10% { opacity: .9; } 85% { opacity: .5; } 100% { opacity: 0; transform: translateY(-105vh) scale(1.1); } }
@keyframes lgFlip { from { opacity: 0; transform: perspective(900px) rotateX(-24deg) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes lgType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { body.lgp *, body.lgp *::before, body.lgp *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body.lgp .app { padding-bottom: 0; } .lg-wrap { box-sizing: border-box; }

/* 2026-11-11 หน้าต่างเลือกสินค้า (ปุ่ม + หน้าแรก · assets/js/qv.js ?qv=a|b|c) + Animation ใส่ตะกร้า (app.js oneva.fly) */
html.qv-lock { overflow: hidden; }
.cv-fly { position: fixed; z-index: 9999; object-fit: contain; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); pointer-events: none; will-change: transform; }
.cv-bump { animation: cvBump .5s cubic-bezier(.3, 1.6, .5, 1); }
.cbd.cv-pop { animation: cvPop .45s cubic-bezier(.3, 1.8, .5, 1); }
.cv-plus { position: fixed; z-index: 9999; transform: translateX(-50%); font: 700 13px Prompt, sans-serif; color: #fff; background: var(--grad, #2563eb); padding: 1px 8px; border-radius: 999px; pointer-events: none; animation: cvPlus .9s ease-out forwards; }
@keyframes cvBump { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.28) rotate(-8deg); } 60% { transform: scale(.92) rotate(5deg); } }
@keyframes cvPop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.7); } }
@keyframes cvPlus { 0% { opacity: 0; transform: translate(-50%, 6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 26px); } }
.qv { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.qv-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: qvFade .25s ease both; }
.qv.out .qv-bg { animation: qvFade .22s ease reverse both; }
.qv-pn { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(18px + var(--sbot, 0px)); border-radius: 28px 28px 0 0; background: var(--sf, #fff); color: var(--tx); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); animation: qvUp .34s cubic-bezier(.2, .9, .3, 1.05) both; transition: transform .2s; }
.qv.out .qv-pn { animation: qvDown .22s ease-in both; }
.qv-x { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; }
.qv svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qv-grab { display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 99px; background: var(--ln); }
.qv-hero { position: relative; margin: 10px -2px 0; height: 260px; border-radius: 22px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qv-hero img { max-width: 80%; max-height: 92%; object-fit: contain; animation: qvImg .5s cubic-bezier(.2, .9, .3, 1.2) .05s both; }
.qv-off { position: absolute; left: 12px; top: 12px; font: 700 12px Prompt, sans-serif; color: #fff; background: #f43f5e; padding: 2px 10px; border-radius: 999px; }
.qv-bd { padding-top: 14px; }
.qv h3 { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--tx); }
.qv-pr { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; } .qv-pr b { font-size: 26px; font-weight: 700; color: var(--ac); } .qv-pr s { font-size: 14px; color: var(--tx2); } .qv-pr em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #f43f5e; padding: 1px 8px; border-radius: 999px; }
.qv-mt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .qv-mt span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--sf2); color: var(--tx2); }
.qv-mt .bv { color: #fff; background: var(--grad); font-weight: 700; } .qv-mt .ok { color: #16a34a; background: rgba(34, 197, 94, .12); } .qv-mt .no { color: #e11d48; background: rgba(244, 63, 94, .12); }
.qv-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--tx2); } .qv-note svg { width: 17px; height: 17px; flex: none; color: #22d3ee; }
.qv-q { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 16px; background: var(--sf2); }
.qv-q > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--tx); }
.qv-q .st { display: flex; align-items: center; gap: 4px; }
.qv-q .st button { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sf); color: var(--tx); border: 1px solid var(--ln); } .qv-q .st svg { width: 18px; height: 18px; }
.qv-q .st input { width: 46px; height: 36px; border: 0; background: none; text-align: center; font: 700 17px Prompt, sans-serif; color: var(--tx); -moz-appearance: textfield; } .qv-q .st input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qv-q .qv-sum { margin-left: auto; font-size: 12.5px; color: var(--tx2); text-align: right; line-height: 1.15; white-space: nowrap; } body.dm .qv-q .qv-sum b { display: block; font-size: 16px; color: var(--tx); }
.qv-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.qv-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 52px; border-radius: 16px; font: 700 15.5px Prompt, sans-serif; color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(var(--gl, 37, 99, 235), .95); transition: transform .12s, background .2s; overflow: hidden; }
.qv-btn:active { transform: scale(.97); } .qv-btn:disabled { opacity: .6; }
.qv-btn.gh { color: var(--tx); background: var(--sf); border: 1.5px solid var(--ln); box-shadow: none; }
.qv-btn.ld span { opacity: .4; } .qv-btn.ld::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: lgSpin .7s linear infinite; }
.qv-act .qv-btn:only-child { grid-column: 1 / -1; }
.qv-more { display: block; margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: #22d3ee; } html[data-mode="light"] .qv-more { color: #0891b2; }
/* B การ์ดกลางจอ */
.qv-b { align-items: center; padding: 16px; }
.qv-b .qv-pn { max-width: 420px; border-radius: 28px; padding: 0 0 18px; animation: qvPop .36s cubic-bezier(.2, .9, .3, 1.2) both; }
.qv-b.out .qv-pn { animation: qvFade .2s ease reverse both; }
.qv-b.flying .qv-bg { animation: qvFade .5s ease reverse both; }
.qv-gal { position: relative; background: #fff; border-radius: 28px 28px 0 0; overflow: hidden; }
.qv-sl { display: flex; height: 300px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .qv-sl::-webkit-scrollbar { display: none; }
.qv-sl figure { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; } .qv-sl img { max-width: 82%; max-height: 90%; object-fit: contain; }
.qv-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; } .qv-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(15, 23, 42, .22); transition: width .2s; } .qv-dots i.on { width: 20px; background: var(--grad); }
.qv-b .qv-bd { padding: 16px 18px 0; }
/* C กระชับ */
.qv-c .qv-pn { padding-top: 18px; }
.qv-row { display: flex; gap: 14px; padding-right: 40px; }
.qv-im { position: relative; flex: none; width: 128px; height: 140px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; } .qv-im img { max-width: 88%; max-height: 92%; object-fit: contain; } .qv-im .qv-off { left: 6px; top: 6px; font-size: 11px; padding: 1px 7px; }
.qv-tx { min-width: 0; } .qv-c h3 { font-size: 17px; } .qv-c .qv-pr b { font-size: 22px; }
.qv-th { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.qv-th button { flex: none; width: 54px; height: 54px; padding: 0; border-radius: 12px; background: #fff; border: 2px solid var(--ln); overflow: hidden; } .qv-th img { width: 100%; height: 100%; object-fit: contain; } .qv-th button.on { border-color: #22d3ee; }
.qv-btn.done { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border-color: transparent; animation: qvDone .45s cubic-bezier(.3, 1.6, .5, 1); }
.qv-spark { position: fixed; z-index: 9999; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--h); pointer-events: none; animation: qvSpark .65s ease-out forwards; }
@keyframes qvSpark { to { transform: rotate(var(--a)) translateY(-70px) scale(.3); opacity: 0; } }
@keyframes qvDone { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes qvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qvUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes qvDown { to { transform: translateY(100%); } }
@keyframes qvPop { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes qvImg { from { opacity: 0; transform: scale(.7) translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qv *, .qv-pn, .cv-bump, .cbd.cv-pop { animation-duration: .01ms !important; } }

/* 2026-11-11 ปุ่มเปลี่ยนภาษา (boot.php lang_switch · ?lgv=a|b|c) */
.lgw { position: relative; flex: none; }
.lgb { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; border: 1px solid var(--ln); background: var(--sf); color: var(--tx); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lgb[aria-expanded="true"] { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.lgb .flag { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.lgb svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lgb .ch { width: 14px; height: 14px; color: var(--tx2); transition: transform .2s; } .lgb[aria-expanded="true"] .ch { transform: rotate(180deg); }
.lgb.f { width: 58px; padding: 0 6px 0 8px; }
.lgb.g { position: relative; width: 42px; } .lgb.g > svg.i { width: 22px; height: 22px; color: var(--ac); }
.lgb.g em { position: absolute; right: -4px; bottom: -3px; font-style: normal; font: 700 9px Prompt, sans-serif; color: #fff; background: var(--grad); padding: 0 4px; border-radius: 6px; line-height: 14px; }
.lgb.t { padding: 0 8px 0 12px; } .lgb.t b { font: 700 13px Prompt, sans-serif; }
.lgm { display: grid; gap: 2px; }
.lgd { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: 260px; padding: 8px; border-radius: 20px; background: var(--sf); border: 1px solid var(--ln); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45); transform-origin: 20px 0; animation: lgdIn .18s cubic-bezier(.2, .9, .3, 1.2); }
.lgo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 14px; background: none; color: var(--tx); text-align: left; cursor: pointer; transition: background .12s; }
.lgo:hover { background: var(--sf2); }
.lgo .flag { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.lgo .n { flex: 1; min-width: 0; font-size: 15px; } .lgo .c { font: 700 12px Prompt, sans-serif; color: var(--tx2); letter-spacing: .5px; }
.lgo svg.i { width: 16px; height: 16px; color: #22d3ee; }
.lgo.on { background: rgba(34, 211, 238, .1); } .lgo.on .n { font-weight: 600; color: #22d3ee; } .lgo.on .c { color: #22d3ee; }
html[data-mode="light"] .lgo.on .n, html[data-mode="light"] .lgo.on .c, html[data-mode="light"] .lgo svg.i { color: #0891b2; }
.lgv-c .lgd { width: 290px; grid-template-columns: 1fr 1fr; gap: 6px; }
.lgv-c .lgo { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid var(--ln); } .lgv-c .lgo .n { font-size: 13.5px; } .lgv-c .lgo .c { position: absolute; } .lgv-c .lgo { position: relative; } .lgv-c .lgo .c { right: 10px; top: 12px; } .lgv-c .lgo svg.i { position: absolute; right: 10px; bottom: 10px; }
.lgv-c .lgo.on { border-color: #22d3ee; }
.lgs { position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-end; justify-content: center; }
.lgs-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: qvFade .2s ease both; }
.lgs-pn { position: relative; width: 100%; max-width: 480px; padding: 8px 14px calc(18px + var(--sbot, 0px)); border-radius: 26px 26px 0 0; background: var(--sf); animation: qvUp .3s cubic-bezier(.2, .9, .3, 1.05) both; }
.lgs-pn .grab { display: block; width: 44px; height: 5px; margin: 0 auto 10px; border-radius: 99px; background: var(--ln); }
.lgs-pn .tt { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; font-size: 16px; font-weight: 700; color: var(--tx); } .lgs-pn .tt svg { width: 20px; height: 20px; fill: none; stroke: var(--ac); stroke-width: 2; }
.lgs-pn .lgo { padding: 12px; } .lgs-pn .lgo .flag { width: 34px; height: 34px; }
@keyframes lgdIn { from { opacity: 0; transform: scale(.92) translateY(-6px); } to { opacity: 1; transform: none; } }
.dm-hd .lgw { margin-left: 6px; }

/* 2026-11-12 ประวัติการสั่งซื้อ (orders.php · ผู้ใช้เลือกแบบ A · CSS ของ B/C ด้านล่างไม่ได้ใช้แล้ว) — ชิ้นส่วนขึ้นต้น ox- ทั้งหมด */
body.ox { --oxc: #22d3ee; --oxs: rgba(34, 211, 238, .14); --oxk: #04222b; --wa: #fbbf24; --was: rgba(251, 191, 36, .14); --okc: #34d399; --oks: rgba(52, 211, 153, .14); --noc: #f87171; --nos: rgba(248, 113, 113, .13); --blc: #60a5fa; --bls: rgba(96, 165, 250, .15); }
html[data-mode="light"] body.ox { --oxc: #0891b2; --oxs: rgba(6, 182, 212, .12); --oxk: #fff; --wa: #c2410c; --was: #fff3e6; --okc: #059669; --oks: #e7f8ef; --noc: #dc2626; --nos: #fdecec; --blc: #2563eb; --bls: #e8f0ff; }
body.ox .app { overflow-x: clip; }
body.ox .ox-list { padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 12px; }
body.ox [hidden] { display: none !important; }
.ox-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 12px; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(var(--gl), .9); white-space: nowrap; cursor: pointer; }
.ox-btn svg.i { width: 16px; height: 16px; } .ox-btn.gh { background: var(--oxs); color: var(--oxc); box-shadow: none; } .ox-btn:disabled { opacity: .6; }
.ox-st { flex: none; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ox-st.wa, .ox-dot.wa { color: var(--wa); } .ox-st.wa { background: var(--was); }
.ox-st.cy, .ox-dot.cy { color: var(--oxc); } .ox-st.cy { background: var(--oxs); }
.ox-st.bl, .ox-dot.bl { color: var(--blc); } .ox-st.bl { background: var(--bls); }
.ox-st.ok, .ox-dot.ok { color: var(--okc); } .ox-st.ok { background: var(--oks); }
.ox-st.no, .ox-dot.no { color: var(--noc); } .ox-st.no { background: var(--nos); }
.ox-card { background: var(--sf); border: 1px solid var(--ln); border-radius: 18px; padding: 14px; }
body.ox .ox-card b, body.ox .ox-row b { color: var(--tx); font-weight: 600; } body.ox .ox-card small, body.ox .ox-row small { color: var(--tx2); font-size: 12px; }
.ox-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ln); font-size: 13px; color: var(--tx2); }
body.ox .ox-ft b { font-size: 16px; margin-left: 2px; } .ox-ft .ox-bt { display: flex; gap: 6px; flex: none; }
.ox-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--tx2); }
.ox-empty svg.i { width: 46px; height: 46px; color: var(--oxc); stroke-width: 1.4; } body.ox .ox-empty b { color: var(--tx); font-size: 15px; } .ox-empty .ox-btn { margin-top: 6px; }
body.ox .ox-list .im { flex: none; display: block; background: #fff center/82% no-repeat; border: 1px solid var(--ln); border-radius: 14px; }
/* แถบแท็บ / ชิป (ใช้ร่วม) */
.ox-tabs, .ox-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 12px; scrollbar-width: none; } .ox-tabs::-webkit-scrollbar, .ox-chips::-webkit-scrollbar { display: none; }
.ox-tabs button, .ox-chips button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 500; color: var(--tx2); background: var(--sf); border: 1px solid var(--ln); white-space: nowrap; cursor: pointer; }
.ox-tabs button em, .ox-chips button em, .ox-seg button em { min-width: 19px; padding: 0 5px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 19px; text-align: center; background: var(--sf2); color: var(--tx2); }
.ox-tabs button.on { color: #fff; background: var(--grad); border-color: transparent; font-weight: 600; } .ox-tabs button.on em { background: rgba(255, 255, 255, .25); color: #fff; }
.ox-chips button.on { color: var(--oxc); background: var(--oxs); border-color: var(--oxc); font-weight: 600; } .ox-chips button.on em { background: var(--oxc); color: var(--oxk); }

/* ---- A การ์ด + ขั้นตอน ---- */
.ox-sum { display: grid; grid-template-columns: 1.25fr 1fr 1fr; margin: 8px 14px 0; padding: 14px 6px; border-radius: 18px; background: var(--sf); border: 1px solid var(--ln); }
.ox-sum div { text-align: center; padding: 0 6px; } .ox-sum div + div { border-left: 1px solid var(--ln); }
body.ox .ox-sum small { display: block; font-size: 12px; color: var(--tx2); } body.ox .ox-sum b { display: block; font-size: 19px; font-weight: 700; color: var(--tx); white-space: nowrap; } body.ox .ox-sum div:first-child b { color: var(--oxc); }
.ox-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ox-hd > span { display: flex; flex-direction: column; min-width: 0; } body.ox .ox-hd b { font-size: 14px; letter-spacing: .2px; }
.ox-it { display: flex; align-items: center; gap: 12px; margin-top: 12px; } .ox-it .im { width: 58px; height: 58px; }
.ox-it .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.ox .ox-it .t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-th { display: flex; flex: none; } .ox-th i, .ox-stk i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff center/82% no-repeat; border: 2px solid var(--sf); box-shadow: 0 0 0 1px var(--ln); font-style: normal; font-size: 11px; font-weight: 600; color: var(--tx2); }
.ox-th i + i { margin-left: -10px; }
.ox-steps { display: flex; list-style: none; margin: 14px 0 0; padding: 0; }
.ox-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--tx2); text-align: center; }
.ox-steps li::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--ln); } .ox-steps li:first-child::before { display: none; }
.ox-steps li.dn::before, .ox-steps li.cur::before { background: var(--oxc); }
.ox-steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sf2); border: 2px solid var(--ln); }
.ox-steps li.dn i { background: var(--oxc); border-color: var(--oxc); color: var(--oxk); } .ox-steps i svg.i { width: 12px; height: 12px; stroke-width: 3; }
.ox-steps li.cur i { border-color: var(--oxc); box-shadow: 0 0 0 4px var(--oxs); } .ox-steps li.cur i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--oxc); }
.ox-steps li.cur span { color: var(--oxc); font-weight: 600; }
.ox-cx { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 12px; color: var(--noc); background: var(--nos); } .ox-cx svg.i { width: 14px; height: 14px; }

/* ---- B แยกตามเดือน + ค้นหา ---- */
.ox-q { display: flex; align-items: center; gap: 8px; margin: 8px 14px 0; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--sf); border: 1px solid var(--ln); color: var(--tx2); }
.ox-q svg.i { width: 18px; height: 18px; flex: none; } .ox-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--tx); padding: 0; box-shadow: none; }
.ox-alert { display: flex; align-items: center; gap: 12px; margin: 0 14px 6px; padding: 12px 14px; border-radius: 16px; background: var(--was); color: var(--wa); }
.ox-alert .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--wa); color: #fff; flex: none; } .ox-alert .ic svg.i { width: 19px; height: 19px; }
.ox-alert .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.ox .ox-alert b { color: var(--wa); font-size: 14px; font-weight: 600; } body.ox .ox-alert small { color: var(--tx2); font-size: 11.5px; } .ox-alert > svg.i { width: 18px; height: 18px; }
.ox-mon h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 10px 2px 8px; }
body.ox .ox-mon h3 b { font-size: 15px; font-weight: 600; color: var(--tx); } body.ox .ox-mon h3 small { font-size: 12px; color: var(--tx2); }
.ox-rows { background: var(--sf); border: 1px solid var(--ln); border-radius: 18px; overflow: hidden; }
.ox-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; } .ox-row + .ox-row { border-top: 1px solid var(--ln); }
.ox-stk { flex: none; position: relative; width: 52px; height: 52px; } .ox-stk i { position: absolute; width: 44px; height: 44px; }
.ox-stk i:nth-child(1) { left: 0; top: 0; z-index: 3; width: 52px; height: 52px; } .ox-stk i:nth-child(2) { display: none; } .ox-stk i:nth-child(n+3), .ox-stk i.mr { display: none; }
.ox-stk i:nth-child(1):not(:only-child) { width: 46px; height: 46px; } .ox-stk i:nth-child(2) { display: block; right: -2px; bottom: -2px; width: 30px; height: 30px; z-index: 4; border-radius: 9px; }
.ox-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.ox .ox-row .t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ox-row .t em { font-style: normal; font-size: 12px; color: var(--oxc); }
.ox-row .r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } body.ox .ox-row .r b { font-size: 14.5px; }
.ox-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; } .ox-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---- C สรุปยอด + กราฟ ---- */
.ox-hero { margin: 8px 14px 0; padding: 16px 16px 12px; border-radius: 22px; color: #fff; background: var(--grad); box-shadow: 0 16px 30px -18px rgba(var(--gl), .9); }
.ox-hero .tp { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
body.ox .ox-hero small { display: block; font-size: 12px; color: rgba(255, 255, 255, .78); } body.ox .ox-hero b { display: block; font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; }
.ox-hero .bv { text-align: right; } body.ox .ox-hero .bv b { font-size: 17px; display: inline-block; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.ox-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 14px; }
.ox-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ox-bars i { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: rgba(255, 255, 255, .32); }
.ox-bars span.on i { background: #a5f3fc; box-shadow: 0 0 14px rgba(165, 243, 252, .6); } body.ox .ox-bars small { font-size: 10.5px; color: rgba(255, 255, 255, .8); } body.ox .ox-bars span.on small { color: #fff; font-weight: 600; }
.ox-hero .ft { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 12px; color: rgba(255, 255, 255, .85); }
.ox-seg { display: flex; gap: 4px; margin: 12px 14px; padding: 4px; border-radius: 14px; background: var(--sf); border: 1px solid var(--ln); overflow-x: auto; scrollbar-width: none; }
.ox-seg button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--tx2); white-space: nowrap; cursor: pointer; }
.ox-seg button.on { background: var(--oxs); color: var(--oxc); font-weight: 600; } .ox-seg button.on em { background: var(--oxc); color: var(--oxk); }
.ox-sb { display: flex; align-items: center; gap: 10px; margin: -14px -14px 6px; padding: 12px 14px; border-radius: 18px 18px 0 0; border-bottom: 1px solid var(--ln); }
.ox-sb .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; } .ox-sb .ic svg.i { width: 17px; height: 17px; }
.ox-sb.wa .ic { background: var(--was); color: var(--wa); } .ox-sb.cy .ic { background: var(--oxs); color: var(--oxc); } .ox-sb.bl .ic { background: var(--bls); color: var(--blc); } .ox-sb.ok .ic { background: var(--oks); color: var(--okc); } .ox-sb.no .ic { background: var(--nos); color: var(--noc); }
.ox-sb.wa b { color: var(--wa) !important; } .ox-sb .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.ox .ox-sb b { font-size: 14px; } .ox-sb > svg.i { width: 16px; height: 16px; color: var(--tx2); }
.ox-li { display: flex; align-items: center; gap: 12px; padding: 8px 0; } .ox-li .im { width: 54px; height: 54px; }
.ox-li .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.ox .ox-li .t b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.ox .ox-li b.p { font-size: 13.5px; }
.ox-more { display: block; padding: 2px 0 0 66px; font-size: 12.5px; font-weight: 500; color: var(--oxc); }
.ox-c .ox-ft > span:first-child, .ox-c .ox-ft > span:first-child { display: flex; flex-direction: column; } body.ox-c .ox-ft > span:first-child { display: block; } body.ox-c .ox-ft small { display: block; font-size: 11px; }

/* 2026-11-12 เมนู + บัญชี หน้าโปรไฟล์ (profile.php?mn=a|b|c · ตัวอย่างให้เลือก) — ชิ้นส่วน mn- */
.mn-out { margin: 16px 18px 0; } .mn-out button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--pvr); background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); }
.mn-out button svg.i { width: 18px; height: 18px; }
.mn-out.c button { background: var(--sf); border: 1px solid var(--ln); }
html[data-mode="light"] .mn-row .ico .i.s, html[data-mode="dark"] .mn-row .ico .i.m { display: none; }
/* A ไอคอนกริด */
.mn-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 16px; margin: 0 18px; padding: 16px 4px; }
.mn-grid a, .mn-row button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--tx); text-align: center; white-space: nowrap; }
.mn-grid .ico, .mn-row .ico { position: relative; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--pvs); color: var(--pvc); }
.mn-grid .ico svg.i, .mn-row .ico svg.i { width: 22px; height: 22px; }
.mn-grid .bd { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 0 0 2px var(--sf, #fff); }
.mn-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 18px; padding: 16px 4px; }
.mn-row button { background: none; border: 0; font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.mn-row .ico { background: var(--sf2); color: var(--tx); border: 1px solid var(--ln); } .mn-row .ico svg.flag { width: 24px; height: 24px; border-radius: 50%; }
/* B การ์ดตัวเลข */
.mn-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px; }
.mn-tiles a { display: flex; flex-direction: column; padding: 14px; margin: 0; min-width: 0; color: var(--tx); }
.mn-tiles .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--pvs); color: var(--pvc); margin-bottom: 10px; } .mn-tiles .ico svg.i { width: 18px; height: 18px; }
body.pv .mn-tiles small { font-size: 12px; color: var(--tx2); } body.pv .mn-tiles b { font-size: 18px; font-weight: 700; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-tiles b i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--tx2); } .mn-tiles em { font-style: normal; font-size: 11px; color: var(--pvc); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-tiles a:first-child { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 14px 26px -16px rgba(var(--gl), .9); }
.mn-tiles a:first-child .ico { background: rgba(255, 255, 255, .2); color: #fff; } body.pv .mn-tiles a:first-child small, body.pv .mn-tiles a:first-child em { color: rgba(255, 255, 255, .85); } body.pv .mn-tiles a:first-child b { color: #fff; }
.mn-set .li .ico { background: var(--pvs); color: var(--pvc); } .mn-set .li > svg.i { width: 18px; height: 18px; color: var(--tx2); }
.mn-sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--sf2); border: 1px solid var(--ln); transition: background .2s; }
.mn-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s; }
[aria-checked="true"] > .mn-sw { background: var(--grad); border-color: transparent; } [aria-checked="true"] > .mn-sw::after { transform: translateX(18px); }
.mn-v { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; color: var(--tx2); } .mn-v svg.flag { width: 18px; height: 18px; border-radius: 50%; }
/* C รายการแบบหน้าตั้งค่า */
.mn-cap { margin: 22px 30px 8px; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--tx2); }
.mn-grp { margin: 0 18px; padding: 0 0 0 14px; overflow: hidden; }
.mn-li { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px 8px 0; background: none; border: 0; border-top: 1px solid var(--ln); font: inherit; font-size: 14px; color: var(--tx); text-align: left; cursor: pointer; }
.mn-grp > .mn-li:first-child { border-top: 0; } .mn-li .t { flex: 1; min-width: 0; } .mn-li > svg.i { width: 16px; height: 16px; color: var(--tx2); flex: none; }
.mn-li .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; } .mn-li .ico svg.i { width: 17px; height: 17px; }
.mn-li .c1 { background: linear-gradient(135deg, #06b6d4, #22d3ee); } .mn-li .c2 { background: linear-gradient(135deg, #2563eb, #3b82f6); } .mn-li .c3 { background: linear-gradient(135deg, #4338ca, #6366f1); }
.mn-li .c4 { background: linear-gradient(135deg, #0891b2, #0ea5e9); } .mn-li .c5 { background: linear-gradient(135deg, #1e293b, #475569); } .mn-li .c6 { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.mn-li .mn-v .bd { position: static; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--grad); }
.mn-out.c button { color: var(--pvr); font-weight: 500; }
.mn-ver { margin: 14px 0 0; text-align: center; font-size: 11.5px; color: var(--tx2); }

/* 2026-11-12 ร้านค้าของฉัน (myshop.php?mv=a|b|c&st=new|own · body.mz) — ชิ้นส่วน mz- */
body.mz { --mzc: #22d3ee; --mzs: rgba(34, 211, 238, .14); --mzk: #04222b; --wa: #fbbf24; --was: rgba(251, 191, 36, .14); --okc: #34d399; --oks: rgba(52, 211, 153, .14); --blc: #60a5fa; --bls: rgba(96, 165, 250, .15); }
html[data-mode="light"] body.mz { --mzc: #0891b2; --mzs: rgba(6, 182, 212, .12); --mzk: #fff; --wa: #c2410c; --was: #fff3e6; --okc: #059669; --oks: #e7f8ef; --blc: #2563eb; --bls: #e8f0ff; }
body.mz .app { overflow-x: clip; } body.mz [hidden] { display: none !important; }
body.mz b, body.mz strong { color: var(--tx); } body.mz small { color: var(--tx2); }
.mz-demo { display: flex; align-items: center; gap: 6px; margin: 6px 18px 0; padding: 7px 12px; border-radius: 10px; font-size: 11.5px; color: var(--tx2); background: var(--sf2); } .mz-demo svg.i { width: 14px; height: 14px; }
.mz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 14px; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -12px rgba(var(--gl), .9); cursor: pointer; white-space: nowrap; }
.mz-btn svg.i { width: 18px; height: 18px; } .mz-btn.gh { color: var(--mzc); background: var(--mzs); box-shadow: none; } .mz-btn.full { width: 100%; } .mz-btn:disabled { opacity: .45; }
.mz-ib { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--sf2); color: var(--tx2); cursor: pointer; } .mz-ib svg.i { width: 16px; height: 16px; }
.mz-sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--ln); background: var(--sf2); cursor: pointer; padding: 0; }
.mz-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s; }
.mz-sw[aria-checked="true"] { background: var(--grad); border-color: transparent; } .mz-sw[aria-checked="true"]::after { transform: translateX(18px); }
.mz-st { flex: none; display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mz-st.wa { color: var(--wa); background: var(--was); } .mz-st.bl { color: var(--blc); background: var(--bls); } .mz-st.ok { color: var(--okc); background: var(--oks); }
.mz-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 600; color: #fff; background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
body.mz .im { flex: none; display: block; background: var(--sf2) center/cover no-repeat; border-radius: 12px; }
.mz-cta { margin: 18px 18px 0; }
/* ฟอร์ม */
.mz-l { display: block; margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--tx); }
.mz-f { display: block; margin-top: 12px; } .mz-f > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--tx2); } .mz-f .in { width: 100%; }
.mz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mz-chips { display: flex; flex-wrap: wrap; gap: 8px; } .mz-chips.sub { margin: 12px 18px; }
.mz-chips button, .mz-days button { height: 34px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--tx2); background: var(--sf); border: 1px solid var(--ln); cursor: pointer; }
.mz-chips button.on, .mz-days button.on { color: var(--mzc); background: var(--mzs); border-color: var(--mzc); font-weight: 600; }
.mz-days { display: flex; gap: 6px; } .mz-days button { flex: 1; padding: 0; }
.mz-up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; height: 150px; border-radius: 16px; border: 1.5px dashed var(--ln); background: var(--sf2) center/cover no-repeat; color: var(--mzc); cursor: pointer; text-align: center; }
.mz-up svg.i { width: 26px; height: 26px; } .mz-up.has > * { display: none; }
.mz-ck { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--tx2); } .mz-ck input { margin-top: 3px; accent-color: #0891b2; }
.mz-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px; }
.mz-type button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 18px; text-align: left; font: inherit; background: var(--sf); border: 1.5px solid var(--ln); cursor: pointer; }
.mz-type .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; margin-bottom: 6px; background: var(--mzs); color: var(--mzc); } .mz-type .ico svg.i { width: 21px; height: 21px; }
body.mz .mz-type b { font-size: 15px; font-weight: 600; } body.mz .mz-type small { font-size: 12px; line-height: 1.4; }
.mz-type .ck { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; stroke-width: 3; color: transparent; border: 1.5px solid var(--ln); }
.mz-type button.on { border-color: var(--mzc); background: linear-gradient(var(--mzs), var(--mzs)), var(--sf); } .mz-type button.on .ck { color: var(--mzk); background: var(--mzc); border-color: var(--mzc); }
.mz-form .mz-type, .mz-pg .mz-type { margin: 0; }
/* แผ่นเลื่อนขึ้น */
.mz-sh { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 10, 25, .5); }
.mz-shb { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; padding: 8px 18px calc(var(--sbot, 0px) + 22px); border-radius: 24px 24px 0 0; background: var(--bg1, #fff); animation: mzUp .25s ease; }
@keyframes mzUp { from { transform: translateY(40px); opacity: 0; } }
.mz-shb .hd { position: sticky; top: -8px; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; background: var(--bg1, #fff); z-index: 1; } body.mz .mz-shb .hd b { font-size: 17px; font-weight: 600; }
.mz-shb .x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sf2); color: var(--tx); cursor: pointer; } .mz-shb .x svg.i { width: 18px; height: 18px; }
.mz-shb .fm > .mz-btn { margin-top: 14px; } .mz-shb .mut { display: block; margin-top: 10px; text-align: center; font-size: 11.5px; }
/* ---- สมัคร A ---- */
.mz-hero { margin: 8px 18px 0; padding: 22px 20px; border-radius: 24px; color: #fff; background: var(--grad); box-shadow: 0 16px 30px -18px rgba(var(--gl), .9); }
.mz-hero .ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: rgba(255, 255, 255, .2); } .mz-hero .ico svg.i { width: 26px; height: 26px; }
.mz-hero h2 { margin: 14px 0 6px; font-size: 22px; font-weight: 700; color: #fff; } .mz-hero p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.mz-ben { margin: 0 18px; padding: 4px 14px; } .mz-ben > div { display: flex; gap: 12px; padding: 12px 0; } .mz-ben > div + div { border-top: 1px solid var(--ln); }
.mz-ben .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--mzs); color: var(--mzc); } .mz-ben .ico svg.i { width: 20px; height: 20px; }
.mz-ben .t { display: flex; flex-direction: column; } body.mz .mz-ben b { font-size: 14px; font-weight: 600; } body.mz .mz-ben small { font-size: 12px; line-height: 1.45; }
.mz-steps { list-style: none; margin: 0 18px; padding: 6px 14px; } .mz-steps li { position: relative; display: flex; gap: 12px; padding: 10px 0; }
.mz-steps li i { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 13px; color: var(--mzk); background: var(--mzc); }
.mz-steps li + li::before { content: ""; position: absolute; left: 14px; top: -14px; height: 28px; border-left: 2px dashed var(--mzc); opacity: .5; }
.mz-steps .t { display: flex; flex-direction: column; } body.mz .mz-steps b { font-size: 14px; font-weight: 600; } body.mz .mz-steps small { font-size: 12px; }
/* ---- สมัคร B ---- */
.mz-wz { padding: 0 18px; }
.mz-bar { display: flex; list-style: none; margin: 10px 0 4px; padding: 0; }
.mz-bar li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: var(--tx2); text-align: center; }
.mz-bar li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--ln); } .mz-bar li:first-child::before { display: none; }
.mz-bar li i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 600; font-size: 12px; background: var(--sf2); border: 2px solid var(--ln); color: var(--tx2); }
.mz-bar li.dn::before, .mz-bar li.cur::before { background: var(--mzc); } .mz-bar li.dn i { background: var(--mzc); border-color: var(--mzc); color: var(--mzk); }
.mz-bar li.cur i { border-color: var(--mzc); color: var(--mzc); box-shadow: 0 0 0 4px var(--mzs); } .mz-bar li.cur span { color: var(--mzc); font-weight: 600; }
.mz-pg h2 { margin: 18px 0 2px; font-size: 20px; font-weight: 700; color: var(--tx); } .mz-pg .sub { margin: 0 0 14px; font-size: 13px; color: var(--tx2); }
.mz-map { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 160px; border-radius: 18px; color: var(--mzc); background: repeating-linear-gradient(45deg, var(--sf2) 0 12px, var(--sf) 12px 24px); border: 1px solid var(--ln); }
.mz-map > svg.i { width: 34px; height: 34px; }
.mz-nav { position: sticky; bottom: calc(var(--sbot, 0px) + 84px); display: flex; gap: 10px; margin: 22px 0 0; padding: 10px 0; background: linear-gradient(transparent, var(--bg1, #fff) 30%); }
.mz-nav .mz-btn { flex: 1; } .mz-nav .mz-btn.gh { flex: 0 0 auto; }
/* ---- สมัคร C ---- */
.mz-live { margin: 8px 18px 0; padding: 14px; border-radius: 22px; background: var(--grad); }
.mz-live .cap { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, .9) !important; } .mz-live .cap svg.i { width: 15px; height: 15px; }
.mz-pcard { overflow: hidden; border-radius: 16px; background: var(--sf); }
.mz-pcard .ph { display: grid; place-items: center; height: 120px; background: var(--sf2) center/cover no-repeat; color: var(--tx2); } .mz-pcard .ph svg.i { width: 30px; height: 30px; }
.mz-pcard .pb { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; } body.mz .mz-pcard b { font-size: 15px; font-weight: 600; }
.mz-pcard small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; } .mz-pcard small svg.i { width: 12px; height: 12px; color: #f59e0b; }
.mz-pcard .of { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--mzc); background: var(--mzs); }
.mz-form { margin: 14px 18px 0; padding: 4px 14px 16px; }
.mz-ben.c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 18px 0; padding: 0; }
.mz-ben.c > div { flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; text-align: center; background: var(--sf); border: 1px solid var(--ln); } .mz-ben.c > div + div { border-top: 1px solid var(--ln); } body.mz .mz-ben.c b { font-size: 11.5px; line-height: 1.35; font-weight: 500; }
/* ---- จัดการร้าน (ใช้ร่วม) ---- */
.mz-shop { display: flex; align-items: center; gap: 12px; margin: 10px 18px 0; padding: 12px; }
.mz-shop .im { width: 60px; height: 60px; border-radius: 16px; } .mz-shop .t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
body.mz .mz-shop b { font-size: 16px; font-weight: 600; } .mz-shop small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; white-space: nowrap; } .mz-shop small svg.i, .mz-cover small svg.i { width: 12px; height: 12px; color: #f59e0b; }
.mz-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 18px 0; }
.mz-kpi > div { padding: 12px 14px; border-radius: 18px; background: var(--sf); border: 1px solid var(--ln); }
body.mz .mz-kpi small { display: block; font-size: 12px; } body.mz .mz-kpi b { display: block; font-size: 20px; font-weight: 700; } .mz-kpi em { font-style: normal; font-size: 11px; color: var(--mzc); }
.mz-kpi .hl { color: #fff; background: var(--grad); border-color: transparent; } body.mz .mz-kpi .hl small, .mz-kpi .hl em { color: rgba(255, 255, 255, .85); } body.mz .mz-kpi .hl b { color: #fff; }
.mz-qa { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 18px 0; padding: 14px 4px; }
.mz-qa button { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--tx); cursor: pointer; white-space: nowrap; }
.mz-qa .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--mzs); color: var(--mzc); } .mz-qa .ico svg.i { width: 22px; height: 22px; }
.mz-qa button:first-child .ico { color: #fff; background: var(--grad); box-shadow: 0 8px 16px -10px rgba(var(--gl), .9); }
.mz-list { margin: 0 18px; padding: 0 14px; }
.mz-or, .mz-it { display: flex; align-items: center; gap: 10px; padding: 12px 0; } .mz-or + .mz-or, .mz-it + .mz-it { border-top: 1px solid var(--ln); }
.mz-or .t, .mz-it .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.mz .mz-or .t b, body.mz .mz-it .t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-or .t small, .mz-it .t small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-or .r { flex: none; display: flex; flex-direction: column; align-items: flex-end; } body.mz .mz-or .r b { font-size: 13.5px; } .mz-or .r small { font-size: 10.5px; } body.mz .mz-or .r small.cp { color: var(--mzc); }
.mz-it .im { width: 48px; height: 48px; } body.mz .mz-it strong { font-size: 13px; font-weight: 600; color: var(--mzc); }
/* จัดการร้าน B */
.mz-tabs { display: flex; gap: 4px; margin: 12px 18px 0; padding: 4px; border-radius: 14px; background: var(--sf); border: 1px solid var(--ln); }
.mz-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 13px; color: var(--tx2); cursor: pointer; }
.mz-tabs button.on { color: var(--mzc); background: var(--mzs); font-weight: 600; } .mz-tabs em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 10.5px; font-weight: 600; line-height: 18px; color: #fff; background: var(--grad); }
.mz-chc { margin: 12px 18px 0; padding: 14px; } .mz-chc .h { display: flex; justify-content: space-between; align-items: baseline; } body.mz .mz-chc .h b { font-size: 14px; font-weight: 600; } .mz-chc .h small { font-size: 12px; }
.mz-ch { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 12px; }
.mz-ch span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.mz-ch i { width: 100%; max-width: 28px; border-radius: 7px 7px 3px 3px; background: var(--mzs); } .mz-ch span.on i { background: var(--grad); } .mz-ch small { font-size: 10.5px; } .mz-ch span.on small { color: var(--mzc); font-weight: 600; }
.mz-scan { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 12px 18px 0; }
.mz-set .li .ico { background: var(--mzs); color: var(--mzc); } .mz-set .li > svg.i { width: 18px; height: 18px; color: var(--tx2); }
.mz-cam { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 220px; border-radius: 20px; background: #0b1220; color: #a5f3fc; overflow: hidden; }
.mz-cam > svg.i { width: 64px; height: 64px; stroke-width: 1.2; } .mz-cam small { color: rgba(255, 255, 255, .75) !important; font-size: 12px; }
.mz-cam span { position: absolute; left: 18%; right: 18%; top: 22%; height: 2px; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; animation: mzScan 2s ease-in-out infinite alternate; }
@keyframes mzScan { to { top: 70%; } }
/* จัดการร้าน C */
.mz-cover { position: relative; height: 210px; margin: 8px 18px 0; border-radius: 24px; overflow: hidden; background: var(--sf2) center/cover no-repeat; }
.mz-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(5, 10, 25, .82)); }
.mz-chip-b { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; font: inherit; font-size: 12px; color: #fff; background: rgba(5, 10, 25, .5); cursor: pointer; backdrop-filter: blur(6px); } .mz-chip-b svg.i { width: 15px; height: 15px; }
.mz-cover .nm { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
body.mz .mz-cover .nm b { font-size: 22px; font-weight: 700; color: #fff; } .mz-cover .nm small { flex-basis: 100%; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: rgba(255, 255, 255, .85) !important; }
.mz-ib.w { width: 28px; height: 28px; background: rgba(255, 255, 255, .2); color: #fff; }
.mz-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 18px 0; padding: 12px 4px; }
.mz-strip > div { text-align: center; } .mz-strip > div + div { border-left: 1px solid var(--ln); } body.mz .mz-strip small { display: block; font-size: 11.5px; } body.mz .mz-strip b { font-size: 17px; font-weight: 700; } .mz-strip > div:first-child b { color: var(--mzc); }
.mz-offer { display: flex; align-items: center; gap: 10px; margin: 12px 18px 0; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--mzc); background: var(--mzs); }
.mz-offer .ico { color: var(--mzc); } .mz-offer .ico svg.i { width: 22px; height: 22px; } .mz-offer .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.mz .mz-offer b { font-size: 14px; font-weight: 600; } .mz-offer small { font-size: 11.5px; }
.mz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 18px; }
.mz-gc { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 8px 10px; border-radius: 16px; text-align: left; font: inherit; background: var(--sf); border: 1px solid var(--ln); cursor: pointer; min-width: 0; }
.mz-gc .im { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 6px; } body.mz .mz-gc b { font-size: 13px; font-weight: 500; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } body.mz .mz-gc strong { font-size: 13px; color: var(--mzc); }
.mz-gc.off .im { filter: grayscale(1); opacity: .55; } .mz-gc .im em { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 10.5px; color: #fff; background: rgba(5, 10, 25, .7); }
.mz-gc.add { align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--mzc); background: var(--mzs); } .mz-gc.add i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--grad); } .mz-gc.add i svg.i { width: 22px; height: 22px; } body.mz .mz-gc.add b { width: auto; color: var(--mzc); font-weight: 600; }
.mz-fab { position: sticky; bottom: calc(var(--sbot, 0px) + 84px); z-index: 5; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin: 18px 18px 0; padding: 8px; border-radius: 20px; background: var(--sf); border: 1px solid var(--ln); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
.mn-new { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--pvc); background: var(--pvs); }
body.mz .im.ni { display: grid; place-items: center; color: var(--mzc); background: var(--mzs); } body.mz .im.ni > svg.i { width: 40%; height: 40%; max-width: 34px; stroke-width: 1.5; } body.mz.mz-c .hs small { margin-left: auto; font-size: 12px; }

/* 2026-11-12 ร้านค้าของฉัน ใช้งานจริง (แบบ B) — ฟอร์มใช้ label + input ซ่อน */
.mz-type label { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 18px; text-align: left; background: var(--sf); border: 1.5px solid var(--ln); cursor: pointer; }
.mz-type label.on { border-color: var(--mzc); background: linear-gradient(var(--mzs), var(--mzs)), var(--sf); } .mz-type label.on .ck { color: var(--mzk); background: var(--mzc); border-color: var(--mzc); }
.mz-chips label, .mz-days label { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--tx2); background: var(--sf); border: 1px solid var(--ln); cursor: pointer; user-select: none; }
.mz-days label { flex: 1; padding: 0; } .mz-chips label.on, .mz-days label.on { color: var(--mzc); background: var(--mzs); border-color: var(--mzc); font-weight: 600; }
.mz-st.gr { color: var(--tx2); background: var(--sf2); } .mz-st.no { color: #dc2626; background: rgba(248, 113, 113, .14); } html[data-mode="dark"] .mz-st.no { color: #f87171; }
.mz-err { display: flex; align-items: center; gap: 8px; margin: 8px 18px 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #dc2626; background: rgba(248, 113, 113, .12); } .mz-err svg.i { width: 16px; height: 16px; flex: none; }
html[data-mode="dark"] .mz-err { color: #fca5a5; }
.mz-hint { display: block; font-size: 12px; color: var(--tx2); margin-top: 6px; }
.mz-mapw { position: relative; } .mz-lmap { height: 220px; border-radius: 18px; overflow: hidden; border: 1px solid var(--ln); background: var(--sf2); z-index: 0; }
.mz-loc { position: absolute; left: 10px; bottom: 10px; z-index: 500; height: 38px; font-size: 13px; background: var(--sf); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.mz-wait { margin: 12px 18px 0; padding: 26px 20px; border-radius: 22px; text-align: center; background: var(--sf); border: 1px solid var(--ln); }
.mz-wait .ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--wa); background: var(--was); } .mz-wait .ic.no { color: #dc2626; background: rgba(248, 113, 113, .14); } .mz-wait .ic svg.i { width: 30px; height: 30px; }
.mz-wait h2 { margin: 12px 0 6px; font-size: 19px; font-weight: 700; color: var(--tx); } .mz-wait p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--tx2); }
.mz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px; padding: 30px 16px; border-radius: 18px; text-align: center; background: var(--sf); border: 1px dashed var(--ln); }
.mz-empty svg.i { width: 40px; height: 40px; color: var(--mzc); stroke-width: 1.4; } body.mz .mz-empty b { font-size: 15px; } body.mz .mz-empty small { font-size: 12.5px; line-height: 1.5; }
.mz-sum3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 18px 0; padding: 12px 4px; }
.mz-sum3 > div { text-align: center; } .mz-sum3 > div + div { border-left: 1px solid var(--ln); } body.mz .mz-sum3 small { display: block; font-size: 11.5px; } body.mz .mz-sum3 b { font-size: 16px; font-weight: 700; } body.mz .mz-sum3 b.hl { color: var(--mzc); }
.mz-it s { font-size: 11px; font-weight: 400; color: var(--tx2); }
.mz-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .mz-cam { margin-bottom: 10px; }
.mz-wt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 0 6px; text-align: center; }
.mz-wt .sp { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--mzs); border-top-color: var(--mzc); animation: mzSpin 1s linear infinite; } @keyframes mzSpin { to { transform: rotate(360deg); } }
.mz-wt.ok .sp, .mz-wt.no .sp { animation: none; border-color: var(--okc); background: var(--oks); } .mz-wt.no .sp { border-color: #f87171; background: rgba(248, 113, 113, .14); }
body.mz .mz-wt b { font-size: 17px; font-weight: 600; } .mz-wt small { font-size: 12.5px; margin-bottom: 10px; }
.mz-pay { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px 18px 0; padding: 22px 16px; text-align: center; }
.mz-pay .im { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 6px; } body.mz .mz-pay .sn { font-size: 18px; font-weight: 600; }
.mz-pay .amt { margin: 6px 0 2px; font-size: 34px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mz-pay .mz-st { margin-top: 6px; }
.mz-pact { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 0 18px; }
.mz-shb .fm .mz-del { margin-top: 8px; color: #dc2626; background: rgba(248, 113, 113, .12); }
body.pv .mn-v .mz-st { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; } body.pv .mz-st.wa { color: #c2410c; background: #fff3e6; } body.pv .mz-st.no { color: #dc2626; background: #fdecec; } body.pv .mz-st.gr { color: var(--tx2); background: var(--sf2); } html[data-mode="dark"] body.pv .mz-st.wa { color: #fbbf24; background: rgba(251,191,36,.14); } html[data-mode="dark"] body.pv .mz-st.no { color: #f87171; background: rgba(248,113,113,.14); }

/* 2026-11-13 การ์ดร้านค้าเด่นในโปรไฟล์ (profile.php?sb=a|b|c · ตัวอย่างให้เลือก) — ชิ้นส่วน sb- */
.sb-go { display: block; margin: 22px 18px 0; color: inherit; -webkit-tap-highlight-color: transparent; }
.sb-go:active > span { transform: scale(.985); } .sb-go > span { transition: transform .15s; }
@keyframes sbFl { 50% { transform: translateY(-6px); } }
/* A ไล่เฉด + ภาพประกอบ */
.sb-a { position: relative; display: flex; align-items: flex-end; min-height: 178px; padding: 18px 16px 16px; border-radius: 24px; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 100% 0, rgba(103, 232, 249, .55), transparent 55%), linear-gradient(135deg, #312e81 0%, #1d4ed8 55%, #0891b2 100%); box-shadow: 0 18px 34px -18px rgba(29, 78, 216, .85); }
.sb-a::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.sb-a .t { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 64%; }
.sb-a .tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: #fff !important; background: rgba(255, 255, 255, .18); } .sb-a .tag svg.i { width: 12px; height: 12px; fill: #fde68a; stroke: #fde68a; }
body.pv .sb-a b { font-size: 20px; font-weight: 700; line-height: 1.25; color: #fff; }
.sb-a .pl { display: flex; flex-wrap: wrap; gap: 4px 10px; } .sb-a .pl i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .88); } .sb-a .pl svg.i { width: 12px; height: 12px; color: #67e8f9; stroke-width: 3; }
.sb-a .cta { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-top: 4px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #1e3a8a; background: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); } .sb-a .cta svg.i { width: 16px; height: 16px; }
.sb-art { position: absolute; right: 6px; bottom: 12px; width: 44%; max-width: 170px; color: #fff; }
.sb-art .fl1 { animation: sbFl 3s ease-in-out infinite; } .sb-art .fl2 { animation: sbFl 3.6s ease-in-out .6s infinite; }
/* B รูปร้านจริง */
.sb-b { position: relative; display: flex; align-items: flex-end; min-height: 210px; border-radius: 24px; overflow: hidden; background: #0b1220 center/cover no-repeat; box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .6); }
.sb-b .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 15, 40, .05) 0%, rgba(8, 15, 40, .55) 45%, rgba(10, 25, 80, .94) 100%); }
.sb-b .t { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px; }
.sb-b .tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: #04222b !important; background: #67e8f9; }
body.pv .sb-b b { font-size: 21px; font-weight: 700; line-height: 1.25; color: #fff; } .sb-b .sub { font-size: 12px; color: rgba(255, 255, 255, .82) !important; }
.sb-b .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.sb-b .cta { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 13px; font-size: 14px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(34, 211, 238, .7); } .sb-b .cta svg.i { width: 17px; height: 17px; }
.sb-b .cnt { display: flex; flex-direction: column; align-items: flex-end; font-size: 10.5px; color: rgba(255, 255, 255, .75); } body.pv .sb-b .cnt b { font-size: 18px; line-height: 1.1; }
/* C ตั๋วชวน + 3 ขั้น */
.sb-c { position: relative; display: block; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(37, 99, 235, .12)), var(--sf); border: 1.5px solid rgba(34, 211, 238, .45); }
.sb-c .hd { display: flex; align-items: center; gap: 12px; } .sb-c .t { display: flex; flex-direction: column; min-width: 0; }
.sb-c .ic { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 10px 18px -10px rgba(var(--gl), .9); } .sb-c .ic svg.i { width: 26px; height: 26px; }
.sb-c .ic em { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px var(--sf); animation: sbFl 2.4s ease-in-out infinite; }
body.pv .sb-c b { font-size: 15.5px; font-weight: 700; color: var(--tx); } body.pv .sb-c .t small { font-size: 12px; color: var(--tx2); }
.sb-c .cut { position: relative; display: block; height: 0; margin: 14px -16px; border-top: 1.5px dashed rgba(34, 211, 238, .5); }
.sb-c .cut::before, .sb-c .cut::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg1, #f6f6f7); border: 1.5px solid rgba(34, 211, 238, .45); } .sb-c .cut::before { left: -10px; clip-path: inset(0 0 0 50%); } .sb-c .cut::after { right: -10px; clip-path: inset(0 50% 0 0); }
.sb-c .st { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 11.5px; color: var(--tx2); } .sb-c .st > svg.i { width: 13px; height: 13px; flex: none; opacity: .5; }
.sb-c .st span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; } .sb-c .st i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; color: var(--pvc); background: var(--pvs); }
.sb-c .cta { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; margin-top: 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -12px rgba(var(--gl), .9); } .sb-c .cta svg.i { width: 17px; height: 17px; }
/* มีร้านแล้ว */
.sb-oa { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #312e81 0%, #1d4ed8 55%, #0891b2 100%); box-shadow: 0 16px 30px -18px rgba(29, 78, 216, .85); }
.sb-oa .im, .sb-ob .im { flex: none; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .15) center/cover no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.sb-oa .im.ni, .sb-ob .im.ni { display: grid; place-items: center; color: #fff; } .sb-oa .im.ni svg.i { width: 24px; height: 24px; }
.sb-oa .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .sb-oa .t small { font-size: 11px; color: rgba(255, 255, 255, .75) !important; } body.pv .sb-oa b { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-oa .lv { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #a7f3d0; } .sb-oa .lv i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.sb-oa .nm { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); } .sb-oa .nm small { font-size: 10px; color: rgba(255, 255, 255, .75) !important; } body.pv .sb-oa .nm b { font-size: 15px; color: #fff; }
.sb-oa > svg.i { width: 18px; height: 18px; flex: none; opacity: .8; }
.sb-ob { display: block; padding: 14px; margin: 0; border-left: 4px solid transparent; border-image: linear-gradient(#4338ca, #06b6d4) 1; border-radius: 0; clip-path: inset(0 round 20px); }
.sb-ob .h { display: flex; align-items: center; gap: 12px; } .sb-ob .im { box-shadow: none; background-color: var(--sf2); } .sb-ob .im.ni { color: var(--pvc); }
.sb-ob .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.pv .sb-ob .t b { font-size: 16px; font-weight: 600; color: var(--tx); } .sb-ob .t small { font-size: 12px; color: var(--tx2); } .sb-ob .t em { font-style: normal; color: #10b981; font-weight: 600; }
.sb-ob .mg { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 10px 0 12px; border-radius: 11px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--grad); } .sb-ob .mg svg.i { width: 15px; height: 15px; }
.sb-ob .ks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ln); }
.sb-ob .ks span { display: flex; flex-direction: column; align-items: center; } .sb-ob .ks span + span { border-left: 1px solid var(--ln); } .sb-ob .ks small { font-size: 11px; color: var(--tx2); } body.pv .sb-ob .ks b { font-size: 16px; font-weight: 700; color: var(--tx); } body.pv .sb-ob .ks b.hot { color: #f59e0b; }
.sb-oc { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--sf); border: 1.5px solid rgba(34, 211, 238, .45); box-shadow: 0 12px 26px -18px rgba(var(--gl), .7); }
.sb-oc .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--grad); } .sb-oc .ic svg.i { width: 22px; height: 22px; }
.sb-oc .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } body.pv .sb-oc .t b { font-size: 15px; font-weight: 600; color: var(--tx); } .sb-oc .t small { font-size: 12px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-oc .bdg { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--pvc); background: var(--pvs); } .sb-oc > svg.i { width: 16px; height: 16px; flex: none; color: var(--tx2); }
/* 2026-11-13 แบนเนอร์ชวนเพื่อนหน้าแรก: ลดความสูง (ผู้ใช้ขอ) 124 → ~88px */ .dm-ban { min-height: 88px; } .dm-ban .tx { padding: 8px 0; } .dm-ban .vc { margin-top: 4px; } .dm-ban .im { width: clamp(52px, 15vw, 66px) !important; height: clamp(52px, 15vw, 66px) !important; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35), 0 0 0 5px #eef0f3 !important; } .dm-ban .go em { padding: 8px 12px; } .dm-ban .go { gap: 3px; }
/* 2026-11-13 การ์ดร้าน B: ขอบซ้ายไล่สีแบบ ::before (border-image เดิมมีเส้นเกินที่มุม) */ .sb-ob { position: relative; overflow: hidden; border-left: 1px solid var(--ln); border-image: none; clip-path: none; border-radius: 20px; padding-left: 18px; } .sb-ob::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(#4338ca, #2563eb 50%, #06b6d4); }
.mz-oth { margin-top: 10px; }
.mz-f .in.mz-auto { box-shadow: 0 0 0 3px rgba(34, 211, 238, .35); transition: box-shadow .3s; }
body.mz textarea.in { width: 100%; resize: vertical; line-height: 1.5; }
/* 2026-11-13 ร้านยังไม่ขึ้นหน้าแอป + ป้ายรอตรวจรายการ */
.mz-ready { margin: 12px 18px 0; padding: 12px 14px; border-radius: 16px; background: var(--was); border: 1px solid rgba(245, 158, 11, .35); }
.mz-ready > b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--wa) !important; } .mz-ready > b svg.i { width: 17px; height: 17px; } .mz-ready > small { font-size: 12px; }
.mz-ready ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; } .mz-ready li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--tx); }
.mz-ready li svg.i { width: 16px; height: 16px; flex: none; color: var(--wa); } .mz-ready li.ok { color: var(--tx2); text-decoration: line-through; } .mz-ready li.ok svg.i { color: var(--okc); stroke-width: 3; }
.mz-it .t .mz-st { align-self: flex-start; margin: 2px 0; white-space: normal; font-size: 10.5px; line-height: 1.35; }
.mz-shb .fm .mz-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; } .mz-shb .fm .mz-hint svg.i { width: 15px; height: 15px; flex: none; }
.sb-ob .t em.off { color: #f59e0b; }
/* 2026-11-17 ปุ่มอัปเกรด สีทอง (แถบ 4 ปุ่มหน้าแรก + แผงจอคอม) */
.dm-act a.gold, .dk-qa a.gold { color: #fde68a; font-weight: 600; }
body.dm .dm-act a.gold span, .dm-act a.gold span, .dk-qa a.gold span { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(135deg, #fff3b0 0%, #f5c542 45%, #d4961c 100%); color: #5a3a00; box-shadow: 0 0 0 1px rgba(255, 236, 160, .7) inset, 0 6px 16px -6px rgba(212, 150, 28, .9); }
.dm-act a.gold svg.i, .dk-qa a.gold svg.i { stroke: #5a3a00; stroke-width: 2.2; }

/* ===== 2026-11-17 ไอคอนปุ่มอัปเกรด แบบ C บั้งยศในเหรียญทอง (inc/up_icon.php) · แถบหน้าแรก + แผงจอคอม ===== */
.dm-act a.uic-c span, .dk-qa a.uic-c span { position: relative; overflow: hidden; }
.dm-act a.uic-c svg.uic, .dk-qa a.uic-c svg.uic { width: 30px; height: 30px; display: block; position: relative; z-index: 1; animation: uicUp 2.4s ease-in-out infinite; }
body.dm .dm-act a.uic-c span, .dm-act a.uic-c span, .dk-qa a.uic-c span { border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff6c4 0%, #f5c542 45%, #c98a12 100%); box-shadow: 0 0 0 3px rgba(245, 197, 66, .28), 0 0 0 1.5px #fff1b8 inset, 0 8px 18px -8px rgba(212, 150, 28, 1); }
@keyframes uicUp { 0%, 70%, 100% { transform: translateY(0); } 82% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dm-act a.uic-c svg.uic, .dk-qa a.uic-c svg.uic { animation: none; } }
/* ===== 2026-11-17 การ์ดคอม แบบ A + รอบจ่ายถัดไป/ประวัติ (ไม่มีถอน · ผู้ใช้สั่ง) · home_dm.php ===== */
.cwx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--grad); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .9); white-space: nowrap; }
.cwx-btn svg.i { width: 18px; height: 18px; stroke: #fff; }
.dm-tiles .com .cwx-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--sf2); }
.dm-tiles .com .cwx-wd { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dm-tiles .com .cwx-wd small { font-size: 11.5px; color: var(--tx2); }
.dm-tiles .com .cwx-wd b { font-size: 20px; color: #22d3ee; }
.dm-tiles .com.cw-c > .h + .row b { color: #22d3ee; }
html[data-mode="light"] .dm-tiles .com .cwx-wd b { color: #0e7490; }   /* 2026-11-17 ผู้ใช้: สีถอนได้เข้มขึ้น (โหมดสว่าง) */
.dm-tiles .com .cwx-wd em { font-style: normal; font-size: 11px; color: var(--tx2); }

/* ===== 2026-11-17 แถว E-Coupon / E-Trip + ปุ่ม แบบ C ผู้ใช้เลือก (home_dm.php $wtRows) ===== */
.wt { margin: 10px 16px 0; display: grid; gap: 10px; color: var(--tx); }
.wt small, .wt em { color: var(--tx2); font-style: normal; }
.wt .ic, .wt i.ec, .wt i.et { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.wt i.ec { background: linear-gradient(135deg, #4338ca, #2563eb 55%, #06b6d4); }
.wt i.et { background: linear-gradient(135deg, #0f766e, #14b8a6 55%, #fbbf24); }
.wt i svg { width: 22px; height: 22px; stroke: #fff; }
.wt .pg { display: block; height: 6px; border-radius: 9px; background: var(--ln); overflow: hidden; margin-top: 6px; }
.wt .pg i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #14b8a6, #fbbf24); }
.wt-p { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wt-p.et { background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #f59e0b); }
/* C การ์ดเดียว 2 แถว */
.wt-cd { border-radius: 18px; background: var(--sf); border: 1px solid var(--ln); overflow: hidden; }
.wv-c .wt-r { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; }
.wv-c .wt-r + .wt-r { border-top: 1px solid var(--ln); }
.wv-c .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wv-c .t b { font-size: 20px; } .wv-c .t small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-p { height: 36px; border-radius: 999px; padding: 0 16px; font-size: 13px; }
.cwx-btn { text-decoration: none; }

/* ===== 2026-11-17 E-Coupon มูลค่าใกล้หมดอายุ (แดง เล็ก) แบบ C ชิปข้างยอด · ผู้ใช้เลือก ===== */
.wt .t b .cx-c { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 8px; height: 20px; padding: 0 7px; border-radius: 6px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 600; }
.dm-tiles .com a.cwx-btn svg.i { stroke: #fff; }

.dm-tiles .com a.cwx-btn { display: inline-flex; flex: none; width: auto; min-height: 0; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--grad); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .9); }   /* ปุ่มประวัติการจ่าย (กฎ .dm-tiles a ทับเป็นพื้นขาว) */

/* 2026-11-17 ราคาสมาชิกอัปเกรด (product.php) */
.pd-mem { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(34, 197, 94, .1); border: 1px dashed rgba(34, 197, 94, .5); color: var(--tx); font-size: 13px; text-decoration: none; }
.pd-mem b { color: #16a34a; font-size: 15px; } .pd-mem em { font-style: normal; font-weight: 600; color: #16a34a; white-space: nowrap; }
/* 2026-11-17 การ์ด Binary ในหน้าสายงาน */
.bnx { margin: 12px 18px 0; padding: 14px; }
.bnx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; } .bnx-h b { font-size: 14.5px; font-weight: 600; } .bnx-h small { font-size: 12px; color: var(--tx2); }
.bnx-h .ok { color: var(--ok, #16a34a); font-weight: 600; } .bnx-h .no { color: var(--bad, #e5484d); font-weight: 600; }
.bnx-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; text-align: center; }
.bnx-g span { background: var(--acs); border-radius: 12px; padding: 8px 4px; } .bnx-g small { display: block; font-size: 11.5px; color: var(--tx2); } .bnx-g b { font-size: 16px; font-weight: 700; }
.bnx p { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; }
.bnx-g small.no { color: var(--bad, #e5484d); font-size: 10.5px; }

/* 2026-11-17 คอร์ส / เว็บ & โปรแกรม: Coming soon แทนราคา (course_soon_tag ใน inc/boot.php) */
.cv-soon{position:relative;overflow:hidden;display:inline-block;flex:none;padding:4px 11px;border-radius:999px;background:linear-gradient(135deg,#fde68a,#fbbf24 50%,#f59e0b);color:#422006!important;font-weight:800;font-size:11.5px;letter-spacing:.08em;white-space:nowrap;line-height:1.4}
.cv-soon:after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);transform:skewX(-20deg);animation:cvSoon 2.6s ease-in-out infinite}
@keyframes cvSoon{0%,55%{left:-60%}100%{left:130%}}
@media (prefers-reduced-motion:reduce){.cv-soon:after{animation:none}}
.cv-btn.soon,.cv-btn:disabled{opacity:.55;cursor:not-allowed}

/* 2026-11-17 กราฟคอมหน้าแรก (แบบ a): แตะจุด / ชื่อเดือน ดูยอดเดือนนั้น */
.dm-tiles .com .pta::after { inset: 7px; border-width: 2px; opacity: .0; transition: opacity .2s; }
.dm-tiles .com .cw:hover .pta::after, .dm-tiles .com .pta.on::after { opacity: 1; }
.dm-tiles .com .pta.on::after { background: #22d3ee; }
.dm-tiles .com .tipa { z-index: 2; transition: left .25s, top .25s; }
.dm-tiles .com .moa button { flex: 1; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 10.5px; color: var(--tx2); cursor: pointer; border-radius: 8px; }
.dm-tiles .com .moa button.on { color: #22d3ee; font-weight: 600; background: rgba(34,211,238,.1); }
.dm-tiles .com .cw .dot { transition: opacity .2s; }

/* 2026-11-17 การ์ดคอมหน้าแรก: ยอดสะสม + ยอดเดือนที่เลือก ?cm=a|b|c (inc/home_dm.php) */
.dm-tiles .com .cma { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 8px; }
.dm-tiles .com .cma .tot small, .dm-tiles .com .cmb .tot small, .dm-tiles .com .cmb-v small { display: block; font-size: 11.5px; color: var(--tx2); }
.dm-tiles .com .cma .tot b { display: block; font-size: 30px; line-height: 1.1; }
.dm-tiles .com .cma .cur { min-width: 128px; padding: 8px 12px; border-radius: 14px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.28); text-align: right; }
.dm-tiles .com .cma .cur small { display: block; font-size: 11px; color: var(--tx2); }
.dm-tiles .com .cma .cur b { display: block; font-size: 19px; color: #22d3ee; line-height: 1.2; }
html[data-mode="light"] .dm-tiles .com .cma .cur b, html[data-mode="light"] .dm-tiles .com .cmb-v b { color: #0e7490; }
.dm-tiles .com [data-cm-p] { font-style: normal; font-size: 11px; font-weight: 600; color: #16a34a; }
.dm-tiles .com [data-cm-p].dn { color: #ef4444; }
.dm-tiles .com .cmb { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.dm-tiles .com .cmb .seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sf2); }
.dm-tiles .com .cmb .seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 12px; color: var(--tx2); cursor: pointer; }
.dm-tiles .com .cmb .seg button.on { background: var(--sf); color: var(--tx); font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.dm-tiles .com .cmb .tot { text-align: right; } .dm-tiles .com .cmb .tot b { font-size: 15px; }
.dm-tiles .com .cmb-v { display: block; margin-top: 6px; } .dm-tiles .com .cmb-v b { display: inline-block; font-size: 28px; line-height: 1.15; margin-right: 6px; }
.dm-tiles .com .g-c, .dm-tiles .com .pt-c { display: none; }
.dm-tiles .com.cm-cum .g-c, .dm-tiles .com.cm-cum .pt-c { display: block; } .dm-tiles .com.cm-cum .g-m, .dm-tiles .com.cm-cum .pt-m { display: none; }
.dm-tiles .com.cm-cum .cmb-v b { color: #f59e0b; }
.dm-tiles .com .cmc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dm-tiles .com .cmc .pl { position: relative; padding: 9px 12px 9px 24px; border-radius: 14px; background: var(--sf2); }
.dm-tiles .com .cmc .pl i { position: absolute; left: 11px; top: 14px; width: 8px; height: 8px; border-radius: 50%; }
.dm-tiles .com .cmc .pl-c i { background: #f59e0b; } .dm-tiles .com .cmc .pl-m i { background: #22d3ee; }
.dm-tiles .com .cmc .pl small { display: block; font-size: 11px; color: var(--tx2); } .dm-tiles .com .cmc .pl b { display: block; font-size: 18px; line-height: 1.2; }
.dm-tiles .com .cwc { height: 96px; margin-top: 10px; } .dm-tiles .com .cwc svg.sp { position: absolute; inset: 0; height: 100%; }
.dm-tiles .com .cbar { position: absolute; bottom: 0; width: 12%; margin-left: -6%; border: 0; padding: 0; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(34,211,238,.55), rgba(37,99,235,.25)); cursor: pointer; transform-origin: bottom; animation: cmGrow .7s cubic-bezier(.2,.8,.2,1) both; transition: background .2s; }
.dm-tiles .com .cbar.on { background: linear-gradient(180deg, #22d3ee, #2563eb); }
.dm-tiles .com .cbar:nth-child(2) { animation-delay: .06s } .dm-tiles .com .cbar:nth-child(3) { animation-delay: .12s } .dm-tiles .com .cbar:nth-child(4) { animation-delay: .18s } .dm-tiles .com .cbar:nth-child(5) { animation-delay: .24s } .dm-tiles .com .cbar:nth-child(6) { animation-delay: .3s }
@keyframes cmGrow { from { transform: scaleY(0); } }
.dm-tiles .com .pt-b::after { opacity: 0 !important; }
.cm-sw { position: fixed; left: 10px; bottom: 96px; z-index: 99; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20,20,30,.88); }
.cm-sw a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #c9c6e0; font-weight: 600; text-decoration: none; } .cm-sw a.on { background: #e8b730; color: #2a1a02; }/* 2026-11-17 การ์ดคอม: ยอดสะสม + เงินในกระเป๋าตอนนี้ */
.dm-tiles .com .cma .cur em.wl { font-style: normal; font-size: 10.5px; color: var(--tx2); }
.dm-tiles .com .cmb-v2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 8px; }
.dm-tiles .com .cmb-v2 small { display: block; font-size: 11.5px; color: var(--tx2); }
.dm-tiles .com .cmb-v2 b { display: block; font-size: 28px; line-height: 1.15; }
.dm-tiles .com .cmb-v2 .w { padding: 7px 12px; border-radius: 14px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.28); text-align: right; }
.dm-tiles .com .cmb-v2 .w b { font-size: 18px; color: #22d3ee; } html[data-mode="light"] .dm-tiles .com .cmb-v2 .w b { color: #0e7490; }
.dm-tiles .com .cmb { justify-content: flex-start; }.dm-tiles .com .cma + .cw, .dm-tiles .com .cmb-v2 + .cw { margin-top: 32px; }   /* ป้ายยอดเดือนไม่ทับกล่องเงินในกระเป๋า */
.dm-tiles .com .cwc { margin-top: 30px; }   /* เว้นที่ให้ป้ายยอดเหนือแท่งสูงสุด ไม่ชนกล่องด้านบน */
.dm-tiles .com .tipa { max-width: 100%; }

/* 2026-11-17 กล่องรอบจ่ายในการ์ดคอม ?cb=a|b|c · ปุ่ม "ดูคอมมิชชั่น" */
.dm-tiles .com .cb { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--sf2); color: var(--tx); }
.dm-tiles .com .cb .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dm-tiles .com .cb .tx small { font-size: 11.5px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-tiles .com .cb .tx b { font-size: 16px; } .dm-tiles .com .cb .tx em { font-style: normal; font-size: 11.5px; color: var(--tx2); }
.dm-tiles .com a.cb-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 16px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; box-shadow: 0 10px 20px -12px rgba(37,99,235,.9); }
.dm-tiles .com a.cb-btn svg { width: 16px; height: 16px; transition: transform .2s; } .dm-tiles .com a.cb-btn:hover svg { transform: translateX(3px); }
/* a ปฏิทิน + แถบนับวัน */
.dm-tiles .com .cb-a .cal { flex: none; width: 52px; border-radius: 12px; overflow: hidden; background: var(--sf); text-align: center; box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); }
.dm-tiles .com .cb-a .cal i { display: block; padding: 2px 0; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2563eb, #06b6d4); }
.dm-tiles .com .cb-a .cal b { display: block; padding: 3px 0 4px; font-size: 22px; line-height: 1.1; }
.dm-tiles .com .cb-a .bar { display: block; height: 5px; margin: 5px 0 2px; border-radius: 9px; background: rgba(127,127,140,.22); overflow: hidden; }
.dm-tiles .com .cb-a .bar i { display: block; height: 100%; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, #22d3ee, #2563eb); animation: cbGrow 1.2s cubic-bezier(.4,0,.2,1) both; }
@keyframes cbGrow { from { width: 0; } }
/* b วงแหวน + ปุ่มเต็มแถว */
.dm-tiles .com .cb-b { flex-direction: column; align-items: stretch; gap: 10px; }
.dm-tiles .com .cb-b .top { display: flex; align-items: center; gap: 12px; }
.dm-tiles .com .cb-b .ring { position: relative; flex: none; width: 52px; height: 52px; }
.dm-tiles .com .cb-b .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .dm-tiles .com .cb-b .ring circle { fill: none; stroke-width: 5; }
.dm-tiles .com .cb-b .ring .bg { stroke: rgba(127,127,140,.22); } .dm-tiles .com .cb-b .ring .fg { stroke: #22d3ee; stroke-linecap: round; stroke-dashoffset: var(--off); animation: cbRing 1.3s cubic-bezier(.4,0,.2,1) both; }
@keyframes cbRing { from { stroke-dashoffset: 138.2; } }
.dm-tiles .com .cb-b .ring b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; line-height: 1; } .dm-tiles .com .cb-b .ring b small { font-size: 9.5px; font-weight: 500; color: var(--tx2); }
.dm-tiles .com .cb-b .tx b { font-size: 20px; color: #22d3ee; } html[data-mode="light"] .dm-tiles .com .cb-b .tx b { color: #0e7490; }
.dm-tiles .com .cb-b a.cb-btn { justify-content: center; height: 44px; border-radius: 14px; }
/* c ตั๋ว */
.dm-tiles .com .cb-c { position: relative; padding: 0; overflow: hidden; background: var(--sf2); }
.dm-tiles .com .cb-c .stub { position: relative; flex: none; width: 66px; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, #2563eb, #06b6d4); color: #fff; line-height: 1.1; padding: 10px 0; }
.dm-tiles .com .cb-c .stub small { font-size: 10px; opacity: .85; } .dm-tiles .com .cb-c .stub b { font-size: 24px; } .dm-tiles .com .cb-c .stub i { font-style: normal; font-size: 11px; font-weight: 600; }
.dm-tiles .com .cb-c .stub:after { content: ""; position: absolute; right: -1px; top: 6px; bottom: 6px; border-right: 2px dashed var(--sf2); }
.dm-tiles .com .cb-c:before, .dm-tiles .com .cb-c:after { content: ""; position: absolute; left: 59px; width: 14px; height: 14px; border-radius: 50%; background: var(--sf); z-index: 1; }
.dm-tiles .com .cb-c:before { top: -7px; } .dm-tiles .com .cb-c:after { bottom: -7px; }
.dm-tiles .com .cb-c .tx { padding: 10px 0; } .dm-tiles .com .cb-c .tx b { font-size: 20px; } .dm-tiles .com .cb-c a.cb-btn { margin-right: 12px; }
html[data-mode="light"] .dm-tiles .com .cb-c:before, html[data-mode="light"] .dm-tiles .com .cb-c:after { background: #fff; }.dm-tiles .com .cb-a .tx b { font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 2026-11-17 ผู้ใช้: ตัวเลขในปฏิทินเบี้ยว → จัดกลางแบบตายตัว */
.dm-tiles .com .cb-a .cal { display: flex; flex-direction: column; align-items: stretch; }
.dm-tiles .com .cb-a .cal i, .dm-tiles .com .cb-a .cal b { width: 100%; text-align: center; margin: 0; letter-spacing: 0; }
.dm-tiles .com .cb-a .cal b { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0; font-variant-numeric: tabular-nums; line-height: 1; }
/* จุดบนเส้นสะสม (ตรงกลางแท่งทุกเดือน) */
.dm-tiles .com .cdot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px var(--sf); pointer-events: none; z-index: 1; }.dm-tiles .com .cwc .ln { stroke: #f59e0b !important; stroke-width: 2.2; }   /* เส้นสะสมสีส้มตรงกับจุดสีในกล่องยอดสะสม */

/* 2026-11-18 เมนูล่าง "อัปเกรด" (ยังไม่อัปเกรด) ใช้ไอคอนเหรียญทองแบบ C */
.nav .nv-up { display: grid; place-items: center; width: 26px; height: 26px; }
.nav .nv-up svg { width: 26px; height: 26px; stroke: none; }
.nav a:has(.nv-up) span:last-child { color: #d97706; font-weight: 600; }
/* 2026-11-18 myshop: QR ร้านให้ลูกค้าสแกน + รายการเข้า */
.sqr{text-align:center;padding:4px 0 8px}.sqr-c{width:210px;margin:6px auto 10px;padding:10px;border-radius:18px;background:#fff;box-shadow:0 10px 24px -14px rgba(0,0,0,.5)}.sqr-c svg{display:block;width:100%;height:auto}
.sqr b{display:block;font-size:16px}.sqr small{display:block;margin-top:2px;font-size:12px;color:var(--tx2)}
.sqr-f{display:grid;gap:6px;margin-top:12px;text-align:left}.sqr-f .w{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border-radius:12px;background:var(--sf2);font-size:12.5px;color:var(--tx2)}.sqr-f .w i{width:8px;height:8px;border-radius:50%;background:#22c55e;animation:csPulse 1.6s infinite}
.sqr-f .it{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(34,197,94,.12);animation:spxP .4s cubic-bezier(.2,1.6,.4,1)}.sqr-f .it i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#16a34a;color:#fff;font-style:normal;font-size:13px}.sqr-f .it span{flex:1;min-width:0}.sqr-f .it b{font-size:13.5px}.sqr-f .it small{margin:0}.sqr-f .it strong{color:#16a34a}
@keyframes spxP{from{transform:scale(.6);opacity:0}}@keyframes csPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}70%{box-shadow:0 0 0 7px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.sqr-alt{margin-top:10px;border-top:1px solid var(--ln);padding-top:8px}.sqr-alt summary{cursor:pointer;font-size:13px;color:var(--tx2);padding:6px 0}
body:has(.mz-sh:not([hidden])) .ib-bar, body:has(.cv-sh:not([hidden])) .ib-bar, body:has(.et-sh:not([hidden])) .ib-bar { display: none !important; }   /* 2026-11-18 แถบติดตั้งแอปไม่ทับแผ่นที่เปิดอยู่ */

/* 2026-11-18 แอนิเมชันไอคอน "อัปเกรด" ในเมนูล่าง · ผู้ใช้เลือก B + บั้งสีทองจริง (ไล่สี #uaGold ใน boot.php) · A/C เก็บไว้ในโค้ด
   a บั้งสว่างไล่ขึ้นทีละขั้น + ประกายกระพริบ / b ไอคอนเด้งขึ้น + วงแสงทองกระเพื่อม / c เหรียญทองลอย + แสงวิ่งผ่าน */
.nav .nv-up { position: relative; }
.nav .nv-up .ua-fx { position: absolute; inset: -6px; pointer-events: none; border-radius: 50%; }
.nav .nv-up svg path:last-child { transform-box: fill-box; transform-origin: center; }
/* A */
.ua-a svg path:nth-of-type(1), .ua-a svg path:nth-of-type(2), .ua-a svg path:nth-of-type(3) { animation: uaRise 2.4s ease-in-out infinite; }
.ua-a svg path:nth-of-type(3) { animation-delay: 0s; } .ua-a svg path:nth-of-type(2) { animation-delay: .18s; } .ua-a svg path:nth-of-type(1) { animation-delay: .36s; }
@keyframes uaRise { 0%, 40%, 100% { stroke: #5a3a00; transform: none; } 15% { stroke: #f59e0b; transform: translateY(-2.5px); filter: drop-shadow(0 0 3px rgba(245,158,11,.9)); } }
.ua-a svg path:last-child { fill: #f59e0b; animation: uaTw 2.4s ease-in-out infinite .5s; }
@keyframes uaTw { 0%, 30%, 100% { transform: scale(0) rotate(0); opacity: 0; } 45% { transform: scale(1.4) rotate(90deg); opacity: 1; } 60% { transform: scale(.9) rotate(140deg); opacity: 1; } }
/* B */
.ua-b svg { animation: uaHop 2s cubic-bezier(.3,1.6,.5,1) infinite; transform-origin: 50% 100%; }
@keyframes uaHop { 0%, 55%, 100% { transform: none; } 20% { transform: translateY(-5px) scaleY(1.08); } 32% { transform: translateY(0) scaleY(.9) scaleX(1.06); } 42% { transform: translateY(-1.5px); } }
.ua-b .ua-fx::before, .ua-b .ua-fx::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #f59e0b; opacity: 0; animation: uaRip 2s ease-out infinite .3s; }
.ua-b .ua-fx::after { animation-delay: .6s; }
@keyframes uaRip { 0% { transform: scale(.5); opacity: .9; } 60%, 100% { transform: scale(1.35); opacity: 0; } }
.ua-b svg path:last-child { fill: #f59e0b; }
/* C */
.ua-c { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #fbbf24 55%, #d97706); box-shadow: 0 3px 8px -2px rgba(217,119,6,.7), inset 0 -2px 0 rgba(146,64,14,.35); overflow: hidden; animation: uaFloat 3s ease-in-out infinite; }
.nav .ua-c { width: 30px; height: 30px; margin-top: -4px; } .nav .ua-c svg { width: 22px; height: 22px; }
.ua-c .ua-fx { inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); transform: translateX(-120%); animation: uaShine 2.6s ease-in-out infinite; }
@keyframes uaShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes uaFloat { 50% { transform: translateY(-2px) rotate(-4deg); } }
.ua-c svg path:last-child { animation: uaTw 2.6s ease-in-out infinite 1.4s; }
.ua-sw { position: fixed; left: 50%; bottom: calc(80px + var(--sbot, 0px)); transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: #1f2937; }
.ua-sw b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #cbd5e1; font-size: 12px; cursor: pointer; } .ua-sw b.on { background: #e8b730; color: #2a1a02; }
@media (prefers-reduced-motion: reduce) { .nv-up, .nv-up * { animation: none !important; } }

.nav .ua-b svg.uic path:not(:last-child) { stroke: url(#uaGold); filter: drop-shadow(0 1px 1px rgba(146,64,14,.35)); }   /* 2026-11-18 บั้งสีทองจริง ไม่ใช้สีน้ำตาลเข้ม */
.nav .ua-b svg.uic path:nth-of-type(2) { opacity: .85 !important; } .nav .ua-b svg.uic path:nth-of-type(3) { opacity: .65 !important; }
/* 2026-11-18 กล่องขาซ้าย/ขวาเป็นหลัก: บรรทัด 'รอจับคู่' + การ์ด Binary ช่องเดียว */
.bt-legs small.wt { margin-top: 6px; font-size: 11px; color: var(--tx2); }
.bnx-g.one { grid-template-columns: 1fr !important; }

/* ===== 2026-11-18 โลโก้ใหม่ (assets/img/oneva_logo.webp?v=20261122 = โลโก้เงิน-ฟ้าบนพื้นมืด) · โหมดสว่างกลับสีเป็นเงินเข้มด้วย filter ===== */
.ov-logo { display: block; width: auto; max-width: none; }
html[data-mode="light"] .ov-logo, .ov-logo.on-light { filter: invert(.82) hue-rotate(180deg) saturate(1.6) brightness(.9); }
.dm-logo img.ov-logo { height: 34px; margin: 0 auto; }
.dk-logo img.ov-logo { height: 42px; }
.dkh-logo img.ov-logo { width: auto; height: 42px; }
.dk-mark img.ov-logo { width: 38px !important; height: 38px !important; object-fit: contain; }
.mo-hero .brand img { width: min(80%, 330px); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(2, 8, 30, .45)); }
/* ===== 2026-11-18 โหมดมืดโทนกรมท่า (ref ภาพโปรโมต ONEVA: พื้นน้ำเงินเข้มไล่เฉด + ปุ่ม/ป้ายสีเงิน) · body.nk-a|b|c (boot.php ?nk=) · มีผลเฉพาะโหมดมืด ===== */
html:not([data-mode="light"]) body.dm.nk { --bg0: #020a24; --bg1: #061747; --sf: #0b1f57; --sf2: #12296d; --ln: rgba(148, 176, 255, .16); --top: #051440; --tx: #f1f5ff; --tx2: #a7b6dc;
  --ac: #38bdf8; --ac2: #7dd3fc; --acs: rgba(56, 189, 248, .16); --gl: 14, 70, 200; --ring: #dbe7ff; --grad: linear-gradient(120deg, #1d4ed8 0%, #2563eb 50%, #38bdf8 100%);
  background: radial-gradient(120% 60% at 50% 0, #0d2a78 0%, #041237 55%, #01061a 100%) fixed; }
html:not([data-mode="light"]) body.dm.nk .app { background: radial-gradient(130% 420px at 50% 0, rgba(37, 99, 235, .35), transparent 70%), linear-gradient(180deg, #071a4f 0, #041235 45%, #020a24 100%); }
html:not([data-mode="light"]) body.dm.nk .dm-hd, html:not([data-mode="light"]) body.dm.nk .nav { background: rgba(5, 20, 64, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(148, 176, 255, .14); }
html:not([data-mode="light"]) body.dm.nk .dm-tiles a, html:not([data-mode="light"]) body.dm.nk .dm-pc { background: linear-gradient(180deg, rgba(23, 52, 140, .55), rgba(10, 30, 88, .55)); border-color: rgba(148, 176, 255, .18); }
html:not([data-mode="light"]) body.dm.nk .dm-ban .im { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45), 0 0 0 10px #dbe4f5; }

/* ===== 2026-11-18 ผู้ใช้: เอาสีเทา-เงินมาตัดที่ปุ่ม/แท็บ (ref หน้าจอสมัคร ONEVA) · 3 แบบบนพื้นกรมท่า ===== */
html:not([data-mode="light"]) body.dm.nk { --sv: linear-gradient(180deg, #ffffff 0%, #e6ebf2 38%, #b7c1d1 64%, #edf1f6 100%); --svt: #0a1d55; --svl: rgba(214, 222, 235, .55); --ac: #7dd3fc; }
html:not([data-mode="light"]) body.dm.nk .dm-ban { --ac: #2563eb; }

/* A ปุ่มเงินทรงแคปซูล (เหมือนปุ่ม "ลงทะเบียน" ใน ref) · แท็บที่เลือก = เงิน · ช่องกรอก = ขอบเงินโปร่ง */
html:not([data-mode="light"]) body.dm.nk-a .btn:not(.ghost):not(.line), html:not([data-mode="light"]) body.dm.nk-a .dm-ban .go em, html:not([data-mode="light"]) body.dm.nk-a .dm-pc .ft button, html:not([data-mode="light"]) body.dm.nk-a .bts .bt:not(.gh):not(.ol), html:not([data-mode="light"]) body.dm.nk-a .dkh-iv button, html:not([data-mode="light"]) body.dm.nk-a .dkh-iv .go, html:not([data-mode="light"]) body.dm.nk-a .wal .go, html:not([data-mode="light"]) body.dm.nk-a .buybar .btn { background: var(--sv) !important; color: var(--svt) !important; border: 0 !important; border-radius: 999px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120, 135, 160, .35) !important; font-weight: 700; }
html:not([data-mode="light"]) body.dm.nk-a .tabs a, html:not([data-mode="light"]) body.dm.nk-a .chips a, html:not([data-mode="light"]) body.dm.nk-a .dkh-hs .tb button { background: transparent; border: 1px solid var(--svl); color: #cdd6e6; border-radius: 999px; }
html:not([data-mode="light"]) body.dm.nk-a .tabs a.on, html:not([data-mode="light"]) body.dm.nk-a .chips a.on, html:not([data-mode="light"]) body.dm.nk-a .dkh-hs .tb button.on, html:not([data-mode="light"]) body.dm.nk-a .dkp-side > a.on, html:not([data-mode="light"]) body.dm.nk-a .dk-mn a.on { background: var(--sv) !important; color: var(--svt) !important; border-color: transparent !important; box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(0, 0, 0, .7) !important; }
html:not([data-mode="light"]) body.dm.nk-a .in, html:not([data-mode="light"]) body.dm.nk-a .search, html:not([data-mode="light"]) body.dm.nk-a .sr label, html:not([data-mode="light"]) body.dm.nk-a .qty { background: rgba(4, 14, 48, .55) !important; border: 1.5px solid var(--svl) !important; border-radius: 999px; color: #eef2ff; }
html:not([data-mode="light"]) body.dm.nk-a .bts .bt.gh, html:not([data-mode="light"]) body.dm.nk-a .bts .bt.ol { border: 1.5px solid rgba(226, 232, 240, .75); color: #f1f5f9 !important; border-radius: 999px; }
html:not([data-mode="light"]) body.dm.nk-a .dm-act span { width: 48px; height: 48px; border-radius: 15px; background: var(--sv); color: var(--svt); box-shadow: inset 0 1px 0 #fff, 0 8px 16px -10px rgba(0, 0, 0, .7); } html:not([data-mode="light"]) body.dm.nk-a .dm-act svg.i { width: 26px; height: 26px; }
html:not([data-mode="light"]) body.dm.nk-a .dm-act { background: linear-gradient(180deg, #0d2a78, #071b55); }
html:not([data-mode="light"]) body.dm.nk-a .nav a.on { color: #e9eef6; } html:not([data-mode="light"]) body.dm.nk-a .nav a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sv); }
html:not([data-mode="light"]) body.dm.nk-a .nav a { position: relative; }
html:not([data-mode="light"]) body.dm.nk-a .dkh-hd nav a.on::after { background: var(--sv); }

/* B ขอบโครเมียม: ปุ่มกรมท่าขอบเงินไล่เฉด ตัวหนังสือเงิน · แท็บเลือกแล้ว = ขีดเงินใต้ */
html:not([data-mode="light"]) body.dm.nk-b .btn:not(.ghost):not(.line), html:not([data-mode="light"]) body.dm.nk-b .dm-ban .go em, html:not([data-mode="light"]) body.dm.nk-b .dm-pc .ft button, html:not([data-mode="light"]) body.dm.nk-b .bts .bt:not(.gh):not(.ol), html:not([data-mode="light"]) body.dm.nk-b .dkh-iv button, html:not([data-mode="light"]) body.dm.nk-b .dkh-iv .go, html:not([data-mode="light"]) body.dm.nk-b .wal .go, html:not([data-mode="light"]) body.dm.nk-b .buybar .btn { background: linear-gradient(180deg, #14348f, #0a1f5c) padding-box, var(--sv) border-box !important; border: 1.5px solid transparent !important; color: #f1f5f9 !important; border-radius: 14px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .85) !important; }
html:not([data-mode="light"]) body.dm.nk-b .tabs a, html:not([data-mode="light"]) body.dm.nk-b .chips a, html:not([data-mode="light"]) body.dm.nk-b .dkh-hs .tb button { background: transparent; border: 0; border-radius: 0; color: #9fb0d4; padding-left: 4px; padding-right: 4px; margin-right: 10px; box-shadow: inset 0 -2px 0 rgba(148, 176, 255, .14); }
html:not([data-mode="light"]) body.dm.nk-b .tabs a.on, html:not([data-mode="light"]) body.dm.nk-b .chips a.on, html:not([data-mode="light"]) body.dm.nk-b .dkh-hs .tb button.on, html:not([data-mode="light"]) body.dm.nk-b .dkp-side > a.on, html:not([data-mode="light"]) body.dm.nk-b .dk-mn a.on { background: transparent !important; color: #fff !important; box-shadow: inset 0 -3px 0 #d8dfea !important; }
html:not([data-mode="light"]) body.dm.nk-b .in, html:not([data-mode="light"]) body.dm.nk-b .search, html:not([data-mode="light"]) body.dm.nk-b .sr label, html:not([data-mode="light"]) body.dm.nk-b .qty { background: linear-gradient(#081a4d, #081a4d) padding-box, linear-gradient(180deg, #e2e8f0, #64748b) border-box !important; border: 1.5px solid transparent !important; color: #eef2ff; }
html:not([data-mode="light"]) body.dm.nk-b .bts .bt.gh, html:not([data-mode="light"]) body.dm.nk-b .bts .bt.ol { background: transparent; border: 1.5px solid #cbd5e1; }
html:not([data-mode="light"]) body.dm.nk-b .dm-act { background: #071a50; border-top: 1.5px solid #c7d0de; border-bottom: 1.5px solid #c7d0de; } html:not([data-mode="light"]) body.dm.nk-b .dm-act a { color: #e2e8f0; }
html:not([data-mode="light"]) body.dm.nk-b .dm-act span { width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(#0e2a75, #0e2a75) padding-box, var(--sv) border-box; border: 1.5px solid transparent; color: #e2e8f0; } html:not([data-mode="light"]) body.dm.nk-b .dm-act svg.i { width: 26px; height: 26px; }
html:not([data-mode="light"]) body.dm.nk-b .dm-tiles a, html:not([data-mode="light"]) body.dm.nk-b .dm-pc { background: linear-gradient(180deg, #102b78, #0a1e58) padding-box, linear-gradient(180deg, rgba(226, 232, 240, .7), rgba(100, 116, 139, .25)) border-box; border: 1px solid transparent; }
html:not([data-mode="light"]) body.dm.nk-b .nav a.on { color: #fff; }

/* C แถบหัวเงินแบบการ์ด ref: แถบเมนูลัดเงินเต็มแถบ · แท็บเป็นแคปซูลในรางมืด · หัวข้อเป็นป้ายเงิน */
html:not([data-mode="light"]) body.dm.nk-c .btn:not(.ghost):not(.line), html:not([data-mode="light"]) body.dm.nk-c .dm-ban .go em, html:not([data-mode="light"]) body.dm.nk-c .dm-pc .ft button, html:not([data-mode="light"]) body.dm.nk-c .bts .bt:not(.gh):not(.ol), html:not([data-mode="light"]) body.dm.nk-c .dkh-iv button, html:not([data-mode="light"]) body.dm.nk-c .dkh-iv .go, html:not([data-mode="light"]) body.dm.nk-c .wal .go, html:not([data-mode="light"]) body.dm.nk-c .buybar .btn { background: var(--sv) !important; color: var(--svt) !important; border: 0 !important; border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8), inset 0 1px 0 #fff !important; font-weight: 700; }
html:not([data-mode="light"]) body.dm.nk-c .tabs, html:not([data-mode="light"]) body.dm.nk-c .chips, html:not([data-mode="light"]) body.dm.nk-c .dkh-hs .tb { background: rgba(2, 8, 30, .45); border: 1px solid rgba(214, 222, 235, .18); border-radius: 999px; padding: 4px; margin-left: 14px; margin-right: 14px; gap: 2px; }
html:not([data-mode="light"]) body.dm.nk-c .tabs a, html:not([data-mode="light"]) body.dm.nk-c .chips a, html:not([data-mode="light"]) body.dm.nk-c .dkh-hs .tb button { background: transparent; border: 0; color: #b9c5dc; border-radius: 999px; }
html:not([data-mode="light"]) body.dm.nk-c .tabs a.on, html:not([data-mode="light"]) body.dm.nk-c .chips a.on, html:not([data-mode="light"]) body.dm.nk-c .dkh-hs .tb button.on, html:not([data-mode="light"]) body.dm.nk-c .dkp-side > a.on, html:not([data-mode="light"]) body.dm.nk-c .dk-mn a.on { background: var(--sv) !important; color: var(--svt) !important; box-shadow: inset 0 1px 0 #fff !important; }
html:not([data-mode="light"]) body.dm.nk-c .in, html:not([data-mode="light"]) body.dm.nk-c .search, html:not([data-mode="light"]) body.dm.nk-c .sr label, html:not([data-mode="light"]) body.dm.nk-c .qty { background: rgba(255, 255, 255, .06) !important; border: 1.5px solid rgba(214, 222, 235, .4) !important; border-radius: 14px; color: #eef2ff; }
html:not([data-mode="light"]) body.dm.nk-c .dm-act { background: linear-gradient(180deg, #ffffff 0%, #e9edf3 45%, #cdd5e1 100%); box-shadow: none; border: 0; margin-bottom: 0; }   /* 2026-11-18 ผู้ใช้: เห็นขอบใต้แถบ → เอาเส้นออก */ html:not([data-mode="light"]) body.dm.nk-c .dm-act a { color: var(--svt); font-weight: 600; }
html:not([data-mode="light"]) body.dm.nk-c .dm-hs b { display: inline-block; padding: 4px 14px 5px; border-radius: 10px 10px 10px 2px; background: var(--sv); color: var(--svt); font-size: 14px; box-shadow: inset 0 1px 0 #fff; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles a { border-top: 3px solid #d5dce7; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles .h i, html:not([data-mode="light"]) body.dm.nk-c .dm-cart .bd { background: var(--sv); color: var(--svt); }
html:not([data-mode="light"]) body.dm.nk-c .bts .bt.gh, html:not([data-mode="light"]) body.dm.nk-c .bts .bt.ol { border: 1.5px solid rgba(226, 232, 240, .75); color: #f1f5f9 !important; }
html:not([data-mode="light"]) body.dm.nk-c .nav a.on { color: #e9eef6; }
/* ปุ่มสลับแบบ (แสดงเมื่อเปิดด้วย ?nk=) */
.nk-sw { position: fixed; left: 12px; bottom: calc(var(--sbot) + 92px); z-index: 4000; display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 999px; background: #0b1220; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font: 600 12px Prompt, sans-serif; }
.nk-sw span { color: #94a3b8; padding: 0 6px 0 8px; } .nk-sw a { min-width: 34px; padding: 6px 8px; border-radius: 999px; text-align: center; color: #cbd5e1; } .nk-sw a.on { background: #fff; color: #0b1220; }
/* 2026-11-18 ผู้ใช้: มีช่องว่างเหนือหัวแอป → .app เว้นบน (6px + safe-area) ซ้ำกับหัว dm-hd ที่เว้น safe-area เองแล้ว · ให้หัวชิดขอบบน แล้วหัวรับ safe-area แทน */
body.dm .app:has(.dm-hd), body.dm .app:has(> .sh) { padding-top: 0; }
body.dm .app:has(> .sh) > .sh { padding-top: calc(var(--stop) + 8px); }
/* 2026-11-18 ผู้ใช้: กรอบไอคอนในแถบเมนูลัดสีเงิน (แบบ C) ให้ขาวชัด */
html:not([data-mode="light"]) body.dm.nk-c .dm-act a:not(.gold) span { width: 50px; height: 50px; border-radius: 16px; background: #fff; border: 2px solid #fff; color: #0a1d55; box-shadow: 0 6px 14px -6px rgba(10, 29, 85, .45), 0 0 0 1px rgba(10, 29, 85, .06); }
html:not([data-mode="light"]) body.dm.nk-c .dm-act svg.i { width: 27px; height: 27px; }
html:not([data-mode="light"]) body.dm.nk-c .dm-act a.gold { color: #8a5a00; }   /* ป้ายอัปเกรดบนแถบเงิน: ตัวหนังสือทองเข้มให้อ่านออก */

/* 2026-11-18 ผู้ใช้: ปุ่มสลับ/แท็บที่เลือกอยู่ (เช่น รายการร้าน | แผนที่) ในโหมดมืด = สีเงิน ตัวหนังสือกรมท่า · ทุกหน้า */
html:not([data-mode="light"]) body.dm.nk-c .nb-seg button.on, html:not([data-mode="light"]) body.dm.nk-c .tabs3 button.on, html:not([data-mode="light"]) body.dm.nk-c .nbm-chips a.on, html:not([data-mode="light"]) body.dm.nk-c .nb-ict button.on, html:not([data-mode="light"]) body.dm.nk-c .cv-seg button.on, html:not([data-mode="light"]) body.dm.nk-c .pm-tg button.on, html:not([data-mode="light"]) body.dm.nk-c .sp-crumb button.on, html:not([data-mode="light"]) body.dm.nk-c .so-tabs button.on, html:not([data-mode="light"]) body.dm.nk-c .so-seg button.on, html:not([data-mode="light"]) body.dm.nk-c .ox-tabs button.on, html:not([data-mode="light"]) body.dm.nk-c .dk-mn a.on, html:not([data-mode="light"]) body.dm.nk-c .dkp-side > a.on { background: var(--sv) !important; color: var(--svt) !important; box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(0, 0, 0, .7) !important; }
html:not([data-mode="light"]) body.dm.nk-c .nb-seg button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .tabs3 button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .nbm-chips a.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .nb-ict button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .cv-seg button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .pm-tg button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .sp-crumb button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .so-tabs button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .so-seg button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .ox-tabs button.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .dk-mn a.on svg.i, html:not([data-mode="light"]) body.dm.nk-c .dkp-side > a.on svg.i { color: var(--svt); stroke: var(--svt); }

/* 2026-11-18 ผู้ใช้: หัวผังสายงาน (tree.php) + ปุ่ม "ติดตั้งแอป ONEVA" ในโหมดมืด = สีเงิน */
html:not([data-mode="light"]) body.dm.nk-c .sx-hd { background: var(--sv); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .8), inset 0 1px 0 #fff; }
html:not([data-mode="light"]) body.dm.nk-c .sx-hd h1, html:not([data-mode="light"]) body.dm.nk-c .sx-hd .bk { color: var(--svt) !important; }
html:not([data-mode="light"]) body.dm.nk-c .sx-tg { background: rgba(10, 29, 85, .12); box-shadow: inset 0 1px 2px rgba(10, 29, 85, .18); }
html:not([data-mode="light"]) body.dm.nk-c .sx-tg button { color: #33456f; }
html:not([data-mode="light"]) body.dm.nk-c .sx-tg button.on { background: linear-gradient(180deg, #14348f, #0a1f5c); color: #fff; box-shadow: 0 4px 10px -4px rgba(10, 29, 85, .6); }
html:not([data-mode="light"]) body.dm.nk-c .ibx-go, html:not([data-mode="light"]) body.dm.nk-c .ibx-a .ibx-go, html:not([data-mode="light"]) body.dm.nk-c .ibx-b .ibx-go, html:not([data-mode="light"]) body.dm.nk-c .ibx-c .ibx-go, html:not([data-mode="light"]) body.dm.nk-c .ib-go { background: var(--sv) !important; color: var(--svt) !important; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8), inset 0 1px 0 #fff !important; }
html:not([data-mode="light"]) body.dm.nk-c .ibx-go svg, html:not([data-mode="light"]) body.dm.nk-c .ib-go svg { stroke: var(--svt); }
/* 2026-11-18 ปุ่มบนหน้าแรก (ใช้คูปอง / แลกทริป / ดูคอมมิชชั่น) ในโหมดมืด = สีเงินชุดเดียวกัน */
html:not([data-mode="light"]) body.dm.nk-c .wt-p, html:not([data-mode="light"]) body.dm.nk-c .wt-p.et, html:not([data-mode="light"]) body.dm.nk-c .dm-tiles .com a.cb-btn, html:not([data-mode="light"]) body.dm.nk-c .dme-pill, html:not([data-mode="light"]) body.dm.nk-c .dme-pill.gd { background: var(--sv) !important; color: var(--svt) !important; border: 0 !important; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .8), inset 0 1px 0 #fff !important; }
html:not([data-mode="light"]) body.dm.nk-c .wt-p svg, html:not([data-mode="light"]) body.dm.nk-c .dm-tiles .com a.cb-btn svg, html:not([data-mode="light"]) body.dm.nk-c .dme-pill svg { stroke: var(--svt); }
html:not([data-mode="light"]) body.dm.nk-c .pg-top .ft button, html:not([data-mode="light"]) body.dm.nk-c .dm-pc .ft button { background: var(--sv) !important; color: var(--svt) !important; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .8), inset 0 1px 0 #fff !important; } html:not([data-mode="light"]) body.dm.nk-c .pg-top .ft button svg { stroke: var(--svt); }

/* 2026-11-18 ผู้ใช้: ยังเห็นรอยต่อใต้แถบเมนูลัด (มือถือจอละเอียด เศษพิกเซลเว้นเส้นพื้นหลัง) → ให้ภาพสไลด์ซ้อนใต้แถบ 2px · ตัดเงา/เส้นทุกแบบ */
html:not([data-mode="light"]) body.dm.nk-c .dm-hero { margin-top: -2px; position: relative; z-index: 1; }
html:not([data-mode="light"]) body.dm.nk-c .dm-act, html:not([data-mode="light"]) body.dm.nk-c .dm-act.stick, html:not([data-mode="light"]) body.dm.nk-c .dm-act.stick.stk { box-shadow: none !important; border: 0 !important; }
html:not([data-mode="light"]) body.dm.nk-c .dm-act.stick.stk { box-shadow: 0 10px 18px -14px rgba(0, 0, 0, .7) !important; }

/* 2026-11-18 ผู้ใช้: เลื่อนลงแล้วแถบติดหัว (.stk) กรอบไอคอนขาวต้องเล็กลงตามแบบปุ่มอัปเกรด */
html:not([data-mode="light"]) body.dm.nk-c .dm-act a:not(.gold) span { transition: width .2s, height .2s, border-radius .2s; }
html:not([data-mode="light"]) body.dm.nk-c .dm-act.stick.stk a:not(.gold) span { width: 34px; height: 34px; border-radius: 11px; border-width: 1.5px; }
html:not([data-mode="light"]) body.dm.nk-c .dm-act.stick.stk svg.i { width: 20px; height: 20px; }

/* ===== 2026-11-18 หน้าแรกมืด A (ผู้ใช้เลือกจาก mockup_home_dark.php?v=a): โลโก้ใหญ่ + โลก · ปุ่มลัดกระจก (ติดบน+หดเมื่อเลื่อน) · ค้นหากระจก · สไลด์มุมมน · เมนูล่างกระจกลอย ===== */
.ha-br, .ha-sr { display: none; }
html:not([data-mode="light"]) body.dm.nk-c .app:has(.ha-br) { background: radial-gradient(120% 360px at 50% 330px, rgba(28,66,175,.42) 0%, rgba(28,66,175,.24) 35%, rgba(28,66,175,.08) 62%, rgba(28,66,175,0) 85%), linear-gradient(180deg, #081b55 0, #071850 260px, #051244 520px, #030c33 820px, #020a26 1100px); }   /* 2026-11-18 ผู้ใช้: ชอบมืดเหมือนเดิมแต่ไม่ให้ตัดกับแถบเวลา → ขอบบนสุดสีเดียวกับแถบเวลา (#081b55) แสงเรืองอยู่หลังโลโก้ ไม่แตะขอบบน */
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-hd { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transition: background .2s; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-hd .dm-logo { visibility: hidden; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br):has(.dm-act.stk) .dm-hd { background: rgba(8,27,85,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-br { display: block; position: relative; text-align: center; margin-top: -8px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-br img { position: relative; z-index: 2; width: 74%; max-width: 340px; height: auto; aspect-ratio: 720 / 230; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-br .tg { position: relative; z-index: 2; margin-top: 4px; font-size: 12px; letter-spacing: .3px; color: #cfe0ff; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-br .tg i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #38bdf8; margin: 0 5px 2px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-br .ea { height: 110px; margin-top: -6px; background: url(../img/brand/earth_strip.jpg) center 18% / 150% auto no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 55%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 55%, transparent); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act { background: none !important; gap: 10px; padding: 0; margin: -30px 16px 0; z-index: 24; transition: margin .2s, padding .2s, border-radius .2s; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act a { padding: 14px 4px 11px; gap: 7px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(180deg, rgba(37,99,235,.28), rgba(10,30,90,.55)); border: 1.5px solid rgba(147,197,253,.55); box-shadow: inset 0 0 18px rgba(56,189,248,.18), 0 10px 22px -14px rgba(0,0,0,.9); transition: padding .2s, font-size .2s, border-radius .2s; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act a:not(.gold) span { width: 32px; height: 32px; background: none; border: 0; box-shadow: none; color: #e0ecff; filter: drop-shadow(0 0 6px rgba(125,211,252,.7)); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act svg.i { width: 30px; height: 30px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act a.gold { color: #fde68a; border-color: rgba(253,224,71,.75); background: linear-gradient(180deg, rgba(245,197,66,.3), rgba(90,58,0,.38)); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act a.gold span { width: 34px; height: 34px; } html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act a.uic-c svg.uic { width: 22px; height: 22px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act.stick.stk { margin: 0; padding: 8px 16px; gap: 8px; background: linear-gradient(180deg, rgba(8,27,85,.97), rgba(6,21,71,.97)) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 0 0 18px 18px; box-shadow: 0 10px 22px -12px rgba(0,0,0,.9) !important; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act.stick.stk a { padding: 6px 2px 5px; gap: 3px; font-size: 11px; border-radius: 14px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act.stick.stk a:not(.gold) span { width: 22px; height: 22px; border-radius: 0; } html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act.stick.stk svg.i { width: 20px; height: 20px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act.stick.stk a.gold span { width: 24px; height: 24px; } html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act.stick.stk a.uic-c svg.uic { width: 16px; height: 16px; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-sr { display: flex; align-items: center; gap: 10px; height: 52px; margin: 16px 16px 0; padding: 0 6px 0 18px; border-radius: 999px; color: #dbe7ff; background: rgba(10,30,90,.55); border: 1.5px solid rgba(186,210,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 26px -14px rgba(0,0,0,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-sr input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15px; } html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-sr input::placeholder { color: #c3d1ef; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .ha-sr a { width: 40px; height: 40px; display: grid; place-items: center; color: #dbe7ff; }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-hero { margin: 16px 16px 0; border-radius: 22px; box-shadow: 0 18px 36px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(186,210,255,.25); }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-hero a { height: auto; aspect-ratio: 4 / 3; }
/* เมนูล่าง: กระจกลอย (โหมดมืดทุกหน้า) */
@media (max-width: 1023px) {
  html:not([data-mode="light"]) body.dm.nk-c .nav { bottom: max(calc(var(--sbot) - 16px), 10px);   /* 2026-11-19 ผู้ใช้: เมนูล่างลอยสูงไป → ชิดล่างขึ้น (iPhone เหลือ ~18px เหนือขีด home) */ width: calc(100% - 32px); max-width: 448px; height: 68px; padding: 0 6px; gap: 2px; align-items: center; border-radius: 24px; background: rgba(6,22,70,.82); border: 1px solid rgba(186,210,255,.28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.9); }
  html:not([data-mode="light"]) body.dm.nk-c .nav a { height: 54px; border-radius: 17px; color: #a9b9dc; }
  html:not([data-mode="light"]) body.dm.nk-c .nav a.on { color: #fff; background: linear-gradient(180deg, rgba(59,130,246,.45), rgba(29,78,216,.25)); box-shadow: inset 0 0 0 1.5px rgba(125,211,252,.6), 0 0 18px -4px rgba(56,189,248,.6); }
  html:not([data-mode="light"]) body.dm.nk-c .app { padding-bottom: calc(var(--sbot) + 108px); }
}
/* ===== 2026-11-18 กล่อง E-Coupon / E-Trip (ยังไม่ล็อกอิน) เข้าธีมมืด A · ?gt=a|b|c ===== */
.dm-tiles .gs { display: none; }
.gt-sw { display: flex; justify-content: center; gap: 4px; margin: 14px auto 0; width: max-content; padding: 4px; border-radius: 999px; background: #0b1220; font-size: 12px; font-weight: 600; }
.gt-sw a { min-width: 34px; padding: 5px 9px; border-radius: 999px; text-align: center; color: #cbd5e1; } .gt-sw a.on { background: #fff; color: #0b1220; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt { gap: 10px; margin: 14px 16px 0; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt a { position: relative; overflow: hidden; border-top-width: 1.5px; padding: 14px 14px 13px; border-radius: 20px; color: #fff; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt .gs { display: block; margin-top: 2px; font-size: 11.5px; color: #a9c2ee; white-space: nowrap; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt b { text-align: left; margin-top: 10px; font-size: 30px !important; line-height: 1.1; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt .h { font-size: 13.5px; font-weight: 600; }
/* A กระจกฟ้า (เหมือนปุ่มลัด) */
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-a a { background: linear-gradient(180deg, rgba(37,99,235,.28), rgba(10,30,90,.55)); border: 1.5px solid rgba(147,197,253,.5); box-shadow: inset 0 0 18px rgba(56,189,248,.15), 0 10px 22px -14px rgba(0,0,0,.9); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-a .h i { width: 30px; height: 30px; background: rgba(56,189,248,.16); border: 1.5px solid rgba(125,211,252,.6); color: #e0f2fe; box-shadow: 0 0 12px rgba(56,189,248,.45); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-a b { text-shadow: 0 0 16px rgba(125,211,252,.55); }
/* B การ์ดเดียวขอบเงิน แบ่งครึ่ง */
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-b { gap: 0; padding: 0; border-radius: 22px; background: linear-gradient(#0a2160, #071a50) padding-box, linear-gradient(180deg, #f1f5f9, #64748b) border-box; border: 1.5px solid transparent; box-shadow: 0 14px 28px -16px rgba(0,0,0,.9); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-b a { background: none; border: 0; border-radius: 0; box-shadow: none; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-b a + a::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(180deg, transparent, rgba(214,222,235,.55), transparent); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-b .h i { width: 30px; height: 30px; background: linear-gradient(180deg, #fff, #dfe5ee 50%, #aeb9cb); color: #0a1d55; box-shadow: inset 0 1px 0 #fff; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-b b { background: linear-gradient(180deg, #fff, #d5dce7 55%, #9aa6ba); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* C การ์ดมืด แถบสีซ้าย + ไอคอนใหญ่จางมุมขวา */
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c a { background: linear-gradient(160deg, #0f2b7a, #061747 70%); border: 1px solid rgba(186,210,255,.22); box-shadow: 0 12px 26px -16px rgba(0,0,0,.9); padding-left: 18px; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #7dd3fc, #2563eb); box-shadow: 0 0 10px rgba(56,189,248,.8); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c a + a::before { background: linear-gradient(180deg, #fde68a, #d4961c); box-shadow: 0 0 10px rgba(245,197,66,.8); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c .h i { background: none; width: auto; height: auto; color: #7dd3fc; } html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c a + a .h i { color: #fde68a; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c .h i svg.i { width: 18px; height: 18px; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c .h i svg.i { position: relative; }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c a::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.35), transparent 70%); }
html:not([data-mode="light"]) body.dm.nk-c .dm-tiles.gt.gt-c a + a::after { background: radial-gradient(circle, rgba(245,197,66,.3), transparent 70%); }
/* ===== 2026-11-18 โลโก้ใหญ่ → กลางหัวเมื่อเลื่อนลง (assets/js/ha_logo.js) · ?lg=a|b|c ===== */
.ha-fly { position: fixed; z-index: 26; pointer-events: none; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); transform-origin: 0 0; will-change: transform; backface-visibility: hidden; }
body:has(.tq-pop:not([hidden])) .ha-fly { opacity: 0; }
html[data-mode="light"] .ha-fly { display: none !important; }
html:not([data-mode="light"]) body.dm.nk-c.ha-lgon:has(.ha-br[data-lg="b"]) .dm-hd .dm-logo { visibility: visible; animation: haUp .45s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes haUp { from { translate: 0 22px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br[data-lg="c"]) .ha-br img { transform-origin: 50% 0; }
html:not([data-mode="light"]) body.dm.nk-c.ha-lgon:has(.ha-br[data-lg="c"]) .dm-hd .dm-logo { visibility: visible; overflow: hidden; animation: haZm .55s cubic-bezier(.2,.9,.3,1.4) both; }
html:not([data-mode="light"]) body.dm.nk-c.ha-lgon:has(.ha-br[data-lg="c"]) .dm-hd .dm-logo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); animation: haSh 1s .35s ease-out both; pointer-events: none; }
@keyframes haZm { from { scale: .5; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes haSh { from { left: -50%; } to { left: 120%; } }
.lg-sw { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sbot, 0px) + 92px); z-index: 60; display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: #0b1220; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 12px; font-weight: 600; }
.lg-sw a { min-width: 34px; padding: 6px 8px; border-radius: 999px; text-align: center; color: #cbd5e1; } .lg-sw a.on { background: #fff; color: #0b1220; }html:not([data-mode="light"]) body.dm.nk-c.ha-sc:has(.ha-br) .dm-hd { background: rgba(8,27,85,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* 2026-11-18 PWA iPhone: แถบเวลาโปร่ง (black-translucent) ตัวหนังสือขาวเสมอ → โหมดสว่างวางแถบน้ำเงินใต้แถบเวลาให้อ่านออก */
@media (display-mode: standalone) { html:not([data-mode="dark"]) body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: linear-gradient(90deg, #1e40af, #2563eb); z-index: 2000; pointer-events: none; } }
/* 2026-11-18 Safari / PWA: แถบบนสุด (เวลา/แบต) เอาสีจากพื้นหลังหน้า + หัวที่ติดขอบบน → โหมดมืดใช้น้ำเงินเดียวกับหัว ไม่ให้เป็นขาว */
html:not([data-mode="light"]):has(body.dm.nk), html:not([data-mode="light"]) body.dm.nk { background-color: #081b55; }
/* 2026-11-18 โลโก้ลอย: scroll-driven animation (เบราว์เซอร์คำนวณเอง ลื่นตามนิ้ว) · ค่าเป้าหมายจาก ha_logo.js */
.ha-fly.ha-st { animation: haFly linear both; animation-timeline: scroll(root); animation-range: 0px var(--R); }
@keyframes haFly { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(var(--dx), var(--dy), 0) scale(var(--k)); } }
.ha-br .tg.ha-st { animation: haTg linear both; animation-timeline: scroll(root); animation-range: 0px var(--R); }
@keyframes haTg { from { opacity: 1; } to { opacity: 0; } }/* 2026-11-18 โลโก้ A แบบใหม่ (ไม่ลากด้วยโค้ด): โลโก้ใหญ่ย่อ+จางขณะเลื่อน · โลโก้กลางหัวโผล่ช่วงท้าย · --haR จาก ha_logo.js */
html:not([data-mode="light"]) body.dm.nk-c.ha-cf .ha-br img { transform-origin: 50% 20%; animation: haBig linear both; animation-timeline: scroll(root); animation-range: 0px var(--haR); }
@keyframes haBig { to { transform: scale(.6); opacity: 0; } }
html:not([data-mode="light"]) body.dm.nk-c.ha-cf .ha-br .tg { animation: haTg linear both; animation-timeline: scroll(root); animation-range: 0px calc(var(--haR) * .5); }
html:not([data-mode="light"]) body.dm.nk-c.ha-cf .dm-hd .dm-logo { visibility: visible; animation: haHl linear both; animation-timeline: scroll(root); animation-range: calc(var(--haR) * .55) var(--haR); }
@keyframes haHl { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@supports not (animation-timeline: scroll()) { html:not([data-mode="light"]) body.dm.nk-c.ha-cf .ha-br img, html:not([data-mode="light"]) body.dm.nk-c.ha-cf .ha-br .tg, html:not([data-mode="light"]) body.dm.nk-c.ha-cf .dm-hd .dm-logo { animation: none; } }
/* ===== 2026-11-18 ราคา 2 ระดับ (ขายปลีก / สมาชิก) บนการ์ดสินค้าหน้าแรก · ?pp=a|b|c &as=mem|up (ทดลอง) ===== */
.pp { display: block; margin: 4px 0 2px; line-height: 1.25; }
.pp strong { font-size: 18px; font-weight: 700; color: var(--ac); font-variant-numeric: tabular-nums; }
.pp .r1 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pp s { font-size: 11.5px; color: var(--tx2); }
.pp em, .pp small { font-style: normal; font-size: 11px; color: var(--tx2); }
.pp.up strong { background: linear-gradient(180deg, #ffe58a, #f5b82c 55%, #d18a12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-a em { padding: 1px 7px; border-radius: 999px; background: rgba(148,163,184,.18); }
.pp-a.up em { background: linear-gradient(135deg, #fff3b0, #f5c542 50%, #d4961c); color: #5a3a00; font-weight: 600; }
.pp-a .lk { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: #b7791f; background: rgba(245,197,66,.14); border: 1px dashed rgba(245,197,66,.55); }
.pp-b { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px 0 4px; }
.pp-b .c { padding: 5px 7px; border-radius: 10px; border: 1px solid rgba(148,163,184,.3); opacity: .6; }
.pp-b .c small { display: flex; align-items: center; gap: 3px; font-size: 10.5px; } .pp-b .c b { display: block; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-b .c.on { opacity: 1; border-color: var(--ac); background: rgba(37,99,235,.1); } .pp-b .c.on b { color: var(--ac); font-size: 15.5px; }
.pp-b .c.gd b { color: #d39b1c; } .pp-b .c.gd.on { border-color: #e7b53a; background: linear-gradient(135deg, rgba(255,243,176,.22), rgba(212,150,28,.18)); } .pp-b .c.gd.on b { color: #f5c542; }
.pp-c .r1 small { font-size: 11px; }
.pp-c .sv { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(90deg, #d4961c, #f5c542); }
.pp-c.up .sv { color: #5a3a00; background: linear-gradient(135deg, #fff3b0, #f5c542); }
.pp-card .ft .pv:empty { display: none; }
.dm-pc .off.gd { background: linear-gradient(135deg, #f5c542, #d4961c); color: #3a2500; }
.pg-top .pp strong { font-size: 24px; }
html[data-mode="light"] .pp-a .lk { color: #a16207; } html[data-mode="light"] .pp-b .c.gd.on b { color: #b7791f; }
.pp-sw { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--sbot, 0px) + 92px); z-index: 60; display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 999px; background: #0b1220; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pp-sw a { padding: 6px 9px; border-radius: 999px; color: #cbd5e1; } .pp-sw a.on { background: #fff; color: #0b1220; } .pp-sw i { width: 1px; height: 18px; background: #334155; margin: 0 3px; }
/* 2026-11-19 ไล่บั๊กหน้าจอ · .app overflow-x:hidden ทำให้หัวหน้า (.sh sticky) เลื่อนหายไปกับหน้า → clip ไม่สร้างกล่องเลื่อน */
@supports (overflow: clip) { .app { overflow-x: clip; } }

/* 2026-11-19 ไล่บั๊กหน้าจอ (มือถือจอแคบ 360px) */
.shop .t .cp { flex-wrap: wrap; row-gap: 3px; }   /* ป้าย COMING SOON + "ร้านตัวอย่าง" เคยบีบเป็นคอลัมน์แคบ */
.shop .km { white-space: nowrap; }
.dm-tiles .com .ft { align-items: center; gap: 10px; white-space: nowrap; } .dm-tiles .com .ft span { flex: 1; min-width: 0; white-space: normal; }   /* "ดูรายละเอียด ›" เคยตกบรรทัด */
.dm-act a { white-space: nowrap; }   /* E-Coupon เคยแตกเป็น 2 บรรทัด */
@media (max-width: 380px) { html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act { gap: 8px; } html:not([data-mode="light"]) body.dm.nk-c:has(.ha-br) .dm-act a { font-size: 11.5px; padding-left: 2px; padding-right: 2px; } .dm-act a { font-size: 11.5px; } }
/* หน้ารายละเอียดสินค้า โหมดมืด: ป้ายสีอ่อนตัดกับพื้น · หัวใจมองไม่เห็นบนรูปขาว · ไอคอนรถจมพื้น */
html:not([data-mode="light"]) body.dm .chip.gray { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
html:not([data-mode="light"]) body.dm .chip.ok { background: rgba(34, 197, 94, .16); color: #4ade80; }
html:not([data-mode="light"]) body.dm .chip.bad { background: rgba(244, 63, 94, .16); color: #fb7185; }
html:not([data-mode="light"]) body.dm .chip.warn { background: rgba(245, 158, 11, .16); color: #fbbf24; }
html:not([data-mode="light"]) body.dm .pm-hero .hrt { background: rgba(15, 23, 42, .55); color: #fff; }
html:not([data-mode="light"]) body.dm .pm-hero .hrt.on { color: #f43f5e; }
html:not([data-mode="light"]) body.dm .pd-b p.mut svg.i { color: #93c5fd; }
.dm-tiles .com .cb-a .tx { min-width: 0; } .dm-tiles .com .cb-a .tx b { font-size: clamp(15px, 4.6vw, 18px); }   /* ยอดรอจ่ายเคยล้นกรอบบนจอ 360px */

/* 2026-11-19 ผู้ใช้: หน้าย่อยมีแถบว่างเหนือหัวหน้า (ระยะเว้นบน 6px ของ .app) → หน้าที่มีหัว .sh ไม่เว้นบน ให้หัวเว้นพื้นที่แถบสถานะเอง */
@media (max-width: 1023px) { body .app:has(.sh) { padding-top: 0 !important; } body .app:has(.sh) .sh { padding-top: calc(var(--stop) + 8px); } }   /* .sh อยู่ใน .dkp-m (ไม่ใช่ลูกตรงของ .app) */

/* 2026-11-19 ตัวเลขในแท็บสีเงิน (โหมดมืด) มองไม่เห็น: ขาวบนเงิน → ชิปกรมท่า ตัวขาว */
html:not([data-mode="light"]) body.dm.nk-c button.on > em, html:not([data-mode="light"]) body.dm.nk-c a.on > em { background: #1e3a8a !important; color: #fff !important; }

/* 2026-11-20 ผู้ใช้ "ภาพอยากให้มันเต็มๆ": รูปสลิปที่เลือกแสดงเต็มกว้างกล่อง เห็นทั้งใบ (เดิมสูงสุด 220px) */
.drop:has(img) { padding: 10px 10px 12px; }
.drop img { display: block; width: 100%; max-height: 70vh; height: auto; object-fit: contain; border-radius: 12px; background: #fff; }

/* 2026-11-20 ผู้ใช้ "ทำรายการในมือถือ ไม่ต้องซูม auto": iPhone ซูมเองเมื่อแตะช่องกรอกที่ตัวอักษรเล็กกว่า 16px → ช่องกรอกทุกช่องบนจอสัมผัสใช้ 16px (ยังซูมด้วยสองนิ้วได้ตามปกติ) */
@media (hover: none) and (pointer: coarse) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), textarea, select, [contenteditable] { font-size: 16px !important; } }

/* 2026-11-22 ผู้ใช้: มือถือบางรุ่นหน้าล้นจอ เลื่อนซ้ายขวาได้ → กันทุกหน้า: ตัดส่วนที่ล้นแนวนอน (clip ไม่สร้างกล่องเลื่อนใหม่ sticky/scroll ยังทำงานเหมือนเดิม) */
html, body { max-width: 100%; } body { overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }

/* 2026-11-22 แบนเนอร์น้องโอนี่ชวนเป็นสมาชิก (inc/home_dm.php $obPromo) · ?ob=a|b|c ทดลอง */
.ob-sw { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 9000; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #111827; box-shadow: 0 6px 18px rgba(0,0,0,.35); white-space: nowrap; }
.ob-sw a { padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #cbd5e1; } .ob-sw a.on { background: #fff; color: #111827; } .ob-sw i { width: 1px; height: 16px; background: #475569; margin: 0 3px; }
.ob { position: relative; display: flex; align-items: center; margin: 18px 12px 0; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ob .oni { display: block; object-fit: contain; pointer-events: none; }
/* A */
.ob-a { min-height: 96px; padding: 10px 12px 10px 104px; border-radius: 18px; background: linear-gradient(105deg, #fff 55%, #e8f6ff); color: #0f1d4a; box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); }
.ob-a .oni { position: absolute; left: 0; bottom: 0; width: 112px; height: 124px; object-position: bottom; filter: drop-shadow(0 6px 8px rgba(15,29,74,.25)); }
.ob-a .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-a small { font-size: 10.5px; font-weight: 600; color: #2563eb; } .ob-a b { font-size: clamp(13px, 3.8vw, 15.5px); font-weight: 700; line-height: 1.25; } .ob-a em { font-style: normal; font-size: clamp(11.5px, 3.3vw, 13px); color: #0891b2; font-weight: 600; }
.ob-a .pk { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; } .ob-a .pk i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: #e0f2fe; color: #0e5a8a; font-weight: 600; }
.ob-a .go { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 9px 12px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #22d3ee); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 16px -8px rgba(37,99,235,.9); white-space: nowrap; }
/* B */
.ob-b { min-height: 132px; padding: 14px 120px 14px 16px; border-radius: 20px; overflow: visible; background: radial-gradient(120% 140% at 100% 0, rgba(34,211,238,.35), transparent 55%), linear-gradient(140deg, #1e3a8a, #0b1640 70%); border: 1px solid rgba(125,211,252,.3); color: #fff; box-shadow: 0 16px 34px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); }
.ob-b .tx { display: flex; flex-direction: column; min-width: 0; } .ob-b small { font-size: 10.5px; color: #7dd3fc; font-weight: 600; } .ob-b b { font-size: clamp(13.5px, 3.9vw, 16px); line-height: 1.3; font-weight: 700; } .ob-b b em { font-style: normal; color: #fcd34d; }
.ob-b .pk { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 9px; } .ob-b .pk i { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; color: #dbeafe; } .ob-b .pk svg { color: #22d3ee; }
.ob-b .go { align-self: flex-start; padding: 7px 16px; border-radius: 999px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2300; font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 16px -8px rgba(245,158,11,.9); }
.ob-b .ov { position: absolute; right: -2px; bottom: 0; width: 128px; display: flex; flex-direction: column; align-items: center; }
.ob-b .oni { width: 128px; height: 140px; object-position: bottom; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.ob-b .bb { position: absolute; top: -26px; right: 54px; padding: 5px 10px; border-radius: 12px 12px 2px 12px; background: #fff; color: #0f1d4a; font-size: 10.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); animation: obBob 2.6s ease-in-out infinite; }
@keyframes obBob { 50% { transform: translateY(-3px); } }
/* C */
.ob-c { align-items: flex-end; gap: 0; margin-top: 14px; }
.ob-c .oni { flex: none; width: 104px; height: 120px; object-position: bottom; margin-right: -6px; position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.ob-c .bb { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 11px 13px; margin-bottom: 8px; border-radius: 18px 18px 18px 4px; background: #fff; color: #0f1d4a; box-shadow: 0 14px 28px -16px rgba(0,0,0,.8); }
.ob-c .bb::before { content: ""; position: absolute; left: -7px; bottom: 10px; border: 7px solid transparent; border-right-color: #fff; border-left: 0; }
.ob-c .bb small { font-size: 10px; font-weight: 700; color: #2563eb; } .ob-c .bb b { font-size: clamp(14px, 4vw, 16.5px); line-height: 1.25; } .ob-c .bb > span:not(.ft) { font-size: 11.5px; color: #475569; margin-top: 2px; line-height: 1.4; }
.ob-c .ft { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; } .ob-c .tg { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-c .go { flex: none; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #2563eb, #22d3ee); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
@media (min-width: 900px) { .ob { max-width: 760px; } }
/* 2026-11-22 ผู้ใช้: แบบ A ให้เตี้ยลงขนาดเท่าแบนเนอร์เดิม (~88px) · ตัดชิปสิทธิ์ · ข้อความบรรทัดเดียว */
.ob-a { min-height: 86px; padding: 8px 12px 8px 92px; margin-top: 16px; }
.ob-a .oni { width: 92px; height: 98px; left: -2px; }
.ob-a .pk { display: none; }
.ob-a b, .ob-a em, .ob-a small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-a b { font-size: clamp(13px, 3.7vw, 15px); } .ob-a em { font-size: clamp(11px, 3.2vw, 12.5px); }
.ob-a .go { padding: 8px 12px; font-size: 12.5px; }

/* ===== 2026-11-22 กดเมนูล่างแล้วตอบสนองทันที (assets/js/navfx.js · html[data-nv=a|b|c] ช่วงออกแบบ) ===== */
html[data-nv] .nav { view-transition-name: oneva-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
html[data-nv] .nav a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
html[data-nv] .nav a:active { transform: scale(.92); }
html[data-nv] .nav a.nv-go svg, html[data-nv] .nav a.nv-go .nv-up { animation: nvPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes nvPop { 0% { transform: scale(.7); } 60% { transform: scale(1.18) translateY(-3px); } 100% { transform: none; } }
.nvx { position: fixed; z-index: 70; pointer-events: none; }
/* A แถบโหลดด้านบน */
.nvx-a { left: 0; right: 0; top: 0; height: 3px; }
.nvx-a i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #22d3ee, #3b82f6, #a78bfa); box-shadow: 0 0 10px #22d3ee, 0 0 4px #3b82f6; animation: nvBar 2.4s cubic-bezier(.1,.7,.2,1) forwards; }
.nvx-a i::after { content: ""; position: absolute; right: 0; top: -3px; width: 60px; height: 9px; background: radial-gradient(closest-side, rgba(165,243,252,.9), transparent); }
@keyframes nvBar { 0% { width: 0; } 30% { width: 45%; } 100% { width: 88%; } }
html[data-nv="a"].nv-busy .app > *:not(.nav) { transition: opacity .25s; opacity: .55; }
/* B น้องโอนี่ + วงโหลด */
.nvx-b { inset: 0 0 calc(var(--sbot, 0px) + 96px) 0; display: grid; place-items: center; background: rgba(2,10,38,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background .25s, backdrop-filter .25s; }
.nvx-b.nv-in { background: rgba(2,10,38,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition-delay: .12s; }
.nvx-b .bx { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .25s, transform .3s cubic-bezier(.3,1.5,.5,1); }
.nvx-b.nv-in .bx { opacity: 1; transform: none; transition-delay: .12s; }
.nvx-b .rg { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(37,99,235,.55), rgba(8,27,85,.9) 70%); }
.nvx-b .rg::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, #22d3ee 80%, #fff 100%); -webkit-mask: radial-gradient(circle, transparent 54px, #000 55px); mask: radial-gradient(circle, transparent 54px, #000 55px); animation: nvSpin .9s linear infinite; }
.nvx-b .rg img { width: 92px; height: auto; animation: nvBob 1.2s ease-in-out infinite; }
.nvx-b b { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.nvx-b.nv-now, .nvx-b.nv-now .bx { transition: none !important; transition-delay: 0s !important; }   /* 2026-11-23 iPhone: ขึ้นเต็มทันที */
@keyframes nvSpin { to { transform: rotate(360deg); } } @keyframes nvBob { 50% { transform: translateY(-5px); } }
/* C โครงหน้าวิบวับ */
.nvx-c { inset: 0 0 0 0; padding: calc(env(safe-area-inset-top, 0px) + 74px) 16px 0; background: #061647; opacity: 0; transition: opacity .2s; }
html[data-mode="light"] .nvx-c { background: #f1f4f9; }
.nvx-c.nv-in { opacity: 1; }
.nvx-c .sk { display: grid; gap: 12px; }
.nvx-c .sk i { display: block; border-radius: 18px; background: linear-gradient(100deg, rgba(148,180,255,.10) 30%, rgba(148,180,255,.24) 50%, rgba(148,180,255,.10) 70%); background-size: 300% 100%; animation: nvSh 1.1s linear infinite; }
html[data-mode="light"] .nvx-c .sk i { background-image: linear-gradient(100deg, #e3e9f3 30%, #f6f8fc 50%, #e3e9f3 70%); }
.nvx-c .sk .h { height: 26px; width: 55%; border-radius: 10px; } .nvx-c .sk .c1 { height: 170px; } .nvx-c .sk .r { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .nvx-c .sk .r i { height: 96px; } .nvx-c .sk .c2 { height: 120px; } .nvx-c .sk .c3 { height: 90px; }
@keyframes nvSh { from { background-position: 100% 0; } to { background-position: -50% 0; } }
html[data-nv="c"] .nav { z-index: 80; }
@media (prefers-reduced-motion: reduce) { .nvx *, .nvx { animation: none !important; transition: none !important; } }