/* ม่วนไลฟ์ shop: dark stage look, gold and magenta lights */
:root {
  --bg: #0c0709; --bg-2: #140c0f; --surface: #1a1014; --surface-2: #24161b; --border: rgba(255,235,225,0.08); --border-2: rgba(255,235,225,0.15);
  --text: #fff6f2; --text-2: #d8c4c0; --muted: #9a8580;
  --magenta: #ff3d7f; --coral: #ff6a4d; --violet: #a970ff; --gold: #ffc14d; --mint: #3ee0a1; --red: #ff4d5e; --sky: #4cc9ff;
  --grad: linear-gradient(120deg, #ff6a4d 0%, #ff3d7f 50%, #c04bff 100%);
  --grad-gold: linear-gradient(120deg, #ffd56b, #ff9a3d);
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0,0,0,0.55);
  --ff-head: 'Prompt', 'IBM Plex Sans Thai', Tahoma, sans-serif;
  --ff-body: 'IBM Plex Sans Thai', 'Prompt', Tahoma, sans-serif;
  --ff-mono: 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body::before { /* warm stage glow behind everything */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 70% -15%, rgba(255,90,70,0.22), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(255,61,127,0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(192,75,255,0.10), transparent 60%);
}
body::after { /* fine grid, like a studio floor */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
h1, h2, h3, .ff-head { font-family: var(--ff-head); letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(12,7,9,0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--ff-head); font-weight: 600; font-size: 21px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,61,139,0.35); }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a.link { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.nav a.link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ---------- buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 24px; border-radius: 14px; border: 0; cursor: pointer;
  font-family: var(--ff-head); font-weight: 500; font-size: 16px; text-decoration: none; color: #fff; background: var(--grad); background-size: 140% 140%;
  box-shadow: 0 10px 28px rgba(255,61,139,0.28), inset 0 1px 0 rgba(255,255,255,0.25); transition: transform 0.15s, box-shadow 0.2s, background-position 0.4s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 34px rgba(255,61,139,0.38), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.secondary { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn.secondary:hover { background: rgba(255,255,255,0.1); }
.btn.gold { background: var(--grad-gold); color: #2a1600; box-shadow: 0 10px 28px rgba(255,170,60,0.28), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn.sm { --h: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn.lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn.block { width: 100%; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.eyebrow b { background: var(--grad); color: #fff; font-weight: 500; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.12; margin: 20px 0 18px; font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--text-2); max-width: 540px; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text-2); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--mint); width: 18px; height: 18px; }

.stage { position: relative; height: 600px; }
.phone { position: absolute; left: 50%; top: 50%; width: 290px; aspect-ratio: 9 / 19.2; transform: translate(-50%, -50%) rotate(-3deg); border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2b2346, #0d0a18); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.08), 0 0 120px rgba(176,75,255,0.35); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s ease; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.live-pill { position: absolute; top: 44px; left: 14px; z-index: 3; display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; }
.live-pill b { background: var(--red); padding: 2px 8px; border-radius: 6px; }
.live-pill span { background: rgba(0,0,0,0.45); padding: 2px 8px; border-radius: 6px; }
.chat { position: absolute; left: -40px; bottom: 70px; z-index: 4; width: 250px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(23,17,43,0.86); border: 1px solid var(--border-2); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.35); font-size: 14px; animation: chipIn 0.5s cubic-bezier(.2,.9,.3,1.2) both; }
.chip .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.chip small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.chip.out { animation: chipOut 0.4s ease forwards; }
@keyframes chipIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes chipOut { to { opacity: 0; transform: translateY(-10px); } }
.float-card { position: absolute; right: -6px; top: 70px; z-index: 4; padding: 14px 16px; border-radius: 18px; background: rgba(23,17,43,0.88); border: 1px solid var(--border-2); backdrop-filter: blur(8px); box-shadow: var(--shadow); width: 190px; animation: bob 5s ease-in-out infinite; }
.float-card .big { font-family: var(--ff-head); font-size: 26px; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hearts { position: absolute; right: 30px; bottom: 120px; width: 60px; height: 260px; z-index: 4; pointer-events: none; }
.hearts i { position: absolute; bottom: 0; left: 50%; font-style: normal; color: var(--magenta); animation: heart 3.2s ease-in forwards; }
@keyframes heart { from { transform: translate(-50%, 0) scale(0.6); opacity: 0; } 15% { opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), -240px) scale(1.2); opacity: 0; } }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-family: var(--ff-head); font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; margin: 8px 0 12px; font-weight: 600; }
.sec-head p { color: var(--text-2); font-size: 17px; margin: 0; }

.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.logos div { background: var(--bg-2); padding: 26px 24px; }
.logos .num { font-family: var(--ff-head); font-size: 34px; font-weight: 600; line-height: 1.1; }
.logos .lab { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); transition: border-color 0.25s, transform 0.25s; }
.feature:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(255,61,139,0.12); color: var(--magenta); }
.feature:nth-child(3n+2) .ic { background: rgba(139,92,246,0.14); color: #b9a2ff; }
.feature:nth-child(3n+3) .ic { background: rgba(255,196,77,0.12); color: var(--gold); }
.feature .ic .icon { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 500; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* commands demo */
.cmds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cmd { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cmd code { display: inline-block; font-family: var(--ff-head); font-weight: 500; font-size: 18px; padding: 4px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-2); margin-bottom: 10px; }
.cmd p { margin: 0; color: var(--text-2); font-size: 15px; }

/* scenes */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font: 500 15px var(--ff-head); cursor: pointer; transition: all 0.2s; }
.filters button:hover { color: var(--text); border-color: var(--border-2); }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.card .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .pic img { transform: scale(1.05); }
.card .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,7,9,0.75)); }
.card .cat { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(12,7,9,0.7); border: 1px solid var(--border-2); backdrop-filter: blur(6px); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; font-weight: 500; }
.card .desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.price { font-family: var(--ff-head); font-weight: 600; font-size: 20px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.owned { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 500; font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 600; background: var(--grad); margin-bottom: 16px; box-shadow: 0 8px 20px rgba(255,61,139,0.3); }
.step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.price-card { padding: 36px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,61,139,0.16), rgba(109,93,252,0.12) 60%, var(--surface)); border: 1px solid rgba(255,61,139,0.3); position: relative; overflow: hidden; }
.price-card .amount { font-family: var(--ff-head); font-size: 72px; font-weight: 600; line-height: 1; margin: 14px 0 4px; }
.price-card .amount small { font-size: 22px; color: var(--text-2); font-weight: 400; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks .icon { color: var(--mint); margin-top: 3px; }
.spec-card { padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.spec-card h3 { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.spec-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.spec-row:first-of-type { border-top: 0; padding-top: 0; }
.spec-row .icon { color: var(--gold); margin-top: 3px; }
.spec-row b { display: block; font-weight: 500; }
.spec-row span { color: var(--muted); font-size: 14px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--ff-head); font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--text-2); }

/* final cta */
.final { text-align: center; padding: 64px 32px; border-radius: 32px; background: radial-gradient(600px 300px at 50% 0%, rgba(255,61,139,0.3), transparent 70%), var(--surface); border: 1px solid var(--border-2); }
.final h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 12px; font-weight: 600; }
.final p { color: var(--text-2); margin: 0 0 28px; font-size: 18px; }

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- member area ---------- */
.dash { display: grid; grid-template-columns: 380px 1fr; gap: 24px; padding: 32px 0 80px; align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 16px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.panel h3 { margin: 0 0 4px; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.panel h3 .icon { color: var(--gold); }
.panel .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.wallet { position: relative; overflow: hidden; padding: 26px; border-radius: 24px; background: var(--grad); box-shadow: 0 20px 50px rgba(176,75,255,0.3); }
.wallet::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.wallet .hello { opacity: 0.85; font-size: 15px; }
.wallet .pts { font-family: var(--ff-head); font-size: 52px; font-weight: 600; line-height: 1.05; margin: 8px 0 2px; }
.wallet .pts small { font-size: 18px; font-weight: 400; opacity: 0.85; }
.wallet .sub { font-size: 14px; opacity: 0.85; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: 16px var(--ff-body); transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,0.22); }
.input-row { display: flex; gap: 8px; }
.input-at { position: relative; flex: 1; }
.input-at::before { content: '@'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-at .input { padding-left: 34px; }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.amts button { height: 52px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: 500 15px var(--ff-head); cursor: pointer; transition: all 0.2s; line-height: 1.15; }
.amts button small { display: block; font: 400 11px var(--ff-body); color: var(--muted); }
.amts button:hover { border-color: var(--violet); }
.amts button.on { border-color: var(--magenta); background: rgba(255,61,139,0.12); box-shadow: 0 0 0 3px rgba(255,61,139,0.15); }
.paybox { margin-top: 16px; display: grid; gap: 14px; }
.qr { background: #fff; color: #1a1330; border-radius: 18px; padding: 18px; text-align: center; }
.qr .qrtop { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-family: var(--ff-head); }
.qr .qrtop i { width: 10px; height: 10px; border-radius: 50%; background: #4e2a84; }
.qr #qr { margin: 12px auto; width: 200px; height: 200px; }
.qr #qr img, .qr #qr canvas { width: 200px !important; height: 200px !important; }
.qr .amt { font-family: var(--ff-head); font-size: 28px; font-weight: 600; }
.qr .note { font-size: 13px; color: #6b6385; }
.drop { display: grid; place-items: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--border-2); border-radius: 16px; text-align: center; cursor: pointer; color: var(--text-2); font-size: 14px; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop.drag { border-color: var(--magenta); background: rgba(255,61,139,0.06); }
.drop .icon { width: 28px; height: 28px; color: var(--magenta); }
.drop img { max-height: 160px; border-radius: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.msg.err { background: rgba(251,95,114,0.12); color: #ffc2ca; border: 1px solid rgba(251,95,114,0.25); }
.msg.ok { background: rgba(52,211,153,0.12); color: #b4f5d9; border: 1px solid rgba(52,211,153,0.25); }
.keybox { font-family: Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.5; word-break: break-all; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px; max-height: 110px; overflow: auto; color: var(--text-2); }
.history { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.history li { display: flex; justify-content: space-between; color: var(--text-2); }
.history li b { color: var(--mint); font-weight: 500; }
.main-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.main-head h2 { margin: 0; font-size: 32px; font-weight: 600; }
.cards.shop { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.auth-art { position: relative; overflow: hidden; border-radius: 0 32px 32px 0; }
.auth-art img, .auth-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,7,9,0.2), rgba(12,7,9,0.85)); }
.auth-art .cap { position: absolute; left: 40px; right: 40px; bottom: 44px; z-index: 2; }
.auth-art .cap h2 { font-size: 34px; margin: 0 0 8px; line-height: 1.2; }
.auth-art .cap p { color: var(--text-2); margin: 0; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 32px; margin: 0 0 6px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin: 24px 0; }
.seg button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 500 15px var(--ff-head); cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cmds, .steps { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 340px 1fr; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 10px; }
  .stage { height: 560px; }
  .features, .pricing { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .nav a.link.opt { display: none; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .cards, .cmds, .steps { grid-template-columns: 1fr; }
  .cards.shop { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards.shop .card .desc { display: none; }
  .cards.shop .card .foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .chat { left: 0; width: 220px; }
  .float-card { right: 0; width: 160px; }
  .price-card .amount { font-size: 58px; }
  .hero .cta .btn { flex: 1; }
  .nav .btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* video cards and full-screen preview */
.card .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .pic video { transform: scale(1.04); }
.card .pic, .card h3 { cursor: pointer; }
.playmark { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,7,9,0.65); border: 1px solid var(--border-2); backdrop-filter: blur(6px); transition: opacity 0.2s; }
.playmark .icon { width: 16px; height: 16px; fill: #fff; stroke: none; margin-left: 2px; }
.card:hover .playmark { opacity: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-2); color: var(--text-2); }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5,3,12,0.82); backdrop-filter: blur(10px); animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; display: grid; grid-template-columns: auto 320px; gap: 0; max-height: 92vh; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.modal-box video { height: min(86vh, 820px); aspect-ratio: 9 / 16; object-fit: cover; background: #000; display: block; }
.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.modal-info h3 { margin: 8px 0 0; font-size: 26px; font-weight: 600; }
.modal-info .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: rgba(12,7,9,0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 760px) {
  .modal { padding: 0; }
  .modal-box { grid-template-columns: 1fr; border-radius: 0; max-height: 100vh; height: 100vh; width: 100vw; grid-template-rows: 1fr auto; }
  .modal-box video { height: 100%; width: 100%; aspect-ratio: auto; }
  .modal-info { padding: 18px 20px 24px; }
  .modal-info p { display: none; }
}

/* ================= modern sections ================= */
.mono { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,106,77,0.35); background: rgba(255,106,77,0.08); color: #ffb4a3; font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero2 { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.hero2 h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.08; margin: 22px 0 14px; font-weight: 600; letter-spacing: -0.02em; }
.hero2 .sub-mono { margin-bottom: 18px; }
.hero2 .lead { font-size: 18px; color: var(--text-2); max-width: 520px; margin: 0 0 30px; }
.hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn.white { background: #fff; color: #1a0d10; box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
.btn.white:hover { background: #fff; box-shadow: 0 14px 36px rgba(255,255,255,0.25); }
.btn.outline { background: rgba(255,106,77,0.1); box-shadow: inset 0 0 0 1px rgba(255,106,77,0.45); color: #ffd0c4; }
.btn.outline:hover { background: rgba(255,106,77,0.18); }
.linkplay { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); text-decoration: none; font-family: var(--ff-head); font-weight: 500; }
.linkplay span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-2); }
.linkplay .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.linkplay:hover { color: var(--text); }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--border); }
.statrow div { padding: 16px 16px 0 0; border-right: 1px solid var(--border); }
.statrow div + div { padding-left: 16px; }
.statrow div:last-child { border-right: 0; }
.statrow b { display: block; font-family: var(--ff-head); font-size: 20px; font-weight: 600; margin-top: 4px; }

/* hero visual: control panel window + phone */
.showcase { position: relative; height: 560px; }
.window { position: absolute; right: -40px; top: 40px; width: 640px; border-radius: 16px; overflow: hidden; background: #120a0d; border: 1px solid var(--border-2); box-shadow: var(--shadow), 0 0 0 1px rgba(255,106,77,0.15), 0 0 90px rgba(255,61,127,0.18); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
.window .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b1014; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a2a2e; }
.window .bar i:nth-child(1) { background: #ff5f57; } .window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 10px; font-family: var(--ff-mono); letter-spacing: 0.05em; }
.window img { width: 100%; display: block; }
.showcase .phone { left: 4%; top: 52%; width: 230px; transform: translate(0, -50%) rotate(-4deg); z-index: 3; }
.showcase .chat { left: auto; right: 0; bottom: 10px; width: 250px; }
.showcase .float-card { right: auto; left: -10px; top: 0; }
.showcase .hearts { left: 205px; right: auto; bottom: 90px; }

/* marquee band */
.band { border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); overflow: hidden; padding: 26px 0 22px; }
.marquee { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee.rev { animation-direction: reverse; animation-duration: 46s; margin-top: 16px; }
.marquee .big { display: flex; align-items: baseline; gap: 18px; padding-right: 18px; white-space: nowrap; font-family: var(--ff-head); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); }
.marquee .big em { font-style: normal; font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--muted); font-weight: 400; }
.marquee .big i { font-style: normal; color: var(--coral); opacity: 0.7; font-weight: 400; }
.marquee .big:nth-child(2n) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; margin-right: 10px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255,255,255,0.03); white-space: nowrap; font-size: 14px; }
.pill em { font-style: normal; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--coral); }
@keyframes slide { to { transform: translateX(-50%); } }

/* numbered section heads */
.sec-num { position: relative; }
.sec-num::before { content: attr(data-n); position: absolute; left: 50%; top: -58px; transform: translateX(-50%); font-family: var(--ff-head); font-weight: 600; font-size: 170px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,235,225,0.07); pointer-events: none; z-index: -1; }
.sec-head:not(.center).sec-num::before { left: -10px; transform: none; }
.sec-head h2 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head .badge { margin-bottom: 6px; }

/* glowing cards */
.glow { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgba(36,22,27,0.9), rgba(20,12,15,0.9)); border: 1px solid var(--border); box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 20px 50px -20px var(--gc, rgba(255,106,77,0.35)); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.glow:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gc, #ff6a4d) 55%, transparent); box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 26px 60px -18px var(--gc, rgba(255,106,77,0.55)); }
.features.f2 { grid-template-columns: repeat(6, 1fr); }
.features.f2 .feature { grid-column: span 2; }
.features.f2 .feature.wide { grid-column: span 3; }
.feature .mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.feature .mini div { padding: 10px; border-radius: 10px; background: rgba(0,0,0,0.25); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.feature .mini b { display: block; color: var(--text); font-size: 13px; font-weight: 500; }
.feature .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.feature .chips span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); }

/* program tour */
.tour { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.tour-tabs { display: grid; gap: 10px; }
.tour-tabs button { text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; transition: all 0.2s; }
.tour-tabs button b { display: block; font-family: var(--ff-head); font-weight: 500; font-size: 17px; color: var(--text); margin-bottom: 2px; }
.tour-tabs button small { font-size: 14px; color: var(--muted); }
.tour-tabs button.on { border-color: rgba(255,106,77,0.5); background: linear-gradient(180deg, rgba(255,106,77,0.12), var(--surface)); box-shadow: 0 16px 40px -20px rgba(255,106,77,0.6); }
.tour-view { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); background: #120a0d; box-shadow: var(--shadow); }
.tour-view img { width: 100%; display: block; transition: opacity 0.35s; }

/* cards glow color per category */
.card[data-kind="เต้น"] { --gc: rgba(255,61,127,0.45); }
.card[data-kind="สายมู"] { --gc: rgba(255,193,77,0.4); }
.card[data-kind="งานวัด"] { --gc: rgba(76,201,255,0.4); }
.card[data-kind="ทำบุญ"] { --gc: rgba(62,224,161,0.4); }
.card { box-shadow: 0 22px 50px -24px var(--gc, rgba(255,106,77,0.4)); }
.card:hover { border-color: color-mix(in srgb, var(--gc, #ff6a4d) 70%, transparent); box-shadow: 0 28px 60px -20px var(--gc, rgba(255,106,77,0.6)); }

@media (max-width: 1100px) {
  .window { width: 540px; right: -20px; }
}
@media (max-width: 960px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 36px; }
  .showcase { height: 520px; }
  .window { width: 92%; right: 0; top: 30px; transform: none; }
  .showcase .phone { width: 200px; left: 0; top: 62%; }
  .features.f2 { grid-template-columns: 1fr 1fr; }
  .features.f2 .feature, .features.f2 .feature.wide { grid-column: span 1; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { grid-template-columns: repeat(5, minmax(160px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .sec-num::before { font-size: 120px; top: -40px; }
}
@media (max-width: 560px) {
  .statrow { grid-template-columns: 1fr 1fr; }
  .statrow div:nth-child(2) { border-right: 0; }
  .statrow div:nth-child(3) { padding-left: 0; }
  .features.f2 { grid-template-columns: 1fr; }
  .showcase { height: 460px; }
  .showcase .phone { width: 170px; }
  .showcase .chat { width: 200px; }
  .showcase .float-card { display: none; }
  .feature .mini { grid-template-columns: 1fr 1fr; }
}

/* phones: two scene cards per row, simpler hero picture */
@media (max-width: 560px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards .card .desc { display: none; }
  .cards .card .body { padding: 12px; }
  .cards .card h3 { font-size: 15px; }
  .cards .card .foot { margin-top: 8px; padding-top: 10px; }
  .cards .card .price { font-size: 17px; }
  .cards .card .btn.sm { --h: 32px; padding: 0 12px; }
  .playmark { width: 30px; height: 30px; right: 8px; bottom: 8px; }
  .showcase { height: 470px; }
  .showcase .window { display: none; }
  .showcase .phone { left: 50%; top: 50%; width: 210px; transform: translate(-60%, -50%) rotate(-3deg); }
  .showcase .chat { right: 0; bottom: 20px; width: 190px; }
  .showcase .hearts { left: auto; right: 40px; }
  .sec-head h2 { font-size: 28px; }
}
/* keep every card's price row on the same line */
.card .desc { margin-bottom: 12px; }
.card .foot { margin-top: auto; }
/* the phone screen shows the middle of the clip, where the characters are */
.phone .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.phone .screen video { transform: scale(1.45); transform-origin: 50% 72%; }
.showcase .float-card { top: -14px; left: -60px; }
@media (max-width: 960px) { .showcase .float-card { left: 0; } }

/* sign in with LINE / Google */
.social { display: grid; gap: 10px; margin-top: 24px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; font-family: var(--ff-head); font-weight: 500; font-size: 16px; text-decoration: none; transition: filter 0.2s, transform 0.15s; }
.sbtn svg { width: 22px; height: 22px; flex: none; }
.sbtn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.sbtn.line { background: #06C755; color: #fff; }
.sbtn.google { background: #fff; color: #1f1f1f; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }
.social + #sMsg + .seg { margin-top: 16px; }

/* Loy Krathong festival highlight */
.loy { padding-top: 72px; }
.loy-box { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; padding: 48px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(500px 360px at 80% 20%, rgba(255,214,120,0.22), transparent 65%), radial-gradient(700px 400px at 20% 110%, rgba(40,120,170,0.35), transparent 70%), linear-gradient(160deg, #101a2e, #0b0f1d 60%, #120d14);
  border: 1px solid rgba(255,214,120,0.28); box-shadow: 0 40px 90px -40px rgba(255,190,90,0.45); }
.loy-box::before { content: ''; position: absolute; right: 9%; top: 7%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff7d6, #ffd36b 60%, #e9a13b); box-shadow: 0 0 80px 30px rgba(255,210,110,0.35); opacity: 0.9; }
.badge.gold { border-color: rgba(255,214,120,0.45); background: rgba(255,214,120,0.1); color: #ffe2a3; }
.loy-text h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; margin: 18px 0 12px; font-weight: 600; }
.hl-gold { background: linear-gradient(120deg, #ffe7a3, #ffb84d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loy-text .lead { color: #cdd6ea; font-size: 18px; max-width: 520px; margin: 0 0 22px; }
.countdown { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.countdown > div:not(.cd-note) { min-width: 78px; padding: 10px 12px; border-radius: 14px; text-align: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,214,120,0.25); }
.countdown b { display: block; font-family: var(--ff-head); font-size: 30px; line-height: 1.1; color: #ffe2a3; }
.countdown span { font-size: 12px; color: #9fb0cc; }
.cd-note { color: #9fb0cc; font-size: 14px; margin-left: 4px; }
.loy-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.loy-list li { padding-left: 16px; border-left: 2px solid rgba(255,214,120,0.45); }
.loy-list b { display: block; font-family: var(--ff-head); font-weight: 500; }
.loy-list span { color: #9fb0cc; font-size: 14px; }
.loy-text .cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.loy-visual { position: relative; height: 560px; }
.loy-visual .phone { left: 50%; top: 50%; width: 250px; transform: translate(-50%, -50%) rotate(3deg); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.08), 0 0 110px rgba(255,200,100,0.3); }
.kr-float { position: absolute; inset: 0; pointer-events: none; }
.kr-float img { position: absolute; width: 96px; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)) drop-shadow(0 0 14px rgba(255,190,90,0.35)); animation: krbob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.6s); }
.kr-float img:nth-child(1) { left: -4%; top: 6%; } .kr-float img:nth-child(2) { right: -6%; top: 14%; width: 84px; }
.kr-float img:nth-child(3) { left: -8%; top: 44%; width: 80px; } .kr-float img:nth-child(4) { right: -4%; top: 46%; }
.kr-float img:nth-child(5) { left: 2%; bottom: 4%; width: 88px; } .kr-float img:nth-child(6) { right: 4%; bottom: 0; width: 80px; }
.kr-float img:nth-child(7) { left: 30%; bottom: -6%; width: 72px; } .kr-float img:nth-child(8) { right: 28%; top: -4%; width: 110px; }
@keyframes krbob { 50% { transform: translateY(-12px) rotate(3deg); } }
@media (max-width: 960px) {
  .loy-box { grid-template-columns: 1fr; padding: 30px 22px; }
  .loy-visual { height: 520px; }
  .loy-box::before { width: 80px; height: 80px; right: 6%; top: 3%; }
}
@media (max-width: 560px) {
  .loy-list { grid-template-columns: 1fr; }
  .loy-visual .phone { width: 210px; }
  .kr-float img { width: 70px !important; }
}
.kr-float img:nth-child(8) { right: auto; left: -12%; top: 70%; bottom: auto; width: 100px; }
.kr-float img:nth-child(5) { left: 8%; bottom: -2%; }
