@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600&family=Prompt:wght@500;600;700;800&display=swap");

/* ===================================================================
   i7m.com — ระบบสไตล์ร่วมของทุกหน้า (หน้าร้าน, บัญชี, หลังบ้าน)
   ชื่อตัวแปรและคลาสพื้นฐาน (.btn, .panel, --card ฯลฯ) ใช้ร่วมกับหน้าหลังบ้าน อย่าเปลี่ยนชื่อ
   =================================================================== */
:root {
  --bg: #070918;
  --bg2: #0e1330;
  --card: #111737;
  --card-glass: rgba(20, 27, 64, .62);
  --line: rgba(160, 174, 255, .14);
  --line-strong: rgba(160, 174, 255, .26);
  --text: #f2f3fb;
  --muted: #9aa3c7;
  --gold: #f7c64f;
  --gold2: #e3961c;
  --violet: #8b6cff;
  --cyan: #45d4ff;
  --red: #ff5a47;
  --green: #34d399;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --head-h: 68px;
  --tab-h: 0px;
  --font: "IBM Plex Sans Thai", "Prompt", system-ui, sans-serif;
  --font-head: "Prompt", "IBM Plex Sans Thai", system-ui, sans-serif;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  --glow-gold: 0 10px 40px -8px rgba(247, 198, 79, .45);
}
* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  overflow-x: clip;
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65;
  background:
    radial-gradient(900px 520px at 85% -120px, rgba(139, 108, 255, .22), transparent 70%),
    radial-gradient(800px 480px at 10% -160px, rgba(247, 198, 79, .16), transparent 70%),
    var(--bg);
  padding-bottom: var(--tab-h);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.01em; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.nw { display: inline-block; }
