/* =====================================================================
   HERO MỚI — mỗi trang một kiểu (04/12/2026, brief tai-lieu/hero-moi/BRIEF-hero-moi.md)
   Nạp sau style.css + trang-con.css. Lớp gốc: .page-hero.hm + .hm-<kiểu>. JS: js/hero-moi.js
   Quy ước:
   - Trạng thái mặc định = trạng thái cuối (không JS / prefers-reduced-motion / điện thoại vẫn thấy đủ).
   - Hiệu ứng chỉ chạy một lần khi JS gắn .hm-chay (từ khổ 1101, không giảm chuyển động).
   - Chữ trong hình >= 12px. Số liệu trong hình là ví dụ (.hm-ghi).
   - Không gradient cầu vồng, không 3D (thẻ 2 mặt lật phẳng bằng scaleX).
   ===================================================================== */

.page-hero.hm { padding: 72px 0 76px; }
.page-hero.hm::after { display: none; }
.hm-luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hm-chu > p { max-width: 36rem; }
.hm-chu .ld-hanh-dong, .hm-chu .hero-actions { margin-top: 30px; }
.hm-hinh { position: relative; font-size: 14px; line-height: 1.45; color: var(--brand-navy); min-width: 0; }
.page-hero .hm-hinh p { max-width: none; font-size: inherit; line-height: inherit; }
.hm-ghi { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }
.page-hero p.hm-ghi { font-size: 12px; line-height: 1.4; }
@media (min-width: 1101px) {
  .hm-luoi { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 4.5vw, 96px); }
}

