/* chamcong.biz – web bán hàng. Màu và font dùng chung với app (web/css/app.css). */
:root {
  --pri: #15a34a; --pri-btn: #15803d; --pri-h: #116b33; --pri-d: #0f5132; --pri-dd: #0b3f27;
  --pri-l: #e8f7ee; --pri-ll: #f3fbf6;
  --ink: #101828; --tx: #1d2530; --tx-2: #4b5563; --tx-3: #6b7280;
  --bg: #fff; --bg-2: #f6f9f7; --line: #e3e8e5; --line-2: #eef2ef;
  --red: #c2410c; --red-l: #fff1ea; --amber: #b45309; --amber-l: #fff7e6; --blue: #1d5fbf; --blue-l: #eaf2fd;
  --r: 14px; --r-lg: 22px;
  --sh: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .05);
  --sh-lg: 0 24px 60px -20px rgba(15, 81, 50, .35), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --wrap: 1200px; --gut: 20px; --head-h: 68px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; font: 16px/1.65 'Be Vietnam Pro', 'BVP Arial', 'BVP Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--tx); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg[aria-hidden] { width: 1.15em; height: 1.15em; flex: none; }
a { color: var(--pri-btn); text-underline-offset: 3px; }
a:hover { color: var(--pri-h); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid #4ade80; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-s { max-width: 820px; }
.muted { color: var(--tx-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tbl-note { white-space: normal; }   /* ghi chú trong ô .nowrap được xuống dòng (vd "Ân hạn (vẫn dùng bình thường)", bảng lộ trình hết hạn) */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.hide, [hidden] { display: none !important; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; text-align: center;
}
/* phản hồi nhấn rõ (việc 21): thu nhỏ nhẹ + tối nền ngay khi chạm; iPhone cần touchstart (site.js) thì :active mới chạy */
.btn:active { transform: scale(.97); transition-duration: .05s; }
.btn-pri { background: var(--pri-btn); color: #fff; box-shadow: 0 6px 16px -6px rgba(21, 128, 61, .55); }
.btn-pri:hover { background: var(--pri-h); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pri); color: var(--pri-h); }
.btn-white { background: #fff; color: var(--pri-d); }
.btn-white:hover { background: var(--pri-l); color: var(--pri-dd); }
.btn-line-w { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-line-w:hover { background: rgba(255, 255, 255, .1); color: #fff; }
/* Nút ĐĂNG KÝ (chủ yêu cầu 17/10/2026): nút đăng ký luôn ghi "ĐĂNG KÝ"; nền xanh có vệt sáng chạy ngang + viền phát sáng nhấp nháy để khách chú ý.
   Ghi đè mọi biến thể (btn-pri / btn-white / btn-ghost) để đồng nhất.
   Tốc độ (việc 1, 18/10/2026): hiệu ứng chỉ đổi opacity / transform của ::before (vệt sáng) và ::after (viền sáng) → card đồ hoạ tự chạy,
   luồng chính rảnh (trước đây box-shadow + background-position phải vẽ lại mỗi khung hình, trang đứng yên mà luồng chính bận 90%).
   Chỉ chạy hiệu ứng khi nút đang trong màn hình (site.js gắn class .in bằng IntersectionObserver, 19/10/2026): hoạt ảnh của nút
   ngoài màn hình – nhất là nút trong khối content-visibility:auto đang bị bỏ qua (dải kêu gọi cuối trang) – chạy ở luồng chính
   → /bang-gia/ đứng yên mà bận 15–45%. Chưa có .in (chưa chạy JS / ngoài màn hình): viền sáng tĩnh, không hoạt ảnh.
   Người bật "giảm chuyển động" (12A ý 4, chủ chốt 19/10/2026 – thay chốt 17/10): không nhấp nháy, không vệt sáng; viền sáng đậm đứng yên
   (WCAG 2.2.2: nội dung nhấp nháy tự chạy quá 5 giây phải dừng được). */
.btn.btn-reg, .btn.btn-reg:hover, .btn.btn-reg:focus-visible {
  position: relative; isolation: isolate;
  color: #fff; border-color: transparent; text-transform: uppercase; letter-spacing: .07em; font-weight: 800;
  background: linear-gradient(135deg, #22c55e, #16a34a 45%, #15803d); box-shadow: 0 10px 22px -10px rgba(21, 128, 61, .7); }
.btn.btn-reg:hover { filter: brightness(1.07) saturate(1.1); }
.btn.btn-reg:active { filter: brightness(.9); }
/* vệt sáng: dải chéo hẹp chạy từ mép trái sang mép phải (luôn nằm trong nút, mờ dần ở hai đầu) */
.btn.btn-reg::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, .5) 50%, transparent 75%); opacity: 0; }
.btn.btn-reg.in::before { animation: regShine 3.2s ease-in-out infinite; }
@keyframes regShine { 0%, 35% { transform: translateX(0) skewX(-20deg); opacity: 0; } 45%, 65% { opacity: 1; } 75%, 100% { transform: translateX(194%) skewX(-20deg); opacity: 0; } }
/* viền sáng nở ra rồi tắt (thay box-shadow 0 → 12px cũ): bóng sáng cố định quanh mép nút (box-shadow chỉ vẽ phía ngoài nút),
   chỉ đổi độ mờ + phóng nhẹ */
.btn.btn-reg::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .85), 0 0 14px 5px rgba(74, 222, 128, .6); opacity: .45; }
.btn.btn-reg.in::after { opacity: 0; animation: regPulse 1.8s ease-out infinite; }
@keyframes regPulse { 0% { opacity: 1; transform: scale(1); } 30% { opacity: .65; transform: scale(1.015, 1.06); } 70%, 100% { opacity: 0; transform: scale(1.04, 1.16); } }
.btn.btn-reg.in::before, .btn.btn-reg.in::after { will-change: transform, opacity; }
/* giảm chuyển động: viền đậm đứng yên (luật tắt hoạt ảnh chung ở cuối file đã tắt regShine / regPulse) */
@media (prefers-reduced-motion: reduce) {
  .btn.btn-reg::after, .btn.btn-reg.in::after { animation: none !important; transform: none; opacity: 1;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .95), 0 0 10px 3px rgba(74, 222, 128, .45); }
  .btn.btn-reg.in::before, .btn.btn-reg.in::after { will-change: auto; }
}
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: wait; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@media (min-width: 1081px) { .head { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); } }
.head.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(16, 24, 40, .2); }
.head-in { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo b { color: var(--pri); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav > a, .nav-dd > button {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--tx); font-weight: 600; font-size: 15px;
  text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav > a:hover, .nav-dd > button:hover, .nav-dd:focus-within > button { background: var(--bg-2); color: var(--pri-h); }
/* Mục menu của trang đang xem (chủ yêu cầu 17/10/2026): khối xanh đặc chữ trắng, nổi bật */
.nav > a[aria-current="page"], .nav-dd.is-cur > button, .nav > a[aria-current="page"]:hover, .nav-dd.is-cur > button:hover, .nav-dd.is-cur:focus-within > button {
  color: #fff; background: linear-gradient(135deg, #16a34a, #15803d 55%, #166534); box-shadow: 0 8px 18px -8px rgba(21, 128, 61, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.nav-dd.is-cur > button svg { color: #fff; }
.dd a[aria-current="page"] { background: var(--pri-l); box-shadow: inset 4px 0 0 var(--pri-btn); }
.dd a[aria-current="page"] b { color: var(--pri-h); }
.head-cta .login[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #16a34a, #15803d 55%, #166534); padding: 7px 14px; border-radius: 10px; box-shadow: 0 8px 18px -8px rgba(21, 128, 61, .6); }
.nav-dd { position: relative; }
.nav-dd > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd.open > button svg { transform: rotate(180deg); }
.dd {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--sh-lg); padding: 10px; display: none; z-index: 60;
}
.dd.dd-wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dd.open .dd { display: block; }
.nav-dd.open .dd.dd-wide { display: grid; }
@media (hover: hover) and (min-width: 1081px) {
  .nav-dd:hover .dd { display: block; }
  .nav-dd:hover .dd.dd-wide { display: grid; }
  .nav-dd:hover > button svg { transform: rotate(180deg); }
  .nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.dd a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--tx); }
.dd a:hover, .dd a:focus-visible { background: var(--pri-ll); }
.dd a b { display: block; font-size: 15px; color: var(--ink); }
.dd a span { display: block; font-size: 13.5px; color: var(--tx-3); line-height: 1.45; }
.dd .dd-all { grid-column: 1 / -1; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--pri-btn); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-cta .login { font-weight: 600; text-decoration: none; color: var(--tx); padding: 8px 10px; border-radius: 10px; }
.head-cta .login:hover { background: var(--bg-2); color: var(--pri-h); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav { display: none; }

@media (max-width: 1080px) {
  .nav, .head-cta .login, .head-cta .btn { display: none; }
  .burger { display: inline-flex; }
  .mnav {
    position: fixed; inset: var(--head-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px var(--gut) 120px; z-index: 49;
    border-top: 1px solid var(--line);
  }
  .menu-open .mnav { display: block; }
  .menu-open { overflow: hidden; }
  .mnav details { border-bottom: 1px solid var(--line-2); }
  .mnav summary { list-style: none; padding: 15px 4px; font-weight: 700; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary::after { content: "+"; font-size: 22px; color: var(--tx-3); font-weight: 400; }
  .mnav details[open] summary::after { content: "–"; }
  .mnav details a { display: block; padding: 10px 12px; text-decoration: none; color: var(--tx); border-radius: 10px; }
  .mnav details a:hover { background: var(--pri-ll); }
  .mnav > a { display: block; padding: 15px 4px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }
  /* trang đang xem trên menu điện thoại: khối xanh đặc / nền xanh nhạt + vạch trái */
  .mnav > a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #16a34a, #15803d 55%, #166534); border-radius: 12px; padding: 13px 14px; margin: 6px 0; border-bottom: 0; }
  .mnav details.is-cur > summary { color: var(--pri-h); }
  .mnav details a[aria-current="page"] { background: var(--pri-l); color: var(--pri-h); font-weight: 700; box-shadow: inset 4px 0 0 var(--pri-btn); }
  .mnav .btns { margin-top: 20px; }
  .mnav .btns .btn { flex: 1 1 200px; }
}

/* ---------- Khung trang, khối ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-s { padding: clamp(40px, 5vw, 64px) 0; }
.sec-alt { background: var(--bg-2); }
.sec-dark { background: linear-gradient(160deg, var(--pri-d), var(--pri-dd)); color: #d8f3e3; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.sec-head p { font-size: 18px; color: var(--tx-2); margin: 0; }
.sec-dark .sec-head p { color: #c6ead5; }
/* nhãn đầu mục (chủ yêu cầu 17/10/2026: nổi bật hơn) – dạng viên thuốc.
   Trong tiêu đề mục (.sec-head) hoặc .eyebrow-pill: khối xanh đặc chữ trắng; chỗ khác (hero, trang con): nền xanh nhạt viền xanh. */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pri-d); background: var(--pri-l); border: 1px solid #bfe6cd; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; line-height: 1.3; }
.eyebrow svg { width: 17px; height: 17px; flex: none; }
.sec-head .eyebrow, .eyebrow-pill { background: linear-gradient(135deg, #16a34a, #15803d 55%, #166534); color: #fff; border-color: transparent;
  padding: 8px 18px; font-size: 15px; letter-spacing: .05em; box-shadow: 0 8px 20px -6px rgba(21, 128, 61, .45), inset 0 1px 0 rgba(255, 255, 255, .25); margin-bottom: 16px; }
.sec-dark .eyebrow { color: #dcfce7; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
@media (max-width: 600px) { .eyebrow { font-size: 12.5px; padding: 5px 12px; } .sec-head .eyebrow, .eyebrow-pill { font-size: 14px; padding: 7px 15px; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--tx-2); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
/* Thẻ: nổi khối khi rê chuột (chủ yêu cầu 17/10/2026) – nhấc lên, bóng màu, viền xanh, vạch màu chạy trên đầu thẻ, icon phóng to nghiêng nhẹ */
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .2s; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #16a34a, #10b981 50%, #06b6d4);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.card h3 { margin-bottom: 8px; transition: color .2s; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: #a7dcbb; box-shadow: 0 26px 56px -24px rgba(15, 81, 50, .42), 0 10px 24px -14px rgba(16, 24, 40, .2); }
  a.card:hover { transform: translateY(-8px); border-color: #86d3a3; color: inherit; }
  .card:hover::before { transform: scaleX(1); }
  a.card:hover h3 { color: var(--pri-h); }
  .card:hover .ic { transform: translateY(-2px) scale(1.08) rotate(-6deg); box-shadow: 0 16px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
  a.card:hover .link-arrow { color: var(--pri-btn); }
  a.card:hover .link-arrow::after { transform: translateX(6px); }
}
a.card:focus-visible { transform: translateY(-6px); border-color: #86d3a3; box-shadow: 0 0 0 3px rgba(21, 128, 61, .35), var(--sh-lg); }
a.card:focus-visible::before { transform: scaleX(1); }
/* Ô icon: khối màu chuyển sắc, icon trắng, bóng cùng màu. Màu: (mặc định) xanh lá, b xanh dương, a cam, o đỏ, v tím, t xanh ngọc */
.ic { --glow: rgba(21, 128, 61, .6); width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; flex: none;
  background: linear-gradient(140deg, #22c55e, #15803d 60%, #166534); box-shadow: 0 12px 24px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.ic svg { width: 27px; height: 27px; stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15)); }
.ic.b { --glow: rgba(67, 56, 202, .55); background: linear-gradient(140deg, #3b82f6, #4f46e5 60%, #4338ca); }
.ic.a { --glow: rgba(234, 88, 12, .55); background: linear-gradient(140deg, #f59e0b, #ea580c 60%, #c2410c); }
.ic.o { --glow: rgba(225, 29, 72, .5); background: linear-gradient(140deg, #fb7185, #e11d48 60%, #be123c); }
.ic.v { --glow: rgba(124, 58, 237, .55); background: linear-gradient(140deg, #a78bfa, #7c3aed 60%, #6d28d9); }
.ic.t { --glow: rgba(13, 148, 136, .55); background: linear-gradient(140deg, #2dd4bf, #0d9488 60%, #0f766e); }
/* giảm chuyển động: bỏ chuyển tiếp trượt, vẫn hiện trạng thái nổi khối ngay khi rê chuột */
@media (prefers-reduced-motion: reduce) { .card, .card::before, .ic { transition: none; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin: 9px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--pri-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.sec-dark .checks li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.crosses li::before { background: var(--red-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--pri-l); color: var(--pri-d); font-size: 13.5px; font-weight: 700; }
.pill.gray { background: var(--line-2); color: var(--tx-2); }
.pill.amber { background: var(--amber-l); color: var(--amber); }
.note { background: var(--amber-l); border: 1px solid #f6dfae; border-radius: 12px; padding: 14px 16px; font-size: 15px; color: #6b4708; }
.note.green { background: var(--pri-ll); border-color: #cdebd8; color: var(--pri-d); }
.note.blue { background: var(--blue-l); border-color: #cfe0f8; color: #1e3a66; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumb, đầu trang con ---------- */
.crumb { font-size: 14px; color: var(--tx-3); margin-bottom: 14px; }
.crumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb li + li::before { content: "/"; margin-right: 6px; color: #b8c0bb; }
.crumb a { color: var(--tx-3); text-decoration: none; }
.crumb a:hover { color: var(--pri-h); text-decoration: underline; }
.phead { padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 52px); background: radial-gradient(1200px 380px at 85% -20%, #dff4e7 0%, rgba(223, 244, 231, 0) 70%), linear-gradient(180deg, var(--pri-ll), #fff); border-bottom: 1px solid var(--line-2); }
.phead h1 { max-width: 900px; }
.phead .lead { max-width: 760px; }
.phead .btns { margin-top: 24px; }

/* ---------- Hero trang chủ ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px); background: radial-gradient(900px 520px at 90% 10%, #d9f2e2 0%, rgba(217, 242, 226, 0) 65%), linear-gradient(180deg, var(--pri-ll) 0%, #fff 85%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--pri-btn); }
.hero .lead { margin-bottom: 26px; max-width: 600px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--tx-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--pri-btn); flex: none; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .device-browser { position: absolute; right: -40px; top: 30px; width: 112%; max-width: 640px; }
.hero-art .device-phone { position: absolute; left: 0; bottom: -10px; width: 46%; max-width: 270px; z-index: 2; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hero-art .device-browser { display: none; }
  .hero-art .device-phone { position: static; width: 72%; max-width: 300px; }
}

/* ---------- Khung thiết bị (ảnh chụp app thật) ---------- */
.device-phone { background: #0f172a; border-radius: 38px; padding: 10px; box-shadow: var(--sh-lg); position: relative; }
.device-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 7px; margin-left: -15%; background: #1e293b; border-radius: 6px; z-index: 2; }
.device-phone .scr { border-radius: 29px; overflow: hidden; background: #fff; padding-top: 22px; }
.device-phone img { width: 100%; height: auto; }
.device-browser { background: #fff; border: 1px solid #d5ddd8; border-radius: 14px; box-shadow: var(--sh-lg); overflow: hidden; }
.device-browser .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f4f2; border-bottom: 1px solid #dde4df; }
.device-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dad6; display: block; }
.device-browser .bar i:nth-child(1) { background: #f87171; } .device-browser .bar i:nth-child(2) { background: #fbbf24; } .device-browser .bar i:nth-child(3) { background: #4ade80; }
.device-browser .bar span { margin-left: 10px; flex: 1; max-width: 300px; height: 18px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 18px; color: var(--tx-3); padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.device-browser img { width: 100%; height: auto; }
.device-browser picture, .device-phone picture, .device-tablet picture { display: block; }
.device-tablet { background: #0f172a; border-radius: 26px; padding: 14px; box-shadow: var(--sh-lg); }
.device-tablet img { border-radius: 12px; width: 100%; height: auto; }
.shot-cap { font-size: 13.5px; color: var(--tx-3); text-align: center; margin-top: 12px; }

/* ---------- Khối nỗi đau → giải pháp, tính năng zigzag ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split.rev > :first-child { order: 2; }
.split .media { display: flex; justify-content: center; }
.split .media .device-phone { width: 70%; max-width: 300px; }
.split .media .device-browser, .split .media .device-tablet { width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } .split .media .device-phone { width: 64%; } }
.pain svg { width: 16px; height: 16px; }
.pain { display: inline-flex; align-items: center; gap: 8px; color: var(--red); background: var(--red-l); padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }

/* ---------- Các bước ---------- */
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps > li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; position: relative; box-shadow: var(--sh); }
.steps > li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pri-btn); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 18px; }
.steps p { margin: 0; color: var(--tx-2); font-size: 15.5px; }
@media (max-width: 1024px) { .steps.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps, .steps.s4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bảng giá ---------- */
/* Chọn kỳ thanh toán (chủ yêu cầu 17/10/2026): mỗi kỳ một khối nền riêng; kỳ đang chọn = khối xanh đậm nổi */
.period { display: inline-grid; grid-template-columns: repeat(4, auto); gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); }
.period label { position: relative; cursor: pointer; }
.period input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.period span { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 18px; border-radius: 13px; font-weight: 700; font-size: 15.5px; color: var(--pri-d);
  background: linear-gradient(180deg, #f6fcf8, #e9f7ef); border: 1px solid #cfead9; box-shadow: inset 0 1px 0 #fff;
  transition: background .2s, border-color .2s, color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.period span small { font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f59e0b, #ea580c); padding: 3px 8px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(234, 88, 12, .6); }
@media (hover: hover) { .period label:hover span { border-color: #86d3a3; background: linear-gradient(180deg, #ecf9f1, #dcf3e5); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(15, 81, 50, .45); } }
.period input:checked + span { background: linear-gradient(135deg, #16a34a, #15803d 55%, #166534); border-color: transparent; color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(21, 128, 61, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.period input:checked + span small { background: #fff; color: var(--pri-d); box-shadow: none; }
.period input:focus-visible + span { outline: 3px solid #4ade80; outline-offset: 2px; }
/* hẹp (< 700px): lưới 2×2 đều nhau, không để một kỳ đứng lẻ */
@media (max-width: 699px) { .period { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 440px; } .period span { justify-content: center; width: 100%; } }
@media (max-width: 480px) { .period { gap: 6px; padding: 6px; } .period span { padding: 9px 10px; font-size: 14.5px; min-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .period span { transition: none; } }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; align-items: stretch; }
@media (max-width: 1140px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px 24px; display: flex; flex-direction: column; position: relative; box-shadow: var(--sh); }
.plan.pop { border: 2px solid var(--pri); box-shadow: var(--sh-lg); }
.plan .tag { position: absolute; top: -13px; left: 22px; background: var(--pri-btn); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin: 0; }
.plan .who { color: var(--tx-3); font-size: 14.5px; min-height: 44px; margin: 4px 0 14px; }
.plan .cap { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.plan .price { font-size: clamp(24px, 1.5vw + 8px, 32px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--tx-3); letter-spacing: 0; }
.plan .total { font-size: 14.5px; color: var(--tx-2); margin: 6px 0 2px; min-height: 22px; }
.plan .per { font-size: 14px; color: var(--tx-3); }
.plan .blockp { font-size: 14px; color: var(--tx-2); background: var(--bg-2); border-radius: 10px; padding: 8px 10px; margin: 14px 0 6px; }
.plan .checks { font-size: 15px; flex: 1; margin-top: 12px; }
.plan .checks li { margin: 7px 0; }
.plan .btn { margin-top: 14px; }
.plan.ent .price { font-size: clamp(22px, 1.2vw + 8px, 28px); }
.plans-note { text-align: center; color: var(--tx-3); font-size: 14.5px; margin-top: 18px; }

/* Máy tính giá */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.calc-in { padding: clamp(22px, 3vw, 36px); }
.calc-out { padding: clamp(22px, 3vw, 36px); background: linear-gradient(160deg, var(--pri-d), var(--pri-dd)); color: #d8f3e3; display: flex; flex-direction: column; }
.calc-out h3 { color: #fff; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.range-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 6px; }
.range-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--pri-btn); height: 32px; }
.range-row input[type=number] { width: 96px; }
.ticks { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tx-3); }
.res-plan { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: #fff; margin: 4px 0 2px; }
.res-big { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.15; }
.res-rows { margin: 16px 0; padding: 0; list-style: none; font-size: 15px; }
.res-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.res-rows b { color: #fff; text-align: right; }
.calc-out .btn { margin-top: auto; }
.calc-out .small { color: #b5dcc4; }

/* ---------- Bảng ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
/* bảng còn cuộn ngang được (bảng giá ở điện thoại…): bóng mờ ở mép còn nội dung – lớp "local" che bóng khi đã cuộn tới mép (chỉ CSS) */
.tbl-wrap { background:
  linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
  linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(16, 24, 40, .2), rgba(16, 24, 40, 0)) left center / 14px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(16, 24, 40, .2), rgba(16, 24, 40, 0)) right center / 14px 100% no-repeat scroll,
  #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--bg-2); font-weight: 700; color: var(--ink); font-size: 14.5px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .yes { color: var(--pri-btn); font-weight: 800; }
.tbl tr.grp td { background: var(--pri-ll); font-weight: 700; color: var(--pri-d); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: border-color .15s; }
.faq details[open] { border-color: #a7dcbb; box-shadow: var(--sh); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; color: var(--ink); position: relative; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--pri-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--tx-2); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- CTA cuối trang ---------- */
.cta-band { background: linear-gradient(135deg, var(--pri-btn), var(--pri-d)); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); color: #e3f7ea; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 17px; }
.cta-band .btns { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bài viết, pháp lý, hướng dẫn ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }
.toc { position: sticky; top: calc(var(--head-h) + 20px); font-size: 14.5px; max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; }
.toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--tx-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--pri-h); border-color: var(--pri); }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; background: var(--bg-2); border-radius: 14px; padding: 16px; } }
.prose { font-size: 17px; line-height: 1.75; color: var(--tx); max-width: 760px; min-width: 0; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 19px; margin: 1.5em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.2em; }
.prose .tbl-wrap { margin: 0 0 1.3em; }
.prose .tbl-wrap table { margin: 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.prose th { background: var(--bg-2); }
.prose blockquote { margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--pri); background: var(--pri-ll); border-radius: 0 12px 12px 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--tx-3); margin-top: 10px; text-align: center; }
.prose .device-phone { max-width: 280px; margin: 0 auto; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--tx-3); margin-top: 6px; }
.meta b { color: var(--tx-2); font-weight: 600; }
.basis { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14.5px; margin-bottom: 24px; color: var(--tx-2); }
.basis b { color: var(--ink); }
.sources { font-size: 14.5px; color: var(--tx-2); }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }
.cta-inline { border: 1px solid #bfe5cc; background: var(--pri-ll); border-radius: 16px; padding: 18px 20px; margin: 1.6em 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cta-inline p { margin: 0; font-weight: 600; color: var(--pri-d); flex: 1 1 260px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .pill { align-self: flex-start; margin-bottom: 12px; }
.post-card h3 { font-size: 20px; }
.post-card p { color: var(--tx-2); flex: 1; }
.post-card .meta { margin-top: 12px; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--sh-lg); }
.fld { margin-bottom: 16px; }
.fld label, .fld .lbl { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.fld .req { color: var(--red); }
.inp, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #cfd8d2; border-radius: 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.fld textarea { min-height: 110px; resize: vertical; }
.inp:focus, .fld select:focus, .fld textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(21, 163, 74, .15); outline: none; }
.fld.bad .inp, .fld.bad select, .fld.bad textarea { border-color: #dc5a2a; }
.fld .hint { font-size: 14px; color: var(--tx-3); margin-top: 6px; }
.fld .err { font-size: 14px; color: var(--red); margin-top: 6px; display: none; font-weight: 600; }
.fld.bad .err { display: block; }
.fld-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 560px) { .fld-row { grid-template-columns: minmax(0, 1fr); } }
.ws-box { display: flex; align-items: stretch; border: 1.5px solid #cfd8d2; border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ws-box:focus-within { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(21, 163, 74, .15); }
.fld.bad .ws-box { border-color: #dc5a2a; }
.ws-box .inp { border: 0; box-shadow: none !important; min-width: 0; border-radius: 0; }
.ws-box .sfx { display: flex; align-items: center; padding: 0 14px; background: var(--bg-2); color: var(--tx-2); font-weight: 600; border-left: 1px solid var(--line); white-space: nowrap; }
.ws-status { font-size: 14.5px; margin-top: 8px; min-height: 22px; font-weight: 600; }
.ws-status.ok { color: var(--pri-btn); }
.ws-status.no { color: var(--red); }
.ws-status.wait { color: var(--tx-3); }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sugs button { border: 1px solid #bfe5cc; background: var(--pri-ll); color: var(--pri-d); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 36px; }
.sugs button:hover { background: var(--pri-l); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.chk input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pri-btn); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.err { background: var(--red-l); color: #7c2d12; border: 1px solid #fbcbb4; }
.form-msg.ok { background: var(--pri-ll); color: var(--pri-d); border: 1px solid #bfe5cc; }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 84px; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: var(--bg-2); border-radius: 9px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--tx-2); cursor: pointer; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.side-list .ic { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.side-list .ic svg { width: 23px; height: 23px; }
.side-list li > div > b { display: block; color: var(--ink); font-size: 17px; }
.side-list span b { color: var(--ink); font-weight: 600; }
.side-list span { color: var(--tx-2); font-size: 15.5px; }
.signup { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "head form" "info form"; grid-template-rows: auto 1fr; gap: 0 clamp(28px, 5vw, 64px); align-items: start; }
.signup .side-head { grid-area: head; } .signup .side-info { grid-area: info; } .signup > .form-card { grid-area: form; }
@media (max-width: 920px) { .signup { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "info"; grid-template-rows: auto; gap: 24px; } .signup .side-list { margin-top: 8px !important; } }

/* ---------- Công cụ tính ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool .out { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.tool .out h3 { margin-bottom: 4px; }
.kv { list-style: none; padding: 0; margin: 12px 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed #d6ded9; font-size: 15.5px; }
.kv li b { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); white-space: nowrap; }
.kv li.hi { font-size: 18px; border-bottom: 0; padding-top: 14px; }
.kv li.hi b { color: var(--pri-btn); font-size: 22px; }
.kv li.sub { padding-left: 14px; color: var(--tx-2); font-size: 14.5px; }
/* nút chọn (máy tính giá, công cụ): mỗi lựa chọn một khối nền riêng như .period (chủ yêu cầu 17/10/2026) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--pri-d);
  background: linear-gradient(180deg, #f6fcf8, #e9f7ef); border: 1px solid #cfead9; box-shadow: inset 0 1px 0 #fff;
  transition: background .2s, border-color .2s, color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .seg label:hover span { border-color: #86d3a3; background: linear-gradient(180deg, #ecf9f1, #dcf3e5); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(15, 81, 50, .45); } }
.seg input:checked + span { background: linear-gradient(135deg, #16a34a, #15803d 55%, #166534); border-color: transparent; color: #fff; transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(21, 128, 61, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.seg input:focus-visible + span { outline: 3px solid #4ade80; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .seg span { transition: none; } }

/* ---------- Footer ---------- */
.foot { background: var(--pri-dd); color: #b9dcc7; padding: 64px 0 28px; margin-top: 0; font-size: 15px; }
.foot a { color: #e3f7ea; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1024px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-co { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 8px 0; }
.foot-co .logo { color: #fff; margin-bottom: 14px; }
.foot-co .logo b { color: #86efac; }
.foot-co p { margin: 6px 0; line-height: 1.6; }
/* link gọi / Zalo / email ở chân trang: vùng chạm ≥ 44 px trên màn cảm ứng (12A) – không đổi giao diện khi dùng chuột */
@media (pointer: coarse) { .foot-co .ct a { display: inline-block; padding: 10px 0; } }
/* vùng chạm ≥ 44 px cho link chữ trên màn cảm ứng (12A, soát đợt 10): đường dẫn đầu trang (lề âm – không xô bố cục), mục lục bài,
   cột link chân trang, logo. Máy dùng chuột giữ nguyên. */
@media (pointer: coarse) {
  .crumb a { display: inline-block; padding: 13px 0; margin: -13px 0; }
  .toc a { padding-top: 12px; padding-bottom: 12px; }
  .foot li { margin: 0; }
  .foot li a { display: inline-block; padding: 10px 0; }
  a.logo { min-height: 44px; }
}
.foot-bot { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; }

/* Nút gọi nổi trên điện thoại */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; gap: 10px; flex-direction: column; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-btn); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 81, 50, .6); }
.fab a.zalo { background: #0068ff; font-weight: 800; font-size: 13px; text-decoration: none; }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .fab { display: flex; } }
/* điện thoại: 2 nút nổi (Zalo + gọi, 4A) chiếm góc phải dưới – dòng bản quyền / giờ hỗ trợ cuối trang chừa chỗ, không bị che */
@media (max-width: 760px) { .foot-bot { padding-right: 72px; } }
/* nút gọi / Zalo nổi chỉ hiện sau khi cuộn qua phần đầu trang (site.js thêm body.fab-on) – không che nút chính ở đầu trang */
.fab { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
body.fab-on .fab { opacity: 1; transform: none; pointer-events: auto; }

/* Thanh "trust" */
.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; color: var(--tx-2); font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--pri-btn); }

/* Ba ô phân luồng */
.paths a.card { display: flex; flex-direction: column; }
/* 2 cột (iPad): thẻ lẻ cuối trải hết hàng, không đứng một mình */
@media (min-width: 641px) and (max-width: 1024px) { .paths > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.paths a.card .link-arrow { margin-top: auto; padding-top: 12px; }

/* Số bước dọc trong hướng dẫn */
.howto { counter-reset: hs; list-style: none; padding: 0; }
.howto > li { counter-increment: hs; position: relative; padding-left: 52px; margin: 0 0 22px; }
.howto > li::before { content: counter(hs); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--pri-l); color: var(--pri-d); font-weight: 800; display: grid; place-items: center; }
/* tiêu đề bước: chỉ thẻ <b class="t"> ở đầu bước (b:first-child bắt cả chữ đậm giữa câu khi bước mở đầu bằng chữ thường → tách dòng) */
.howto > li > b.t { display: block; color: var(--ink); }

.e404 { text-align: center; padding: 90px 0; }
.e404 .big { font-size: clamp(80px, 14vw, 140px); font-weight: 800; color: var(--pri-l); line-height: 1; letter-spacing: -.04em; -webkit-text-stroke: 2px var(--pri); }

/* giảm chuyển động: tắt mọi chuyển tiếp / hoạt ảnh, kể cả nút ĐĂNG KÝ (12A ý 4, 19/10/2026: nút giữ viền sáng đậm đứng yên – luật ở phần nút). */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }
@media print { .head, .foot, .fab, .toc, .cta-band, .cta-inline { display: none !important; } body { font-size: 12pt; } }
/* ---------- Tốc độ (việc 3, 18/10/2026): chỉ dựng phần đang xem ----------
   Máy yếu: nút thắt là CPU dựng trang (lần layout đầu 1,5–5,5 s ở CPU 4×), không phải mạng. Phần dưới màn hình đầu để trình duyệt bỏ qua
   tới khi cuộn gần tới (content-visibility:auto); chiều cao tạm 800 px, sổ tay theo ước tính của build.py (--cis / --cisd).
   Không áp cho khối đầu trang (thường có ảnh / chữ LCP) và thân sổ tay (.hd-body luôn trong màn hình, đã chia nhỏ thành .hd-blk). */
@supports (content-visibility: auto) {
  main > section:not(:first-child):not(.hd-body), main > article > section:not(:first-of-type), footer.foot { content-visibility: auto; contain-intrinsic-block-size: auto 800px; }
  .hd-blk { content-visibility: auto; contain-intrinsic-block-size: auto var(--cis, 1200px); }
  @media (min-width: 961px) { .hd-blk { contain-intrinsic-block-size: auto var(--cisd, 900px); } }
  /* khối cuối mỗi phần luôn dựng (19/10/2026): nhảy tới H2 của phần sau (#nhan-vien, #quan-tri, #su-co) thì khối này nằm ngay trên tiêu đề;
     nếu nó mới được dựng sau cú nhảy và đổi chiều cao, trình duyệt neo cuộn vào chính nó → tiêu đề lệch hàng trăm px trên điện thoại */
  .hd-sec > .hd-blk:last-child { content-visibility: visible; }
}
/* .hd-blk là khung bố cục riêng → lề dưới phần tử cuối (và phần tử cuối lồng bên trong: li cuối của danh sách, ul trong nav.hd-chips,
   details cuối của .faq) không gộp với lề trên tiêu đề kế tiếp: bỏ các lề đó cho khoảng cách y như cũ.
   Luật :has() để riêng – trình duyệt chưa có :has() bỏ cả luật chứa nó. */
.hd-blk > :last-child, .hd-blk > :last-child > :last-child, .hd-blk > :last-child > :last-child > :last-child { margin-bottom: 0; }
.hd-sec > :has(+ .hd-blk) { margin-bottom: 0; }
@media print { main > section, main > article > section, footer.foot, .hd-blk { content-visibility: visible !important; } }

@media (max-width: 560px) { .phead .btns .btn, .hero .btns .btn, .sec .btns .btn-lg { flex: 1 1 100%; } }
@media (max-width: 560px) { .tbl th, .tbl td { padding: 10px 10px; } .calc .tbl { font-size: 13.5px; } .calc .tbl td:first-child { min-width: 110px; } }
/* bảng vừa khung ở iPad / điện thoại (soát đợt 10): tiêu đề cột số được xuống dòng (ô số vẫn một dòng), đệm nhỏ lại;
   bảng còn rộng hơn khung (bảng giá, lộ trình hết hạn ở điện thoại) thì cuộn ngang, có bóng mờ ở mép */
@media (max-width: 900px) { .tbl th.num { white-space: normal; } .tbl th, .tbl td { padding: 10px 8px; } table.tbl { font-size: 14px; } }
@media (max-width: 420px) { .tbl th, .tbl td { padding: 8px 6px; } table.tbl { font-size: 13.5px; } .tbl td:first-child { min-width: 110px; }
  .prose table { font-size: 14px; } .prose th, .prose td { padding: 8px 6px; } }
@media (max-width: 420px) { .ws-box .sfx { padding: 0 9px; font-size: 14px; } .ws-box .inp { padding-left: 10px; padding-right: 6px; } }

/* quên địa chỉ workspace (trang /dang-nhap/) */
.find-box { margin-top: 20px; background: var(--blue-l); border: 1px solid #cfe0f8; border-radius: 12px; padding: 14px 16px; color: #1e3a66; }
.find-box summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.find-box summary::-webkit-details-marker { display: none; }
.find-box summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--tx-2); }
.find-box[open] summary::after { content: '–'; }
.find-box .fld { margin-bottom: 12px; }
.find-box .inp { background: #fff; }

/* bảng giá: ô Enterprise = liên hệ admin nhận giá ưu đãi (chủ yêu cầu 17/10/2026) */
.ent-deal { font-weight: 800; color: var(--pri-btn); text-decoration: none; background: var(--pri-l); border: 1px solid #bfe6cd; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ent-deal:hover { background: var(--pri-btn); color: #fff; }

/* ---------- Menu chính: thêm mục "Giới thiệu" (chủ yêu cầu 17/10/2026) – không bao giờ xuống dòng;
   1081–1279 px thu gọn đệm, cỡ chữ để đủ 6 mục + Đăng nhập + ĐĂNG KÝ trên một dòng ---------- */
.nav > a, .nav-dd > button, .head-cta .login, .head-cta .btn { white-space: nowrap; }
.dd.dd-end { left: auto; right: -12px; }
@media (min-width: 1081px) and (max-width: 1279px) {
  .head-in { gap: 10px; }
  .logo { font-size: 19px; gap: 8px; }
  .nav { margin-left: 0; gap: 0; }
  .nav > a, .nav-dd > button { padding: 8px 8px; font-size: 14.5px; gap: 3px; }
  .head-cta { gap: 6px; }
  .head-cta .login { padding: 8px 6px; font-size: 15px; }
  .head-cta .btn-sm { padding: 6px 12px; }
}

/* ---------- Sổ tay /huong-dan-su-dung/ (.hd-*) ---------- */
.hd-hero { padding-bottom: clamp(28px, 4vw, 48px); }
.hd-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hd-hero h1 { margin-bottom: 14px; }
.hd-hero .eyebrow { margin-bottom: 12px; }
.hd-hero-art { position: relative; min-height: 380px; }
.hd-hero-art .device-browser { position: absolute; right: 0; top: 0; width: 92%; max-width: 560px; }
.hd-hero-art .device-browser img { aspect-ratio: 1600 / 1000; object-fit: cover; object-position: top left; }
.hd-hero-art .device-phone { position: absolute; left: 0; bottom: 0; width: 30%; max-width: 168px; z-index: 2; border-radius: 28px; padding: 7px; }
.hd-hero-art .device-phone .scr { border-radius: 22px; padding-top: 16px; }
.hd-hero-art .device-phone::before { top: 12px; height: 5px; }
@media (max-width: 960px) { .hd-hero-in { grid-template-columns: minmax(0, 1fr); } .hd-hero-art { display: none; } }

.hd-wrap { max-width: 1320px; }
.hd-doc { grid-template-columns: 270px minmax(0, 1fr); gap: 44px; }
.hd-main { min-width: 0; max-width: 920px; font-size: 16.5px; line-height: 1.72; overflow-wrap: anywhere; }
.hd-main p, .hd-main li { color: var(--tx); }
.hd-main ul { margin: 0 0 1.1em; }
.hd-main li { margin: .3em 0; }
.hd-main code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
/* html đã có scroll-padding-top = đầu trang + 12 px; cộng thêm ít để tiêu đề không sát mép */
.hd-main h2, .hd-main h3, .hd-main h4, .hd-video { scroll-margin-top: 8px; }
.hd-sec { margin-top: 64px; }
.hd-main h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(25px, 2.8vw, 32px); padding-bottom: 12px; border-bottom: 3px solid var(--pri-l); margin: 0 0 14px; }
.hd-num { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800;
  background: linear-gradient(140deg, #22c55e, #15803d 60%, #166534); box-shadow: 0 10px 20px -10px rgba(21, 128, 61, .7); }
.hd-lead { font-size: 17.5px; color: var(--tx-2); margin-bottom: 22px; }
.hd-main h3 { font-size: clamp(21px, 2.2vw, 25px); margin: 2.2em 0 .6em; padding-top: .2em; display: flex; gap: 10px; align-items: baseline; }
.hd-main h4 { font-size: 19px; margin: 2em 0 .55em; display: flex; gap: 9px; align-items: baseline; }
.hd-n { flex: none; font-variant-numeric: tabular-nums; color: var(--pri-btn); font-weight: 800; }
.hd-main h4 .hd-n { font-size: 16px; background: var(--pri-ll); border: 1px solid #cdebd8; border-radius: 8px; padding: 1px 7px; }
.hd-sub { font-weight: 700; color: var(--ink); margin: 1.4em 0 .5em; }
.hd-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.hd-cols-t { font-weight: 700; color: var(--ink); margin: .4em 0 .3em; }
@media (max-width: 640px) { .hd-cols { grid-template-columns: minmax(0, 1fr); } }

/* đường đi menu */
.hd-path { background: var(--pri-ll); border: 1px solid #cdebd8; border-radius: 12px; padding: 9px 14px; margin: 0 0 18px; font-size: 15px; }
.hd-path p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--pri-d); }
.hd-path p + p { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #cdebd8; }
.hd-path b { color: var(--pri-d); }
.hd-path i { font-style: normal; color: #7fb595; font-weight: 700; }
.hd-path-l { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--pri-btn); border-radius: 6px; padding: 2px 7px; margin-right: 4px; }
.hd-path-m .hd-path-l { background: #4b7f61; }

/* bước 1-2-3 */
.hd-steps { counter-reset: hs; list-style: none; padding: 0; margin: 0 0 1.2em; }
.hd-steps > li { counter-increment: hs; position: relative; padding-left: 46px; margin: 0 0 12px; min-height: 32px; }
.hd-steps > li::before { content: counter(hs); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--pri-btn); color: #fff;
  font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 6px 12px -6px rgba(21, 128, 61, .7); }

/* hộp lưu ý */
.hd-call { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 13px 16px; margin: 0 0 16px; font-size: 15.5px; line-height: 1.62; border: 1px solid; }
.hd-call-i { font-size: 20px; line-height: 1.3; flex: none; }
.hd-call-t { color: inherit; }
.hd-call > div { min-width: 0; }
.hd-call.tip { background: #f0fbf4; border-color: #bfe5cc; color: #134e33; }
.hd-call.note { background: var(--blue-l); border-color: #cfe0f8; color: #1e3a66; }
.hd-call.warn { background: var(--amber-l); border-color: #f6dfae; color: #6b4708; }
.hd-call.ok { background: #ecfdf3; border-color: #a6e9c1; color: #14532d; }
.hd-call a { color: inherit; font-weight: 600; }

/* ảnh chụp: máy tính rộng theo cột (hộp thoại giới hạn ở cỡ tự nhiên qua --w), điện thoại ≤ 300 px */
.hd-shot { margin: 8px auto 22px; max-width: 100%; }
.hd-shot picture, .hd-shot img { display: block; width: 100%; height: auto; }
.hd-shot img { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh); background: #fff; cursor: zoom-in; }
.hd-shot.pc { max-width: min(100%, var(--w, 100%)); }
.hd-shot.mb { max-width: 300px; }
.hd-shot.mb img { border-radius: 22px; border: 6px solid #0f172a; box-shadow: var(--sh-lg); }
.hd-shot figcaption { font-size: 14px; color: var(--tx-3); margin-top: 10px; text-align: center; line-height: 1.5; }
.hd-pair { display: grid; gap: 24px; align-items: start; margin: 8px 0 22px; }
.hd-pair .hd-shot { margin: 0 auto; }
.hd-pair.pc-mb { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
.hd-pair.mb-pc { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.hd-pair.mb-mb { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
.hd-pair.pc-pc { grid-template-columns: minmax(0, 1fr); }
.hd-pair.pc-tg { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 760px) {
  .hd-pair.pc-mb, .hd-pair.mb-pc, .hd-pair.pc-tg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .hd-pair.mb-mb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .hd-pair.mb-mb .hd-shot.mb img { border-width: 4px; border-radius: 16px; } }
@media (max-width: 359px) { .hd-pair.mb-mb { grid-template-columns: minmax(0, 1fr); } }

/* dải "Trong mục này" dưới H3 */
.hd-chips ul { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hd-chips a { display: inline-flex; gap: 6px; align-items: baseline; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--pri-d); background: #fff; border: 1px solid #cfead9;
  border-radius: 999px; padding: 5px 12px; transition: background .15s, border-color .15s; }
.hd-chips a b { color: var(--pri-btn); font-variant-numeric: tabular-nums; font-size: 13px; }
.hd-chips a:hover { background: var(--pri-ll); border-color: #86d3a3; }

/* Telegram minh hoạ */
.hd-tg { background: #e6ebee; border-radius: 18px; padding: 0 0 12px; overflow: hidden; border: 1px solid #d5dde2; font-size: 14.5px; line-height: 1.5; }
.hd-tg-h { background: #517da2; color: #fff; font-weight: 700; padding: 10px 16px; margin-bottom: 10px; font-size: 14px; }
.hd-tg-m { background: #fff; margin: 8px 14px 0; padding: 9px 12px; border-radius: 4px 14px 14px 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); color: #1f2a33; }

/* nút xem đoạn video */
.hd-watch-row { margin: -2px 0 16px; }
.hd-watch { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--pri-d); background: #fff; border: 1px solid #bfe5cc;
  border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; text-align: left; }
.hd-watch > span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--pri-btn); color: #fff; display: grid; place-items: center; font-size: 11px; padding-left: 2px; }
.hd-watch b { font-variant-numeric: tabular-nums; }
.hd-watch:hover { background: var(--pri-ll); border-color: #86d3a3; }

/* mục lục: dính trái trên máy tính, thanh gập dính dưới đầu trang trên điện thoại */
.hd-toc { top: calc(var(--head-h) + 16px); max-height: calc(100vh - var(--head-h) - 32px); font-size: 14.5px; }
.hd-toc details > summary { display: none; }
.hd-toc ol { border-left: 0; }
.hd-toc li { margin: 0; }
.hd-toc a { display: flex; gap: 8px; padding: 6px 10px; border-left: 0; border-radius: 10px; margin: 0; color: var(--tx-2); }
.hd-toc a:hover { background: var(--pri-ll); color: var(--pri-h); }
.hd-toc .hd-tn { flex: none; min-width: 26px; font-variant-numeric: tabular-nums; color: var(--tx-3); font-weight: 700; }
.hd-toc li.l2 { margin-top: 6px; }
.hd-toc li.l2 > a { font-weight: 700; color: var(--ink); }
.hd-toc li.l2 .hd-tn { color: var(--pri-btn); }
.hd-toc li.l3 > a { padding-left: 22px; font-size: 14px; }
.hd-toc a[aria-current="true"] { background: var(--pri-l); color: var(--pri-h); box-shadow: inset 3px 0 0 var(--pri-btn); }
/* màn cảm ứng: mục lục sổ tay cao ≥ 44 px như .toc a (luật .hd-toc a ở trên đè luật chung trong khối pointer: coarse – soát đợt 10) */
@media (pointer: coarse) { .hd-toc a { padding-top: 12px; padding-bottom: 12px; min-height: 44px; } }
@media (min-width: 961px) { .hd-toc details:not([open]) > ol { display: block; } }
@media (max-width: 960px) {
  .hd-doc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hd-toc { position: sticky; top: var(--head-h); z-index: 20; max-height: none; overflow: visible; background: none; border-radius: 0; padding: 0; margin: 0 calc(-1 * var(--gut)); }
  .hd-toc details { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -14px rgba(16, 24, 40, .35); }
  .hd-toc details > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; padding: 11px var(--gut); font-weight: 700; color: var(--ink); min-height: 46px; }
  .hd-toc details > summary::-webkit-details-marker { display: none; }
  .hd-toc details > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--tx-3); border-bottom: 2px solid var(--tx-3); transform: rotate(45deg); margin: -4px 2px 0 auto; }
  .hd-toc details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .hd-toc details > ol { max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 0 calc(var(--gut) - 8px) 12px; }
  .hd-cur { min-width: 0; font-weight: 600; color: var(--pri-btn); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hd-main h2, .hd-main h3, .hd-main h4, .hd-video { scroll-margin-top: 56px; }   /* + thanh mục lục dính */
}
@media (min-width: 961px) { .hd-cur { display: none; } }

/* video */
.hd-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b3f27; box-shadow: var(--sh-lg); margin: 4px 0 16px; }
.hd-vid video, .hd-vid iframe, .hd-vid > img, .hd-vid > picture, .hd-vid > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #0b3f27; }
.hd-yt { cursor: pointer; }
.hd-yt > img, .hd-yt > picture > img { object-fit: cover; transition: transform .4s, filter .3s; }
.hd-yt:hover > img, .hd-yt:focus-visible > img, .hd-yt:hover > picture > img, .hd-yt:focus-visible > picture > img { transform: scale(1.02); filter: brightness(.92); }
/* bấm phát (việc 30): giữ ảnh bìa + vòng quay trong lúc YouTube tải; khung trình phát hiện khi đã tải xong (không còn ~1,8 s màn hình trống) */
.hd-yt iframe { opacity: 0; transition: opacity .25s; }
.hd-yt.ready iframe { opacity: 1; }
.hd-vposter { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; background: #0b3f27; cursor: pointer; }
.hd-vposter picture, .hd-vposter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.hd-vposter:hover img, .hd-vposter:focus-visible img { filter: brightness(.92); }
.hd-vposter:hover .hd-play { transform: translate(-50%, -50%) scale(1.08); }
/* ảnh bìa có chữ ở nửa trái → nút phát đặt trên phần ảnh app (như .hd-thumb trang chủ) */
.hd-vposter .hd-play, .hd-yt:not(.no-poster) > .hd-play { left: 74%; top: 56%; }
.hd-mp4.playing .hd-vposter { display: none; }
.hd-yt.loading .hd-play, .hd-mp4.loading .hd-play { opacity: 0; }
.hd-yt.loading::after, .hd-mp4.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; z-index: 2; pointer-events: none;
  border: 5px solid rgba(255, 255, 255, .35); border-top-color: #fff; box-shadow: 0 0 0 999px rgba(11, 63, 39, .25); animation: hdSpin .8s linear infinite; }
@keyframes hdSpin { to { transform: rotate(360deg); } }
.hd-mp4.loading::after, .hd-yt.loading::after { left: 74%; top: 56%; }
.hd-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); transition: transform .2s; line-height: 0; }
.hd-yt:hover .hd-play { transform: translate(-50%, -50%) scale(1.08); }
.hd-vid-wait { background: linear-gradient(135deg, #15803d, #0f5132 60%, #0b3f27); background-size: cover; background-position: center; display: grid; place-items: center; text-align: center; color: #e3f7ea; }
.hd-vid-wait > div { position: relative; padding: 20px 22px; background: rgba(11, 63, 39, .72); border-radius: 16px; max-width: 460px; margin: 12px; }
.hd-vid-wait .hd-play { position: static; transform: none; display: inline-block; margin-bottom: 8px; }
.hd-vid-wait p { margin: 0; color: #e3f7ea; font-size: 15.5px; }
.hd-chs-t { font-weight: 700; color: var(--ink); margin: 0 0 8px; font-size: 15px; }
.hd-chs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.hd-chs li { margin: 0; }
.hd-ch { width: 100%; height: 100%; display: flex; gap: 10px; align-items: baseline; text-align: left; font: inherit; font-size: 14.5px; line-height: 1.4; color: var(--tx); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.hd-ch b { flex: none; min-width: 40px; color: var(--pri-btn); font-variant-numeric: tabular-nums; }
.hd-ch:hover:not([disabled]), .hd-ch.on { border-color: #86d3a3; background: var(--pri-ll); }
.hd-ch.on { box-shadow: inset 3px 0 0 var(--pri-btn); }
.hd-ch[disabled] { cursor: default; color: var(--tx-2); opacity: 1; }
.hd-vid-note { margin: 0; }
.hd-vid-old { margin: 10px 0 0; padding: 9px 13px; border-radius: 12px; background: var(--amber-l); border: 1px solid #f6dfae; color: #6b4708; }
@media (max-width: 640px) { .hd-chs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .hd-ch { font-size: 13.5px; padding: 8px 9px; gap: 2px; flex-direction: column; } .hd-ch b { min-width: 0; } .hd-vid-wait p { font-size: 14px; } .hd-vid-wait .hd-play svg { width: 44px; height: 44px; } }

.hd-faq { max-width: none; }

/* ảnh phóng to */
.hd-lb { position: fixed; inset: 0; z-index: 90; background: rgba(9, 20, 14, .86); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 60px 12px 24px; cursor: zoom-out; }
.hd-lb[hidden] { display: none; }
.hd-lb-in { max-width: min(1600px, 100%); margin: auto; }
.hd-lb-in img { width: auto; max-width: 100%; height: auto; border-radius: 10px; background: #fff; }
.hd-lb-x { position: fixed; top: 10px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
body.hd-lb-open { overflow: hidden; }
/* điện thoại: ảnh máy tính mở rộng 1000 px, kéo ngang (justify-content start để kéo được tới mép trái) */
.hd-lb.wide { justify-content: flex-start; align-items: flex-start; padding: 64px 0 24px; }
.hd-lb.wide .hd-lb-in { max-width: none; margin: 0; padding: 0 12px; }
.hd-lb.wide .hd-lb-in img { width: 1000px; max-width: none; }
.hd-lb.wide::after { content: "Kéo ngang để xem hết ảnh · chạm để đóng"; position: fixed; left: 12px; top: 18px; color: #e7f8ee; font-size: 13px; font-weight: 600; pointer-events: none; }

@media (max-width: 560px) {
  .hd-main { font-size: 16px; }
  .hd-sec { margin-top: 48px; }
  .hd-num { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
  .hd-steps > li { padding-left: 40px; }
  .hd-steps > li::before { width: 28px; height: 28px; font-size: 14px; }
  .hd-call { padding: 12px 13px; gap: 9px; font-size: 15px; }
  .hd-shot.mb { max-width: 260px; }
  .hd-path { font-size: 14.5px; padding: 8px 12px; }
}
@media print {
  .hd-video, .hd-toc, .hd-watch-row, .hd-lb, .hd-hero-art, .hd-chips { display: none !important; }
  .hd-doc { display: block; }
  .hd-sec { break-before: page; }
  .hd-shot { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .hd-yt > img, .hd-yt > picture > img, .hd-play { transition: none; } }

/* ---------- Trang chủ: giới thiệu sổ tay + video ---------- */
.hd-promo h2 { margin-bottom: 14px; }
.hd-promo p { color: #c6ead5; font-size: 17px; }
.hd-promo .checks li { color: #e3f7ea; }
.hd-promo .btns { margin-top: 24px; }
.hd-thumb { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14); background: #0b3f27; aspect-ratio: 16 / 9; }
.hd-thumb picture, .hd-thumb img { display: block; width: 100%; height: 100%; }
.hd-thumb img { object-fit: cover; object-position: top; transition: transform .4s, filter .3s; }
.hd-thumb .hd-play { transition: transform .25s; }
.hd-thumb:hover img, .hd-thumb:focus-visible img { transform: scale(1.03); filter: brightness(.9); }
.hd-thumb:hover .hd-play, .hd-thumb:focus-visible .hd-play { transform: translate(-50%, -50%) scale(1.1); }
.hd-thumb.no-poster img { filter: brightness(.62) saturate(.9); }
/* ảnh bìa có dải chữ "Chấm công · Xếp ca · Tính lương" ở nửa trái → nút phát đặt trên phần ảnh chụp app (nửa phải), không đè chữ */
.hd-thumb:not(.no-poster) .hd-play { left: 74%; top: 56%; }
.hd-dur { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .72); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.hd-thumb-cap { position: absolute; left: 14px; bottom: 12px; right: 90px; color: #fff; font-weight: 800; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
@media (max-width: 560px) { .hd-promo .btns .btn { flex: 1 1 100%; } }

/* trang /huong-dan/: thẻ nổi trỏ sổ tay đầy đủ */
.hd-feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; background: linear-gradient(135deg, var(--pri-btn), var(--pri-d)); color: #e3f7ea;
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); margin-bottom: 28px; }
.hd-feature h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.hd-feature p { margin: 0; }
@media (max-width: 760px) { .hd-feature { grid-template-columns: minmax(0, 1fr); } .hd-feature .btns .btn { flex: 1 1 100%; } }


.hd-toc-l { flex: none; white-space: nowrap; }
.hd-thumb.no-dur .hd-thumb-cap { right: 14px; }

/* trang giải pháp theo ngành: ví dụ bố trí ca một tuần (solution.html, trường "roster") */
.rs-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 18px; }
.rs-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.rs-item b { display: block; color: var(--ink); font-size: 15px; }
.rs-item span:not(.rs) { display: block; color: var(--tx-3); font-size: 14px; line-height: 1.4; }
.rs { display: inline-grid; place-items: center; flex: none; min-width: 38px; height: 30px; padding: 0 6px; border-radius: 8px; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.rs.k0 { background: var(--pri-l); color: var(--pri-d); }
.rs.k1 { background: var(--blue-l); color: var(--blue); }
.rs.k2 { background: var(--amber-l); color: var(--amber); }
.rs.k3 { background: #f1ebfe; color: #6d28d9; }
.rs.off { background: var(--line-2); color: var(--tx-3); font-weight: 700; }
table.tbl.rs-tbl { min-width: 0; table-layout: fixed; }
.rs-tbl th, .rs-tbl td { text-align: center; vertical-align: middle; padding: 10px 4px; }
.rs-tbl thead th:first-child, .rs-tbl tbody th { text-align: left; width: 34%; padding-left: 16px; }
.rs-tbl tbody th b { display: block; color: var(--ink); font-size: 15px; }
.rs-tbl tbody th span { display: block; color: var(--tx-3); font-size: 13.5px; font-weight: 400; line-height: 1.35; }
.rs-tbl tbody tr:last-child th { border-bottom: 0; }
.rs-note { margin: 16px 0 0; color: var(--tx-2); font-size: 15.5px; }
@media (max-width: 560px) {
  .rs-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rs-item { gap: 8px; padding: 8px 10px; }
  .rs-item b { font-size: 14px; }
  .rs-item span:not(.rs) { font-size: 13px; }
  .rs-item .rs { min-width: 32px; height: 26px; font-size: 12px; }
  .rs-tbl th, .rs-tbl td { padding: 8px 1px; }
  .rs-tbl thead th:first-child, .rs-tbl tbody th { width: 30%; padding-left: 10px; }
  .rs-tbl tbody th b { font-size: 13.5px; }
  .rs-tbl tbody th span { font-size: 12px; }
  .rs-tbl thead th { font-size: 13px; }
  .rs-tbl .rs { min-width: 0; width: calc(100% - 2px); max-width: 34px; height: 26px; padding: 0; font-size: 11.5px; border-radius: 6px; }
}
/* ---- 18 ngành (30/10/2026): menu Giải pháp 4 cột theo lĩnh vực, menu điện thoại nhóm 2 cột, trang chủ "Theo ngành", /giai-phap/ ---- */
.dd.dd-mega { min-width: 0; width: 740px; padding: 14px 12px 10px; }
@media (min-width: 1280px) { .dd.dd-mega { width: 820px; } }   /* 1081–1279 px: 740 px để mép phải không ra ngoài màn */
.dd-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 6px; }
.dd-h { margin: 0 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-3); line-height: 1.35; min-height: 2.7em; }
.dd-mega .dd-cols a { padding: 7px 12px; }
.dd-mega .dd-cols a b { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.dd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 6px; }
.dd-foot a span { display: inline; margin-left: 8px; }
.dd-foot a b { display: inline; }
.dd .dd-foot .dd-all { border-top: 0; margin-top: 0; padding-top: 10px; white-space: nowrap; }
.mnav-h { display: none; }
@media (max-width: 1080px) {
  .mnav-h { display: block; margin: 8px 4px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-3); }
  .mnav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .mnav-grid a { line-height: 1.4; }
}

/* trang chủ, mục "Theo ngành": thẻ ngang (icon trái, tên + mô tả ngắn) */
a.card.ind-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.ind-card .ic { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 0; }
.ind-card .ic svg { width: 24px; height: 24px; }
.ind-card h3 { font-size: 18px; margin: 2px 0 4px; }
.ind-card p { font-size: 14.5px; line-height: 1.45; margin: 0; }
.ind-all { margin: 28px 0 0; }
/* điện thoại: 2 cột, mỗi thẻ một hàng icon + tên ngành (18 thẻ, mục ≤ 1300 px – tools/check_nganh.py) */
@media (max-width: 640px) {
  section[aria-labelledby="h-ind"] .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  a.card.ind-card { align-items: center; gap: 10px; padding: 12px; min-height: 64px; }
  .ind-card .ic { width: 38px; height: 38px; border-radius: 12px; }
  .ind-card .ic svg { width: 20px; height: 20px; }
  .ind-card h3 { font-size: 15px; margin: 0; line-height: 1.35; }
  .ind-card p { display: none; }
  .ind-all { margin-top: 20px; }
}

/* cuối bài blog: link sang trang giải pháp của ngành có bài này (trường "blog" của trang giải pháp) */
.post-sols { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 24px 0 0; font-size: 15px; }
.post-sols span { color: var(--tx-2); font-weight: 600; }
.post-sols a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  text-decoration: none; color: var(--ink); font-weight: 600; }
.post-sols a:hover { border-color: var(--pri-btn); color: var(--pri-h); }

/* /giai-phap/: thanh chuyển nhanh tới lĩnh vực, tiêu đề nhóm */
.gp-jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.gp-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.gp-jump a:hover { border-color: var(--pri-btn); color: var(--pri-h); }
.gp-jump a span { font-size: 13px; font-weight: 700; color: var(--pri-h); background: var(--pri-l); border-radius: 999px; padding: 1px 8px; }
.gp-h { margin: 0 0 clamp(20px, 3vw, 32px); }
@media (max-width: 640px) {
  .gp-grp .checks { display: none; }      /* điện thoại: thẻ ngành chỉ còn mô tả (tối đa 4 dòng) – trang 18 ngành không quá dài */
  .gp-grp .card .muted { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  .gp-jump a { font-size: 14.5px; padding: 8px 14px; }
}

/* ---- Thư viện mẫu /mau/: thẻ tải về (nút Tải về luôn nằm đáy thẻ) ---- */
.mau-card { display: flex; flex-direction: column; }
.mau-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mau-top .ic { margin-bottom: 16px; }
.mau-card .checks { margin: 4px 0 18px; }
.mau-card .checks li { margin: 6px 0; }
.mau-dl { margin-top: auto; align-self: flex-start; }
.mau-dl svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) { .mau-dl { align-self: stretch; min-height: 44px; font-size: 15.5px; } }   /* nút chính của thẻ: vùng chạm ≥ 44 px trên điện thoại */

/* bản lưu điều khoản (việc 5A): băng đầu trang /phap-ly/ban-luu/<ver>/<trang>/ */
.arch-bar { background: var(--amber-l); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 15px; }
.arch-bar p { margin: 0; }
.arch-bar p + p { margin-top: 4px; }
.arch-bar a { display: inline-block; padding: 10px 0; margin: -10px 0; font-weight: 700; }
