/* ChatKH Live — ទំព័រសាធារណៈ (Landing, Pricing, Auth) — Premium
   ពណ៌ម៉ាក: Purple #6262ac + Orange #f5852f */
:root {
  --blue: #6262ac; --blue-600: #51519a; --blue-50: #efeff8; --blue-100: #e1e1f2; --ink: #17162b;
  --orange: #f5852f; --orange-d: #d86619; --orange-50: #fef1e6;
  --bg: #fbfbfe; --alt: #f4f4fa; --card: #fff; --text2: #46455c; --line: #e8e8f0; --text: #1c1b2e; --muted: #6a6980;
  --red: #e11d2a; --red-50: #fdecee; --green: #15803d; --green-50: #e7f6ec; --amber: #b45309; --amber-50: #fef3e2;
  --shadow-lg: 0 30px 80px -20px rgba(40,38,90,.28);
  --font: "Kantumruy Pro", "Khmer Sangam MN", "Khmer MN", "Noto Sans Khmer", "Leelawadee UI", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.025em; }
h2 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.02em; }
h3 { margin: 0 0 6px; font-size: 18px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text2); max-width: 600px; margin: 0; }
.page-pad { padding-top: 44px; padding-bottom: 70px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- LIVE badge ---------- */
.live-badge { position: relative; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #ff3b47, #e11d2a); color: #fff;
  font: 700 11px/1 var(--font); letter-spacing: .08em; padding: 5px 9px 5px 8px; border-radius: 7px; animation: livePulse 2s infinite; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--card); animation: liveDot 1s infinite alternate; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; animation: liveDot 1s infinite alternate; box-shadow: 0 0 0 3px rgba(225,29,42,.15); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,42,.55); } 70% { box-shadow: 0 0 0 10px rgba(225,29,42,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,42,0); } }
@keyframes liveDot { from { opacity: 1; transform: scale(1); } to { opacity: .35; transform: scale(.7); } }

