/* Shop front additions: ☰ menu, coin chip, buy button. Uses the page's own dark-theme variables. */

/* ปิดแตะ 2 ครั้งแล้วซูม (ผู้ใช้สั่ง 2026-11-05) — ใช้นิ้วถ่างซูมได้เหมือนเดิม */
html { touch-action: manipulation; }

/* ☰ + coin chip at the start of the top row (the FB contacts moved into the menu) */
#shopMenuOpen {
  flex-shrink: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 10px; color: var(--muted, #8b949e); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#shopMenuOpen:hover, #shopMenuOpen:active { color: var(--text, #e6edf3); background: var(--surf2, #1c2128); }
#shopMenuOpen svg { width: 24px; height: 24px; }
#acctSlot { flex-shrink: 0; }
#acctSlot a { text-decoration: none; white-space: nowrap; font-size: 13px; border-radius: 8px; padding: 4px 9px 4px 5px; }
.acctCoins {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--gold, #ffd700); border: 1px solid rgba(255, 215, 0, .45); background: rgba(255, 215, 0, .08);
}

/* gold coin: moving shine + a twinkle */
.goldCoin { position: relative; display: inline-block; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  filter: drop-shadow(0 0 4px rgba(255, 200, 0, .55)); vertical-align: middle; }
.goldCoin.lg { width: 24px; height: 24px; }
.goldCoin svg { width: 100%; height: 100%; display: block; }
.coinShine { position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 48%, transparent 62%);
  transform: translateX(-120%); animation: coinShine 2.4s ease-in-out infinite; }
