/* ===== Home: Hero ===== */
.hero {
  position: relative; min-height: 680px; padding: 140px 0 200px; overflow: hidden; color: #fff;
  /* อยากใส่รูปพื้นหลัง: วางรูปที่ public/img/hero.jpg แล้วใช้ background: url('/img/hero.jpg') center / cover no-repeat, #0a0304; */
  background: #0a0304;
}

/* กำแพงโปสเตอร์: ทำเป็นขาวดำ แล้วย้อมแดงทับ ให้เป็นโทนเดียวไม่แย่งสายตา */
.hero-bg {
  position: absolute; inset: -35% -12%; z-index: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 20px;
  transform: perspective(1400px) rotateX(18deg) rotate(-12deg);
  filter: grayscale(1) contrast(1.15) brightness(.75); opacity: .5;
}
.hero-col { display: flex; flex-direction: column; gap: 20px; animation: colUp 70s linear infinite; }
.hero-col:nth-child(even) { animation-name: colDown; }
.hero-tile { aspect-ratio: 2/3; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2rem; }
@keyframes colUp { to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.hero-tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(255, 40, 60, .55), transparent 70%),
    radial-gradient(ellipse 40% 50% at 5% 0%, rgba(255, 60, 80, .35), transparent 70%),
    radial-gradient(ellipse 45% 60% at 0% 75%, rgba(225, 29, 46, .35), transparent 70%),
    radial-gradient(ellipse 38% 45% at 28% 50%, rgba(10,3,4,.45), transparent 75%),
    linear-gradient(90deg, rgba(25,4,8,.55) 0%, rgba(25,4,8,.45) 45%, rgba(40,4,10,.3) 100%),
    linear-gradient(rgba(120, 8, 20, .45), rgba(120, 8, 20, .45));
}
/* เกรนฟิล์ม */
.hero-tint::after {
  content: ''; position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 300px; z-index: 1; background: linear-gradient(transparent, var(--bg) 85%); }