.gold-text { background: linear-gradient(100deg, #ffe39a, var(--gold) 40%, #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 9, 24, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; white-space: nowrap; }
.logo b { color: var(--gold); }
.logo small { color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--font); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #1a1205;
  background: linear-gradient(135deg, #ffe39a, var(--gold) 45%, var(--gold2)); box-shadow: var(--glow-gold);
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav .acct-link { margin-left: 8px; border: 1px solid rgba(247, 198, 79, .5); color: var(--gold); }
.nav .acct-link:hover, .nav .acct-link.on { background: var(--gold); color: #1a1205; }
.head-acct { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 12px; place-items: center; border: 1px solid var(--line-strong); color: var(--text); }
.head-acct svg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font: 600 15px/1.2 var(--font-head); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: linear-gradient(180deg, #ffd873, var(--gold) 40%, var(--gold2)); color: #1a1205; box-shadow: var(--glow-gold); }
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 14px 44px -8px rgba(247, 198, 79, .6); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(247, 198, 79, .6); background: rgba(255, 255, 255, .07); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 14px; }

/* ---------- chips / badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(247, 198, 79, .1); border: 1px solid rgba(247, 198, 79, .3); color: #ffe7a6;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(247, 198, 79, .2); font-style: normal; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 28px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .35;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: center; }
.hero h1 { text-wrap: balance; font-size: clamp(30px, 3.9vw, 48px); font-weight: 800; margin: 18px 0 14px; line-height: 1.12; }
.hero .lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }
.hero-art { position: relative; }
.hero-art .frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 1672 / 941; background: var(--bg2);
  box-shadow: 0 40px 100px -30px rgba(139, 108, 255, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-art .frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; filter: blur(60px); opacity: .55;
  background: conic-gradient(from 200deg, var(--violet), var(--gold), var(--cyan), var(--violet));
  border-radius: 50%; animation: spin 18s linear infinite;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; font-size: 13px;
  background: rgba(13, 18, 45, .82); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-head); font-size: 14px; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, .15); color: var(--green); }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card.a { left: -22px; bottom: 18%; }
.float-card.b { right: -14px; top: 10%; animation-delay: -2.5s; }
.float-card.b .ic { background: rgba(247, 198, 79, .15); color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
section { padding: 44px 0 8px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.sec-head > a { color: var(--gold); font-size: 15px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block; }

/* ---------- category bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px;
  padding: 20px; border-radius: var(--radius); background: var(--card-glass); border: 1px solid var(--line); transition: transform .25s, border-color .25s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { margin: 0; font-size: 18px; }
.tile p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; filter: blur(40px); opacity: .35; background: var(--tile-c, var(--gold)); }
.tile.t1 { --tile-c: var(--gold); } .tile.t1 .ic { background: rgba(247, 198, 79, .14); color: var(--gold); }
.tile.t2 { --tile-c: var(--violet); } .tile.t2 .ic { background: rgba(139, 108, 255, .16); color: #b7a6ff; }
.tile.t3 { --tile-c: var(--red); } .tile.t3 .ic { background: rgba(255, 90, 71, .15); color: #ff8c7d; }
.tile.t4 { --tile-c: var(--green); } .tile.t4 .ic { background: rgba(52, 211, 153, .14); color: var(--green); }

/* ---------- promo ---------- */
.promo {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 34px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(255, 90, 71, .16), rgba(139, 108, 255, .14) 60%, rgba(247, 198, 79, .12)), var(--card);
  border: 1px solid rgba(255, 140, 110, .35);
}
.promo::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(circle at 80% 20%, rgba(247, 198, 79, .25), transparent 40%); }
.promo .tag { display: inline-flex; gap: 6px; align-items: center; background: var(--red); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.promo h3 { margin: 12px 0 6px; font-size: clamp(24px, 3vw, 34px); }
.promo p { margin: 0; color: #e7dcf3; }
.promo .inc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.promo .price-box { text-align: right; display: grid; gap: 14px; justify-items: end; }
.save { display: inline-block; background: rgba(52, 211, 153, .15); color: var(--green); border: 1px solid rgba(52, 211, 153, .35); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--card-glass); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(247, 198, 79, .45); box-shadow: 0 30px 60px -28px rgba(247, 198, 79, .35); }
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; isolation: isolate; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s; }
.card:hover .cover img { transform: scale(1.05); }
.cover .art { position: absolute; inset: 0; z-index: -1; }
.cover .art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), radial-gradient(80% 80% at 0% 100%, rgba(0, 0, 0, .5), transparent 60%); }
.cover .art::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(140deg, #000, transparent 70%);
}
.cover .art { display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c) 75%, #fff 12%), transparent 62%), linear-gradient(150deg, var(--c), #0b1024 88%); }
.cover .orb {
  position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .cover .orb { transform: translateY(-4px) rotate(-4deg); }
.cover .orb svg { width: 40px; height: 40px; }
.cover .mono { position: absolute; left: 14px; bottom: 4px; font: 800 64px/1 var(--font-head); letter-spacing: -.04em; color: rgba(255, 255, 255, .09); }
.cover-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); max-width: 85%; }
.cover .badge { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: rgba(7, 9, 24, .6); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.cover .off { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px; }
.card-body h3 { margin: 0; font-size: 18px; font-weight: 600; }
.card-body h3 small { color: var(--muted); font-weight: 400; font-size: 13px; font-family: var(--font); }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-family: var(--font-head); color: var(--gold); font-size: 24px; font-weight: 700; }
.price .now small { font-size: 14px; font-weight: 500; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price .note { color: var(--muted); font-size: 12px; width: 100%; margin-top: -4px; }
.card-actions { display: flex; gap: 8px; margin-top: 4px; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; }
.card-actions .btn-icon { flex: none; width: 42px; height: 42px; }

/* แถวเลื่อนข้าง (มือถือ) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--card-glass); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  font: 700 17px var(--font-head); color: #1a1205; background: linear-gradient(135deg, #ffe39a, var(--gold), var(--gold2)); box-shadow: var(--glow-gold);
}
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--card-glass); border: 1px solid var(--line); }
.feature.big { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, rgba(139, 108, 255, .2), rgba(247, 198, 79, .08)), var(--card); }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(247, 198, 79, .12); color: var(--gold); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.chat-demo { display: grid; gap: 8px; margin-top: 18px; }
.chat-demo span { padding: 9px 13px; border-radius: 14px; font-size: 14px; max-width: 88%; }
.chat-demo .q { justify-self: end; background: #2a4fae; border-bottom-right-radius: 4px; }
.chat-demo .a { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--card-glass); border: 1px solid var(--line); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 16px var(--font-head); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 28px; padding: 40px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(600px 220px at 0% 0%, rgba(247, 198, 79, .22), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgba(139, 108, 255, .28), transparent 70%), var(--card);
  border: 1px solid var(--line-strong);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- list page ---------- */
.list-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head h1 { margin: 0; font-size: clamp(26px, 3.5vw, 36px); }
.search { position: relative; width: min(320px, 100%); }
.search input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); font: 15px var(--font); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; font: 500 14px var(--font); transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- product detail ---------- */
.crumb { color: var(--muted); font-size: 14px; padding-top: 22px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--gold); }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 18px 0 8px; align-items: start; }
.detail .cover { border-radius: 26px; border: 1px solid var(--line); aspect-ratio: 16 / 10; padding: 28px; }
.detail .cover-title { font-size: clamp(26px, 3.5vw, 40px); }
.detail .cover .orb { width: 120px; height: 120px; border-radius: 34px; }
.detail .cover .orb svg { width: 56px; height: 56px; }
.detail .cover .mono { font-size: 110px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.perks div { padding: 14px; border-radius: 16px; background: var(--card-glass); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.perks b { display: block; color: var(--text); font: 600 14px var(--font-head); margin-bottom: 2px; }
.buy-box { position: sticky; top: calc(var(--head-h) + 20px); padding: 26px; border-radius: 26px; background: var(--card-glass); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); }
.buy-box h1 { margin: 10px 0 8px; font-size: clamp(26px, 3vw, 34px); }
.buy-box .lead { color: var(--muted); margin: 0 0 16px; }
.buy-box .price .now { font-size: 34px; }
.buy-box ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.buy-box li { display: flex; gap: 10px; align-items: flex-start; }
.buy-box li svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.buy-box .actions { display: grid; gap: 10px; margin-top: 18px; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.note a { color: var(--gold); text-decoration: underline; }
.buybar { display: none; }

/* ---------- footer ---------- */
footer { margin-top: 72px; border-top: 1px solid var(--line); background: rgba(5, 7, 18, .7); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: var(--text); margin: 0 0 12px; font-size: 15px; }
footer a { display: block; padding: 3px 0; transition: color .2s; }
footer a:hover { color: var(--gold); }
footer .brand p { margin: 10px 0 0; max-width: 340px; }
footer .copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; display: flex; gap: 8px 16px; flex-wrap: wrap; }
footer .copy a { display: inline; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- pay page ---------- */
.pay { max-width: 520px; margin: 32px auto 0; }
.pay-card { background: var(--card-glass); border: 1px solid var(--line-strong); border-radius: 26px; padding: 26px; text-align: center; backdrop-filter: blur(12px); }
.pay-card h1 { font-size: 22px; margin: 0 0 4px; }
.pay-card .muted { color: var(--muted); font-size: 14px; margin: 0; }
.qr { background: #fff; border-radius: 18px; padding: 14px; width: min(290px, 100%); margin: 18px auto; box-shadow: 0 20px 50px -20px rgba(247, 198, 79, .4); }
.qr svg { width: 100%; height: auto; display: block; }
.amount { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--gold); line-height: 1.15; margin: 6px 0 2px; }
.amount small { font-size: 18px; color: var(--text); font-weight: 500; }
.warn { background: rgba(247, 198, 79, .08); border: 1px solid rgba(247, 198, 79, .35); color: #ffe2a3; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 14px 0; text-align: left; }
.timer { color: var(--muted); font-size: 14px; }
.upload { margin-top: 18px; display: grid; gap: 10px; }
.upload input[type=file] { display: none; }
.result { margin-top: 14px; padding: 14px; border-radius: 14px; font-size: 15px; text-align: left; }
.result.ok { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .4); }
.result.err { background: rgba(255, 90, 71, .1); border: 1px solid rgba(255, 90, 71, .4); }
.code-box { font-family: var(--font-head); font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--gold); text-align: center; margin: 8px 0; user-select: all; }

/* ---------- policy pages ---------- */
.doc { max-width: 820px; padding-top: 28px; padding-bottom: 40px; }
.doc h1 { font-size: 30px; margin: 12px 0 6px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; color: var(--gold); }
.doc p, .doc li { color: #d6dbef; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--gold); text-decoration: underline; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc-meta { color: var(--muted) !important; font-size: 14px; }
.doc-lang { font-size: 14px; color: var(--muted); }
.doc-cmd { display: inline-block; background: var(--card); border: 1px solid var(--gold2); border-radius: 10px; padding: 8px 16px; font-weight: 600; color: var(--gold) !important; }

/* ===================================================================
   responsive
   =================================================================== */
@media (max-width: 1024px) {
  .grid.g4 { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.big { grid-row: auto; grid-column: 1 / -1; }
  .float-card.a { left: 8px; }
  .float-card.b { right: 8px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; }
  .hero-art .frame { transform: none; }
  .hero { text-align: center; padding-top: 22px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .trust { justify-content: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .grid, .grid.g4 { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: 70%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; padding: 26px; }
  .promo .price-box { text-align: left; justify-items: start; }
  .detail { grid-template-columns: 1fr; gap: 22px; }
  .buy-box { position: static; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --head-h: 60px; --tab-h: calc(70px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .head-acct { display: grid; }
  .logo small { display: none; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; margin-bottom: 22px; }
  .hero-cta .btn { flex: 1; }
  .float-card { display: none; }
  section { padding-top: 36px; }
  .sec-head { margin-bottom: 16px; }
  .tile { min-height: 128px; padding: 16px; }
  .tile h3 { font-size: 16px; }
  .rail { grid-auto-columns: 78%; gap: 14px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }
  .grid, .grid.g4 { gap: 12px; }
  .grid .card-body { padding: 12px; gap: 6px; }
  .grid .card-body h3 { font-size: 15px; }
  .grid .card-body p { display: none; }
  .grid .price .now { font-size: 19px; }
  .grid .price .note { display: none; }
  .grid .card-actions .btn-ghost { display: none; }
  .grid .cover { padding: 12px; }
  .grid .cover-title { font-size: 16px; }
  .grid .cover .orb { width: 56px; height: 56px; border-radius: 18px; }
  .grid .cover .orb svg { width: 28px; height: 28px; }
  .grid .cover .mono { font-size: 40px; }
  .grid .cover .badge { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .step::before { grid-row: span 2; margin: 0; }
  .features { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
  .perks div { padding: 10px 8px; text-align: center; font-size: 0; }
  .perks b { font-size: 12px; margin: 0; display: grid; justify-items: center; gap: 4px; }
  .cta-band { padding: 26px; }
  .pay { padding-bottom: 84px; }
  .cta-band .btns, .cta-band .btns .btn { width: 100%; }
  footer { margin-top: 48px; padding-top: 36px; }
  footer .cols { grid-template-columns: 1fr 1fr; gap: 22px; }

  /* แถบเมนูล่างแบบแอป */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 62px; padding: 0 6px; border-radius: 22px; align-items: center;
    background: rgba(13, 18, 45, .86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
  }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; font: 500 11px var(--font); color: var(--muted); background: none; border: 0; padding: 6px 0; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .on { color: var(--gold); }
  .tabbar .mid { position: relative; top: -16px; }
  .tabbar .mid span.ic {
    width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #1a1205;
    background: linear-gradient(135deg, #ffe39a, var(--gold) 45%, var(--gold2)); box-shadow: var(--glow-gold), 0 0 0 5px var(--bg);
  }
  .tabbar .mid span.ic svg { width: 26px; height: 26px; }
  .tabbar .mid span.ic { position: relative; background: linear-gradient(135deg, #8f74ff, #5a6bff 55%, #2fb6ff); color: #fff; box-shadow: 0 10px 30px -6px rgba(123, 92, 255, .8), 0 0 0 5px var(--bg); }
  .tabbar .mid span.ic::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #3cf08f; box-shadow: 0 0 0 2px #fff; }
  body.has-buybar { --tab-h: calc(140px + env(safe-area-inset-bottom)); }
  .buybar {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 44; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom));
    padding: 10px 10px 10px 18px; border-radius: 20px; background: rgba(13, 18, 45, .92); backdrop-filter: blur(16px); border: 1px solid rgba(247, 198, 79, .35);
  }
  .buybar .p { flex: 1; line-height: 1.2; }
  .buybar .p b { font: 700 20px var(--font-head); color: var(--gold); display: block; }
  .buybar .p s { color: var(--muted); font-size: 12px; }
}

/* ---------- ปุ่มแชต (เด่นรองจากปุ่มซื้อ) ---------- */
.btn-chat {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 12px 22px; gap: 12px; border: 1px solid rgba(180, 160, 255, .55);
  background: linear-gradient(120deg, #7b5cff, #5a6bff 50%, #2fb6ff);
  box-shadow: 0 12px 34px -10px rgba(123, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-chat:hover { filter: brightness(1.08); box-shadow: 0 16px 40px -8px rgba(123, 92, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-chat::after { /* แสงวิ่งผ่านเป็นระยะ */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  animation: shine 4.5s ease-in-out infinite 1s;
}
.btn-chat svg { width: 22px; height: 22px; }
.btn-chat .t { display: grid; text-align: left; line-height: 1.25; }
.btn-chat .t small { font: 500 12px var(--font); opacity: .85; }
.live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3cf08f; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.live::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #3cf08f; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