.coinSpark { position: absolute; top: 1px; right: 2px; width: 6px; height: 6px;
  background: radial-gradient(circle, #fff 0 30%, transparent 70%); border-radius: 50%; opacity: 0;
  animation: coinSpark 2.4s ease-in-out infinite; }
@keyframes coinShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes coinSpark { 0%, 60%, 100% { opacity: 0; transform: scale(.4); } 75% { opacity: 1; transform: scale(1.3); } }

/* announcement ticker between ☰/coins and สุ่มไอดี */
#newsTicker {
  flex: 1 1 auto; min-width: 0; height: 30px; overflow: hidden; position: relative; border-radius: 8px;
  background: var(--surf2, #1c2128); border: 1px solid rgba(255, 142, 226, .35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
.tkTrack { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; white-space: nowrap;
  animation: tkScroll linear infinite; will-change: transform; }
.tkItem { font-size: 12px; font-weight: 600; color: var(--text, #e6edf3); padding: 0 4px; }
.tkDot { color: #FF8EE2; font-size: 10px; padding: 0 10px; }
#newsTicker:hover .tkTrack { animation-play-state: paused; }
/* กิจกรรมล่าสุดในแถบประกาศ (2026-11-07): จุดเขียวกระพริบ + ชื่อสินค้าสีทอง */
.tkAct { display: inline-flex; align-items: center; gap: 4px; }
.tkAct b { color: #fff; font-weight: 700; }
.tkAct .tkProd { color: var(--gold, #ffd700); }
.tkAct .tkMoney { color: #4ade80; }
.tkAct .tkJoin { color: #ff8ee2; }
.tkAct small { font-size: 11px; font-weight: 500; color: var(--muted, #8b949e); }
.tkLive { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: vnPulse 1.6s infinite; }
@keyframes tkScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tkTrack { animation: none; } .coinShine, .coinSpark { animation: none; }
}

/* side menu — same look as the member pages (app/static/css/style.css .drawer) */
#shopDrawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 3000; width: 264px; max-width: 85vw; overflow-y: auto;
  background: #0d1014; border-right: 1px solid var(--border, #30363d);
  transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
  font-family: inherit; color: var(--text, #e6edf3);
}
#shopDrawer.open { transform: none; visibility: visible; }
#shopDrawerBg { position: fixed; inset: 0; z-index: 2999; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#shopDrawerBg[hidden] { display: none; }
body.sdLock { overflow: hidden; }
.sdLogo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px 18px; border-bottom: 1px solid var(--border, #30363d); }
.sdBrand {
  font-weight: 800; font-size: 22px; background: linear-gradient(135deg, #ff6fcf, #9b5cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sdTag { font-size: 12px; color: var(--muted, #8b949e); letter-spacing: .5px; }
.sdUser { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border, #30363d);
  color: var(--text, #e6edf3); text-decoration: none; }
.sdUser:hover { background: #161b22; }
.sdUser b { display: block; font-size: 15px; }
.sdUser small { font-size: 12px; font-weight: 600; }
.sdAvatar {
  width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #2a2f37; border: 2px solid #3a404a; color: #fff; font-weight: 700; font-size: 18px;
}
.sdNav { padding: 14px 14px 30px; display: flex; flex-direction: column; gap: 4px; }
.sdItem {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 10px;
  color: #c9d1d9; text-decoration: none; font: inherit; font-size: 15px; text-align: left;
  background: none; border: 0; cursor: pointer;
}
.sdItem:hover, .sdContact:hover { background: #161b22; }
.sdIco {
  width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #1f242c;
}
.sdIco svg { width: 18px; height: 18px; }
.icLogin { color: #4cc35a; } .icRegister { color: #f0a03a; } .icWallet { color: #4cc35a; }
.icOrders { color: #b45cff; } .icCoins { color: #ffd700; } .icLogout { color: #ff6b5f; } .icLink { color: #00e5ff; }
.sdHead { margin: 14px 12px 4px; font-size: 12px; color: var(--muted, #8b949e); letter-spacing: .5px; }
.sdContact { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; text-decoration: none; }
.sdContact .cAva { width: 34px; height: 34px; }
.sdCText { display: flex; flex-direction: column; line-height: 1.3; }
.sdCText b { font-size: 14px; color: #FF8EE2; }
.sdCText small { font-size: 11px; color: var(--muted, #8b949e); }
.sdLogout { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border, #30363d); }

/* buy box inside the product modal: two buttons of the same size */
#buyBox { margin: 12px 0 6px; display: flex; flex-direction: column; gap: 10px; }
/* ปุ่มซื้อด้วยเหรียญ: ใหญ่ขึ้น + ป้ายจุดขายในปุ่ม (ผู้ใช้สั่ง 2026-11-08) */
.coinBtn { padding-top: 15px !important; padding-bottom: 13px !important; }
.coinBtn .bbMain { font-size: 20px !important; }
.bbChips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 7px; }
.bbChips i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; background: rgba(255, 255, 255, .55); color: #5a2a00; white-space: nowrap; }
.bbChips i .bbMini { width: 12px; height: 12px; color: #c43c00; }
.buyBtn:disabled .bbChips i { background: rgba(255, 255, 255, .06); color: inherit; }
/* ป้ายมุมปุ่ม (2026-11-08): ซ้าย = แค่ 3 ขั้นตอน (แดงกระพริบ) · ขวา = เชื่อมอัตโนมัติ 24 ชม. */
.coinBtn { position: relative; overflow: visible; margin-top: 4px; }
.bbSteps, .bbAuto { position: absolute; top: -10px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 800; line-height: 1.5; pointer-events: none; }
.bbSteps { left: 8px; color: #fff; background: #e0001b; border: 1.5px solid #fff;
  animation: bbBlink 1s ease-in-out infinite; }
.bbAuto { right: 8px; color: #ffd23f; background: #161b22; border: 1px solid rgba(255, 210, 63, .6); }
.bbAuto .bbMini { width: 11px; height: 11px; }
@keyframes bbBlink { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 30, 60, .8); background: #e0001b; }
                     50% { transform: scale(1.08); box-shadow: 0 0 12px 3px rgba(255, 30, 60, .8); background: #ff2a44; } }
@media (prefers-reduced-motion: reduce) { .bbSteps { animation: none; } }
/* แถบโบนัสเหรียญบนสุดหน้าแรก — ✕ ซ่อน 1 วัน */
/* ปุ่ม "🪙 ฟรี" แทนช่อง "เลือกไม่ถูก? สุ่มไอดี" (ผู้ใช้สั่ง 2026-11-08 รอบ 3) — ขนาดเท่าปุ่มเดิม พื้นทอง */
#freeBtn { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 64px; padding: 4px 10px; border-radius: 8px; border: 1px solid #ffe066; text-decoration: none;
  background: linear-gradient(135deg, #ffe066, #ffb300 55%, #ff8f00); color: #3a1d00;
  box-shadow: 0 2px 10px rgba(255, 179, 0, .55); -webkit-tap-highlight-color: transparent;
  animation: fbBlink 1.6s ease-in-out infinite; }                  /* กรอบกระพริบ (ผู้ใช้สั่ง 2026-11-08) */
/* ผู้ใช้สั่ง 2026-11-08: แดงโดดไป -> นวลๆ มีมิติ: พื้นทองไล่เฉด + ไฮไลต์ด้านบน (เหมือนปุ่มนูน) · ตัวอักษรไล่ชมพู-แดงอ่อน */
#freeBtn { background: linear-gradient(180deg, #fff1a8 0%, #ffd54f 38%, #ffb300 72%, #f59e0b 100%);
  border-color: rgba(255, 240, 170, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 4px rgba(180, 90, 0, .35), 0 2px 10px rgba(255, 170, 0, .45); }
#freeBtn:active { transform: scale(.94); }
/* "FREE!" · เหรียญ = แสง/ประกายแบบเดียวกับเหรียญยอดเงิน (goldCoin) ไม่หมุน */
#freeBtn b { font-size: 15px; font-weight: 900; letter-spacing: .4px;
  background: linear-gradient(180deg, #ff8a80 0%, #f0506e 55%, #c2185b 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .65)) drop-shadow(0 1px 2px rgba(150, 40, 0, .25)); }
.fbCoin { display: inline-block; }
.fbCoin .goldCoin { display: block; }
@keyframes fbBlink {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 4px rgba(180, 90, 0, .35), 0 0 6px rgba(255, 179, 0, .45); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 4px rgba(180, 90, 0, .35), 0 0 16px 3px rgba(255, 140, 120, .6); } }
/* ลูกเต๋า = ครึ่งซ้ายของที่ปุ่ม "กำหนดราคา" */
#diceBtn { padding: 4px 9px; font-size: 15px; line-height: 1; }
#diceBtn span { display: inline-block; animation: diceWobble 3s ease-in-out infinite; }
#priceBtn.priceHalf { padding-left: 8px; padding-right: 8px; }
@media (prefers-reduced-motion: reduce) { #freeBtn, #diceBtn span { animation: none; } }
.buyBtn {
  width: 100%; min-height: 62px; padding: 9px 14px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: inherit; color: #0d1117; -webkit-tap-highlight-color: transparent; transition: transform .1s, filter .15s;
}
.buyBtn:active:not(:disabled) { transform: scale(.98); }
.buyBtn:hover:not(:disabled) { filter: brightness(1.08); }
.bbMain { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; }
.bbSub { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; opacity: .85; }
.bbIco { width: 20px; height: 20px; }
.bbMini { width: 14px; height: 14px; }
.coinBtn { background: linear-gradient(90deg, var(--gold, #ffd700), var(--orange, #ff9100)); box-shadow: 0 0 18px rgba(255, 170, 0, .35); }
.coinBtn .bbSub .bbMini:first-child { color: #c43c00; }
.chatBtn { color: #fff; background: linear-gradient(90deg, #0084ff, #a033ff); box-shadow: 0 0 18px rgba(0, 132, 255, .35); }
.buyBtn:disabled { cursor: default; background: var(--border, #30363d); color: var(--muted, #8b949e); box-shadow: none; }
.coinBtn .bbMain, .chatBtn .bbMain { font-size: 17px; }
.bbSub .bbFIco { width: 15px; height: 15px; }
/* ป้าย "พร้อมส่ง" ในปุ่มซื้อด้วยเหรียญ */
.bbReady { margin-left: 2px; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 800;
  color: #fff; background: #00a152; box-shadow: 0 0 8px rgba(0, 200, 83, .6); }

/* ป๊อปอัปเตือน (2026-11-08): แนะนำซื้อด้วยเหรียญ / เช็ค KONAMI ID ใหม่ก่อนซื้อ */
.ndPop { position: fixed; inset: 0; z-index: 3150; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .78); }
.ndCard { width: 100%; max-width: 360px; padding: 20px 16px 14px; border-radius: 18px; text-align: center;
  background: #161b22; border: 2px solid #ffb300; color: #e6edf3; animation: lpIn .2s ease-out; }
.ndIco { font-size: 34px; line-height: 1; }
.ndTitle { margin: 6px 0 8px; font-size: 18px; font-weight: 800; }
.ndTitle small { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #ff8fa3; }
.ndText { font-size: 15px; line-height: 1.55; color: #c9d1d9; margin-bottom: 14px; }
.ndText b { color: #ffd23f; }
.ndSafe { margin: -4px 0 12px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
  color: #b7f5c4; background: rgba(63, 185, 80, .12); border: 1px solid rgba(63, 185, 80, .35); }
.ndAlt, .ndMain { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px;
  padding: 12px; border-radius: 12px; border: 0; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.ndAlt { color: #0d1117; background: linear-gradient(90deg, #ffd700, #ff9100); box-shadow: 0 0 14px rgba(255, 170, 0, .4); }
.ndMain.ndGhost { color: #8b949e; background: transparent; border: 1px solid #30363d; font-weight: 600; font-size: 14.5px; }
.ndMain.ndGo { color: #fff; background: linear-gradient(90deg, #00a152, #2ecc71); }
.ndMain:disabled { opacity: .45; cursor: default; }
.ndHide { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: #8b949e; }
.ndFlash { animation: ndFlash .9s ease-out 2; }
@keyframes ndFlash { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255, 210, 63, .7); } }
/* KONAMI */
.ndKonami .ndCard { border-color: #ff4d6d; }
.ndKonami .ndAlt { color: #e6edf3; background: transparent; border: 1px solid #30363d; box-shadow: none; font-size: 14.5px; font-weight: 600; }
.ndKonami .ndAlt + .ndMain { margin-top: 8px; }
.ndNew { color: #ff4d6d; font-size: 1.25em; text-decoration: underline; text-underline-offset: 4px; }
.ndBag { margin: 4px 0 12px; padding: 10px; border-radius: 12px; background: rgba(255, 210, 63, .1); font-size: 15px; line-height: 1.5; }
.ndBag b { color: #ffd23f; }
.ndList, .ndSteps { list-style: none; margin: 0 0 4px; padding: 0; text-align: left; }
.ndList li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; font-size: 15px; }
.ndList li.ok { background: rgba(63, 185, 80, .14); }
.ndList li.no { background: rgba(255, 77, 109, .1); color: #c9d1d9; }
.ndSteps li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; margin-bottom: 6px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); font-size: 15px; }
.ndSteps li > b { font-size: 20px; color: #ffd23f; line-height: 1.1; }
.ndSteps small { display: block; font-size: 12px; color: #8b949e; }
.ndNote { font-size: 12px; color: #6e7681; margin-top: 4px; }
/* เช็คความพร้อมทีละขั้น (2026-11-08 รอบ 3) */
.ndKonami .ndCard { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; }
.kBought { margin: -4px 0 8px; font-size: 15px; font-weight: 800; color: #3fb950; }
.kTitle { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; font-size: 16.5px; line-height: 1.4; }
/* ไอคอนวิดีโอแดง + "คลิปสอน" (แทน ? / หลอดไฟ 2026-11-08) — หน้าตาเดียวกับหน้าเชื่อมไอดี */
.kHelp { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 4px; border: 0;
  background: none; color: #e6edf3; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kHelpI { width: 38px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff5252, #d50000); box-shadow: 0 3px 10px rgba(255, 23, 68, .45);
  animation: kBulbGlow 2s ease-in-out infinite; }
.kHelpI svg { width: 22px; height: 22px; fill: #fff; }
.kHelpI svg .pl { fill: #d50000; }
.kHelpT { font-size: 11px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
@keyframes kBulbGlow { 50% { box-shadow: 0 3px 16px 3px rgba(255, 23, 68, .6); } }
@media (prefers-reduced-motion: reduce) { .kHelpI { animation: none; } }
.kClose { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .08); color: #8b949e; font-size: 14px; cursor: pointer; }
.kSteps { text-align: left; }
.kStep { margin-bottom: 8px; border-radius: 12px; border: 1px solid #30363d; background: rgba(255, 255, 255, .03); }
.kStep.done { border-color: rgba(63, 185, 80, .5); background: rgba(63, 185, 80, .08); }
.kStep.lock { opacity: .45; }
.kHead { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border: 0; border-radius: 12px;
  background: transparent; color: #e6edf3; font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.kHead:disabled { cursor: default; }
.kNum { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #30363d; color: #fff; font-size: 14px; font-weight: 800; }
.kStep.done .kNum { background: #2ea043; }
.kStep:not(.done):not(.lock) .kNum { background: #ffb300; color: #2a1500; }
.kQ { flex: 1; }
.kImp { font-style: normal; color: #ff3b5c; font-weight: 800; margin-left: 2px; }
.kChev { color: #8b949e; }
.kBody { padding: 0 10px 10px; border-radius: 0 0 12px 12px; }
.kOpt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 6px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid #30363d; background: #0d1117; color: #e6edf3;
  font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.kRadio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #6e7681; background: #30363d; }
.kOpt.sel { border-color: #2ea043; }
.kOpt.sel .kRadio { border-color: #3fb950; background: #2ea043; box-shadow: inset 0 0 0 3px #0d1117; }
.kSub { margin-top: 8px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.kLink { display: block; padding: 9px; border-radius: 10px; text-align: center; color: #58a6ff; font-weight: 700;
  text-decoration: none; border: 1px dashed #388bfd; }
/* ช่องที่ลูกค้าต้องกดตอนนี้ = กระพริบ */
.kBlink { animation: kBlink 1.1s ease-in-out infinite; }
@keyframes kBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); outline: 2px solid rgba(255, 179, 0, .25); }
                    50% { box-shadow: 0 0 14px 2px rgba(255, 179, 0, .55); outline: 2px solid #ffb300; } }
.ndKonami .ndAlt.kBlink { border-color: #ffb300; color: #ffd23f; }
@media (prefers-reduced-motion: reduce) { .kBlink { animation: none; outline: 2px solid #ffb300; } }
@media (prefers-reduced-motion: reduce) { .ndFlash { animation: none; } }

/* "ซื้อผ่านแชท" popup (above the product modal) */
#chatPop { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .75); }
#chatPop[hidden] { display: none; }
.cpCard { position: relative; width: 100%; max-width: 330px; padding: 18px 14px 14px; border-radius: 16px;
  background: #0d1014; border: 1px solid var(--border, #30363d); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.cpX { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: #1f242c; border: 1px solid var(--border, #30363d); color: var(--text, #e6edf3); font-size: 15px; }
.cpTitle { text-align: center; font-weight: 800; font-size: 17px; color: var(--text, #e6edf3); }
.cpSub { text-align: center; font-size: 12px; color: var(--muted, #8b949e); margin: 4px 26px 12px; overflow-wrap: anywhere; }
.cpSub b { color: var(--text, #e6edf3); }
.cpList { display: flex; flex-direction: column; gap: 4px; }
.cpList .sdContact { border: 1px solid var(--border, #30363d); background: #161b22; }
.cpHours { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted, #8b949e); }

/* ===== ❤️ อยากได้ · 👀 กำลังดู · แถบสถิติ (ผู้ใช้สั่ง 2026-11-06) ===== */
.card-img-wrap, .fImg { position: relative; }
.wishBadge {
  position: absolute; top: 4px; right: 4px; z-index: 2; display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 5px 1px 3px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.5;
  color: #fff; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 77, 109, .55); pointer-events: none;
}
.wishBadge svg { width: 10px; height: 10px; fill: #ff4d6d; }
#socialRow { margin: 8px 0 10px; }
.wishLine { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wishBtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: #ff8fa3; background: rgba(255, 77, 109, .08);
  border: 1px solid rgba(255, 77, 109, .5); -webkit-tap-highlight-color: transparent; transition: transform .12s;
}
.wishBtn svg { width: 17px; height: 17px; fill: none; stroke: #ff4d6d; stroke-width: 2; }
.wishBtn.on { color: #fff; background: linear-gradient(135deg, #ff4d6d, #c9184a); border-color: #ff4d6d; }
.wishBtn.on svg { fill: #fff; stroke: #fff; }
.wishBtn:active { transform: scale(.94); }
.wishBtn:disabled { opacity: .6; }
.wishCount { font-size: 12px; color: var(--muted, #8b949e); }
#viewNow { margin-top: 7px; font-size: 12.5px; color: #ffb340; display: flex; align-items: center; gap: 6px; }
#viewNow[hidden] { display: none; }
#viewNow b { color: #ffd166; }
.vnDot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 0 rgba(63, 185, 80, .6);
  animation: vnPulse 1.6s infinite; flex-shrink: 0; }
@keyframes vnPulse { 70% { box-shadow: 0 0 0 7px rgba(63, 185, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); } }
/* แถบสถิติ (ผู้ใช้สั่ง 2026-11-09 รอบ 2): แถวเดียว หน้าตาเหมือนแถบประกาศ #newsTicker
   อยู่ระหว่างแท็บไก่เดี่ยว/ไก่คู่ กับแถวเรียงลำดับ · พอดีจอ = นิ่งกลาง · ยาวเกิน = .run วิ่งวน (tkScroll) */
/* แถว [📦 ไอดีของฉัน][แถบสถิติ] ใต้แท็บ (ผู้ใช้สั่ง 2026-11-09) */
#statRow { display: flex; align-items: center; gap: 7px; margin: 6px 10px 4px; }
#statRow:empty { display: none; }
#myIdBtn {
  position: relative; flex-shrink: 0; height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 11px;
  border-radius: 8px; white-space: nowrap; text-decoration: none; font-size: 12.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff6fd8, #b14bff); box-shadow: 0 3px 12px rgba(214, 90, 255, .45);
}
#myIdBtn .myid-dot {
  position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%;
  background: #ff3b30; border: 2px solid #0d1117; animation: myidPulse 1.3s infinite;
}
@keyframes myidPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .7); } 70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
#myIdBtn .myid-dot[hidden] { display: none; }
#shopStats {
  flex: 1 1 auto; min-width: 0;
  position: relative; height: 30px; overflow: hidden; border-radius: 8px;
  background: var(--surf2, #1c2128); border: 1px solid rgba(255, 142, 226, .35);
}
#shopStats .stTrack {
  height: 100%; display: flex; align-items: center; justify-content: center; white-space: nowrap;
}
#shopStats.run {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
#shopStats.run .stTrack { position: absolute; top: 0; left: 0; justify-content: flex-start;
  animation: tkScroll linear infinite; will-change: transform; }
#shopStats.run:hover .stTrack { animation-play-state: paused; }
#shopStats .stMeasure { display: inline-flex; align-items: center; flex-shrink: 0; }
#shopStats .stItem { display: inline-flex; align-items: center; gap: 3px; padding: 0 4px;
  font-size: 12px; font-weight: 600; color: var(--text, #e6edf3); }
#shopStats .stItem b { font-size: 13.5px; font-weight: 800; }
#shopStats .stMem b { color: #58a6ff; }
#shopStats .stOn b { color: #3fb950; }
#shopStats .stSold b { color: #ff8c42; }
#shopStats .stDay b { color: var(--gold, #ffd700); }
#shopStats .vnDot { display: inline-block; margin-right: 2px; }
#shopStats .tkDot { padding: 0 8px; }
.stDot { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .vnDot { animation: none; } }

/* 2026-11-07: ไก่เดี่ยว (ไอคอนเล็ก) ป้าย ❤ เล็กลง แบบเดียวกับไก่คู่ · ยอดเข้าชม · ปุ่ม 🔥 มาแรง */
.wishBadge { font-style: normal; }
.fImg .wishBadge { top: 3px; right: 3px; font-size: 9px; padding: 0 4px 0 2px; gap: 1px; }
.fImg .wishBadge svg { width: 9px; height: 9px; }
#viewTotal { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted, #8b949e); margin-left: auto; }
#viewTotal svg { width: 14px; height: 14px; }
#hotBtn.active { background: linear-gradient(135deg, #ff7a18, #ff3d00); color: #fff; border-color: #ff7a18; }
/* 4 ปุ่มในแถวค้นหาบนจอมือถือ: บีบปุ่มให้เล็กลง ช่องค้นหายังอ่านออก · มาแรง กับ ราคา ขนาดเท่ากัน */
#hotBtn, #sortBtn { min-width: 60px; text-align: center; line-height: 1.25; }
@media (max-width: 440px) {
  #searchRow { gap: 4px !important; }
  #searchRow .sortBtn, #searchRow #clearBtn { padding: 6px 7px; }
  #hotBtn, #sortBtn { min-width: 54px; }
}
.hotIco { font-size: 10px; margin-right: 3px; }
@media (max-width: 440px) { #hotBtn, #sortBtn { min-width: 58px; } }
@media (max-width: 440px) { #hotBtn, #sortBtn { min-width: 62px; } }
/* เมนู: เติมเงิน/กระเป๋าเหรียญ ใช้เหรียญทอง (2026-11-07) */
.sdIco.icCoinBg { background: rgba(255, 215, 0, .12) !important; }
.sdIco .goldCoin { width: 20px; height: 20px; }
.sdBal { display: inline-flex; align-items: center; gap: 4px; }
.sdBal .goldCoin { width: 14px; height: 14px; }
.sdIco .goldCoin svg { width: 100%; height: 100%; }
/* ป๊อปอัพประกาศหน้าร้าน (2026-11-07) */
#launchPop { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.lpCard { width: 100%; max-width: 400px; border-radius: 18px; padding: 22px 20px 16px; text-align: center;
  background: linear-gradient(160deg, #2a1f4a, #161b22 60%); border: 2px solid rgba(255, 142, 226, .55);
  box-shadow: 0 0 30px rgba(255, 142, 226, .25); color: var(--text, #e6edf3); animation: lpIn .25s ease-out; }
@keyframes lpIn { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.lpTitle { font-size: 19px; font-weight: 800; color: #ffd166; margin-bottom: 12px; line-height: 1.35; }
.lpLine { font-size: 14px; line-height: 1.6; margin: 0 0 10px; color: #e6edf3; }
.lpBtn { display: block; margin: 14px 0 10px; padding: 11px; border-radius: 12px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #1877f2, #6c5ce7); }
.lpHide { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted, #8b949e);
  margin: 6px 0 10px; cursor: pointer; }
.lpHide input { width: 16px; height: 16px; accent-color: #ff8ee2; }
.lpClose { width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--border, #30363d); background: #21262d;
  color: var(--text, #e6edf3); font: inherit; font-weight: 700; cursor: pointer; }
.lpClose:disabled { opacity: .5; cursor: not-allowed; }
