/* v2.20.97 — Landing: បើកបានគ្រប់កន្លែង · កម្មង់បានគ្រប់កន្លែង (Messenger / Telegram / Web) */
.lp-apps { background: radial-gradient(1200px 500px at 85% 10%, rgba(245,133,47,.08), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(98,98,172,.10), transparent 60%); }
/* v2.20.99: ទូរស័ព្ទប្ដូរទំហំតាមកម្ពស់អេក្រង់ (Laptop 14"/15.6" មើលឃើញពេញ) */
.ap-stage { --ph: clamp(480px, calc(100vh - 230px), 590px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 44px; align-items: center; max-width: 920px; margin: 4px auto 0; }
.ap-side { min-width: 0; }
.ap-tabs { display: grid; gap: 10px; }
.ap-tab { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ap-tab:hover { transform: translateY(-1px); }
.ap-tab[aria-selected="true"] { border-color: rgba(98,98,172,.45); box-shadow: 0 16px 34px -20px rgba(98,98,172,.75); }
.ap-tab img, .ap-tab-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.ap-tab img { padding: 8px; background: #e9f4fb; }
.ap-tab-ic { background: linear-gradient(135deg, #6f6fc0, #6262AC); color: #fff; }
.ap-tab-web .ap-tab-ic { background: linear-gradient(135deg, #f7a056, #F5852F); }
.ap-tab-ic .ui-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-tab span { display: flex; flex-direction: column; min-width: 0; }
.ap-tab b { font-size: 16px; }
.ap-tab small { color: var(--muted); font-size: 13px; }
.ap-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #6262AC, #F5852F); }
.ap-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ap-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text2, var(--text)); font-size: 15px; }
.ap-points .ui-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: #1f9d55; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.ap-play { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.ap-play:hover { color: #6262AC; }
.ap-play .ui-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.ap-play .ap-ico-play { display: none; font-size: 11px; }
.ap-play[aria-pressed="true"] .ap-ico-play { display: inline; }
.ap-play[aria-pressed="true"] .ap-ico-pause { display: none; }

/* ទូរស័ព្ទ */
.ap-phone { position: relative; height: var(--ph); width: calc(var(--ph) * .52); margin: 0 auto; border-radius: 44px; padding: 11px; background: #17162b; box-shadow: 0 40px 80px -30px rgba(23,22,43,.6), inset 0 0 0 2px #3b3a55; }
.ap-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #17162b; z-index: 3; }
.ap-scene { position: relative; height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #1c1b2e; }
.ap-scene[hidden] { display: none; }
.ap-scene-telegram { background: linear-gradient(180deg, #dfe9d3, #c9dbb8); }
.ap-scene-web { background: #f6f6fb; }
.ap-bar { display: flex; align-items: center; gap: 10px; padding: 48px 14px 10px; background: rgba(255,255,255,.96); border-bottom: 1px solid #ececf3; flex: none; }
.ap-bar img { border-radius: 50%; }
.ap-bar b { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-bar > div { min-width: 0; }
.ap-bar small { font-size: 11.5px; color: #7a7990; }
.ap-back { font-size: 26px; line-height: 1; color: #6262AC; margin-right: -2px; }
.ap-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F5852F, #6262AC); color: #fff; flex: none; }
.ap-avatar .ui-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.ap-url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #efeff6; font-size: 12.5px; color: #4b4a63; white-space: nowrap; overflow: hidden; }
.ap-url .ui-icon { width: 13px; height: 13px; fill: none; stroke: #1f9d55; stroke-width: 2.4; flex: none; }
.ap-body { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px 16px; }

.ap-step { display: none; }
.ap-step.is-on { display: block; animation: apIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes apIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.ap-msg { max-width: 84%; padding: 8px 12px; border-radius: 17px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ap-me { align-self: flex-end; background: linear-gradient(135deg, #7a6cf0, #6262AC); color: #fff; border-bottom-right-radius: 6px; }
.ap-bot { align-self: flex-start; background: #f0f0f5; border-bottom-left-radius: 6px; }
.ap-scene-telegram .ap-me { background: #e1fec6; color: #1c1b2e; }
.ap-scene-telegram .ap-bot { background: #fff; }
.ap-btn { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; color: #6262AC; font-weight: 700; text-align: center; box-shadow: inset 0 0 0 1px #e3e3ee; }
.ap-scene-telegram .ap-btn { background: rgba(98,98,172,.10); box-shadow: none; }
.ap-card { align-self: flex-start; width: 78%; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #e6e6ef; }
.ap-card.is-on { display: flex; flex-direction: column; }
.ap-card-img { position: relative; height: 92px; display: flex; align-items: flex-end; padding: 10px; overflow: hidden; background: linear-gradient(135deg, #6262AC, #F5852F); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ap-card b { padding: 9px 12px 0; font-size: 14px; }
.ap-card small { padding: 0 12px; font-size: 12px; color: #7a7990; }
.ap-card .ap-btn { margin: 8px 10px 10px; }

/* Overlay ហាង / ទម្រង់ */
.ap-shop, .ap-form { position: absolute; inset: 10px 0 0 0; padding: 12px 12px 14px; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -18px 40px -20px rgba(23,22,43,.5); z-index: 2; }
.ap-shop.is-on, .ap-form.is-on { display: flex; flex-direction: column; gap: 10px; animation: apSheet .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes apSheet { from { transform: translateY(100%); } to { transform: none; } }
.ap-shop-head { display: flex; justify-content: space-between; align-items: center; }
.ap-bag { position: relative; width: 36px; height: 36px; border-radius: 12px; background: #f1f1f8; display: inline-flex; align-items: center; justify-content: center; color: #6262AC; }
.ap-bag .ui-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.ap-bag i { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #F5852F; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; font-style: normal; transform: scale(0); }
.ap-shop.is-on .ap-bag i { animation: apPop .3s 1.5s both; }
@keyframes apPop { from { transform: scale(0); } 70% { transform: scale(1.3); } to { transform: scale(1); } }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-prod { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 14px; background: #f7f7fb; font-size: 12px; min-width: 0; }
.ap-prod .ap-art { display: block; width: 100%; height: calc(var(--ph) * .092); border-radius: 11px; margin-bottom: 3px; }
.ap-prod b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 26px; }
.ap-card-art { position: absolute; right: 6px; bottom: -6px; width: 74px; height: 74px; transform: rotate(-8deg); filter: drop-shadow(0 8px 10px rgba(23,22,43,.25)); }
.ap-card-art > rect:first-of-type { display: none; }
.ap-card-art2 { right: 66px; bottom: -10px; width: 60px; height: 60px; transform: rotate(10deg); }
.ap-prod span { color: #6262AC; font-weight: 800; }
.ap-prod em { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: #6262AC; color: #fff; font: 700 16px/24px system-ui, sans-serif; text-align: center; font-style: normal; }
.ap-checkout { margin-top: auto; padding: 11px; border-radius: 14px; background: linear-gradient(135deg, #f7a056, #F5852F); color: #fff; font-weight: 800; text-align: center; }
.ap-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #7a7990; font-weight: 600; }
.ap-type { display: block; min-height: 36px; padding: 8px 12px; border-radius: 12px; border: 1px solid #e3e3ee; color: #1c1b2e; font-size: 14px; font-weight: 500; overflow: hidden; white-space: nowrap; }
.ap-form.is-on .ap-type { animation: apType 1s steps(14) both; }
.ap-form.is-on label:nth-child(2) .ap-type { animation-delay: .5s; }
.ap-form.is-on label:nth-child(3) .ap-type { animation-delay: 1s; }
@keyframes apType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ចលនាចុច (ម្រាមដៃ) */
.ap-step.is-on .ap-tap, .ap-step.is-on.ap-tap { animation: apTap .6s ease-in-out 1.1s 1 both; }
.ap-shop.is-on .ap-prod:nth-child(2) .ap-tap { animation-delay: 1.4s; }
.ap-shop.is-on .ap-checkout, .ap-form.is-on .ap-checkout { animation-delay: 2s; }
@keyframes apTap { 0%, 100% { transform: none; filter: none; } 45% { transform: scale(.92); filter: brightness(.9); box-shadow: 0 0 0 8px rgba(245,133,47,.25); } }

.ap-done { align-self: center; margin: auto 0; text-align: center; padding: 26px 16px; }
.ap-done.is-on { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ap-check { width: 66px; height: 66px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e7f7ee; color: #1f9d55; }
.ap-check .ui-icon { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ap-done b { font-size: 19px; }
.ap-done small { color: #7a7990; font-size: 13px; max-width: 230px; }
.ap-install { align-self: stretch; }
.ap-install.is-on { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(23,22,43,.5); font-size: 13px; font-weight: 600; }
.ap-install img { border-radius: 10px; }
.ap-install span { flex: 1; }
.ap-install em { font-style: normal; padding: 6px 12px; border-radius: 999px; background: #6262AC; color: #fff; font-size: 12.5px; }

.ap-typing { display: none; align-self: flex-start; gap: 4px; padding: 11px 14px; border-radius: 18px; background: #f0f0f5; }
.ap-scene-telegram .ap-typing { background: #fff; }
.ap-typing.is-on { display: inline-flex; }
.ap-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9c9bb0; animation: apDot 1s infinite; }
.ap-typing i:nth-child(2) { animation-delay: .15s; }
.ap-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes apDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Admin គ្រប់ទីកន្លែង */
.ap-admin { margin: 64px auto 0; max-width: 1120px; }
.ap-admin > h3 { text-align: center; font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 24px; }
.ap-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ap-feat { --t: #6262AC; --t2: #8a8ad6; display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23,22,43,.04); transition: transform .2s ease, box-shadow .2s ease; }
.ap-feat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(40,38,90,.45); }
.ap-t1 { --t: #F5852F; --t2: #f7a056; }
.ap-t2 { --t: #229ED9; --t2: #4fb8e8; }
.ap-t3 { --t: #6262AC; --t2: #8a8ad6; }
.ap-feat-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--t2), var(--t)); box-shadow: 0 12px 22px -14px var(--t); }
.ap-feat-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-feat > div { min-width: 0; }
.ap-feat h4 { margin: 2px 0 6px; font-size: 17px; line-height: 1.35; color: var(--text); }
.ap-feat p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ap-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--t); background: rgba(98,98,172,.08); background: color-mix(in srgb, var(--t) 11%, transparent); }

/* ពណ៌ងងឹត */
[data-theme="dark"] .ap-tab img { background: rgba(255,255,255,.08); }
[data-theme="dark"] .ap-phone { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px #4b4a66; }

@media (max-width: 900px) {
  .ap-stage { grid-template-columns: 1fr; gap: 28px; }
  .ap-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ap-tab { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
  .ap-tab small { display: none; }
  .ap-points, .ap-play { display: none; }
  .ap-admin-grid { grid-template-columns: 1fr; gap: 12px; }
  .ap-feat { padding: 18px; gap: 14px; }
  .ap-feat-ic { width: 46px; height: 46px; border-radius: 14px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .ap-feat { flex-direction: column; } }
@media (max-width: 900px) { .ap-stage { --ph: 560px; } }
@media (max-width: 380px) { .ap-stage { --ph: 540px; } }
@media (prefers-reduced-motion: reduce) {
  .ap-feat, .ap-feat:hover { transition: none; transform: none; }
  .ap-step.is-on, .ap-shop.is-on, .ap-form.is-on, .ap-step.is-on .ap-tap, .ap-form.is-on .ap-type, .ap-shop.is-on .ap-bag i { animation: none !important; }
  .ap-shop.is-on .ap-bag i { transform: scale(1); }
}
html[data-theme="dark"] .ap-t3 { --t: #9b98f0; --t2: #6262AC; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .ap-t3 { --t: #9b98f0; --t2: #6262AC; } }

/* ================= v2.20.99: គ្រប់គ្រងហាងបានងាយ (#manage) ================= */
.lp-manage { background: radial-gradient(900px 480px at 12% 15%, rgba(34,158,217,.07), transparent 60%), radial-gradient(900px 480px at 90% 85%, rgba(245,133,47,.07), transparent 60%); }
.ap-stage-rev { grid-template-columns: auto minmax(0, 1fr); }
.ap-stage-rev .ap-phone { order: -1; }
.mg-tab-tgreport .ap-tab-ic { background: linear-gradient(135deg, #4fb8e8, #229ED9); }
.mg-tab-dash .ap-tab-ic { background: linear-gradient(135deg, #8a8ad6, #6262AC); }
.mg-tab-stock .ap-tab-ic { background: linear-gradient(135deg, #34c3b4, #0f9b8e); }
.mg-tab-track .ap-tab-ic { background: linear-gradient(135deg, #f7a056, #F5852F); }
.mg-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 34px auto 0; padding: 0; max-width: 980px; }
.mg-points li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--text2, var(--text)); }
.mg-points .ui-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: #1f9d55; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mg-body-top { justify-content: flex-start; gap: 10px; }
.mg-scene-dash, .mg-scene-stock, .mg-scene-track { background: #f6f6fb; }

/* Telegram report */
.mg-report { min-width: 84%; }
.mg-report > b { display: block; margin-bottom: 4px; }
.mg-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-top: 1px dashed #e6e6ef; font-size: 12.5px; }
.mg-row b { font-weight: 800; }
.mg-warn { color: #b45309; }
.mg-btns { display: flex; gap: 6px; }
.mg-btns .ap-btn { flex: 1; margin-top: 8px; padding: 6px; font-size: 12px; }
.ap-btn.mg-go { margin-top: 6px; background: #e7f7ee; color: #1a8a4a; box-shadow: none; }

/* Dashboard */
.mg-kpis.is-on { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-kpis > span { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -12px rgba(23,22,43,.4); }
.mg-kpis small, .mg-chart > small, .mg-top > small, .mg-stock > small { font-size: 11.5px; color: #7a7990; font-weight: 600; }
.mg-kpis b { font-size: 18px; line-height: 1.25; color: #1c1b2e; }
.mg-kpis em { font-style: normal; font-size: 11px; font-weight: 700; color: #1a8a4a; }
.mg-chart, .mg-top, .mg-stock { padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -12px rgba(23,22,43,.4); }
.mg-bars { display: flex; align-items: flex-end; gap: 7px; height: calc(var(--ph) * .12); margin-top: 6px; }
.mg-bars > span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mg-bars i { display: block; width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #8a8ad6, #6262AC); transform-origin: bottom; transform: scaleY(.04); }
.mg-bars > span:last-child i { background: linear-gradient(180deg, #f7a056, #F5852F); }
.mg-chart.is-on .mg-bars i { animation: mgGrow .7s cubic-bezier(.2,.8,.2,1) var(--d) forwards; }
@keyframes mgGrow { to { transform: scaleY(1); } }
.mg-bars em { font-style: normal; font-size: 9.5px; color: #9c9bb0; line-height: 1; }
.mg-top-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.mg-top-row + .mg-top-row { border-top: 1px solid #f0f0f5; }
.mg-top-row span { flex: 1; }
.mg-top-row b { color: #6262AC; }
.mg-art { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.mg-top.is-on .mg-top-row { animation: apIn .35s both; }
.mg-top.is-on .mg-top-row:nth-of-type(2) { animation-delay: .15s; }
.mg-top.is-on .mg-top-row:nth-of-type(3) { animation-delay: .3s; }

/* Stock */
.mg-stock.is-on { display: flex; flex-direction: column; gap: 2px; }
.mg-stock-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.mg-stock-row + .mg-stock-row { border-top: 1px solid #f0f0f5; }
.mg-stock-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.mg-stock-name small { font-size: 10.5px; color: #9c9bb0; }
.mg-meter { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: #ececf3; overflow: hidden; }
.mg-meter i { display: block; height: 100%; width: var(--to); border-radius: 3px; background: #14a38b; }
.mg-drop .mg-meter i { width: var(--from); }
.mg-stock.is-on .mg-drop .mg-meter i { animation: mgDrop 1.3s ease-in-out .5s forwards; }
@keyframes mgDrop { to { width: var(--to); background: #e0592a; } }
.mg-num { position: relative; min-width: 24px; text-align: right; font-size: 14px; }
.mg-n2 { position: absolute; right: 0; opacity: 0; color: #e0592a; }
.mg-stock.is-on .mg-n1 { animation: mgOut .2s 1.8s forwards; }
.mg-stock.is-on .mg-n2 { animation: mgIn .3s 1.8s forwards; }
@keyframes mgOut { to { opacity: 0; } }
@keyframes mgIn { to { opacity: 1; } }
.mg-low { position: absolute; right: 30px; top: 4px; padding: 2px 7px; border-radius: 999px; background: #fdecea; color: #c2410c; font-style: normal; font-size: 10.5px; font-weight: 700; opacity: 0; }
.mg-stock.is-on .mg-low { animation: mgIn .3s 2s forwards; }
.mg-toast.is-on { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff7ed; color: #9a3412; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 16px -12px rgba(23,22,43,.4); }
.mg-toast .ui-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; margin-top: 1px; }
.mg-toast.mg-toast-ok { background: #ecfdf3; color: #166534; }

/* Tracking */
.mg-track.is-on { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -12px rgba(23,22,43,.4); }
.mg-track-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #f0f0f5; }
.mg-track-head .mg-art { width: 38px; height: 38px; }
.mg-track-head span { display: flex; flex-direction: column; font-size: 13px; }
.mg-track-head small { font-size: 11px; color: #7a7990; }
.mg-tl { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; color: #9c9bb0; }
.mg-tl:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 30px; width: 2px; height: calc(100% - 18px); background: #ececf3; }
.mg-tl i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ececf3; color: #fff; }
.mg-tl i .ui-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.mg-tl span { flex: 1; }
.mg-tl small { font-size: 11px; }
.mg-track.is-on .mg-tl:not(:last-child) { animation: mgDone .35s var(--d) forwards; }
.mg-track.is-on .mg-tl:not(:last-child) i { animation: mgDot .35s var(--d) forwards; }
@keyframes mgDone { to { color: #1c1b2e; } }
@keyframes mgDot { to { background: #1f9d55; } }
.mg-track.is-on .mg-tl:nth-last-child(2) i { animation-name: mgDotNow; }
@keyframes mgDotNow { to { background: #F5852F; box-shadow: 0 0 0 5px rgba(245,133,47,.18); } }

@media (max-width: 900px) {
  .ap-stage-rev { grid-template-columns: 1fr; }
  .ap-stage-rev .ap-phone { order: 0; }
  .ap-tabs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-manage .ap-play { display: none; }
  .mg-points { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-bars i { transform: none; }
  .mg-chart.is-on .mg-bars i, .mg-stock.is-on *, .mg-track.is-on *, .mg-top.is-on .mg-top-row { animation: none !important; }
  .mg-drop .mg-meter i { width: var(--to); background: #e0592a; }
  .mg-n1 { display: none; } .mg-n2 { position: static; opacity: 1; } .mg-low { opacity: 1; }
  .mg-tl:not(:last-child) { color: #1c1b2e; } .mg-tl:not(:last-child) i { background: #1f9d55; }
}
/* Laptop អេក្រង់ទាប (14"/15.6") — បង្រួមខ្លឹមសារក្នុងទូរស័ព្ទ */
@media (min-width: 901px) and (max-height: 800px) {
  .mg-kpis em { display: none; }
  .mg-kpis > span { padding: 7px 10px; }
  .mg-top .mg-top-row:nth-of-type(3) { display: none; }
  .mg-stock-row { padding: 4px 0; }
  .mg-body-top { gap: 8px; }
}

/* v2.20.101: ចំណងជើងតូច (Kicker) មាន Shape — ដូចគ្នាទាំង Layout ថ្មី និង Classic */
.lp-apps .lp-head, .lp-manage .lp-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.lp-apps .lp-head h2, .lp-manage .lp-head h2 { margin: 14px 0 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.45; }
.lp-apps .lp-head p, .lp-manage .lp-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.lp-apps .lp-kicker, .lp-manage .lp-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; line-height: 1.6;
  color: #6262AC; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #6262AC, #F5852F) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 20px -12px rgba(98,98,172,.55); }
.lp-apps .lp-kicker::before, .lp-manage .lp-kicker::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #6262AC, #F5852F); box-shadow: 0 0 0 4px rgba(245,133,47,.15); }
.lp-manage .lp-kicker { color: #c2621a; }
.lp-manage .lp-kicker::before { background: #F5852F; }
html[data-theme="dark"] .lp-apps .lp-kicker { color: #a9a7f5; }
html[data-theme="dark"] .lp-manage .lp-kicker { color: #f7a056; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .lp-apps .lp-kicker { color: #a9a7f5; } html[data-theme="auto"] .lp-manage .lp-kicker { color: #f7a056; } }
@media (max-width: 600px) { .lp-apps .lp-head, .lp-manage .lp-head { margin-bottom: 24px; } .lp-apps .lp-head p, .lp-manage .lp-head p { font-size: 15px; } }
/* v2.20.103: អត្ថបទណែនាំ — អេក្រង់ធំមិនចុះបន្ទាត់ (បើខ្លី); បើវែង ចុះបន្ទាត់ស្មើៗគ្នា */
.lp-apps .lp-head, .lp-manage .lp-head { max-width: 1140px; }
.lp-apps .lp-head p, .lp-manage .lp-head p { text-wrap: balance; }
.lp-apps .lp-head h2, .lp-manage .lp-head h2 { text-wrap: balance; }