/* ---------- Nav ---------- */
.pub-top { position: sticky; top: 0; z-index: 50; background: rgba(251,251,254,.78); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(232,232,240,.7); }
.pub-nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); flex: none; }
.brand img.brand-logo { height: 36px; width: auto; display: block; }
.pub-links { display: flex; gap: 26px; margin-left: 18px; flex: 1; }
.pub-links a { color: var(--text2); font-weight: 500; font-size: 15px; }
.pub-links a:hover { color: var(--blue); }
.pub-links-m { display: none; }
.pub-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pub-actions .link { color: var(--text); font-weight: 600; }
.lang-switch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-switch a.on { background: var(--blue); color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 12px; border: 1px solid #d8d7e4; background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #6f6fc0, var(--blue)); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(98,98,172,.65); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(98,98,172,.75); }
.btn-glass { background: rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.btn-white { background: var(--card); color: var(--blue); border-color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-lg { padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-disabled { opacity: .6; cursor: default; }
.btn-social img { width: 20px; height: 20px; }

.flash { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-weight: 500; font-size: 15px; }
.flash-success { background: var(--green-50); color: var(--green); }
.flash-error { background: var(--red-50); color: var(--red); }
.flash-warn { background: var(--amber-50); color: var(--amber); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #c9c9f1; top: -160px; right: -80px; }
.b2 { width: 420px; height: 420px; background: #ffd6b8; bottom: -160px; left: -120px; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(98,98,172,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(98,98,172,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 50px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 18px; box-shadow: 0 4px 16px rgba(40,38,90,.06); }
.grad { background: linear-gradient(90deg, var(--blue) 0%, #8a6fd6 45%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }

/* ---------- Phone frame ---------- */
.phone { position: relative; width: 300px; height: 610px; border-radius: 46px; background: #111018; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c2b38, 0 0 0 1px #3a3948; z-index: 2; }
.phone::before { content: ""; position: absolute; right: -3px; top: 140px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #2a2935; }
.phone-island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #000; border-radius: 20px; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0d0c14; display: flex; flex-direction: column; }
.phone-sm { width: 280px; height: 570px; }

/* Live stream screen */
.live-video { position: relative; flex: 1; background: radial-gradient(circle at 30% 20%, #8b7fe0 0%, transparent 45%), radial-gradient(circle at 80% 70%, #f5852f 0%, transparent 40%), linear-gradient(160deg, #3d3a7a, #1d1b3a 70%); overflow: hidden; }
.lv-top { position: absolute; top: 50px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.lv-viewers { background: rgba(0,0,0,.4); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 8px; backdrop-filter: blur(6px); }
.lv-host { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; }
.host-avatar { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 42px; margin: 0 auto 14px; box-shadow: 0 0 0 8px rgba(255,255,255,.06); animation: breathe 3s ease-in-out infinite; }
.host-rack { display: flex; gap: 8px; justify-content: center; }
.host-rack span { width: 30px; height: 40px; border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,.18); }
.host-rack span:nth-child(2) { background: rgba(245,133,47,.55); }
@keyframes breathe { 50% { transform: scale(1.05); } }
.lv-product { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.95); border-radius: 14px; padding: 8px 10px; z-index: 3; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.lv-product img { width: 36px; height: 36px; border-radius: 9px; background: var(--orange-50); }
.lv-product b { display: block; font-size: 13px; line-height: 1.3; color: var(--text); }
.lv-product small { font-size: 12px; color: var(--muted); }
.lv-comments { height: 210px; background: #0d0c14; padding: 8px 12px 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.lv-c { display: flex; gap: 8px; align-items: flex-start; color: #fff; font-size: 13px; line-height: 1.4; animation: cIn .35s ease; }
.lv-c .av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.lv-c b { display: block; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500; }
.lv-c .txt { background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 4px 14px 14px 14px; }
.lv-c.order .txt { background: rgba(245,133,47,.22); box-shadow: inset 0 0 0 1px rgba(245,133,47,.5); }
.lv-c .ok { display: inline-block; margin-left: 6px; font-size: 10.5px; background: #22c55e; color: #fff; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
@keyframes cIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lv-input { display: flex; justify-content: space-between; align-items: center; margin: 8px 12px 16px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-size: 13px; }
.lv-input b { color: #ff4d6d; }
.hearts { position: absolute; right: 18px; bottom: 70px; width: 40px; height: 220px; pointer-events: none; z-index: 2; }
.heart { position: absolute; bottom: 0; left: 10px; font-size: 20px; animation: floatUp 2.6s ease-in forwards; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-18px, -200px) scale(1.15); } }

/* Floating cards */
.float-card { position: absolute; z-index: 3; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px -14px rgba(40,38,90,.35);
  padding: 12px 14px; opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .45s ease, transform .45s ease; }
.float-card.show { opacity: 1; transform: none; }
.fc-msg { right: -16px; top: 120px; width: 240px; }
.fc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fc-head img { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); }
.fc-head small { margin-left: auto; color: var(--muted); font-size: 11px; }
.bubble { background: linear-gradient(135deg, #7272c4, var(--blue)); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.fc-btn { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-50); border-radius: 10px; padding: 7px; }
.fc-stock, .fc-order { display: flex; gap: 10px; align-items: center; }
.fc-stock { left: -10px; top: 300px; }
.fc-order { left: 10px; bottom: 70px; }
.fc-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--orange-50); display: grid; place-items: center; font-size: 18px; }
.fc-ic.ok { background: #dcfce7; color: #16a34a; font-weight: 800; }
.float-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.float-card b { font-size: 14px; }

/* ---------- Strip & stats ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.strip-in { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 18px 22px; justify-content: center; }
.strip-label { color: var(--muted); font-size: 14px; margin-right: 6px; }
.chip-x { padding: 6px 14px; border-radius: 999px; background: var(--alt); font-weight: 600; font-size: 14px; color: var(--text2); }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; margin-bottom: 10px; }
.stats-band div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-align: center; }
.stats-band b { display: block; font-size: 34px; letter-spacing: -.03em; background: linear-gradient(135deg, var(--blue), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--alt); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-head.left { text-align: left; margin: 0 0 26px; max-width: 640px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--orange-d); background: var(--orange-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .02em; }
.eyebrow.ok { color: var(--green); background: var(--green-50); }
.eyebrow svg { width: 15px; height: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: transform .2s, box-shadow .2s; position: relative; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(40,38,90,.25); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.step-no { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; color: var(--blue); background: var(--blue-50); padding: 4px 10px; border-radius: 8px; }
.step-ic { color: #8e8da3; }
.step-card p, .feat-card p { margin: 0; color: var(--muted); font-size: 15px; }
.feat-group + .feat-group { margin-top: 64px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: 0 20px 40px -18px rgba(40,38,90,.22); }
.feat-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.feat-group:nth-child(2) .feat-ic { background: var(--orange-50); color: var(--orange-d); }
.feat-group:nth-child(3) .feat-ic { background: var(--green-50); color: var(--green); }

/* Split / Mini app */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual { display: flex; justify-content: center; position: relative; }
.split-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, #ffe2cc, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--text2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.app-screen { background: #f4f4fa; padding: 52px 12px 14px; gap: 10px; font-size: 12.5px; }
.ma-hero { background: linear-gradient(135deg, #7070c2, var(--blue)); color: #fff; border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; }
.ma-hero small { opacity: .75; grid-column: 1; } .ma-hero b { grid-column: 1; font-size: 14px; } .ma-hero span { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 22px; font-weight: 700; }
.ma-steps { display: flex; justify-content: space-between; padding: 0 8px; }
.ma-steps i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; color: var(--muted); }
.ma-steps i.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.ma-item { background: var(--card); border-radius: 14px; padding: 8px; display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; }
.ma-item b { font-size: 12.5px; } .ma-item small { display: block; color: var(--muted); font-size: 11.5px; }
.ma-thumb { width: 40px; height: 40px; border-radius: 10px; }
.ma-thumb.a { background: linear-gradient(135deg, #eef0ff, #c9c9f1); } .ma-thumb.b { background: linear-gradient(135deg, #ffe2cc, #f5852f); }
.ma-sum { display: flex; justify-content: space-between; padding: 4px 6px; color: var(--muted); }
.ma-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ma-pay span { background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; text-align: center; padding: 7px; font-weight: 700; }
.ma-pay span.on { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.ma-btn { margin-top: auto; background: linear-gradient(135deg, #7070c2, var(--blue)); color: #fff; text-align: center; padding: 11px; border-radius: 14px; font-weight: 700; }

/* Permissions */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perm { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.perm-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--alt); color: #8e8da3; display: grid; place-items: center; flex: none; }
.perm-ic svg { width: 18px; height: 18px; }
.perm code { font-weight: 700; font-size: 14.5px; color: var(--ink); font-family: ui-monospace, Menlo, monospace; }
.perm-tag { display: inline-block; margin-left: 8px; font-size: 12px; background: var(--alt); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.perm p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 14px 30px -18px rgba(40,38,90,.3); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* CTA */
.cta { margin-top: 20px; margin-bottom: 90px; }
.cta-in { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: linear-gradient(120deg, #5a5aa6, #7b6fd0 55%, #f5852f 130%); color: #fff; border-radius: 30px; padding: 40px 46px; box-shadow: var(--shadow-lg); }
.cta-in::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-in > div { flex: 1; min-width: 240px; }
.cta-in h2 { margin: 0 0 6px; } .cta-in p { margin: 0; opacity: .9; }
.cta-bot { width: 96px; height: 96px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); animation: breathe 3s ease-in-out infinite; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- Pricing ---------- */
.cycle-toggle { display: flex; width: max-content; margin: 0 auto 30px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.cycle-toggle button { font: inherit; font-weight: 600; border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.cycle-toggle button.active { background: var(--blue); color: #fff; }
.cycle-toggle small { color: var(--green); font-weight: 600; }
.cycle-toggle button.active small { color: #c8f7d6; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(40,38,90,.3); }
.plan-popular { border: 2px solid var(--orange); box-shadow: 0 20px 50px -20px rgba(245,133,47,.4); }
.plan-current { outline: 3px solid var(--green-50); }
.plan-tag { position: absolute; top: -13px; left: 24px; background: linear-gradient(135deg, #ff9b52, var(--orange)); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 44px; margin: 0 0 12px; }
.plan-price { margin-bottom: 18px; min-height: 52px; }
.plan-price b { font-size: 36px; letter-spacing: -.03em; }
.plan-price small { color: var(--muted); margin-left: 4px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; flex: 1; }
.plan-feats li.off { color: #7b7b90; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; padding: 48px 16px 70px; position: relative; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 20%, #e6e6fb, transparent 40%), radial-gradient(circle at 85% 80%, #ffe6d4, transparent 40%); }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 34px; width: 100%; max-width: 450px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 27px; margin-bottom: 4px; text-align: center; }
.auth-card > p { margin: 0 0 20px; text-align: center; }
.auth-card form { margin: 0 0 10px; }
.auth-logo { display: block; width: 84px; height: auto; margin: 0 auto 10px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 14px; position: relative; }
.label-link { position: absolute; right: 0; top: 0; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #d8d7e4; border-radius: 13px; background: var(--card); width: 100%; color: var(--text); }
input:focus { outline: 3px solid var(--blue-50); border-color: var(--blue); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; accent-color: var(--blue); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: flex; flex-direction: column; gap: 10px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: 15px; }
.big-icon { font-size: 48px; margin-bottom: 6px; text-align: center; }
.prose { max-width: 800px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.pub-foot { background: var(--card); border-top: 1px solid var(--line); padding: 56px 0 0; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { color: var(--text); margin: 4px 0 14px; font-size: 15px; }
.foot-grid > div:not(.foot-brand) a { display: block; color: var(--muted); padding: 4px 0; }
.foot-grid a:hover { color: var(--blue); }
.foot-brand p { margin: 14px 0 0; max-width: 340px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: 13.5px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-badge, .live-badge i, .live-dot, .host-avatar, .cta-bot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .pub-links { gap: 18px; margin-left: 8px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fc-msg { right: -6px; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 60px; }
  .hero-grid, .split, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; } .lead { margin: 0 auto; } .hero-cta, .hero-points { justify-content: center; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .perm-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split-visual { order: -1; }
  .section { padding: 64px 0; }
  /* Mobile nav */
  .pub-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; margin: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 22px 18px; box-shadow: 0 20px 40px -20px rgba(40,38,90,.25); }
  .nav-open .pub-links { display: flex; }
  .pub-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pub-links-m { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
  .pub-links-m a { border: 0 !important; padding: 10px 18px !important; }
  .nav-toggle { display: flex; }
  .hide-m { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand img.brand-logo { height: 30px; }
  .pub-nav { gap: 10px; }
  .hero-visual { min-height: 560px; transform: scale(.92); transform-origin: top center; margin-bottom: -40px; }
  .fc-msg { right: -4px; top: 86px; width: 210px; }
  .fc-stock { left: -6px; top: 330px; } .fc-order { left: 0; bottom: 30px; }
  .steps, .feat-grid { grid-template-columns: 1fr; }
  .cta-in { padding: 30px 24px; text-align: center; justify-content: center; }
  .cta-in .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .row-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
  h1 { font-size: 32px; }
}
/* ការកែតម្រូវទីតាំង Card អណ្តែត */
.lv-c .txt { display: inline-block; }
.fc-stock { left: -40px; top: 200px; }
.fc-order { left: -30px; bottom: 40px; top: auto; }
h1 { font-size: clamp(32px, 4.4vw, 54px); }
@media (max-width: 900px) { .fc-stock { left: 0; } .fc-order { left: 4px; } }
@media (max-width: 560px) { .fc-stock { left: -8px; top: 240px; } .fc-order { left: -4px; bottom: 20px; } }

/* ================= v2.4: ប៊ូតុងគណនី (Header) ================= */
.btn-account { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  background: linear-gradient(135deg, #6f6fc0, var(--blue)); color: #fff; box-shadow: 0 10px 22px -10px rgba(98,98,172,.8); transition: transform .15s, box-shadow .15s; }
.btn-account:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(98,98,172,.9); color: #fff; }
.btn-account.is-in { padding: 0 16px 0 5px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 6px 18px -12px rgba(40,38,90,.4); }
.btn-account.is-in:hover { color: var(--blue); border-color: #cfcfe6; }
.btn-account .avatar, .btn-account img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 900px) { .pub-actions { gap: 8px; } }
@media (max-width: 560px) {
  .btn-account { width: 42px; padding: 0; justify-content: center; }
  .btn-account span { display: none; }
  .btn-account.is-in { width: 42px; padding: 0; }
  .lang-switch a { padding: 3px 8px; }
}

/* ================= v2.4: Auth ================= */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f1f1f8; border-radius: 14px; margin: -6px 0 22px; }
.auth-tabs a { text-align: center; padding: 9px 10px; border-radius: 11px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.auth-tabs a.active { background: var(--card); color: var(--blue); box-shadow: 0 4px 12px -6px rgba(40,38,90,.35); }
.auth-tabs a:not(.active):hover { color: var(--text); }
.pw-wrap, .phone-wrap { position: relative; display: flex; align-items: stretch; }
.pw-wrap input, .phone-wrap input { margin-top: 0 !important; flex: 1; min-width: 0; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 16px; width: 36px; height: 36px; border-radius: 10px; opacity: .7; }
.pw-eye:hover { background: #f1f1f8; opacity: 1; }
.phone-cc { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #d8d7e4; border-right: 0; border-radius: 12px 0 0 12px; background: #f7f7fb; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.phone-wrap input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.captcha { margin: 4px 0 16px; }
.captcha-g { display: flex; justify-content: center; min-height: 78px; }
.captcha-b label { margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-row img { width: 150px; height: 48px; border-radius: 10px; border: 1px solid var(--line); flex: none; background: #f5f5fa; }
.captcha-row input { width: 88px !important; flex: 1; margin: 0 !important; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.captcha-refresh { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; font-size: 18px; color: var(--blue); }
.captcha-refresh:hover { background: #f1f1f8; }
.auth-card .check { display: flex; gap: 8px; align-items: flex-start; }
.auth-card .check input { margin-top: 4px; }
.btn.is-loading { opacity: .75; pointer-events: none; }
@media (max-width: 380px) { .captcha-row img { width: 120px; height: 40px; } }
.btn-account .avatar-txt { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.foot-bottom .accept-strip { color: inherit; }

/* E6: Header ≤ 420px — ជួសជុល Overflow ផ្ដេក (ពិនិត្យ 320–420px) */
@media (max-width: 420px) {
  .pub-nav { gap: 8px; }
  .pub-actions { gap: 5px; min-width: 0; }
  .brand .live-badge { display: none; }
  .brand img.brand-logo { height: 30px; max-width: 110px; object-fit: contain; }
  .theme-btn { width: 36px; height: 36px; }
  .lang-switch a { padding: 3px 7px; font-size: 11.5px; }
  .btn-account, .btn-account.is-in, .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 340px) { .lang-switch { display: none; } }
/* E7: ការពារ Overflow ពី Animation .reveal / Visual ចេញក្រៅ Viewport (≤ 420px) */
main, .section { overflow-x: clip; }

/* ---------- G2: Dashboard showcase (Landing classic) ---------- */
.dash-shot { margin: 0 auto; max-width: 1040px; }
.dash-shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card); }
.dash-shot figcaption { text-align: center; margin-top: 10px; }

/* ---------- G2: ទំព័រច្បាប់ (Terms/Privacy/Refund/Data Deletion) — ក្នុង Layout classic ---------- */
.legal-page { max-width: 820px; }
.legal-page h1 { font-size: clamp(24px, 2.6vw + 12px, 32px); line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.legal-page h2 { font-size: clamp(18px, 1.2vw + 14px, 22px); margin: 1.6em 0 .5em; }
.legal-page ul { padding-left: 1.2em; } .legal-page li { margin: .3em 0; }
.lg-banner { border: 1px solid var(--line, #d9d9ea); border-left: 4px solid #f5852f; background: rgba(245,133,47,.10); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: .92rem; }
.lg-preview { border-left-color: #6262ac; background: rgba(98,98,172,.12); }
.lg-review { background: #fff3cd; color: #5c3d00; border: 1px solid #f0c36d; border-radius: 4px; padding: 0 4px; font-weight: 600; }
:root[data-theme="dark"] .lg-review { background: #4a3a10; color: #ffe9a8; border-color: #8a6b1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-review { background: #4a3a10; color: #ffe9a8; border-color: #8a6b1f; } }
.lg-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 2.2em; padding-top: 14px; border-top: 1px solid var(--line, #d9d9ea); }
.lg-links a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.lg-note { margin-top: 14px; text-align: center; }

/* ---------- G2: ទំព័រ Login/Register — Responsive ទូរស័ព្ទតូច ---------- */
.auth { padding-left: 12px; padding-right: 12px; }
.auth-card { box-sizing: border-box; min-width: 0; }
.auth-card input, .auth-card select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.auth-card img, .auth-card canvas, .auth-card iframe { max-width: 100%; height: auto; }
@media (max-width: 380px) { .auth { padding: 20px 10px 48px; } .auth-card { padding: 20px 14px; border-radius: 18px; } .auth-tabs a { padding: 8px 6px; } }
.security-emblem { width:64px; height:64px; display:grid; place-items:center; margin:0 auto 18px; border-radius:20px; background:var(--blue-50,#efeff8); font-size:32px; }
.security-recovery { display:grid; gap:16px; }
.security-recovery .btn { white-space:normal; text-align:center; min-height:46px; }
.security-recovery p { overflow-wrap:anywhere; line-height:1.8; }

/* ---- Footer (Classic + New) — Style ថ្មី: ពណ៌ Brand, Gradient បន្ទាត់ខាងលើ, Mobile ខ្លី & នៅកណ្តាល ---- */
.pub-foot { position: relative; background: linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--card) 88%, #6262AC 12%) 100%); border-top: 0; }
.pub-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #6262AC 0%, #8a7fd6 45%, #F5852F 100%); }
.foot-grid h4 { position: relative; padding-bottom: 8px; }
.foot-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: #F5852F; }
.foot-grid > div:not(.foot-brand) a { transition: color .15s, transform .15s; }
.foot-grid > div:not(.foot-brand) a:hover { color: #6262AC; transform: translateX(3px); text-decoration: none; }
.foot-brand .brand { display: inline-flex; }
.foot-bottom { border-top: 1px dashed var(--line); justify-content: center; text-align: center; }
@media (max-width: 640px) {
  .pub-foot { padding-top: 30px; font-size: 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 20px 12px !important; max-width: 340px; margin-left: auto; margin-right: auto; }
  .foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .foot-brand .foot-tag, .foot-brand > p:first-of-type { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 13.5px; max-width: 300px; }
  .foot-brand p.small { margin-top: 6px; }
  .foot-grid > div:not(.foot-brand) { text-align: center; }
  .foot-grid h4 { margin: 0 0 8px; font-size: 13.5px; display: inline-block; }
  .foot-grid h4::after { left: 50%; transform: translateX(-50%); }
  .foot-grid > div:not(.foot-brand) a { padding: 4px 0; font-size: 13.5px; }
  .foot-grid > div:not(.foot-brand) a:hover { transform: none; }
  .foot-bottom { margin-top: 22px; padding-top: 14px; padding-bottom: 20px; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; }
}

/* Footer tabs (JS) — Desktop: លាក់ Tab បង្ហាញជួរធម្មតា */
.foot-tabs { display: none; }
@media (max-width: 900px) {
  .pub-foot .foot-grid { grid-template-columns: 1fr !important; max-width: 520px; margin-left: auto; margin-right: auto; gap: 14px !important; }
  .foot-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 auto; max-width: 100%; background: color-mix(in srgb, var(--card) 80%, #6262AC 20%); border-radius: 999px; justify-self: center; scroll-snap-type: x proximity; }
  .foot-tabs::-webkit-scrollbar { display: none; }
  .foot-tabs button { flex: none; appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; scroll-snap-align: center; }
  .foot-tabs button.on { background: #6262AC; color: #fff; box-shadow: 0 4px 12px rgba(98,98,172,.35); }
  .foot-panel { display: none !important; }
  .foot-panel.foot-active { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px 10px; text-align: center; border: 0 !important; padding: 2px 0 !important; }
  .foot-panel > h4, .foot-panel > summary { display: none !important; }
  .foot-panel.foot-active > a { display: inline-block !important; padding: 6px 12px !important; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; margin: 0 !important; }
}

/* ---- តម្លៃកញ្ចប់លើ Mobile/Tablet តូច: អូសឆ្វេង-ស្តាំ (Scroll-snap) ---- */
@media (max-width: 760px) {
  .plans { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px !important; padding: 14px 16px 18px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 82%; max-width: 340px; scroll-snap-align: center; }
  .plans-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .plans-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
  .plans-dots i.on { width: 22px; border-radius: 6px; background: #6262AC; }
}
@media (min-width: 1025px) { .plans-dots { display: none; } }

/* ---- v2.17.9: Footer Tablet Portrait (Brand នៅកណ្តាល) + Tabs មួយជួរ មិនកាត់អក្សរ ---- */
@media (max-width: 900px) {
  .pub-foot .foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .pub-foot .foot-brand .foot-tag, .pub-foot .foot-brand > p:first-of-type { margin-left: auto; margin-right: auto; max-width: 440px; }
  .foot-tabs { display: grid !important; grid-auto-flow: column; grid-auto-columns: auto; width: max-content; max-width: 100%; overflow: visible; }
  .foot-tabs button { padding: 8px 16px; }
}
@media (max-width: 520px) {
  .foot-tabs { width: 100%; grid-auto-columns: auto; }
  .foot-tabs button { padding: 8px 6px; font-size: 12.5px; letter-spacing: -.01em; min-width: 0; }
}
@media (max-width: 360px) { .foot-tabs button { font-size: 11.5px; padding: 7px 4px; } }

/* ---- v2.17.9: Landing — ចំណងជើងមួយជួរលើកុំព្យូទ័រ + FAQ រូបភាព (PC) ---- */
@media (min-width: 1100px) {
  .sec-head.sec-head-wide { max-width: none; }
  .sec-head.sec-head-wide h2, .split-mini .split-copy h2 { white-space: nowrap; }
  .split.split-mini { grid-template-columns: 1.25fr .75fr; gap: 40px; }
  .split-mini .split-copy h2 { font-size: clamp(26px, 2.35vw, 34px); }
}
.faq-help { display: none; }
@media (min-width: 1000px) {
  .faq-help { display: block; margin-top: 26px; padding: 26px 24px 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--card) 88%, #6262AC 12%), color-mix(in srgb, var(--card) 90%, #F5852F 10%)); box-shadow: 0 20px 40px -28px rgba(40,38,90,.35); }
  .faq-help-art { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(98,98,172,.22), rgba(98,98,172,0) 70%); display: grid; place-items: center; }
  .faq-help-art img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(98,98,172,.35)); animation: faqFloat 4s ease-in-out infinite; }
  .faq-bubble { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(0,0,0,.3); }
  .faq-bubble.fq1 { top: 6px; left: -2px; background: #F5852F; color: #fff; transform: rotate(-10deg); }
  .faq-bubble.fq2 { bottom: 10px; right: -6px; background: var(--card); transform: rotate(8deg); }
  .faq-help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .faq-help-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text); }
  .faq-help-list li span { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
  .faq-help-cta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
}
@keyframes faqFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .faq-help-art img { animation: none; } }

/* ---- v2.17.9: តម្លៃកញ្ចប់ អូសបាន លើ Tablet/iPad (Portrait) ផង ---- */
@media (min-width: 761px) and (max-width: 1024px) {
  .plans { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px !important; padding: 14px 22px 18px; margin: 0 -22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 46%; max-width: 360px; scroll-snap-align: center; }
  .plans-dots { display: flex !important; justify-content: center; gap: 6px; margin-top: 4px; }
  .plans-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
  .plans-dots i.on { width: 22px; border-radius: 6px; background: #6262AC; }
}

/* ---- v2.17.9: «ដំណើរការជាមួយ» លើ Mobile — ជួរ Tabs តែមួយ អូសបាន ---- */
@media (max-width: 760px) {
  .strip-in { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0; justify-items: center; }
  .strip-label { margin: 0; font-size: 12.5px; letter-spacing: .02em; }
  .strip-in .strip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 32px); padding: 4px; margin: 0 16px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, #6262AC 20%); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .strip-in .strip-row::-webkit-scrollbar { display: none; }
  .strip-in .chip-x { flex: none; white-space: nowrap; scroll-snap-align: center; font-size: 13px; padding: 7px 14px; background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(20,20,45,.06); }
}
@media (min-width: 761px) { .strip-in .strip-row { display: contents; } }

/* ---- v2.17.9: Hero — «ដោយមិនបាត់ការកម្មង់របស់ម៉ូយ» មួយជួរលើកុំព្យូទ័រ/Tablet ធំ ---- */
@media (min-width: 1000px) {
  .hero-grid h1 { font-size: clamp(32px, 2.85vw, 41px); }
  .hero-grid h1 .grad { white-space: nowrap; }
}

/* Local Khmer face with enough room for stacked vowels and consonants. */
@font-face{font-family:"ChatKH Landing Khmer";font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/kantumruy-pro-variable.woff2?v=1') format('woff2'),url('/assets/fonts/kantumruy-pro-variable.ttf?v=1') format('truetype')}
body.lang-km{--font:"ChatKH Landing Khmer","Kantumruy Pro","Khmer Sangam MN","Noto Sans Khmer",system-ui,sans-serif;line-height:1.85;font-synthesis:none}
body.lang-km h1,body.lang-km h2,body.lang-km h3,body.lang-km .lp-hero h1{letter-spacing:normal;line-height:1.6;word-break:normal;overflow-wrap:normal;font-weight:700}
body.lang-km .eyebrow,body.lang-km .lp-kicker,body.lang-km .pub-links a{letter-spacing:normal;line-height:1.8}
.social-provider-row { display:flex; align-items:stretch; gap:10px; }
.social-provider-row:empty { display:none; }
.social-provider-row .btn-social { flex:1 1 0; width:auto; min-width:0; margin:0; gap:8px; }
/* Acceptance row above copyright, consistently on all screen sizes. */
.foot-bottom{flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center}
.foot-bottom .accept-strip{order:-1;justify-content:center;max-width:100%;margin:0}
.foot-bottom .accept-strip{order:1}
.auth-card .auth-account-prompt{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin:20px 0 0;padding:14px 12px;border:1px solid var(--line);border-radius:12px;background:var(--gray-50,var(--card));font-size:14px;line-height:1.8;color:var(--muted)}
.auth-card .auth-account-prompt a{display:inline-flex;align-items:center;gap:8px;font-weight:700;text-decoration:none;color:var(--blue);padding:3px 0}
.auth-card .auth-account-prompt a:hover{text-decoration:underline;text-underline-offset:4px}
.auth-tabs:has(>a:only-child){grid-template-columns:1fr}

/* ================= v2.20.97: ម៉ឺនុយគណនី (Landing ពេល Login) ================= */
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .2s; flex: none; margin-left: -2px; }
.acct-menu[open] .acct-caret { transform: rotate(180deg); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(310px, calc(100vw - 24px)); background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 24px 48px -18px rgba(30,28,80,.45); animation: acctIn .16s ease-out; }
@keyframes acctIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.acct-pop a, .acct-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 11px; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none; }
.acct-pop a:hover, .acct-pop button:hover, .acct-pop a:focus-visible, .acct-pop button:focus-visible { background: rgba(98,98,172,.10); color: #6262AC; outline: none; }
.acct-pop .ui-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acct-pop span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; }
.acct-who .avatar, .acct-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-who div { min-width: 0; }
.acct-who b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who small { color: var(--muted); font-size: 12.5px; }
.acct-pop .acct-main { background: linear-gradient(135deg, #6f6fc0, #6262AC); color: #fff; font-weight: 700; margin-bottom: 4px; }
.acct-pop .acct-main:hover, .acct-pop .acct-main:focus-visible { background: linear-gradient(135deg, #6262AC, #55559a); color: #fff; }
.acct-label { margin: 10px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.acct-pop .acct-grid a { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: 12.5px; text-align: center; border: 1px solid var(--line); }
.acct-pop .acct-grid a span { white-space: normal; line-height: 1.25; }
.acct-pop .acct-grid .ui-icon { width: 20px; height: 20px; color: #F5852F; }
.acct-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.acct-pop form { margin: 0; }
.acct-pop .acct-out { color: #c43d3d; }
.acct-pop .acct-out:hover { background: rgba(196,61,61,.08); color: #c43d3d; }
@media (max-width: 560px) { .acct-menu .acct-caret { display: none; } .acct-pop { position: fixed; top: 64px; right: 12px; } }
.acct-who .avatar-txt, .acct-pop .avatar-txt { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px !important; }
.legal-page { max-width:980px; margin:28px auto 48px; padding:clamp(22px,4vw,48px); background:var(--card); border:1px solid var(--line); border-radius:24px; box-shadow:0 12px 40px #3020500a; overflow-wrap:anywhere; }
.legal-page h1 { padding-bottom:18px; border-bottom:1px solid var(--line); line-height:1.6; }
.legal-page h2 { padding-left:12px; border-left:3px solid var(--blue, #6262ac); line-height:1.7; }
.legal-page p, .legal-page li { line-height:1.95; }
.legal-page .lg-meta { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:26px; }
.legal-page .lg-links { display:flex; flex-wrap:wrap; gap:8px; padding-top:24px; margin-top:28px; border-top:1px solid var(--line); }
.legal-page .lg-links a { display:block; padding:8px 14px; border:1px solid var(--line); border-radius:10px; text-decoration:none; }
.legal-page .lg-links a[aria-current] { background:var(--blue, #6262ac); color:#fff; }
@media(max-width:640px) { .legal-page { width:calc(100% - 24px); margin:16px 12px 28px; border-radius:18px; } .legal-page .lg-links { flex-wrap:nowrap; overflow-x:auto; } .legal-page .lg-links a { flex:none; } }