/* ลำแสงโปรเจคเตอร์ */
.hero-beam {
  position: absolute; z-index: 1; top: -30%; left: 40%; width: 60%; height: 150%; pointer-events: none;
  background: conic-gradient(from 195deg at 50% 0%, transparent 0deg, rgba(255,150,160,.16) 18deg, transparent 36deg);
  filter: blur(24px); animation: beam 9s ease-in-out infinite alternate;
}
@keyframes beam { to { transform: translateX(-10%) rotate(5deg); opacity: .5; } }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); margin-bottom: 20px; }
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 0 4px rgba(255,59,78,.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,59,78,0); } }
.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: 1px; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 30%, #ffd9dc 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,.45));
}
.hero-title .num {
  background: linear-gradient(180deg, #ff8794 0%, #ff2d43 55%, #c9102a 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 22px rgba(255, 45, 67, .65)); margin: 0 2px;
}
.hero p { text-shadow: 0 2px 12px rgba(0,0,0,.6); color: rgba(255, 255, 255, .85); margin: 18px 0 28px; font-size: 1.02rem; max-width: 470px; line-height: 1.7; }
.hero-cta { display: flex; gap: 10px; }
.hero-cta .btn { padding: 12px 22px; font-size: .95rem; border-radius: 12px; }
.hero-cta .btn:not(.btn-primary) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.hero-trust {
  display: inline-flex; margin-top: 30px; padding: 12px 6px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.hero-trust > div { padding: 0 22px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-trust > div:first-child { border-left: none; }
.hero-trust b { display: block; font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-trust small { font-size: .75rem; color: rgba(255,255,255,.6); }
.stars { color: #fbbf24; font-size: 1rem; margin-left: 3px; }

/* การ์ดเรียงพัด 3 ใบด้านขวา + วงแสง + ป้ายลอย */
.hero-stack { position: relative; height: 420px; }
.hero-stack::before {
  content: ''; position: absolute; left: 50%; top: 48%; width: 420px; height: 420px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,50,70,.55), transparent 65%); filter: blur(10px);
}
.hero-stack::after {
  content: ''; position: absolute; left: 50%; top: 48%; width: 460px; height: 460px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* การ์ดแพ็กเกจ */
.poster {
  position: absolute; top: 48%; left: 50%; width: 200px; aspect-ratio: 5/7; border-radius: 22px; z-index: 1;
  display: flex; flex-direction: column; padding: 14px; color: #fff; overflow: hidden; isolation: isolate;
  background: #121216; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
/* แสงสีแบรนด์ด้านบนการ์ด */
.poster::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--brand); opacity: .9;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 75% at 50% 0%, #000 30%, transparent 75%); }
/* เงาสะท้อนกระจก */
.poster::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.22) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.06) 100%); }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-top b { display: block; font-size: .85rem; line-height: 1.1; }
.pc-top small { font-size: .65rem; opacity: .7; }
.pc-mini .app-icon { width: 28px; padding: 4px; border-radius: 8px; box-shadow: none; }
.pc-badge { margin-left: auto; font-size: .55rem; font-weight: 700; letter-spacing: .8px; padding: 3px 7px; border-radius: 6px;
  background: linear-gradient(135deg, #ffe08a, #f5b400); color: #3b2500; }
.pc-art { flex: 1; display: grid; place-items: center; position: relative; }
.pc-art::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); filter: blur(28px); opacity: .7; }
.pc-art .app-icon { width: 58%; position: relative; border-radius: 26%; box-shadow: 0 18px 35px rgba(0,0,0,.45); }
.pc-foot { display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.pc-foot small { font-size: .62rem; opacity: .7; }
.pc-foot b { font-size: 1.3rem; margin: 0 2px; }
.pc-buy { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #111; }

.poster:nth-child(1) { transform: translate(-122%, -46%) rotate(-12deg); }
.poster:nth-child(2) { transform: translate(-50%, -54%); z-index: 3; width: 220px; }
.poster:nth-child(3) { transform: translate(22%, -46%) rotate(12deg); }
.poster:nth-child(1), .poster:nth-child(3) { filter: brightness(.82); }
.hero-stack:hover .poster:nth-child(1) { transform: translate(-138%, -44%) rotate(-16deg); }
.hero-stack:hover .poster:nth-child(2) { transform: translate(-50%, -60%) scale(1.04); box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,45,67,.35); }
.hero-stack:hover .poster:nth-child(3) { transform: translate(38%, -44%) rotate(16deg); }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 14px; border-radius: 14px; font-size: .78rem; line-height: 1.3;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0,0,0,.3); animation: float 6s ease-in-out infinite;
}
.float-chip small { color: rgba(255,255,255,.65); display: block; }
.float-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); }
.float-chip.c1 { top: 4%; left: -2%; }
.float-chip.c2 { top: 40%; right: -4%; animation-delay: -2s; }
.float-chip.c3 { bottom: 0; left: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero-overlap { position: relative; z-index: 2; margin-top: -150px; }

/* ===== แผงประกาศ + สถิติ (รวมเป็นแผงเดียว) ===== */
.info-panel {
  background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-radius: 24px;
  border: 1px solid rgba(255,255,255,.8); box-shadow: 0 24px 60px rgba(15,23,42,.14); overflow: hidden;
}
.info-panel .ticker { margin: 0; border-radius: 0; box-shadow: none; padding: 10px 14px; background: linear-gradient(90deg, var(--tint), #fff 40%); border-bottom: 1px solid var(--line); }
.info-panel .ticker-label { background: var(--grad); gap: 6px; padding: 6px 14px; box-shadow: 0 6px 14px rgba(225,29,46,.3); }
.info-panel .ticker-label::before { display: none; }
.info-panel .ticker-label svg.lucide { width: 14px; height: 14px; }
.info-panel .stats { gap: 0; }
.info-panel .stat {
  border: none; border-radius: 0; box-shadow: none; background: none; padding: 22px 24px; gap: 16px; align-items: flex-start;
  border-left: 1px solid var(--line); transition: background .25s;
}
.info-panel .stat:first-child { border-left: none; }
.info-panel .stat:hover { background: linear-gradient(180deg, var(--tint), transparent); }
.info-panel .stat-icon {
  width: 48px; height: 48px; border-radius: 14px; border: none; color: #fff; background: var(--grad);
  box-shadow: 0 10px 22px rgba(225,29,46,.3), inset 0 1px 0 rgba(255,255,255,.35);
}
.info-panel .stat-icon svg.lucide { width: 22px; height: 22px; }
.info-panel .stat small { display: block; font-size: .78rem; color: var(--muted); }
.info-panel .stat strong { display: block; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.info-panel .stat em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.2); animation: pulse-g 1.6s infinite; }
@keyframes pulse-g { 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
/* ===== คำสั่งซื้อล่าสุด + สินค้าขายดี (2 แผง) ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid #f7d9dc; box-shadow: 0 16px 40px rgba(225,29,46,.08);
}
.duo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.duo-head {
  display: flex; align-items: center; gap: 14px; padding: 22px 22px 16px;
  background: radial-gradient(ellipse 80% 120% at 0% 0%, #fff1f2, transparent 70%); border-bottom: 1px solid var(--line);
}
.duo-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 22px rgba(225,29,46,.3); flex-shrink: 0; }
.duo-icon svg.lucide { width: 22px; height: 22px; }
.duo-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; font-weight: 700; }
.duo-head p { font-size: .76rem; color: var(--muted); }
.duo-pill { margin-left: auto; text-align: center; padding: 8px 14px; border-radius: 14px; background: var(--tint); border: 1px solid #fbcfd4; line-height: 1.15; }
.duo-pill b { display: block; font-size: 1.25rem; color: var(--primary); }
.duo-pill small { font-size: .65rem; color: var(--muted); }
.duo-pill.gold { background: linear-gradient(135deg, #fff8e1, #ffefc2); border-color: #fcd679; }
.duo-pill.gold b { font-size: 1rem; color: #b45309; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; background: #ecfdf5; color: var(--success); border-color: rgba(22,163,74,.25); }
.live-badge .live { width: 6px; height: 6px; }

/* รายการเลื่อนขึ้นอัตโนมัติ */
.feed { height: 352px; overflow: hidden; padding: 0 16px; mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); }
.feed-track { display: grid; gap: 10px; padding: 10px 0; animation: feedUp 21s linear infinite; }
.feed:hover .feed-track { animation-play-state: paused; }
@keyframes feedUp { to { transform: translateY(calc(-50% - 5px)); } }
.feed-row, .rank-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feed-row:hover, .rank-row:hover { transform: translateX(4px); border-color: #fbb6bd; box-shadow: 0 8px 20px rgba(225,29,46,.1); }
.feed-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; overflow: hidden; }
.feed-icon .app-icon { width: 100%; height: 100%; padding: 18%; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.feed-icon .app-icon.full { padding: 0 !important; filter: none; object-fit: cover; }
.feed-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.feed-info b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-info > div { display: flex; gap: 8px; align-items: center; font-size: .7rem; color: var(--muted); }
.who { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--primary-dark); }
.who svg.lucide { width: 11px; height: 11px; }
/* ออเดอร์จากร้าน LINE */
.via-line { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #e7f9ee; color: #05a847; font-weight: 600; white-space: nowrap; }
.via-line svg.lucide { width: 11px; height: 11px; }
.feed-end { text-align: right; display: grid; gap: 4px; justify-items: end; }
.ok { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--success); background: #ecfdf5; border: 1px solid #bbf7d0; padding: 2px 9px; border-radius: 999px; }
.ok svg.lucide { width: 11px; height: 11px; stroke-width: 3; }
.feed-end small { font-size: .66rem; color: var(--muted); }

/* อันดับขายดี */
.rank-list { display: grid; gap: 10px; padding: 14px 16px; flex: 1; }
.rank { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.rank.r1 { color: #7a4b00; background: linear-gradient(135deg, #ffe58a, #f5b400); border: none; box-shadow: 0 6px 14px rgba(245,180,0,.35); }
.rank.r2 { color: #374151; background: linear-gradient(135deg, #f3f4f6, #b8bec7); border: none; }
.rank.r3 { color: #fff; background: linear-gradient(135deg, #e3a06b, #a8612c); border: none; }
.rank-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rank-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rank-top b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info > small { font-size: .7rem; color: var(--muted); }
.rank-num { font-weight: 800; color: var(--primary); white-space: nowrap; }
.rank-num small { font-weight: 500; font-size: .68rem; }
.bar { height: 6px; border-radius: 6px; background: #f3e8ea; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.duo.in .bar i { width: var(--w); }
.duo.in .rank-row:nth-child(2) .bar i { transition-delay: .1s; }
.duo.in .rank-row:nth-child(3) .bar i { transition-delay: .2s; }
.duo.in .rank-row:nth-child(4) .bar i { transition-delay: .3s; }
.duo.in .rank-row:nth-child(5) .bar i { transition-delay: .4s; }

/* ท้ายแผง */
.duo-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #fffafa; }
.duo-foot > div { text-align: center; padding: 14px 6px; border-left: 1px solid var(--line); }
.duo-foot > div:first-child { border-left: none; }
.duo-foot b { display: block; font-size: .92rem; }
.duo-foot small { font-size: .68rem; color: var(--muted); }
.duo-foot.cta { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 10px; }
.duo-foot.cta > div { padding: 0; border: none; }
.mini-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-pills span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid #fbcfd4; font-size: .74rem; color: var(--muted); }
.mini-pills b { display: inline; font-size: .8rem; color: var(--primary); }
.mini-pills svg.lucide { width: 13px; height: 13px; color: var(--primary); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo-foot { grid-template-columns: repeat(2, 1fr); } }
/* มือถือ: แถวรายการไม่ให้ตัวหนังสือแตกเป็นแนวตั้ง */
@media (max-width: 560px) {
  .duo-head { padding: 16px 14px 12px; gap: 10px; }
  .duo-icon { width: 40px; height: 40px; border-radius: 12px; }
  .duo-head h3 { font-size: .98rem; white-space: nowrap; }
  .duo-head p { font-size: .7rem; }
  .duo-pill { padding: 6px 10px; } .duo-pill b { font-size: 1.05rem; } .duo-pill small { white-space: nowrap; }
  .feed { padding: 0 10px; }
  .feed-row, .rank-row { gap: 10px; padding: 9px 10px; }
  .feed-icon { width: 42px; height: 42px; border-radius: 11px; }
  .feed-info b { font-size: .84rem; }
  .feed-info > div { flex-wrap: wrap; gap: 3px 6px; }
  .feed-info > div > * { white-space: nowrap; }
  .feed-end small { white-space: nowrap; }
  .rank-list { padding: 12px 10px; }
  .duo-foot b { font-size: .84rem; }
}

/* --- 1) ท้ายแผงซ้าย: ช่องมีไอคอน --- */
.duo-foot.facts { gap: 8px; padding: 12px; background: #fffafa; }
.duo-foot.facts > div {
  display: flex; align-items: center; gap: 8px; text-align: left; padding: 10px; border: 1px solid #fbe1e4; border-radius: 14px; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.duo-foot.facts > div:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(225,29,46,.1); }
.duo-foot.facts p { min-width: 0; line-height: 1.2; }
.duo-foot.facts b { font-size: .82rem; white-space: nowrap; }
.duo-foot.facts small { font-size: .64rem; }
.fi { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--primary); }
.fi svg.lucide { width: 15px; height: 15px; }

/* --- 2) ป้าย TOP 5 --- */
.top-badge {
  margin-left: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(225,29,46,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.top-badge::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: shine 4s ease-in-out infinite; }
.top-badge > svg.lucide { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 9px; background: rgba(255,255,255,.2); }
.top-badge div { line-height: 1.1; }
.top-badge b { display: block; font-size: 1rem; font-weight: 800; letter-spacing: .5px; }
.top-badge small { font-size: .62rem; opacity: .8; }

/* --- 3) สินค้าขายดี: แถวแบบเดียวกับคำสั่งซื้อล่าสุด --- */
.rank-list { display: grid; gap: 10px; padding: 10px 16px; align-content: start; }
.rank-item { color: var(--text); }
.medal {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: .74rem; font-weight: 800; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line);
}
.sold-n { color: var(--primary); background: var(--tint); border-color: #fbcfd4; }
/* --- 4) แถบปุ่มท้ายแผง --- */
.shop-bar {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 12px 12px 12px 14px;
  border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 12px 26px rgba(225,29,46,.3); transition: transform .25s, box-shadow .25s;
}
.shop-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
.shop-bar:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(225,29,46,.4); }
.shop-bar-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.shop-bar-ic svg.lucide { width: 20px; height: 20px; }
.shop-bar-text { flex: 1; line-height: 1.25; }
.shop-bar-text b { display: block; font-size: .95rem; }
.shop-bar-text small { font-size: .72rem; opacity: .85; }
.shop-bar-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); transition: transform .25s; }
.shop-bar:hover .shop-bar-go { transform: translateX(4px); }
/* ===== บริการของเรา ===== */
.services { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 72px; }
.eyebrow { display: inline-block; font-size: 1.05rem; font-weight: 700; padding-bottom: 10px; position: relative; }
.eyebrow::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); }
.svc-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.2; margin: 18px 0 14px; }
.svc-text p { font-size: .98rem; line-height: 1.9; color: #475569; }
.svc-text p b { color: var(--text); font-weight: 600; }
.svc-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.svc-points span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #f7d9dc; font-size: .8rem; }
.svc-points svg.lucide { width: 15px; height: 15px; color: var(--primary); }
.svc-text .btn { padding: 12px 22px; }
/* โชว์เคสแอพ: แผงเข้ม + แถบแอพเลื่อน 3 แถว + จำนวนตามหมวด */
.svc-wall {
  position: relative; overflow: hidden; display: grid; gap: 18px; padding: 26px 0 22px; border-radius: 28px; color: #fff; min-width: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(255,59,78,.5), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(225,29,46,.35), transparent 70%), linear-gradient(140deg, #1d070b, #3a0b13 60%, #16060a);
  box-shadow: 0 30px 60px -20px rgba(60,5,12,.45);
}
.svc-wall::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%); }
.svc-wall > * { position: relative; }
.sv-head { display: grid; justify-items: start; gap: 4px; padding: 0 26px; }
.sv-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3); color: #86efac; }
.sv-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: svPulse 1.8s infinite; }
@keyframes svPulse { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.sv-head b { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-top: 6px; }
.sv-head small { font-size: .8rem; color: rgba(255,255,255,.65); }
.sv-rows { display: grid; gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sv-row { overflow: hidden; }
.sv-track { display: flex; gap: 12px; width: max-content; animation: svMove var(--dur, 40s) linear infinite; }
.sv-row.rev .sv-track { animation-direction: reverse; }
.sv-rows:hover .sv-track { animation-play-state: paused; }
@keyframes svMove { to { transform: translateX(calc(-50% - 6px)); } }
.sv-app { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; flex: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s; }
.sv-app:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); transform: translateY(-3px); }
.sv-ic { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; flex: none; box-shadow: 0 8px 16px rgba(0,0,0,.35); }
.sv-ic .app-icon { width: 100%; height: 100%; padding: 16%; border-radius: 0; background: none; box-shadow: none; }
.sv-ic .app-icon.full { padding: 0 !important; object-fit: cover; }
.sv-t b { display: block; font-size: .86rem; white-space: nowrap; }
.sv-t small { font-size: .7rem; color: #ffb3bb; white-space: nowrap; }
.sv-app.off { opacity: .55; } .sv-app.off small { color: rgba(255,255,255,.6); }
.sv-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 22px; }
.sv-cats a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .2s; min-width: 0; }
.sv-cats a:hover { background: rgba(255,255,255,.12); }
.sv-cats svg.lucide { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--grad); color: #fff; box-shadow: 0 8px 16px rgba(225,29,46,.35); }
.sv-cats span { font-size: .72rem; color: rgba(255,255,255,.7); line-height: 1.3; min-width: 0; }
.sv-cats b { display: block; font-size: 1.15rem; color: #fff; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 560px) {
  .svc-wall { padding: 20px 0 16px; border-radius: 22px; gap: 14px; }
  .sv-head { padding: 0 18px; } .sv-head b { font-size: 1.3rem; }
  .sv-ic { width: 36px; height: 36px; border-radius: 10px; }
  .sv-cats { padding: 0 12px; gap: 6px; }
  .sv-cats a { flex-direction: column; text-align: center; gap: 6px; padding: 10px 4px; }
  .sv-cats svg.lucide { width: 30px; height: 30px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) { .sv-track { animation: none; } }

/* ===== ระบบเติมเงินอัตโนมัติ ===== */
.topup { grid-template-columns: 1fr 1.1fr; }
.lead { font-weight: 700; color: var(--primary) !important; font-size: 1.05rem !important; margin-bottom: 10px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pay {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px 10px 14px;
  border-radius: 22px; background: #fff; border: 1px solid #f7d9dc; box-shadow: 0 10px 26px rgba(225,29,46,.06);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.pay-logo {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--c);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .3s;
}
.pay-logo img { width: 72%; height: 72%; object-fit: contain; }
.pay small { font-size: .78rem; font-weight: 600; color: #475569; }
.pay:hover { transform: translateY(-5px); border-color: #fbb6bd; box-shadow: 0 18px 36px rgba(225,29,46,.14); }
.pay:hover .pay-logo { transform: scale(1.08) rotate(-4deg); }
@media (max-width: 900px) { .topup { grid-template-columns: 1fr; } .topup .pay-grid, .topup .pay-card { order: 2; } }
/* การ์ดเติมเงิน: ขั้นตอน 3 ขั้น + แจ้งเตือนเครดิตเข้า + โลโก้ธนาคาร */
.pay-card { position: relative; display: grid; gap: 18px; padding: 26px; border-radius: 28px; min-width: 0;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, #ffe4e6, transparent 70%), #fff; border: 1px solid #f7d9dc; box-shadow: 0 24px 50px -20px rgba(225,29,46,.25); }
.pk-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 3px; }
.pk-step span { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; background: #fff; color: var(--primary); border: 1.5px solid #fbcfd4; box-shadow: 0 10px 20px rgba(225,29,46,.12); animation: pkOn 6s infinite; }
.pk-step span svg.lucide { width: 26px; height: 26px; }
.pk-step.s2 span { animation-delay: 1.2s; } .pk-step.s3 span { animation-delay: 2.4s; }
@keyframes pkOn { 0%, 30% { background: #fff; color: var(--primary); } 8%, 22% { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: 0 14px 26px rgba(225,29,46,.35); } }
.pk-step b { font-size: .86rem; }
.pk-step small { font-size: .72rem; color: var(--muted); }
.pk-line { position: absolute; left: 16.6%; right: 16.6%; top: 29px; height: 2px; background: repeating-linear-gradient(90deg, #fbcfd4 0 6px, transparent 6px 12px); }
.pk-line i { position: absolute; left: 0; top: -1px; height: 4px; width: 0; border-radius: 4px; background: var(--grad); animation: pkLine 6s infinite; }
@keyframes pkLine { 0% { width: 0; opacity: 1; } 40% { width: 100%; opacity: 1; } 55%, 100% { width: 100%; opacity: 0; } }
.pk-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #0f172a; color: #fff; box-shadow: 0 16px 30px -12px rgba(15,23,42,.5); animation: pkToast 6s infinite; }
.pk-toast > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; flex: none; box-shadow: 0 0 0 5px rgba(34,197,94,.2); }
.pk-toast > span svg.lucide { width: 18px; height: 18px; stroke-width: 3; }
.pk-toast b { display: block; font-size: .9rem; }
.pk-toast small { font-size: .72rem; color: rgba(255,255,255,.65); }
@keyframes pkToast { 0%, 38% { opacity: .35; transform: scale(.97); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: .35; transform: scale(.97); } }
.pk-banks-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px dashed #f1d5d8; padding-top: 16px; }
.pk-banks-h b { font-size: .9rem; } .pk-banks-h small { font-size: .74rem; color: var(--muted); }
.pk-banks { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.pb { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s; }
.pb:hover { transform: translateY(-3px) scale(1.06); }
.pb img { width: 66%; height: 66%; object-fit: contain; }
.pk-alt { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-alt span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--tint); color: var(--primary-dark); font-size: .76rem; font-weight: 500; }
.pk-alt svg.lucide { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .pay-card { padding: 18px 14px; border-radius: 22px; gap: 14px; }
  .pk-step span { width: 48px; height: 48px; border-radius: 15px; } .pk-step span svg.lucide { width: 22px; height: 22px; }
  .pk-line { top: 24px; }
  .pk-step b { font-size: .76rem; white-space: nowrap; } .pk-step small { font-size: .64rem; }
  .pk-banks { grid-template-columns: repeat(5, 1fr); }
  .pk-alt span { font-size: .7rem; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .pk-step span, .pk-line i, .pk-toast { animation: none; } }
/* โทนเข้มเหมือนแผง "บริการของเรา" ให้ 2 ส่วนเข้าชุดกัน */
.pay-card { overflow: hidden; color: #fff; border: none;
  background: radial-gradient(ellipse 60% 70% at 15% 0%, rgba(255,59,78,.5), transparent 70%), radial-gradient(ellipse 50% 60% at 100% 100%, rgba(225,29,46,.35), transparent 70%), linear-gradient(140deg, #1d070b, #3a0b13 60%, #16060a);
  box-shadow: 0 30px 60px -20px rgba(60,5,12,.45); }
.pay-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%); }
.pay-card > * { position: relative; }
.pk-step span { background: rgba(255,255,255,.08); color: #ffb3bb; border-color: rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(6px); animation-name: pkOnDark; }
@keyframes pkOnDark { 0%, 30% { background: rgba(255,255,255,.08); color: #ffb3bb; } 8%, 22% { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: 0 14px 26px rgba(225,29,46,.5); } }
.pk-step small { color: rgba(255,255,255,.6); }
.pk-line { background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px); }
.pk-toast { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); box-shadow: none; }
.pk-banks-h { border-top-color: rgba(255,255,255,.14); }
.pk-banks-h small { color: rgba(255,255,255,.6); }
.pb { box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.pk-alt span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.pk-alt svg.lucide { color: #ff8a95; }
@media (max-width: 480px) { .pay-grid { gap: 10px; } .pay { padding: 14px 6px 10px; border-radius: 18px; } .pay-logo { width: 56px; height: 56px; border-radius: 16px; } .pay small { font-size: .7rem; text-align: center; } }
/* ===== คำถามที่พบบ่อย ===== */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; margin-top: 80px; }
.faq-side { position: sticky; top: 100px; }
.faq-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin: 18px 0 12px; }
.faq-side p { color: #475569; line-height: 1.8; font-size: .95rem; }
.faq-contact { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #f7d9dc; box-shadow: 0 12px 30px rgba(225,29,46,.08); }
.faq-contact div { flex: 1; line-height: 1.3; }
.faq-contact b { display: block; }
.faq-contact small { font-size: .76rem; color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; overflow: hidden; }
.faq-list details:hover { border-color: #fbcfd4; }
.faq-list details[open] { border-color: #fbb6bd; box-shadow: 0 14px 32px rgba(225,29,46,.10); }
.faq-list summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: .95rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.q-no { font-size: .78rem; font-weight: 800; color: var(--primary); background: var(--tint); padding: 4px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.faq-list summary svg.lucide { margin-left: auto; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--soft); color: var(--muted); transition: transform .3s, background .3s, color .3s; }
.faq-list details[open] summary svg.lucide { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-list details[open] .q-no { background: var(--grad); color: #fff; }
.faq-list details p { padding: 0 20px 18px 66px; color: #475569; font-size: .9rem; line-height: 1.8; animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 24px; } .faq-side { position: static; } .faq-list details p { padding-left: 20px; } }

/* ===== หน้าร้านค้า: เลือกแอพ → เลือกแพ็กเกจ → ยืนยัน ===== */
.shop-head { text-align: center; margin: 30px 0 24px; }
.shop-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin: 16px 0 6px; }
.shop-head p { color: var(--muted); font-size: .92rem; }
.shop-head .eyebrow::after { left: 50%; transform: translateX(-50%); }
/* แถบขั้นตอน */
.stepper { list-style: none; display: flex; justify-content: center; gap: 0; margin: 0 auto 26px; max-width: 620px; }
.stepper li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); position: relative; }
.stepper li:not(:last-child)::after { content: ''; position: absolute; right: -20%; width: 40%; top: 50%; height: 2px; background: var(--line); }
.stepper li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: .8rem; transition: .3s; }
.stepper li.on { color: var(--text); }
.stepper li.on span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(225,29,46,.3); }
.stepper li.done::after { background: var(--grad); }
/* 2 คอลัมน์ เท่ากัน */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pick-card { display: flex; flex-direction: column; height: 600px; background: #fff; border-radius: 24px; border: 1px solid #f7d9dc; box-shadow: 0 16px 40px rgba(225,29,46,.07); overflow: hidden; }
.pick-bar { display: grid; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 12px; background: var(--soft); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 4px; border: none; border-radius: 9px; background: none; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; transition: .2s; }
.seg button svg.lucide { width: 14px; height: 14px; }
.seg button.on { background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
/* ตารางไอคอนแอพ */
.app-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 12px; padding: 16px 18px; scrollbar-width: thin; scrollbar-color: #fbcfd4 transparent; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border-radius: 18px;
  border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--text); cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); border-color: #fbb6bd; box-shadow: 0 12px 24px rgba(225,29,46,.1); }
.tile.on { border-color: var(--primary); box-shadow: 0 0 0 4px var(--tint), 0 12px 24px rgba(225,29,46,.15); }
.tile.out { opacity: .5; }
.tile .app-ic { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 18px rgba(0,0,0,.15); transition: transform .3s; }
.tile:hover .app-ic { transform: scale(1.08) rotate(-4deg); }
.tile b { font-size: .84rem; text-align: center; line-height: 1.2; }
.tile small { font-size: .7rem; color: var(--primary); font-weight: 600; }
.tile.out small { color: var(--muted); }
.tile-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.tile-check svg.lucide { width: 13px; height: 13px; stroke-width: 3; }
.tile.on .tile-check { transform: scale(1); }
.app-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 800; }
.app-ic .app-icon { width: 100%; height: 100%; padding: 18%; border-radius: 0; background: none; box-shadow: none; }
.app-ic .app-icon.full { padding: 0 !important; object-fit: cover; }
.app-ic.big { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.app-ic.ghost { background: var(--soft); color: var(--muted); box-shadow: none; }
.pad { padding: 20px; text-align: center; grid-column: 1 / -1; }
/* ขวา: แพ็กเกจ */
.pkg-top { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 80% 140% at 0% 0%, #fff1f2, transparent 70%); }
.pkg-top b { display: block; font-size: 1.1rem; }
.pkg-top small { font-size: .76rem; color: var(--muted); }
.pkg-top .auto { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--primary); background: var(--tint); padding: 5px 10px; border-radius: 999px; }
.pkg-top .auto svg.lucide { width: 13px; height: 13px; }
/* แพ็กเกจเยอะ = กรอบสูงเท่าเดิม เลื่อนดูในกรอบ (ไม่บีบการ์ดให้เตี้ยลง) */
.pkg-top, .summary { flex-shrink: 0; }
.plan-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-auto-rows: max-content; align-content: start; gap: 10px; padding: 16px 18px; }
.plan-list > * { flex-shrink: 0; }
.plan-list.swap { animation: faqIn .35s ease; }
.plan-empty { height: 100%; min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.plan-empty svg.lucide { width: 34px; height: 34px; padding: 14px; box-sizing: content-box; border-radius: 18px; background: var(--tint); color: var(--primary); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-8px); } }
.plan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.plan input { display: none; }
.radio { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; transition: .2s; }
.radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.plan:hover { border-color: #fbb6bd; }
.plan:has(input:checked) { border-color: var(--primary); background: linear-gradient(100deg, var(--tint), #fff 70%); box-shadow: 0 10px 22px rgba(225,29,46,.12); }
.plan:has(input:checked) .radio { background: var(--grad); border-color: transparent; }
.plan:has(input:checked) .radio::after { transform: scale(1); }
.plan.out { cursor: not-allowed; background: var(--soft); opacity: .65; }
.plan-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plan-info b { font-size: .92rem; }
.plan-info small { font-size: .74rem; color: var(--muted); }
.plan-end { text-align: right; display: grid; gap: 2px; }
.plan-end b { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.plan.out .plan-end b { color: var(--muted); text-decoration: line-through; }
.plan-end small { font-size: .68rem; font-weight: 600; }
.st-in { color: var(--success); }
.st-out { color: var(--muted); }
/* แถบสรุปด้านล่าง */
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fffafa; transition: background .3s; }
.summary small { display: block; font-size: .7rem; color: var(--muted); }
.summary b { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.summary span { display: block; font-size: .74rem; color: var(--muted); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary.ready { background: linear-gradient(100deg, #fff1f2, #fff); }
.summary.ready b { color: var(--primary); }
.summary .btn { padding: 12px 20px; }
@media (max-width: 900px) {
  .picker { grid-template-columns: 1fr; }
  .pick-card { height: auto; }
  .app-grid { max-height: 380px; }
  .plan-list { max-height: 440px; }
  .stepper li { font-size: .74rem; }
}
@media (max-width: 480px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- A: แผงรายละเอียด --- */
.detail { margin-top: 20px; background: #fff; border-radius: 24px; border: 1px solid #f7d9dc; box-shadow: 0 16px 40px rgba(225,29,46,.07); overflow: hidden; animation: faqIn .4s ease; }
.detail[hidden] { display: none; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fffafa; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: none; border-radius: 10px; background: none; font: inherit; font-size: .84rem; color: var(--muted); cursor: pointer; transition: .2s; }
.tabs button svg.lucide { width: 15px; height: 15px; }
.tabs button.on { background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.chip-plan { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--tint); border: 1px solid #fbcfd4; }
.chip-plan svg.lucide { width: 15px; height: 15px; }
.chip-plan.dim { color: var(--muted); background: var(--soft); border-color: var(--line); font-weight: 500; }
.detail-body { padding: 22px 24px; }
.detail-body.swap { animation: faqIn .3s ease; }
.d-about { display: flex; gap: 16px; align-items: flex-start; }
.d-about p { font-size: .94rem; line-height: 1.8; color: #475569; }
.d-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--soft); font-size: .8rem; }
.d-facts svg.lucide { width: 15px; height: 15px; color: var(--primary); }
.d-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: s; }
.d-list li { position: relative; padding: 12px 14px 12px 44px; border-radius: 14px; background: var(--soft); font-size: .88rem; line-height: 1.6; }
.d-list li::before { content: '✓'; position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--grad); }
.d-list.num li::before { counter-increment: s; content: counter(s); }
@media (max-width: 700px) { .d-list { grid-template-columns: 1fr; } .d-about { flex-direction: column; } }

/* --- C: หน้าต่างยืนยัน --- */
.modal[hidden] { display: none; }
.confirm .modal-box { width: min(480px, 100%); }
.cf-head { display: flex; align-items: center; gap: 14px; padding: 20px; background: radial-gradient(ellipse 90% 140% at 0% 0%, #fff1f2, transparent 70%); border-bottom: 1px solid var(--line); position: relative; }
.cf-head small { font-size: .72rem; color: var(--muted); }
.cf-head b { display: block; font-size: 1.15rem; }
.cf-head span:not(.app-ic) { font-size: .82rem; color: var(--primary); font-weight: 600; }
.cf-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--soft); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cf-body { padding: 18px 20px; }
.cf-body h4 { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: #b45309; margin-bottom: 10px; }
.cf-body h4 svg.lucide { width: 16px; height: 16px; }
.cf-terms { display: grid; gap: 6px; padding: 12px 14px 12px 30px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; font-size: .84rem; line-height: 1.6; color: #57534e; }
.cf-accept { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .86rem; cursor: pointer; user-select: none; }
.cf-accept input { display: none; }
.cf-accept .box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 2px solid #cbd5e1; display: grid; place-items: center; color: transparent; transition: .2s; }
.cf-accept .box svg.lucide { width: 14px; height: 14px; stroke-width: 3; }
.cf-accept input:checked + .box { background: var(--grad); border-color: transparent; color: #fff; }
.cf-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fffafa; }
.cf-foot div { flex: 1; }
.cf-foot small { display: block; font-size: .7rem; color: var(--muted); }
.cf-foot b { font-size: 1.3rem; color: var(--primary); }
/* ===== การ์ดแพ็กเกจแบบใหม่ ===== */
.plan2 {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plan2 input { display: none; }
.plan2:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.p2-days {
  position: relative; width: 62px; height: 62px; flex-shrink: 0; border-radius: 16px; display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--soft); color: var(--text); transition: background .25s, color .25s, transform .3s;
}
.p2-days b { font-size: 1.6rem; font-weight: 800; }
.p2-days small { font-size: .7rem; font-weight: 600; color: #64748b; margin-top: 2px; }
.p2-check { position: absolute; right: -6px; top: -6px; width: 22px !important; height: 22px !important; padding: 4px; border-radius: 50%; background: #fff; color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,.15); stroke-width: 3; transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.p2-info { flex: 1; min-width: 0; display: grid; gap: 7px; }
.p2-info > b { font-size: 1rem; font-weight: 600; }
.p2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p2-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; background: var(--soft); font-size: .74rem; color: #475569; }
.p2-chips svg.lucide { width: 13px; height: 13px; }
.p2-chips .ok { background: #ecfdf5; color: var(--success); font-weight: 600; }
.p2-price { text-align: right; display: grid; gap: 2px; }
.p2-price b { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.p2-price small { font-size: .72rem; color: #64748b; white-space: nowrap; }
/* ป้ายคุ้มสุด */
.p2-flag { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 4px 12px; border-radius: 0 0 0 12px; background: linear-gradient(135deg, #ffd54a, #f5a800); color: #4a2c00; font-size: .68rem; font-weight: 800; }
.p2-flag svg.lucide { width: 12px; height: 12px; }
.plan2.best { border-color: #fcd679; }
.plan2.best .p2-price { padding-top: 10px; }
/* เลือกแล้ว */
.plan2:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,29,46,.10), 0 12px 24px rgba(15,23,42,.08); }
.plan2:has(input:checked) .p2-days { background: var(--grad); color: #fff; transform: rotate(-4deg); }
.plan2:has(input:checked) .p2-days small { color: rgba(255,255,255,.85); }
.plan2:has(input:checked) .p2-check { transform: scale(1); }
.plan2:has(input:checked) .p2-price b { color: var(--primary); }
/* หมด */
.plan2.out { cursor: not-allowed; background: #fafbfc; }
.plan2.out:hover { transform: none; box-shadow: none; border-color: var(--line); }
.plan2.out .p2-days, .plan2.out .p2-info, .plan2.out .p2-price { opacity: .45; }
.plan2.out .p2-price b { text-decoration: line-through; }
.p2-out { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); width: 130px; text-align: center; padding: 3px 0; background: #475569; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .5px; }
@media (max-width: 480px) { .p2-days { width: 52px; height: 52px; } .p2-days b { font-size: 1.3rem; } .p2-price b { font-size: 1.1rem; } }

/* ===== ค้นหา + กรองหมวด (หน้าร้านค้า) ===== */
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 16px; background: #fff;
  border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; cursor: text;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(225,29,46,.1); }
.sb-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(225,29,46,.3); transition: transform .3s; }
.search-box:focus-within .sb-ic { transform: rotate(-10deg) scale(1.05); }
.sb-ic svg.lucide { width: 18px; height: 18px; }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: .95rem; color: var(--text); }
.search-box input::placeholder { color: #94a3b8; }
.sb-count { font-size: .74rem; font-weight: 600; color: #475569; background: var(--soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sb-clear { display: none; width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; place-items: center; }
.sb-clear svg.lucide { width: 14px; height: 14px; }
.search-box.has .sb-clear { display: grid; }
.search-box.has .sb-count { color: var(--primary); background: var(--tint); }
.cat-seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--soft); }
.cat-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--grad); box-shadow: 0 8px 18px rgba(225,29,46,.3); transition: transform .4s cubic-bezier(.34,1.3,.64,1), width .4s; }
.cat-seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: none; border-radius: 12px;
  background: none; font: inherit; font-size: .88rem; font-weight: 500; color: #475569; cursor: pointer; transition: color .25s;
}
.cat-seg button:hover:not(.on) { color: var(--text); }
.cat-seg button svg.lucide { width: 15px; height: 15px; }
.cat-seg button em { font-style: normal; font-size: .68rem; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #fff; color: #475569; transition: .25s; }
.cat-seg button.on { color: #fff; font-weight: 600; }
.cat-seg button.on em { background: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 480px) { .cat-seg button { font-size: .78rem; gap: 3px; } .cat-seg button svg.lucide { display: none; } }

/* ===== ส่วนหัวหน้าร้านค้า (แบนเนอร์) ===== */
.shop-hero {
  position: relative; overflow: hidden; margin: 20px 0 24px; padding: 40px 44px 28px; border-radius: 28px; color: #fff;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: center;
  background:
    radial-gradient(ellipse 50% 80% at 85% 30%, rgba(255,59,78,.55), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(225,29,46,.35), transparent 70%),
    linear-gradient(135deg, #1d070b, #3a0b13 60%, #1a0609);
  box-shadow: 0 24px 50px rgba(60,5,12,.25);
}
.shop-hero::after { /* เกรนฟิล์ม */
  content: ''; position: absolute; inset: 0; opacity: .1; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shop-hero > * { position: relative; z-index: 1; }
.sh-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.sh-tag .live { background: #4ade80; }
.shop-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin: 16px 0 10px; }
.sh-grad { background: linear-gradient(135deg, #ff8a95, #ff3b4e 55%, #ff9a6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-hero p { font-size: .98rem; color: rgba(255,255,255,.8); max-width: 440px; line-height: 1.7; }
.sh-stats { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.sh-stats span { display: grid; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); font-size: .74rem; color: rgba(255,255,255,.7); }
.sh-stats b { font-size: 1.35rem; color: #fff; line-height: 1.1; }
/* ไอคอนลอย */
.sh-orbit { position: relative; height: 290px; perspective: 900px; }
.so-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; }
.so-stage > * { position: absolute; left: 50%; top: 50%; }
/* แสงกลาง + คลื่นเต้น */
.so-glow { width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; background: radial-gradient(circle, rgba(255,59,78,.45), rgba(255,59,78,0) 65%); filter: blur(6px); animation: soBreath 4s ease-in-out infinite; }
.so-wave { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 2px solid rgba(255,120,130,.55); animation: soWave 3s ease-out infinite; }
.so-wave.w2 { animation-delay: 1.5s; }
/* วงโคจร */
.so-track { border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.so-track.t1 { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
.so-track.t2 { width: 290px; height: 290px; margin: -145px 0 0 -145px; border-style: solid; border-color: rgba(255,255,255,.08); }
.so-ring { width: 0; height: 0; animation: soSpin 26s linear infinite; }
.so-ring.r2 { animation-duration: 40s; animation-direction: reverse; }
.so-ring.r1 { --r: 95px; } .so-ring.r2 { --r: 145px; }
.so-arm { position: absolute; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.so-arm .orb { position: absolute; width: 50px; height: 50px; margin: -25px 0 0 -25px; animation: soSpin 26s linear infinite reverse; }
.so-ring.r2 .orb { width: 44px; height: 44px; margin: -22px 0 0 -22px; animation: soSpin 40s linear infinite; }
.sh-orbit:hover .so-ring, .sh-orbit:hover .so-arm .orb { animation-play-state: paused; }
/* ไอคอน */
.orb { padding: 0; border: none; border-radius: 14px; cursor: pointer; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.14); transition: box-shadow .25s, scale .25s; }
.orb .app-icon { width: 100%; height: 100%; padding: 0; border-radius: inherit; box-shadow: none; overflow: hidden; }
.orb:hover { scale: 1.22; z-index: 3; box-shadow: 0 16px 30px rgba(0,0,0,.4), 0 0 0 3px #fff, 0 0 26px rgba(255,90,105,.9); }
.orb::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px; padding: 4px 10px; border-radius: 8px; background: #fff; color: #18181b; font-size: .68rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.orb:hover::after { opacity: 1; translate: -50% 0; }
.orb.so-center { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 26px; z-index: 2; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.18), 0 0 40px rgba(255,59,78,.6); animation: soFloat 4s ease-in-out infinite; }
/* ประกายระยิบ */
.so-spark { left: var(--x) !important; top: var(--y) !important; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #ffb3ba; opacity: 0; animation: soTwinkle 4.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes soSpin { to { transform: rotate(360deg); } }
@keyframes soWave { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes soBreath { 50% { transform: scale(1.15); opacity: .75; } }
@keyframes soFloat { 50% { translate: 0 -8px; } }
@keyframes soTwinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .so-stage *, .so-stage { animation: none !important; transition: none !important; } }
/* แถบขั้นตอนแบบกระจก */
.shop-hero .stepper {
  grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: none; margin: 18px 0 0; padding: 12px;
  border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.shop-hero .stepper li { justify-content: flex-start; gap: 12px; padding: 4px 12px; color: rgba(255,255,255,.55); }
.shop-hero .stepper li::after { display: none; }
.shop-hero .stepper li span { width: 36px; height: 36px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.25); color: #fff; font-size: .9rem; }
.shop-hero .stepper li b { display: block; font-size: .92rem; }
.shop-hero .stepper li small { font-size: .7rem; opacity: .75; font-weight: 400; }
.shop-hero .stepper li.on { color: #fff; }
.shop-hero .stepper li.on span { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 4px rgba(255,59,78,.25); }
.shop-hero .stepper li.done span { background: #fff; color: var(--primary); }
.step-bar { position: absolute; left: 16.66%; bottom: 0; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, #ff3b4e, #ff9a6a); box-shadow: 0 0 12px rgba(255,59,78,.8); transition: width .5s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 900px) {
  .shop-hero { grid-template-columns: 1fr; padding: 28px 22px 20px; }
  .sh-orbit { display: none; }
  .shop-hero .stepper li small { display: none; }
  .shop-hero .stepper li { gap: 8px; padding: 4px; font-size: .8rem; }
}
@media (max-width: 560px) {
  .shop-hero { margin: 12px 0 18px; padding: 22px 16px 16px; border-radius: 22px; }
  .sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sh-stats span { padding: 8px 10px; font-size: .66rem; }
  .sh-stats b { font-size: 1.1rem; }
  /* ขั้นตอน: วงกลมอยู่บน ชื่ออยู่ล่าง ไม่ตัดคำแนวตั้ง */
  .shop-hero .stepper { padding: 10px 6px; }
  .shop-hero .stepper li { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .shop-hero .stepper li span { width: 30px; height: 30px; font-size: .8rem; }
  .shop-hero .stepper li b { font-size: .74rem; white-space: nowrap; }
}

/* --- ลูกเล่น --- */
.info-panel { position: relative; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.info-panel .stat { position: relative; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.info-panel .stat:nth-child(1) { animation-delay: .15s; }
.info-panel .stat:nth-child(2) { animation-delay: .25s; }
.info-panel .stat:nth-child(3) { animation-delay: .35s; }
.info-panel .stat:nth-child(4) { animation-delay: .45s; }
/* แสงวิ่งผ่านแผง */
.info-panel::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: shine 6s ease-in-out 1.2s infinite;
}
@keyframes shine { 0% { left: -40%; } 30%, 100% { left: 130%; } }
/* แสงตามเมาส์ */
.info-panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(225,29,46,.10), transparent 70%);
}
.info-panel:hover::after { opacity: 1; }
/* ชี้ที่ช่องสถิติ */
.info-panel .stat::after {
  content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--grad); transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.info-panel .stat:hover::after { transform: scaleX(1); }
.info-panel .stat-icon { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.info-panel .stat:hover .stat-icon { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.info-panel .stat:hover strong b { color: var(--primary); transition: color .25s; }
/* ชี้ที่แถบประกาศ = หยุดวิ่ง */
.info-panel .ticker:hover .ticker-track { animation-play-state: paused; }
.info-panel .ticker-label svg.lucide { animation: shout 2.4s ease-in-out infinite; transform-origin: 30% 60%; }
@keyframes shout { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .info-panel, .info-panel *, .info-panel::before { animation: none !important; } }

@media (max-width: 700px) {
  .info-panel .stat:nth-child(3) { border-left: none; }
  .info-panel .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .info-panel .stat { padding: 16px; }
}

/* ===== Page title (ร้านค้า / เติมเงิน) ===== */
.page-title { margin: 20px 0 26px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-title h1 { font-size: 2rem; font-weight: 700; }
.page-title p { color: var(--muted); font-size: .88rem; }

/* ===== Auth ===== */
.auth-wrap { display: grid; place-items: center; padding: 30px 0 20px; }
.auth-card { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.auth-side { padding: 36px; background: radial-gradient(circle at 50% 30%, #ffe4e6, transparent 60%), #fafbfe; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; border-right: 1px solid var(--line); }
.auth-mascot { font-size: 6rem; text-align: center; margin: auto 0; filter: drop-shadow(0 18px 30px rgba(225,29,46,.25)); }
.auth-side h2 { font-size: 1.6rem; line-height: 1.25; }
.auth-side p { font-size: .8rem; color: var(--muted); }
.auth-feature { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .8rem; }
.auth-feature .section-icon { width: 26px; height: 26px; border-radius: 8px; }
.auth-form { padding: 36px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: none; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fade .3s; }
.auth-panel h2 { font-size: 1.35rem; }
.auth-panel > p { color: var(--muted); margin-bottom: 18px; font-size: .8rem; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.strength span { height: 4px; border-radius: 4px; background: var(--line); transition: .3s; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-discord { background: #5865f2; color: #fff; border: none; }

/* ===== Wallet ===== */
.wallet-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.bank-panel { background: linear-gradient(160deg, #1c0a0d, #3a0e15); color: #fff; border: none; }
.bank-panel .muted { color: rgba(255,255,255,.65); }
.qr-box { background: #fff; color: #111; border-radius: 16px; padding: 18px; width: 240px; margin: 20px auto; text-align: center; }
.qr-fake { width: 170px; height: 170px; margin: 10px auto; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 17px 17px; border: 8px solid #fff; outline: 2px solid #111; }
.acc-number { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px; }
.acc-number strong { font-size: 1.6rem; letter-spacing: 2px; color: #ff6b78; }
.balance { font-size: 2.4rem; font-weight: 700; margin: 4px 0 14px; }
.point-box { display: flex; justify-content: space-between; align-items: center; background: var(--tint); border: 1px solid rgba(225,29,46,.2); border-radius: 14px; padding: 12px 16px; }
.point-box strong { color: var(--primary); font-size: 1.3rem; }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 18px; }
.dropzone { border: 2px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; margin-bottom: 14px; transition: .2s; font-size: .85rem; }
.dropzone:hover { border-color: var(--primary-2); background: var(--tint); }

@media (max-width: 900px) {
  .hero .container, .auth-card, .wallet-grid { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  /* การ์ดแอพลอยในหน้าแรก: แสดงบนมือถือด้วย ย่อทั้งชุดให้พอดีจอ */
  .hero-stack { transform: scale(.82); margin: -30px 0 -40px; }
  /* มือถือ: การ์ดแอพขึ้นก่อน แล้วค่อยกล่องสถิติ (ออเดอร์/สมาชิก/เวลา) */
  .hero .container { gap: 0; }
  .hero .container > div:first-child { display: contents; }
  /* ข้อความหัวเว็บจัดกึ่งกลาง */
  .hero .container { text-align: center; }
  .hero .hero-tag { justify-self: center; }
  .hero .container > div:first-child > p { margin-inline: auto; max-width: 520px; }
  .hero .hero-cta { justify-content: center; }
  .hero .hero-stack { order: 1; }
  .hero .hero-trust { order: 2; }
  .hero-bg { inset: -30% -40%; opacity: .3; }
  .hero { min-height: 0; }
  .quick { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .hero-stack { transform: scale(.66); margin: -34px -20px -60px; } }

/* ===== หน้าร้านค้า: การ์ดโทนกลาง + ตัวอักษรอ่านง่าย (override) ===== */
.picker .pick-card, .detail { border-color: var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.pick-bar, .detail-head, .summary, .summary.ready, .pkg-top { background: #fff; }
.pkg-top { background: #fafbfc; }
/* แอพ */
.tile { border-color: var(--line); }
.tile:hover { border-color: #cbd5e1; box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.tile.on { border-color: var(--text); box-shadow: 0 0 0 3px rgba(15,23,42,.08), 0 10px 22px rgba(15,23,42,.1); }
.tile-check { background: var(--text); }
.tile b { font-size: .92rem; font-weight: 600; color: var(--text); }
.tile small { font-size: .78rem; font-weight: 500; color: #475569; }
/* แพ็กเกจ */
.plan { border-color: var(--line); }
.plan:hover { border-color: #cbd5e1; }
.plan:has(input:checked) { border-color: var(--text); background: #fff; box-shadow: 0 0 0 3px rgba(15,23,42,.06), 0 10px 22px rgba(15,23,42,.08); }
.plan:has(input:checked) .radio { background: var(--text); }
.plan-info b { font-size: 1rem; font-weight: 600; }
.plan-info small { font-size: .82rem; color: #475569; }
.plan-end b { font-size: 1.15rem; color: var(--text); }
.plan-end small { font-size: .76rem; }
.pkg-top b { font-size: 1.2rem; }
.pkg-top small { font-size: .84rem; color: #475569; }
.pkg-top .auto { color: #334155; background: var(--soft); }
.summary b, .summary.ready b { color: var(--text); font-size: 1.5rem; }
.summary small { font-size: .78rem; }
.summary span { font-size: .84rem; color: #475569; max-width: 300px; }
/* ปุ่มกรอง / แท็บ */
.seg button { font-size: .86rem; }
.seg button.on, .tabs button.on { color: var(--text); }
.tabs button { font-size: .9rem; }
/* รายละเอียด */
.chip-plan { color: var(--text); background: var(--soft); border-color: var(--line); }
.d-about p { font-size: 1rem; line-height: 1.9; color: #334155; }
.d-facts span { font-size: .86rem; color: #334155; }
.d-facts svg.lucide { color: #475569; }
.d-list li { font-size: .95rem; line-height: 1.75; color: #334155; background: #fafbfc; border: 1px solid var(--line); }
.d-list li::before { background: var(--text); }
/* หัวหน้า + ช่องค้นหา */
.shop-head p { font-size: 1rem; color: #475569; }
.picker .input { font-size: .95rem; }
/* ===== หน้าร้านค้า: เติมสีแบบพอดี (override) ===== */
/* เลือกแอพ: ขอบแดงบาง + วงจางๆ ไม่ถมพื้น */
.tile.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,29,46,.10), 0 10px 22px rgba(15,23,42,.08); }
.tile-check { background: var(--grad); }
.tile small { color: var(--primary); font-weight: 600; }
.tile.out small { color: var(--muted); }
/* แถบสีประจำแอพใต้ไอคอน */
.tile .app-ic { position: relative; }
.tile::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand, var(--line)); opacity: 0; transition: opacity .25s, left .25s, right .25s; }
.tile:hover::after, .tile.on::after { opacity: 1; left: 20%; right: 20%; }
/* แพ็กเกจที่เลือก: ขอบแดง + แถบแดงด้านซ้าย */
.plan { position: relative; overflow: hidden; }
.plan::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); transform: scaleY(0); transition: transform .25s; }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,29,46,.08), 0 10px 22px rgba(15,23,42,.08); }
.plan:has(input:checked)::before { transform: scaleY(1); }
.plan:has(input:checked) .radio { background: var(--grad); }
.plan-end b { color: var(--primary); }
.plan.out .plan-end b { color: var(--muted); }
/* หัวการ์ดแพ็กเกจ: แสงสีประจำแอพจางๆ */
.pkg-top { position: relative; overflow: hidden; }
.pkg-top::before { content: ''; position: absolute; inset: 0; background: var(--brand, transparent); opacity: .08; pointer-events: none; }
.pkg-top > * { position: relative; }
.pkg-top .auto { color: var(--primary); background: #fff; border: 1px solid #fbcfd4; }
/* สรุปยอด */
.summary.ready b { color: var(--primary); }
/* รายละเอียด */
.chip-plan { color: var(--primary); background: #fff; border-color: #fbcfd4; }
.d-list li::before { background: var(--grad); }
.d-facts svg.lucide { color: var(--primary); }
.seg button.on, .tabs button.on { color: var(--primary); }
/* เอาแถบสีใต้การ์ดแอพ และแสงสีหัวการ์ดแพ็กเกจออก */
.tile::after, .pkg-top::before { display: none; }
.pkg-top { background: #fafbfc; }
/* การ์ดแพ็กเกจ: ใช้ไอคอนแอพแทนกล่องระยะเวลา */
.p2-days { overflow: visible; padding: 0; box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.p2-days .app-icon { width: 100%; height: 100%; border-radius: 16px; padding: 18%; background: none; box-shadow: none; }
.p2-days .app-icon.full { padding: 0 !important; object-fit: cover; }
.plan2:has(input:checked) .p2-days { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary), 0 8px 18px rgba(225,29,46,.25); }
.plan2.out .p2-days { filter: grayscale(1); }
/* ไอคอนแพ็กเกจที่เลือก: ไม่เอียง + ✓ มุมขวาล่าง ไม่ให้โดนขอบการ์ดตัด */
.plan2:has(input:checked) .p2-days { transform: none; }
.p2-check { top: auto; right: -5px; bottom: -5px; background: var(--grad); color: #fff; }
/* เอาเครื่องหมาย ✓ บนไอคอนแพ็กเกจออก (ใช้วงแดงรอบไอคอนบอกการเลือกแทน) */
.p2-check { display: none; }

/* ฝั่งราคาการ์ดแพ็กเกจ: ป้ายสถานะ / ราคา / ราคาต่อวัน เรียงตรงแนว */
.p2-price { min-width: 92px; justify-items: end; align-content: center; gap: 4px; padding-top: 0 !important; }
.p2-price b { font-size: 1.4rem; line-height: 1.1; }
.p2-day { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--soft); font-size: .72rem; font-weight: 600; color: #475569; }
.p2-tag { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.p2-tag svg.lucide { width: 11px; height: 11px; }
.p2-tag.best { background: linear-gradient(135deg, #ffe58a, #f5b400); color: #4a2c00; }
.p2-tag.off { background: #475569; color: #fff; }
.plan2.out .p2-price { opacity: 1; }
.plan2.out .p2-price b, .plan2.out .p2-day { opacity: .45; }
.plan2:has(input:checked) .p2-day { background: var(--tint); color: var(--primary); }
/* ===== แผงรายละเอียดแบบใหม่ ===== */
.detail { display: grid; grid-template-columns: 1fr 320px; }
.detail[hidden] { display: none; }
.dt-main { min-width: 0; border-right: 1px solid var(--line); }
.dt-tabs { position: relative; display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.dt-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 18px 14px 16px; border: none; background: none; font: inherit; font-size: .95rem; font-weight: 500; color: #64748b; cursor: pointer; white-space: nowrap; transition: color .2s; }
.dt-tabs button svg.lucide { width: 17px; height: 17px; }
.dt-tabs button:hover { color: var(--text); }
.dt-tabs button.on { color: var(--primary); font-weight: 600; }
.dt-line { position: absolute; left: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); transition: transform .35s cubic-bezier(.34,1.3,.64,1), width .35s; }
.detail-body { padding: 24px; }
.d-about { display: flex; gap: 18px; align-items: flex-start; }
.d-about .app-ic.big { width: 72px; height: 72px; border-radius: 20px; }
.d-about h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.d-about p { font-size: 1rem; line-height: 1.85; color: #334155; }
/* รายละเอียดแบบ HTML จาก API: หัวข้อ + บรรทัดละจุด + ป้าย */
.d-about > div { min-width: 0; flex: 1; }
.rich { display: block; font-size: .96rem; line-height: 1.7; color: #334155; overflow-wrap: anywhere; }
.rich h1, .rich h2, .rich h3 { font-size: 1rem !important; font-weight: 700; color: var(--text); margin: 4px 0 2px; }
.rich h1 u, .rich h2 u, .rich h3 u { text-decoration: none; }
.rich h4, .rich h5, .rich h6, .rich li { position: relative; padding-left: 18px; font-size: .95rem; font-weight: 400; margin: 0; list-style: none; }
.rich h4::before, .rich h5::before, .rich h6::before, .rich li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.rich ul, .rich ol { margin: 0; padding: 0; }
.rich > * + h1, .rich > * + h2, .rich > * + h3, .rich h4, .rich h5, .rich h6, .rich li, .rich p, .rich div { margin-top: 6px; }
.rich .rt-badge { display: inline-block; }
.rich a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rich i, .rich em { font-style: normal; color: var(--muted); }
.rt-badge { display: inline-block; margin: 0 2px; padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .78rem; font-weight: 600; line-height: 1.6; }
.d-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.d-feat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.d-feat:hover { transform: translateY(-2px); border-color: #fbcfd4; box-shadow: 0 10px 22px rgba(15,23,42,.06); }
.d-feat > span { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--primary); }
.d-feat > span svg.lucide { width: 20px; height: 20px; }
.d-feat b { display: block; font-size: .95rem; }
.d-feat small { font-size: .8rem; color: #64748b; }
/* การ์ดสรุปด้านขวา */
.dt-side { padding: 22px; background: #fafbfc; display: flex; flex-direction: column; gap: 14px; }
.ds-label { font-size: .74rem; font-weight: 700; letter-spacing: .5px; color: #64748b; text-transform: uppercase; }
.ds-app { display: flex; align-items: center; gap: 12px; }
.ds-app .app-ic { width: 48px; height: 48px; }
.ds-app b { display: block; font-size: 1.05rem; }
.ds-app small { font-size: .84rem; color: #475569; }
.ds-price { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ds-price b { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.ds-price small { font-size: .8rem; font-weight: 600; color: #475569; background: var(--soft); padding: 2px 8px; border-radius: 8px; }
.ds-list { list-style: none; display: grid; gap: 8px; }
.ds-list li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #334155; }
.ds-list svg.lucide { width: 16px; height: 16px; color: var(--primary); }
.dt-side .btn-block { margin-top: auto; }
.ds-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; min-height: 220px; color: #64748b; }
.ds-empty span { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--primary); margin-bottom: 4px; animation: float 3s ease-in-out infinite; }
.ds-empty b { color: var(--text); font-size: 1rem; }
.ds-empty small { font-size: .82rem; max-width: 220px; }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .dt-main { border-right: none; border-bottom: 1px solid var(--line); }
  .d-feats { grid-template-columns: 1fr; }
}
.dt-tabs { overflow-y: hidden; scrollbar-width: none; }
.dt-tabs::-webkit-scrollbar { display: none; }

/* ===== แผงรายละเอียด: คอลัมน์เดียว (ไม่มีปุ่มสั่งซื้อซ้ำ) ===== */
.detail { display: block; }
.dt-main, .dt-side { display: none; }
.dt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-right: 18px; border-bottom: 1px solid var(--line); }
.dt-head .dt-tabs { border-bottom: none; flex: 1; min-width: 0; }
.chip-plan { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.chip-plan b { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .82rem; }
.cp-ic { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.cp-ic .app-icon { width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.chip-plan.dim { padding: 7px 14px; color: #64748b; background: var(--soft); border-color: transparent; font-weight: 500; }
.chip-plan.dim svg.lucide { width: 15px; height: 15px; }
.d-feats { grid-template-columns: repeat(4, 1fr); }
.d-feat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
@media (max-width: 900px) {
  .dt-head { flex-direction: column; align-items: stretch; padding: 0 0 12px; }
  .dt-head #detailPlan { padding: 0 18px; }
  .d-feats { grid-template-columns: repeat(2, 1fr); }
}
/* ===== หน้าต่างยืนยันสั่งซื้อ (ใหม่) ===== */
.confirm .modal-box.cf { width: min(440px, 100%); border-radius: 28px; animation: cfIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes cfIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.cf-top {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 28px 24px 22px; color: #fff;
  background: radial-gradient(ellipse 70% 90% at 80% 0%, rgba(255,59,78,.55), transparent 70%), linear-gradient(140deg, #1d070b, #3a0b13);
}
.cf-top .cf-close { top: 14px; right: 14px; background: rgba(255,255,255,.12); color: #fff; }
.cf-icon { width: 72px; height: 72px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 14px 28px rgba(0,0,0,.4); }
.cf-icon .app-icon { width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.cf-top small { font-size: .74rem; opacity: .7; letter-spacing: .5px; }
.cf-top b { font-size: 1.3rem; }
.cf-plan { margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: .82rem; font-weight: 600; }
/* ใบเสร็จ */
.cf-receipt { position: relative; margin: -12px 18px 0; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(15,23,42,.08); display: grid; gap: 9px; }
.cf-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: #64748b; }
.cf-row b { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cf-row b.ok { color: var(--success); }
.cf-row b.ok svg.lucide { width: 14px; height: 14px; }
.cf-row b.bad { color: var(--primary); }
.cf-sep { border-top: 1.5px dashed var(--line); margin: 2px 0; }
.cf-row.total { padding-top: 8px; border-top: 1px solid var(--line); }
.cf-row.total span { font-weight: 600; color: var(--text); }
.cf-row.total b { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
/* เงื่อนไข */
.cf-terms { margin: 14px 18px 0; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; overflow: hidden; }
.cf-terms summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-size: .86rem; font-weight: 700; color: #b45309; }
.cf-terms summary::-webkit-details-marker { display: none; }
.cf-terms summary svg.lucide { width: 16px; height: 16px; }
.cf-caret { margin-left: auto; transition: transform .25s; }
.cf-terms[open] .cf-caret { transform: rotate(180deg); }
.cf-terms ul { list-style: none; display: grid; gap: 6px; padding: 0 14px 12px; }
.cf-terms li { display: flex; gap: 8px; font-size: .84rem; line-height: 1.55; color: #57534e; }
.cf-terms li svg.lucide { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: #d97706; stroke-width: 3; }
/* ยอมรับเงื่อนไข: ทั้งแถวกดได้ */
.cf-accept { margin: 12px 18px 0; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; transition: border-color .2s, background .2s; }
.cf-accept:has(input:checked) { border-color: var(--success); background: #f0fdf4; }
.cf-accept input:checked + .box { background: var(--success); }
/* ท้าย */
.cf-foot { display: grid; gap: 6px; padding: 16px 18px 18px; border-top: none; background: #fff; }
.cf-foot .btn-block { padding: 14px; font-size: 1rem; border-radius: 14px; }
.cf-foot .btn-block.topup { background: var(--dark); box-shadow: none; }
.cf-cancel { border: none; background: none; font: inherit; font-size: .86rem; color: #64748b; padding: 6px; cursor: pointer; }
.cf-cancel:hover { color: var(--text); }
.confirm .modal-box.cf { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }

/* ===== สั่งซื้อสำเร็จ (หน้าต่างยืนยัน) ===== */
.modal-box.cf.done > :not(.cf-done) { display: none; }
.cf-done { padding: 26px 22px 6px; text-align: center; animation: cdIn .35s ease; }
@keyframes cdIn { from { opacity: 0; transform: scale(.97); } }
.cd-ok { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 12px 24px -10px rgba(22,163,74,.6); animation: cdPop .5s cubic-bezier(.2,1.6,.4,1); }
.cd-ok svg { width: 32px; height: 32px; }
@keyframes cdPop { from { transform: scale(.4); } }
.cf-done > b { display: block; font-size: 1.2rem; font-weight: 800; }
.cf-done > small { display: block; color: #71717a; font-size: .8rem; margin-top: 4px; }
.cd-data { position: relative; margin: 16px 0 10px; text-align: left; background: #fafafa; border: 1px dashed #e4e4e7; border-radius: 14px; padding: 14px; }
.cd-data pre { margin: 0; padding-right: 92px; font: .84rem/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; }
.cd-data .btn { position: absolute; top: 10px; right: 10px; }
.cd-note { display: flex; gap: 6px; align-items: flex-start; text-align: left; font-size: .76rem; color: #71717a; margin-bottom: 14px; }
.cd-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
@media (max-width: 560px) { .cd-data pre { padding-right: 0; padding-top: 36px; } }

/* ปุ่มลิงก์ที่มากับสินค้า + ไอคอนแอพ lucide */
.dl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff1f2; color: #e11d2e; font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid #ffe4e6; }
.dl-btn:hover { background: #ffe4e6; }
.dl-btn svg { width: 14px; height: 14px; }
.app-lic { width: 58%; height: 58%; color: #fff; }
.pre { white-space: pre-line; }

/* แถบประกาศ: วิ่งชุดเดียวต่อรอบ */
.ticker-track.once { animation: tickerOnce var(--dur, 20s) linear infinite; }
@keyframes tickerOnce { from { transform: translateX(var(--from, 100%)); } to { transform: translateX(var(--to, -100%)); } }

/* เช็คอินรายวัน: ติ๊ก "วันนี้ไม่ต้องแสดงอีก" + ไอคอนแทนอิโมจิ */
.ck-hide { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; font-size: .84rem; color: #52525b; cursor: pointer; user-select: none; }
.ck-hide input { display: none; }
.ck-hide .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #d4d4d8; display: grid; place-items: center; color: #fff; transition: .15s; flex: none; }
.ck-hide .box svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: .15s; }
.ck-hide input:checked + .box { background: var(--primary, #e11d2e); border-color: var(--primary, #e11d2e); }
.ck-hide input:checked + .box svg { opacity: 1; transform: none; }
.ck-streak, .ck-big, .reward-card .badge { display: inline-flex; align-items: center; gap: 5px; }
.ck-streak svg, .ck-big svg, .reward-card .badge svg, #claimBtn svg { width: 15px; height: 15px; }
.ck-streak svg { color: #f97316; }

/* ===== มือถือ: หน้าร้านค้า ไม่ให้คำล้น/แตกบรรทัดแปลกๆ ===== */
.nw { white-space: nowrap; }
@media (max-width: 560px) {
  .pkg-top { gap: 10px; padding: 14px; }
  .pkg-top > div { min-width: 0; }
  .pkg-top small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pkg-top .auto { flex: none; white-space: nowrap; font-size: .66rem; padding: 4px 8px; }
  .plan-list { padding: 12px; gap: 8px; }
  .plan2 { gap: 10px; padding: 10px 12px 10px 10px; border-radius: 16px; }
  .p2-days { width: 46px !important; height: 46px !important; border-radius: 13px; }
  .p2-info { gap: 5px; }
  .p2-info > b { font-size: .88rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .p2-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
  .p2-chips > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; }
  .p2-price { min-width: 70px; }
  .p2-price b { font-size: 1.05rem !important; }
  .p2-tag { font-size: .6rem; white-space: nowrap; }
  .p2-day { font-size: .64rem; white-space: nowrap; }
  /* แท็บรายละเอียด: 4 แท็บพอดีจอ ไอคอนบน ชื่อล่าง */
  .dt-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 4px; }
  .dt-tabs button { flex-direction: column; justify-content: center; gap: 4px; padding: 12px 2px 10px; font-size: .74rem; }
  .dt-tabs button svg.lucide { width: 18px; height: 18px; }
}
/* ===== สินค้าแอดมินจัดส่ง (10 ต.ค.) ===== */
.pkg-top .auto.admin { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.p2-chips .adm { background: #fffbeb; color: #b45309; font-weight: 600; }
.cf-row b.adm { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.cf-row b.adm svg.lucide { width: 14px; height: 14px; }
.cf-ask { display: grid; gap: 6px; margin: 14px 18px 0; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #ececf0; }
.cf-ask[hidden] { display: none; }
.cf-ask > span { font-size: .82rem; font-weight: 700; }
.cf-ask input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid #e4e4e7; font: inherit; font-size: .9rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.cf-ask input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,29,46,.12); }
.cf-ask small { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: #a1a1aa; }
.cf-ask small svg.lucide { width: 13px; height: 13px; flex: none; }
/* ข้อความในวงเล็บของชื่อแอป เช่น "รับชมในไทยได้" */
.app-note { display: block; font-style: normal; font-size: .66rem; font-weight: 600; color: #15803d; line-height: 1.2; margin-top: 1px; }
.pkg-top .app-note { font-size: .74rem; margin: 2px 0; }