/* Dải ngay dưới hero: phần còn lại của đoạn mở đầu + dòng trạng thái (dời từ hero, không xoá nội dung) */
.hm-duoi { background: var(--soft); border-bottom: 1px solid var(--line); padding: 26px 0; }
.hm-duoi .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.hm-duoi p { margin: 0; max-width: 58rem; font-size: 1rem; line-height: 1.65; color: var(--text, #334155); }
.hm-duoi .ld-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .95rem; color: var(--muted); }
.hm-duoi .ld-meta .badge { font-size: .78rem; }
.hm-duoi .chips, .hm-duoi .legend { margin: 0; }
.hm-duoi .notice { margin: 0; max-width: 64rem; }

/* Nút viền trên nền tối */
.hm-toi .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.hm-toi .btn-outline:hover { color: var(--brand-sky); border-color: var(--brand-sky); }

/* ---------------------------------------------------------------------
   #2 HAVA Sản xuất — hero tối + dòng chảy xưởng nằm ngang
   --------------------------------------------------------------------- */
.page-hero.hm-toi { background: var(--brand-navy); color: rgba(255,255,255,.82); border-bottom: 0; }
.hm-toi .crumb, .hm-toi .crumb a { color: rgba(255,255,255,.62); }
.hm-toi .crumb a:hover { color: var(--brand-sky); }
.page-hero.hm-toi h1 { color: #fff; }
.page-hero.hm-toi h1 .h1-nhan { background-image: linear-gradient(90deg, var(--brand-sky), #fff); }
.page-hero.hm-toi > .container > .hm-chu > p { color: rgba(255,255,255,.8); }
.hm-toi .draft-tag { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

.hmx { position: relative; padding: 26px 24px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); color: #fff; }
.hmx-tieu { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.hmx-tieu b { color: #fff; font-weight: 700; font-size: 14px; }
.hmx-tram { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.hmx-tram::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; background: rgba(255,255,255,.18); }
.hmx-ray { position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky));
  transform-origin: left; }
.hmx-lo { position: absolute; top: 21px; left: 12.5%; width: 14px; height: 14px; margin-left: -7px; border-radius: 4px; background: var(--brand-sky);
  box-shadow: 0 0 0 5px rgba(0,198,255,.18); left: 87.5%; }
.hmx-tram > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 600; }
.hmx-tram > div span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #13265A; border: 1px solid rgba(0,198,255,.45); color: var(--brand-sky); font-size: 20px; }
.hmx-mod { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; margin: 26px 0 0; padding: 0; }
.hmx-mod li { padding: 12px 10px; border-radius: 12px; background: rgba(10,102,255,.22); border: 1px solid rgba(0,198,255,.5); }
.hmx-mod b { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #fff; margin-bottom: 4px; }
.hmx-mod b i { color: var(--brand-sky); font-size: 13px; }
.hmx-mod em { display: block; font-style: normal; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.75); }
.hm-toi .hm-ghi { color: rgba(255,255,255,.55); }
.hm-chay .hmx-ray { animation: hmx-ray 4.2s cubic-bezier(.4,0,.3,1) .3s both; }
.hm-chay .hmx-lo { animation: hmx-lo 4.2s cubic-bezier(.4,0,.3,1) .3s both; }
.hm-chay .hmx-mod li { animation: hmx-sang .6s ease-out var(--tre) both; }
.hm-chay .hmx-tram > div span { animation: hmx-tram .5s ease-out var(--tre) both; }
@keyframes hmx-ray { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hmx-lo { from { left: 12.5%; } to { left: 87.5%; } }
@keyframes hmx-sang { from { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); opacity: .45; } to { background: rgba(10,102,255,.22); border-color: rgba(0,198,255,.5); opacity: 1; } }
@keyframes hmx-tram { from { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.4); } to { border-color: rgba(0,198,255,.45); color: var(--brand-sky); } }

/* ---------------------------------------------------------------------
   #3 HAVA Custom — Trước / Sau có thanh kéo
   --------------------------------------------------------------------- */
.hmc { --cat: 50%; position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule);
  box-shadow: var(--glow); background: #FBF8F1; user-select: none; }
.hmc-lop { position: absolute; inset: 0; }
.hmc-sau { background: #fff; clip-path: inset(0 0 0 var(--cat)); }
.hmc-nhan { position: absolute; top: 14px; z-index: 3; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hmc-nhan-truoc { left: 14px; background: #fff; color: #9A5B00; border: 1px solid #F3D9A6; }
.hmc-nhan-sau { right: 14px; background: var(--brand-blue); color: #fff; }
/* Trước: Excel, giấy, nhóm chat rời rạc */
.hmc-excel { position: absolute; left: 6%; top: 15%; width: 50%; background: #fff; border: 1px solid #D9E2D3; border-radius: 8px; box-shadow: 0 8px 20px -12px rgba(0,0,0,.3); transform: rotate(-2deg); overflow: hidden; }
.hmc-excel-dau { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #1D6F42; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.hmc-excel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hmc-excel td { border: 1px solid #E3E8E0; padding: 4px 6px; white-space: nowrap; }
.hmc-excel td.do { background: #FDECEC; color: #B42318; }
.hmc-giay { position: absolute; left: 10%; bottom: 10%; width: 36%; padding: 12px 14px; background: #FFF3B0; border-radius: 4px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.35);
  transform: rotate(3deg); font-size: 13px; line-height: 1.4; color: #4A3B00; }
.hmc-chat { position: absolute; right: 6%; top: 26%; width: 38%; display: grid; gap: 8px; }
.hmc-chat span { padding: 8px 11px; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid #E5E7EB; font-size: 12px; line-height: 1.4; box-shadow: 0 6px 14px -10px rgba(0,0,0,.3); }
.hmc-chat span b { display: block; font-size: 12px; color: #6B7280; font-weight: 600; }
/* Sau: một hệ thống gọn */
.hmc-app { position: absolute; inset: 56px 5% 7% 53%; display: grid; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 16px 30px -22px rgba(13,27,61,.45); }
.hmc-ten { display: flex; align-items: center; gap: 8px; margin: -14px -16px 4px; padding: 10px 16px; background: var(--brand-navy); color: #fff; font-size: 13px; font-weight: 700; }
.hmc-ten i { color: var(--brand-sky); }
.hmc-tom { position: absolute; left: 5%; top: 56px; bottom: 7%; width: 44%; display: grid; align-content: center; gap: 12px; }
.hmc-tom span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--rule); font-size: 13px; font-weight: 700; }
.hmc-tom i { color: var(--brand-blue); width: 16px; }
.hmc-chinh { padding: 14px 16px; display: grid; align-content: start; gap: 10px; }
.hmc-chinh h4 { margin: 0; font-size: 15px; color: var(--brand-navy); }
.hmc-dong { display: grid; justify-items: start; gap: 5px; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: 13px; }
.hmc-tt { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(10,102,255,.1); color: var(--brand-blue); white-space: nowrap; }
.hmc-tt.ok { background: #ECFDF5; color: #047857; }
/* Vạch chia + tay kéo */
.hmc-vach { position: absolute; top: 0; bottom: 0; left: var(--cat); z-index: 4; width: 2px; margin-left: -1px; background: var(--brand-blue); pointer-events: none; }
.hmc-tay { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--brand-blue); color: #fff; font-size: 15px; box-shadow: 0 8px 20px -6px rgba(10,102,255,.6); }
.hmc-keo { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.hmc-keo:focus-visible + .hmc-vach .hmc-tay { outline: 3px solid var(--brand-sky); outline-offset: 3px; }

/* ---------------------------------------------------------------------
   #4 HAVA Thương mại — bảng đơn hàng theo cột
   --------------------------------------------------------------------- */
.hmk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--rule); box-shadow: var(--glow); }
.hmk-cot { display: flex; flex-direction: column; gap: 10px; min-height: 330px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--rule); }
.hmk-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.hmk-dau span { display: flex; align-items: center; gap: 8px; }
.hmk-dau span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand-blue)); }
.hmk-dau em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--brand-gray); padding: 1px 8px; border-radius: 999px; }
.hmk-the { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule); border-left: 3px solid var(--c, var(--brand-blue)); background: #fff; font-size: 13px; box-shadow: 0 6px 14px -12px rgba(13,27,61,.4); }
.hmk-the b { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.hmk-the b small { font-size: 12px; font-weight: 600; color: var(--muted); }
.hmk-the span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.hmk-cot[data-cot="1"] { --c: #F59E0B; }
.hmk-cot[data-cot="2"] { --c: var(--accent); }
.hmk-the.hmk-di { animation: hmk-di .35s ease-in both; }
.hmk-the.hmk-den { animation: hmk-den .45s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes hmk-di { to { opacity: 0; transform: translateX(40px); } }
@keyframes hmk-den { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   #5 HAVA Dịch vụ — lịch hẹn dạng tuần
   --------------------------------------------------------------------- */
.hml { border-radius: var(--r-lg); border: 1px solid var(--rule); background: #fff; box-shadow: var(--glow); overflow: hidden; }
.hml-dau { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.hml-dau b { font-size: 15px; }
.hml-dau span { color: var(--muted); font-size: 13px; }
.hml-luoi { position: relative; display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); grid-template-rows: 34px repeat(5, 62px); }
.hml-luoi > .hml-o { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.hml-ngay { display: grid; place-items: center; font-size: 13px; font-weight: 700; border-left: 1px solid var(--rule); background: var(--soft); }
.hml-ngay.nay { color: var(--brand-blue); }
.hml-gio { grid-column: 1; display: flex; justify-content: flex-end; padding: 4px 8px 0 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); }
.hml-hen { position: relative; z-index: 1; margin: 4px; padding: 6px 8px; border-radius: 10px; font-size: 12px; line-height: 1.35; background: rgba(10,102,255,.1); border-left: 3px solid var(--brand-blue); color: var(--brand-navy); overflow: hidden; }
.hml-hen b { display: block; font-size: 12px; }
.hml-hen.xanh { background: #ECFDF5; border-color: var(--accent); }
.hml-hen.vang { background: #FFF7E6; border-color: #F59E0B; }
.hml-hen.doi { background: var(--brand-blue); color: #fff; border-color: var(--brand-navy); box-shadow: 0 10px 24px -10px rgba(10,102,255,.7); }
.hml-cu { margin: 4px; border-radius: 10px; border: 1.5px dashed rgba(10,102,255,.45); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.hm-chay .hml-hen { animation: hml-hien .45s ease-out var(--tre) both; }
.hm-chay .hml-cu { animation: hml-cu .3s ease-out 3.4s both; }
@keyframes hml-hien { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes hml-cu { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------
   #6 HAVA Assistant — cửa sổ Trợ lý HAVA dựng lại từ ảnh giao diện (05/12/2026).
   Chữ ở trên, cửa sổ app rộng hết khung bên dưới. Người dùng gõ yêu cầu → gửi → trợ lý trả lời dần (js/hero-moi.js).
   --------------------------------------------------------------------- */
.page-hero.hm-app, .page-hero.hm-ung-dung { padding: 56px 0 64px; background: linear-gradient(160deg, #F1F6FF 0%, #F6FAFF 45%, #EAF8F8 100%); }
.hm-app .hm-luoi, .hm-ung-dung .hm-luoi { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.hm-app .hm-chu h1, .hm-ung-dung .hm-chu h1 { max-width: 20ch; margin-bottom: 0; }
.hm-app .hm-chu > p, .hm-ung-dung .hm-chu > p { margin-top: 18px; }
@media (min-width: 1101px) {
  .hm-app .hm-chu, .hm-ung-dung .hm-chu { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 5vw, 110px); }
  .hm-app .hm-chu .crumb, .hm-ung-dung .hm-chu .crumb { grid-column: 1 / -1; }
  .hm-app .hm-chu h1, .hm-ung-dung .hm-chu h1 { grid-column: 1; grid-row: 2 / 4; max-width: 18ch; }
  .hm-app .hm-chu > p, .hm-ung-dung .hm-chu > p { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .hm-app .hm-chu .ld-hanh-dong, .hm-ung-dung .hm-chu .ld-hanh-dong { grid-column: 2; grid-row: 3; margin-top: 24px; align-self: start; }
}

.hmai { --hmai-vien: #E3E9F2; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--hmai-vien); background: #fff; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(13,27,61,.35), 0 2px 6px rgba(13,27,61,.04); font-size: 14px; color: var(--brand-navy); text-align: left; }
.hmai i { font-style: normal; }
.hmai b { font-weight: 700; }
.hmai small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Thanh trên: tên app, người dùng, trạng thái */
.hmai-dau { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hmai-vien); white-space: nowrap; }
.hmai-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-navy); color: #fff; font-size: 13px; }
.hmai-ten { font-size: 17px; }
.hmai-ten span { color: #F05A28; }
.hmai-nguoi { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border: 1px solid var(--hmai-vien); border-radius: 999px; font-size: 13px; }
.hmai-nguoi i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0EA5E9; color: #fff; font-size: 10px; font-weight: 700; }
.hmai-tt { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--hmai-vien); border-radius: 999px; font-size: 12px; color: #475569; }
.hmai-tt::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10B981; }
.hmai-phai { display: flex; align-items: center; gap: 18px; margin-left: auto; color: #64748B; font-size: 14px; }
.hmai-phai span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* Thanh tab */
.hmai-tab { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--hmai-vien); }
.hmai-tabs { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--hmai-vien); border-radius: 10px; white-space: nowrap; }
.hmai-tabs span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; color: #334155; border-left: 1px solid var(--hmai-vien); }
.hmai-tabs span:first-child { border-left: 0; }
.hmai-tabs span.on { background: #1E88E5; color: #fff; font-weight: 700; }
.hmai-tabs em { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #F05A28; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.hmai-tab-phai { display: flex; gap: 8px; margin-left: auto; }
.hmai-tab-phai i { display: grid; place-items: center; width: 36px; height: 34px; border: 1px solid var(--hmai-vien); border-radius: 9px; color: #475569; font-size: 13px; }

/* Thân: cột dự án + khung trò chuyện */
.hmai-than { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.hmai-ben { display: none; padding: 18px 14px; border-right: 1px solid var(--hmai-vien); }
.hmai-ben-dau { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.hmai-ben-dau em { padding: 1px 7px; border-radius: 999px; background: #F05A28; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.hmai-tim { display: flex; align-items: center; gap: 9px; margin: 12px 0; padding: 8px 12px; border-radius: 10px; background: #F1F4F9; font-size: 12.5px; color: #94A3B8; }
.hmai-loc { display: flex; gap: 4px; font-size: 13px; color: #475569; }
.hmai-loc span { padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.hmai-loc span.on { background: #E6F1FD; color: #1E88E5; font-weight: 600; }
.hmai-tudo { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 10px; border-radius: 12px; background: #E9F2FD; }
.hmai-tudo > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #F05A28; color: #fff; font-size: 12px; }
.hmai-tudo b { font-size: 13.5px; }
.hmai-nhom { display: block; margin: 16px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748B; }
.hmai-ben ul { list-style: none; margin: 0; padding: 0; }
.hmai-ben li { display: flex; align-items: center; gap: 11px; padding: 9px 4px; }
.hmai-ben li > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; }
.hmai-ben li b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmai-ben li small { overflow: hidden; text-overflow: ellipsis; }
.hmai-ben time { align-self: flex-start; margin-top: 3px; font-size: 11px; color: #94A3B8; }

.hmai-chinh { display: flex; flex-direction: column; min-width: 0; background: #FAFCFF; }
.hmai-phien { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--hmai-vien); background: #fff; white-space: nowrap; }
.hmai-phien > i { color: #94A3B8; }
.hmai-chon-phien { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border: 1px solid var(--hmai-vien); border-radius: 9px; font-size: 13.5px; overflow: hidden; }
.hmai-chon-phien i { font-size: 10px; color: #94A3B8; }
.hmai-nut { padding: 5px 11px; border-radius: 999px; background: #E6F1FD; color: #1E88E5; font-size: 12px; font-weight: 700; }
.hmai-nut.on { background: #1E88E5; color: #fff; }
.hmai-cong { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--hmai-vien); border-radius: 9px; font-size: 12px; color: #475569; }

/* Tin nhắn */
.hmai-tin { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; overflow: hidden; }   /* JS khoá chiều cao bằng trạng thái cuối trước khi ẩn tin */
.hmai-m { display: flex; gap: 12px; max-width: 100%; }
.hmai-m[hidden], .hmai-goi[hidden] { display: none; }
.page-hero .hmai-m p { margin: 0; }
.hmai-m.nguoi { align-self: flex-end; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 74%; padding: 12px 16px; border-radius: 14px;
  background: #1E9BE0; color: #fff; font-size: 14px; line-height: 1.55; }
.hmai-tep { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 7px; background: rgba(255,255,255,.18); font-size: 12.5px; }
.hmai-avt { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-top: 2px; border-radius: 50%; background: #1EA7C9; color: #fff; font-size: 12px; }
.hmai-the { padding: 16px 18px; border: 1px solid var(--hmai-vien); border-radius: 14px; background: #fff; box-shadow: 0 4px 14px -8px rgba(13,27,61,.12); }
.hmai-the h4 { margin: 0 0 8px; font-size: 15px; }
.hmai-the ul { margin: 0 0 10px; padding-left: 20px; }
.hmai-the li { margin: 3px 0; }
.page-hero .hmai-the p { margin: 0 0 10px; }
.hmai-lich { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--hmai-vien); border-radius: 12px; background: #F5F9FE; }
.hmai-chuong { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #1E88E5; color: #fff; font-size: 13px; }
.hmai-lich b { flex: 1; font-size: 14px; }
.hmai-sua { padding: 6px 12px; border: 1px solid var(--hmai-vien); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; }
.hmai-dat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: #22C55E; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hmai-dat.cho { background: #E2E8F0; color: #475569; }
.hmai-goi { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0 46px; }
.hmai-goi span { padding: 6px 12px; border: 1px solid #CFE0F3; border-radius: 999px; background: #fff; color: #1E88E5; font-size: 12.5px; }
.hmai-goi span.hmai-chon { transition: background .2s, color .2s; }
.hmai-goi span.bam { background: #1E88E5; color: #fff; }
.hmai-file { display: flex; align-items: center; gap: 12px; }
.hmai-w { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: #2B5BD7; color: #fff; font-size: 15px; font-weight: 800; }
.hmai-file b { font-size: 14px; margin-right: 18px; }

/* Ô nhập + lối tắt */
.hmai-nhap { display: flex; align-items: center; gap: 12px; margin: 4px 22px 0; padding: 9px 9px 9px 16px; border: 1px solid #D5DEEA; border-radius: 14px; background: #fff; color: #94A3B8; }
.hmai-o { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmai-o.co-chu { color: var(--brand-navy); }
.hmai-o.co-chu::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -3px; background: #1E88E5; animation: hma-nhay .8s steps(1) infinite; }
@keyframes hma-nhay { 50% { opacity: 0; } }
.hmai-gui { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #1EA7C9; color: #fff; font-size: 14px; transition: transform .15s, background .15s; }
.hmai-gui.bam { transform: scale(.88); background: #1E88E5; }
.hmai-nhanh { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 22px 16px; }
.hmai-nhanh span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #F1F4F9; font-size: 12.5px; color: #334155; }
.hmai-nhanh i { font-size: 11px; color: #64748B; }

/* Hiệu ứng: dấu ba chấm "đang trả lời", phần trả lời hiện dần từ trái sang */
.hmai-dang { display: inline-flex; gap: 5px; padding: 14px 16px; border: 1px solid var(--hmai-vien); border-radius: 14px; background: #fff; }
.hmai-dang i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: hmai-cham 1s infinite; }
.hmai-dang i:nth-child(2) { animation-delay: .15s; }
.hmai-dang i:nth-child(3) { animation-delay: .3s; }
@keyframes hmai-cham { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.hmai .an { display: none; }
.hmai-m.moi, .hmai-goi.moi { animation: hmai-len .35s ease-out both; }
.hmai-dan.moi { animation: hmai-chay .55s ease-out both; }
@keyframes hmai-len { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hmai-chay { from { opacity: .2; clip-path: inset(-4px 100% -4px -30px); } to { opacity: 1; clip-path: inset(-4px -30px -4px -30px); } }   /* lề âm: không cắt dấu chấm đầu dòng */

@media (min-width: 821px) {
  .hmai-than { grid-template-columns: 250px minmax(0, 1fr); }
  .hmai-ben { display: block; }
}
@media (min-width: 1101px) {
  .hmai-than { grid-template-columns: clamp(250px, 21%, 300px) minmax(0, 1fr); }
  .hmai-m.ai .hmai-the:not(.hmai-file) { max-width: 560px; }
}
@media (max-width: 1100px) {
  .hmai-tt, .hmai-phai span, .hmai-tab-phai { display: none; }
}
@media (max-width: 640px) {
  .hmai-dau { padding: 10px 12px; }
  .hmai-nguoi, .hmai-phai { display: none; }
  .hmai-tab { padding: 8px 12px; }
  .hmai-tabs span { padding: 7px 12px; }
  .hmai-phien { padding: 8px 12px; }
  .hmai-nut:not(.on), .hmai-cong { display: none; }
  .hmai-tin { padding: 16px 12px; }
  .hmai-m.nguoi { max-width: 90%; }
  .hmai-avt { display: none; }
  .hmai-goi { margin-left: 0; }
  .hmai-lich { flex-wrap: wrap; }
  .hmai-lich b { flex-basis: calc(100% - 46px); }
  .hmai-lich .hmai-sua { margin-left: 46px; }
  .hmai-nhap { margin: 4px 12px 0; }
  .hmai-nhanh { padding: 10px 12px 14px; }
  .hmai-file b { margin-right: 0; }
}

/* ---------------------------------------------------------------------
   #7 HAVA Platform — khối ghép (bento)
   --------------------------------------------------------------------- */
.hmb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(92px, auto); gap: 12px; }
.hmb-o { padding: 16px; border-radius: 18px; border: 1px solid var(--rule); background: #fff; box-shadow: 0 14px 30px -22px rgba(13,27,61,.45); display: flex; flex-direction: column; gap: 8px; }
.hmb-o i.hmb-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(10,102,255,.1); color: var(--brand-blue); font-size: 14px; }
.hmb-o b { display: block; font-size: 14px; line-height: 1.3; }
.hmb-o b + span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.hmb-a { grid-column: span 2; grid-row: span 2; background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.hmb-a b { font-size: 17px; }
.hmb-a b + span { color: rgba(255,255,255,.75); font-size: 13px; }
.hmb-a i.hmb-ico { background: rgba(0,198,255,.16); color: var(--brand-sky); }
.hmb-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.hmb-4 em { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.08); font-style: normal; font-size: 13px; font-weight: 600; }
.hmb-4 em i { color: var(--brand-sky); font-size: 12px; }
.hmb-b { grid-column: span 2; }
.hmb-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.hmb-chip em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-gray); }
.hmb-e, .hmb-f { grid-column: span 2; flex-direction: row; align-items: center; }
.hmb-nen { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-style: dashed; background: var(--soft); box-shadow: none; font-size: 13px; font-weight: 600; color: var(--brand-navy); }
.hmb-nen i { color: var(--brand-blue); }
.hm-chay .hmb-o { animation: hmb-lap .55s cubic-bezier(.2,.9,.3,1.15) var(--tre) both; }
@keyframes hmb-lap { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   #8 giai-phap.html — căn giữa + 3 ô lớn có ảnh
   --------------------------------------------------------------------- */
.hm-giua .hm-chu { text-align: center; max-width: 60rem; margin: 0 auto; }
.hm-giua .crumb { justify-content: center; }
.page-hero.hm-giua h1 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.page-hero.hm-giua .hm-chu > p { max-width: 50rem; margin: 0 auto; }
.hm-ba { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.hm-ba a { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rule); background: #fff; color: var(--brand-navy); text-decoration: none;
  box-shadow: 0 20px 40px -30px rgba(13,27,61,.45); transition: border-color .2s, box-shadow .2s; text-align: left; }
.hm-ba a:hover { border-color: var(--brand-blue); box-shadow: 0 24px 50px -28px rgba(10,102,255,.55); }
.hm-ba a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.hm-ba picture { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-gray); }
.hm-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-ba-chu { padding: 18px 22px 22px; }
.hm-ba-chu b { display: block; font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.hm-ba-chu span { display: block; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.hm-ba-chu em { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--brand-blue); }

/* ---------------------------------------------------------------------
   #9 san-pham.html — 3 ảnh màn hình xếp so le, tràn mép phải
   --------------------------------------------------------------------- */
.page-hero.hm-sole { padding-bottom: 96px; }
.hm-sole .hm-hinh { align-self: stretch; min-height: 540px; }
.hms { position: relative; height: 100%; min-height: 540px; }
.hm-sole .hm-hinh { margin-right: calc(-1 * var(--gutter)); }
.hms-o { position: absolute; display: block; width: 62%; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: #fff; color: var(--brand-navy); text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(13,27,61,.45); transition: border-color .2s; }
.hms-o picture, .hms-o img { display: block; width: 100%; height: auto; }
.hms-ten { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--rule); background: #fff; }
.hms-ten i { color: var(--brand-blue); }
.hms-o:hover { border-color: var(--brand-blue); }
.hms-o:hover .hms-ten { color: var(--brand-blue); }
.hms-o:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.hms .s1 { top: 0; left: 0; z-index: 3; }
.hms .s2 { top: 20%; left: 30%; z-index: 2; }
.hms .s3 { top: 40%; left: 60%; z-index: 1; }
.hm-chay .hms-o { animation: hms-vao .7s cubic-bezier(.2,.8,.3,1) var(--tre) both; }
@keyframes hms-vao { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   #10 dich-vu.html — thanh 5 bước chạy hết bề ngang
   #16 dich-vu/*.html — thanh 5 bước thu nhỏ + "Bàn giao gồm"
   --------------------------------------------------------------------- */
.hm-buoc .hm-chu { max-width: 62rem; }
.hmt { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 48px 0 0; padding: 0; counter-reset: b; }
.hmt::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--rule); }
.hmt::after { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky)); transform-origin: left; }
.hmt li { position: relative; z-index: 1; }
.hmt a { display: flex; flex-direction: column; gap: 6px; height: 100%; color: var(--brand-navy); text-decoration: none; }
.hmt-so { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-blue); color: var(--brand-blue); font-weight: 800; font-size: 15px; margin-bottom: 8px; transition: background .2s, color .2s; }
.hmt-the { flex: 1; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--rule); background: #fff; transition: border-color .2s, box-shadow .2s; }
.hmt-the b { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 4px; }
.hmt-the b i { color: var(--brand-blue); font-size: .9rem; }
.hmt-the span { display: block; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.hmt-the em { display: inline-block; margin-top: 10px; font-style: normal; font-size: .85rem; font-weight: 700; color: var(--brand-blue); }
.hmt a:hover .hmt-the, .hmt a:focus-visible .hmt-the { border-color: var(--brand-blue); box-shadow: 0 18px 36px -24px rgba(10,102,255,.6); }
.hmt a:hover .hmt-so { background: var(--brand-blue); color: #fff; }
.hmt a:focus-visible { outline: none; }
.hmt a:focus-visible .hmt-the { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
.hm-chay .hmt::after { animation: hmx-ray 1.8s cubic-bezier(.4,0,.3,1) .2s both; }
.hm-chay .hmt li { animation: hmb-lap .5s ease-out var(--tre) both; }

.hmv { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--rule); background: #fff; box-shadow: var(--glow); }
.hmv-thanh { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid var(--rule); }
.hmv-thanh::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; background: var(--rule); }
.hmv-thanh li { position: relative; z-index: 1; text-align: center; }
.hmv-thanh a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 1.3; }
.hmv-thanh a:hover { color: var(--brand-blue); }
.hmv-thanh a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: 8px; }
.hmv-thanh i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--rule); font-style: normal; font-size: 12px; font-weight: 800; }
.hmv-thanh li.qua i { border-color: var(--brand-blue); color: var(--brand-blue); }
.hmv-thanh li.day a { color: var(--brand-navy); }
.hmv-thanh li.day i { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; box-shadow: 0 0 0 6px rgba(10,102,255,.14); }
.hmv h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 12px; }
.hmv h3 i { color: var(--brand-blue); }
.hmv-ds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hmv-ds li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; font-weight: 600; line-height: 1.35; }
.hmv-ds li i { margin-top: 2px; color: var(--accent); font-size: 13px; }
.hm-chay .hmv-ds li { animation: hmb-lap .45s ease-out var(--tre) both; }

/* ---------------------------------------------------------------------
   #11 du-an.html — ảnh màn hình lớn trong khung trình duyệt + dải tên demo
   --------------------------------------------------------------------- */
.hm-trinh-duyet .hm-luoi { align-items: start; }
@media (min-width: 1101px) { .hm-trinh-duyet .hm-luoi { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); } }
.hmd-khung { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: #fff; box-shadow: 0 34px 70px -34px rgba(13,27,61,.5); }
.hmd-thanh { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--brand-gray); border-bottom: 1px solid var(--rule); }
.hmd-cham { display: flex; gap: 6px; }
.hmd-cham i { width: 11px; height: 11px; border-radius: 50%; background: #D5DCE8; }
.hmd-dc { flex: 1; padding: 5px 12px; border-radius: 8px; background: #fff; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmd-anh { position: relative; aspect-ratio: 16 / 10; background: var(--brand-gray); }
.hmd-anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s; }
.hmd-anh img:not(.on) { opacity: 0; }
.hmd-dai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hmd-dai a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--rule); background: #fff; text-decoration: none; color: var(--brand-navy); transition: border-color .2s; }
.hmd-dai a b { font-size: 14px; }
.hmd-dai a span { font-size: 12px; color: var(--muted); }
.hmd-dai a.on, .hmd-dai a:hover { border-color: var(--brand-blue); }
.hmd-dai a.on b { color: var(--brand-blue); }
.hmd-dai a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   #12 kien-thuc.html — kiểu trang báo
   --------------------------------------------------------------------- */
.hm-bao .hm-dau-bao { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; align-items: end; padding-bottom: 26px; border-bottom: 2px solid var(--brand-navy); }
.page-hero.hm-bao h1 { margin-bottom: 0; }
.hm-bao .hm-dau-bao p { max-width: 34rem; }
.hm-bao .chips { margin-top: 22px; }
.hmn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 30px; }
.hmn a { color: var(--brand-navy); text-decoration: none; }
.hmn a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 12px; }
.hmn-lon picture { position: relative; display: block; aspect-ratio: 16 / 8; border-radius: var(--r-md); overflow: hidden; background: var(--brand-gray); }
.hmn-lon img, .hmn-nho img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hmn-lon b { display: block; margin-top: 16px; font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.hmn-chu { display: block; margin-top: 8px; font-size: .95rem; color: var(--muted); }
.hmn-tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brand-blue); background: var(--primary-soft); border-radius: 999px; padding: 3px 11px; }
.hmn-lon b { margin-top: 16px; }
.hmn-chu .hmn-tag { margin-right: 8px; }
.hmn-ben { display: grid; gap: 18px; align-content: start; }
.hmn-nho { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.hmn-ben .hmn-nho:last-child { border-bottom: 0; padding-bottom: 0; }
.hmn-nho picture { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--brand-gray); }
.hmn-nho b { display: block; margin-top: 0; font-size: 1.02rem; line-height: 1.35; font-weight: 700; }
.hmn a:hover b { color: var(--brand-blue); }

/* ---------------------------------------------------------------------
   #13 ve-hava.html — hero tối thuần chữ
   --------------------------------------------------------------------- */
.page-hero.hm-chu-lon { padding: 96px 0 104px; }
.hm-chu-lon .hm-logo { display: block; height: 44px; width: auto; margin-bottom: 40px; }
.page-hero.hm-chu-lon h1 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: 0; max-width: none; margin-bottom: 18px; color: rgba(255,255,255,.8); }
.page-hero.hm-chu-lon h1 .h1-nhan { background: none; color: var(--brand-sky); -webkit-background-clip: initial; background-clip: initial; }
.page-hero p.hm-khau { max-width: 16ch; margin: 0 0 40px; font-size: clamp(2.8rem, 8.4vw, 8.5rem); line-height: .98; font-weight: 800; letter-spacing: -.045em; color: #fff; }
.hm-khau span { color: var(--brand-sky); }
.page-hero.hm-chu-lon .about-intro { max-width: 54rem; color: rgba(255,255,255,.78); }

/* ---------------------------------------------------------------------
   #14 lien-he.html — form và kênh liên hệ ngay trong hero
   --------------------------------------------------------------------- */
.page-hero.hm-lien-he { padding: 56px 0 64px; background: var(--soft); }
.hm-lien-he .hm-luoi { align-items: start; }
@media (min-width: 1101px) { .hm-lien-he .hm-luoi { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hm-kenh { display: grid; gap: 10px; margin-top: 30px; max-width: 30rem; }
.hm-kenh > div, .hm-kenh > a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rule); color: var(--brand-navy); text-decoration: none; font-size: .95rem; }
.hm-kenh i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(10,102,255,.1); color: var(--brand-blue); flex: none; }
.hm-kenh b { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.hm-kenh a:hover { border-color: var(--brand-blue); }
.hm-lien-he .form-box { padding: 26px 28px; }
.hm-lien-he .form-box h2 { font-size: 1.3rem; }
.page-hero.hm-lien-he .form-box p { font-size: .93rem; line-height: 1.5; max-width: none; }
.hm-lien-he .form-box form > p:not(.hint) { margin-bottom: 16px; }
.hm-lien-he .field { margin-bottom: 12px; }
.hm-lien-he textarea { min-height: 80px; }
@media (min-width: 1101px) { .hm-lien-he .form-box .row-2-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } }

/* ---------------------------------------------------------------------
   #15 giai-phap/*.html — Vấn đề → Cách HAVA xử lý (thẻ 2 mặt, lật phẳng)
   --------------------------------------------------------------------- */
.hmf { position: relative; }
.hmf-the { display: grid; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--rule); box-shadow: var(--glow); overflow: hidden; }
.hmf-mat { grid-area: 1 / 1; display: flex; flex-direction: column; }
.hmf-mat[hidden] { display: none; }
.hmf-anh { position: relative; display: block; aspect-ratio: 16 / 6; overflow: hidden; background: var(--brand-gray); }
.hmf-anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hmf-nd { padding: 20px 24px 22px; }
.hmf-nhan { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.hmf-truoc .hmf-nhan { background: #FDECEC; color: #B42318; }
.hmf-sau .hmf-nhan { background: #ECFDF5; color: #047857; }
.hmf-nd h3 { margin: 12px 0 8px; font-size: 1.2rem; line-height: 1.3; }
.page-hero .hmf-nd p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.hmf-ds { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.hmf-ds li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.hmf-truoc .hmf-ds li i { color: #D92D20; margin-top: 3px; font-size: 12px; }
.hmf-sau .hmf-ds li i { color: var(--accent); margin-top: 3px; font-size: 12px; }
.hmf-lat { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--brand-blue); background: #fff; color: var(--brand-blue);
  font: 700 13px/1.2 var(--font-body); cursor: pointer; }
.hmf-lat:hover { background: var(--brand-blue); color: #fff; }
.hmf-lat:focus-visible { outline: 3px solid var(--brand-sky); outline-offset: 2px; }
.hmf-the.lat-ra { animation: hmf-ra .22s ease-in both; }
.hmf-the.lat-vao { animation: hmf-vao .26s ease-out both; }
@keyframes hmf-ra { to { transform: scaleX(0); } }
@keyframes hmf-vao { from { transform: scaleX(0); } to { transform: none; } }

/* ---------------------------------------------------------------------
   #17 kien-thuc/*.html — đầu bài kiểu tạp chí
   --------------------------------------------------------------------- */
.page-hero.hm-tap-chi { padding: 64px 0 0; border-bottom: 0; }
.hm-tap-chi .hm-tc-chu { max-width: 62rem; }
.page-hero.hm-tap-chi h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 24ch; }
.hm-tap-chi .article-meta .tag { margin: 0; }
.hm-tap-chi .article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 4px; }
.hm-tc-bia { display: block; margin: 40px 0 0; aspect-ratio: 21 / 8; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-gray); }
.hm-tc-bia { position: relative; }
.hm-tc-bia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------------
   Máy tính bảng / điện thoại: hình xếp dưới chữ, bản tĩnh, không giấu chữ hay nút
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hm-ba { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .hm-ba a { flex-direction: row; }
  .hm-ba picture { flex: 0 0 38%; aspect-ratio: auto; }
  .hmt { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .hmt::before, .hmt::after { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
  .hmt a { flex-direction: row; align-items: stretch; gap: 14px; }
  .hmt-so { flex: none; margin: 0; }
  .hms { min-height: 0; height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hm-sole .hm-hinh { min-height: 0; }
  .hms-o { position: static; width: auto; }
  .hm-sole .hm-hinh { margin-right: 0; }
  .page-hero.hm-sole { padding-bottom: 56px; }
}
@media (min-width: 1101px) {
  .hm-bao .hm-dau-bao { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hmn { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 820px) {
  .page-hero.hm { padding: 48px 0 52px; }
  .page-hero.hm-chu-lon { padding: 64px 0 72px; }
  .page-hero.hm-tap-chi { padding-top: 48px; }
  .hm-tc-bia { aspect-ratio: 16 / 9; margin-top: 28px; }
  .hmx { padding: 18px 14px; }
  .hmx-tram > div span { width: 44px; height: 44px; font-size: 16px; }
  .hmx-tram::before, .hmx-ray, .hmx-lo { top: 21px; }
  .hmx-tram > div { font-size: 12px; }
  .hmx-mod { grid-template-columns: 1fr 1fr; }
  .hmc { aspect-ratio: 4 / 5; }
  .hmc-excel { width: 76%; top: 12%; }
  .hmc-giay { width: 56%; bottom: 6%; }
  .hmc-chat { display: none; }
  .hmc-nhan { font-size: 12px; padding: 4px 9px; }
  .hmc-app { inset: 52px 4% 4% 30%; }
  .hmc-tom { display: none; }
  .hmk { grid-template-columns: 1fr; }
  .hmk-cot { min-height: 0; }
  /* Điện thoại: lịch còn 3 ngày (T2–T4) để nhãn lịch hẹn không bị ngắt chữ; T5, T6 ẩn */
  .hml-luoi { grid-template-columns: 40px repeat(3, minmax(0, 1fr)); grid-template-rows: 30px repeat(5, 58px); }
  .hml-luoi > [style*="/5"], .hml-luoi > [style*="/6"] { display: none; }
  .hml-hen { padding: 4px 5px; margin: 2px; }
  .hml-hen span { display: none; }
  .hmb { grid-template-columns: 1fr 1fr; }
  .hmb-a, .hmb-b, .hmb-e, .hmb-f { grid-column: span 2; }
  .hmb-a { grid-row: auto; }
  .hms { grid-template-columns: 1fr; }
  .hms-o:not(.s1) { display: none; }
  .hmd-dai { grid-template-columns: 1fr; }
  .hmv-ds { grid-template-columns: 1fr; }
  .hm-ba a { flex-direction: column; }
  .hm-ba picture { aspect-ratio: 16 / 7; }
  .hmn-nho { grid-template-columns: 96px minmax(0, 1fr); }
  .hm-chu-lon .hm-logo { height: 34px; margin-bottom: 28px; }
  .hmv-thanh a span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
}

/* lien-he.html: hai thẻ còn lại (Kênh liên hệ nhanh, Sau khi bạn gửi) dưới hero */
.hm-lh-duoi { padding: 64px 0; }
.hm-lh-duoi .info-card { height: 100%; }
.hm-kenh .fill { font-size: .9rem; }
/* #16: cột chữ rộng hơn để đoạn mở đầu dài (triển khai & bảo trì) vẫn ≤ 3 dòng ở 1440 */
@media (min-width: 1101px) {
  .hm-vi-tri .hm-luoi { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hm-vi-tri .hm-chu > p { max-width: 42rem; }
}

/* ---------------------------------------------------------------------
   #18 Trợ lý ảo thiết kế (04/12/2026) — bản vẽ kỹ thuật trên nền lưới xanh đậm + 3 ghi chú đánh số của trợ lý.
   Nét vẽ chạy một lần rồi ghi chú hiện lần lượt. Dưới 1101px ghi chú xếp dưới bản vẽ.
   --------------------------------------------------------------------- */
.hmbv { border-radius: var(--r-lg); background: var(--brand-navy); box-shadow: var(--glow); overflow: hidden; color: #fff; }
.hmbv-tab { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hmbv-tab span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); }
.hmbv-tab span.on { background: rgba(0,198,255,.16); color: var(--brand-sky); }
.hmbv-tab i { font-size: 12px; }
@media (max-width: 480px) { .hmbv-tab { gap: 2px; padding: 10px; } .hmbv-tab span { padding: 6px 9px; gap: 5px; font-size: 12.5px; } .hmbv-tab i { display: none; } }   /* 04/12/2026: 4 tab (thêm Website) vừa một hàng ở 360–480 */
.hmbv-giay { position: relative; padding: 18px; background-image: linear-gradient(rgba(0,198,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(0,198,255,.09) 1px, transparent 1px); background-size: 24px 24px; }
.hmbv-ve { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.hmbv-ve .net { fill: none; stroke: #CFE9FF; stroke-width: 2; }
.hmbv-ve .tam { fill: none; stroke: rgba(207,233,255,.5); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.hmbv-ve .kt { fill: none; stroke: var(--brand-sky); stroke-width: 1.3; }
.hmbv-ve .luoi { fill: none; stroke: rgba(207,233,255,.38); stroke-width: 1; }   /* 05/12/2026: nét mảnh (lưới phần tử, cửa, khung trang) của bản vẽ 4 trợ lý */
.hmbv-ve path.kt + text, .hmbv-ve > text { fill: var(--brand-sky); font: 600 16px var(--font-body); }
.hmbv-ve .so circle { fill: var(--brand-blue); stroke: #fff; stroke-width: 2; }
.hmbv-ve .so text { fill: #fff; font: 700 15px var(--font-body); text-anchor: middle; }
.hmbv-ghi-ds { display: grid; gap: 10px; margin-top: 16px; }
.hmbv-ghi { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; background: #fff; color: var(--brand-navy); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.hmbv-ghi > i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-style: normal; font-weight: 700; font-size: 12px; }
.hmbv-ghi b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.hmbv-ghi small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.hmbv-khung { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.7); }
.hmbv-khung b { color: #fff; font-weight: 600; }
@media (min-width: 1101px) {
  .hmbv-giay { min-height: 330px; padding: 22px; }
  .hmbv-ve { width: 52%; margin: 0; }
  .hmbv-ghi-ds { position: absolute; top: 24px; right: 20px; width: 46%; margin: 0; gap: 12px; }
}
.hm-chay .hmbv-ve .net, .hm-chay .hmbv-ve .kt, .hm-chay .hmbv-ve .luoi { stroke-dasharray: 700; animation: hmbv-ve 1.8s ease-out .15s both; }
.hm-chay .hmbv-ve .so { animation: hmbv-hien .4s ease-out var(--tre) both; }
.hm-chay .hmbv-ghi { animation: hmb-lap .5s ease-out var(--tre) both; }
@keyframes hmbv-ve { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes hmbv-hien { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------
   HAVA Platform — cửa sổ Trợ lý HAVA, tab «Ứng dụng» (05/12/2026 17:16, ảnh anh Thái gửi). Bố cục chữ giống #6 (.hm-ung-dung).
   Lưới ứng dụng theo phòng ban + khung Trợ lý AI bên phải; dùng lại .hmai-* của #6. Ô được trợ lý nhắc tới sáng lên (.sang).
   --------------------------------------------------------------------- */
.hmud-than { display: grid; grid-template-columns: minmax(0, 1fr); }
.hmud-trai { min-width: 0; padding: 16px 18px 18px; }
.hmud-cong { display: flex; align-items: center; gap: 12px; }
.hmud-tieu { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; white-space: nowrap; }
.hmud-tieu i { color: #1E88E5; font-size: 15px; }
.hmud-tim { display: flex; flex: 1; min-width: 0; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 10px; background: #F1F4F9; font-size: 13px; color: #94A3B8; white-space: nowrap; overflow: hidden; }
.hmud-nut { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--hmai-vien); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hmud-nut i { font-size: 11px; }
.hmud-nut.xanh { border-color: #1E88E5; background: #1E88E5; color: #fff; }
.hmud-loc { display: flex; gap: 8px; overflow: hidden; margin: 14px 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--hmai-vien); }
.hmud-loc span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border: 1px solid var(--hmai-vien); border-radius: 999px; font-size: 12.5px; color: #334155; white-space: nowrap; }
.hmud-loc span i { width: 11px; height: 8px; border-radius: 2px; background: #1E88E5; }
.hmud-loc span.on { border-color: #1E88E5; background: #1E88E5; color: #fff; font-weight: 700; }
.hmud-luoi { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.hmud-nhom h5 { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-navy); }
.hmud-nhom h5 i { font-size: 10px; color: #94A3B8; }
.hmud-nhom h5 em { font-style: normal; color: #1E88E5; }
.hmud-ds { display: flex; flex-wrap: wrap; gap: 6px; }
.hmud-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 94px; padding: 10px 5px 9px; border: 1px solid var(--hmai-vien); border-radius: 12px;
  background: #fff; text-align: center; transition: border-color .3s, box-shadow .3s, transform .3s; }
.hmud-o > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; font-size: 17px; box-shadow: inset 0 -8px 14px -8px rgba(0,0,0,.25); }
.hmud-o b { display: flex; align-items: center; min-height: 2.6em; font-size: 12px; font-weight: 500; line-height: 1.3; }
.hmud-o small { padding: 1px 8px; border-radius: 6px; background: #F1F4F9; font-size: 11px; color: #64748B; }
.hmud-o small.m { background: #E6F4FB; color: #0E8FC6; }
.hmud-so { position: absolute; top: 5px; right: 13px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #EF4444; color: #fff;
  font-size: 10.5px; font-style: normal; font-weight: 700; box-shadow: 0 0 0 2px #fff; transition: transform .3s, opacity .3s; }
.hmud-so.het { transform: scale(0); opacity: 0; }
.hmud-them { justify-content: center; min-height: 118px; border-style: dashed; color: #94A3B8; }
.hmud-them > i { box-shadow: none; background: none; color: #94A3B8; font-size: 20px; }
.hmud-them b { min-height: 0; }
.hmud-o.sang { border-color: #1E88E5; box-shadow: 0 0 0 3px rgba(30,136,229,.22), 0 10px 22px -12px rgba(30,136,229,.6); transform: translateY(-3px); }

/* Khung Trợ lý AI */
.hmud-ai { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--hmai-vien); background: #FAFCFF; }
.hmud-ai-dau { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--hmai-vien); background: #fff; }
.hmud-ai-dau > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #1EA7C9; color: #fff; font-size: 13px; }
.hmud-ai-dau b { font-size: 15px; }
.hmud .hmai-tin { flex: 1; gap: 14px; padding: 16px; }
.hmud .hmai-m.nguoi { max-width: 86%; padding: 10px 14px; font-size: 13.5px; }
.hmud .hmai-the { padding: 13px 15px; font-size: 13.5px; }
.hmud .hmai-the h4 { font-size: 14.5px; }
.hmud .hmai-the ul { margin: 0; padding-left: 18px; }
.hmud .hmai-goi { margin-left: 46px; }
.hmud .hmai-nhap { margin: 0 16px 16px; }
.hmud-xong { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #22C55E; color: #fff; font-size: 13px; }
.hmud .hmai-file b { margin-right: 0; font-size: 13.5px; }

.hmud-chan { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 11px 18px; border-top: 1px solid var(--hmai-vien); font-size: 12.5px; color: #64748B; }
.hmud-chan b { color: var(--brand-navy); }
.hmud-chan-phai { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.hmud-chan-phai::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10B981; }

@media (min-width: 1101px) {
  .hmud-than { grid-template-columns: minmax(0, 1fr) clamp(300px, 26%, 340px); }
  .hmud-ai { border-top: 0; border-left: 1px solid var(--hmai-vien); }
}
@media (max-width: 1100px) {
  .hmud-chan-phai { margin-left: 0; }
  .hmud-them-nhom { display: none; }
}
@media (max-width: 640px) {
  .hmud-trai { padding: 12px; }
  .hmud-nut, .hmud-loc span:nth-child(n+4) { display: none; }
  .hmud-phu { display: none; }
  .hmud-luoi { gap: 0 12px; }
  .hmud-ds { gap: 6px; }
  .hmud-o { width: calc((100vw - 92px) / 3); max-width: 94px; }
  .hmud .hmai-goi { margin-left: 0; }
  .hmud-chan { padding: 10px 12px; }
}
