/* Khối dùng chung trang chủ + trang con (02/12/2026): 3 sản phẩm (.d-ways, .d-asst), 2 nhóm giải pháp (.d-models).
   Nạp sau style.css (và sau home.css / trang-con.css). Trang chủ đã có .d-check / .d-link / .d-pill trong home.css;
   trang con lấy bản dưới đây (chỉ áp khi <main> không có lớp home). Biến --r-lg, --rule… có sẵn ở home.css (.home) và trang-con.css (:root). */
main:not(.home) .d-check { list-style: none; margin-bottom: 24px; }
main:not(.home) .d-check li { position: relative; padding: 7px 0 7px 26px; font-size: .95rem; }
main:not(.home) .d-check li::before { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--brand-sky); }
main:not(.home) .d-link { display: inline-block; color: var(--brand-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10,102,255,.35); text-underline-offset: 6px; }
main:not(.home) .d-link:hover { text-decoration-color: var(--brand-blue); }
main:not(.home) .d-pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-weight: 600; padding: 15px 28px; transition: background-color .2s, color .2s; }
main:not(.home) .d-pill-main { background: var(--brand-blue); color: #fff; box-shadow: 0 12px 30px -10px rgba(10,102,255,.6); }
main:not(.home) .d-pill-main:hover { background: var(--brand-navy); }
main:not(.home) .d-pill-light { background: #fff; color: var(--brand-blue); }
main:not(.home) .d-pill-light:hover { background: var(--brand-sky); color: var(--brand-navy); }
.d-way h3, .d-model h3, .d-asst-text h3 { color: var(--ink); }
.d-model-main h3 { color: #fff; }

/* Danh sách phân hệ có liên kết (trang giải pháp): mỗi ô là một liên kết sang trang phân hệ */
.d-mods a { color: inherit; text-decoration: underline; text-decoration-color: rgba(10,102,255,.3); text-underline-offset: 4px; }
.d-model-main .d-mods a { text-decoration-color: rgba(0,198,255,.5); }

/* Bảng so sánh HAVA Assistant / HAVA Platform */
.ss-bang { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; font-size: .95rem; }
.ss-bang th, .ss-bang td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ss-bang tr:last-child th, .ss-bang tr:last-child td { border-bottom: 0; }
.ss-bang thead th, .ss-bang thead td { background: var(--soft); color: var(--ink); font-family: var(--font-head); }
.ss-bang tbody th { color: var(--ink); font-weight: 600; width: 26%; }
.ss-cuon { overflow-x: auto; }
@media (max-width: 640px) { .ss-bang { font-size: .88rem; } .ss-bang th, .ss-bang td { padding: 11px 12px; } .ss-bang { min-width: 520px; } }

/* ===== MẪU MỚI (02/12/2026) — Ba cách dùng HAVA (#ba-cach) =====
   3 thẻ cách mua (thẻ giữa HAVA Assistant viền xanh) + khối chi tiết Assistant: gói theo người dùng | 4 ô tính năng có khung minh hoạ vẽ bằng CSS. */
.d-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-way { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 32px 30px 30px; }
.d-way > i { color: var(--brand-blue); font-size: 1.35rem; margin-bottom: 18px; }
.d-way h3 { font-size: 1.3rem; margin-bottom: 8px; }
.d-way > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.d-way .d-check { flex: 1; }
.d-way-main { border: 2px solid var(--brand-blue); box-shadow: var(--glow); }

.d-asst { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; margin-top: 28px; scroll-margin-top: 90px;
  background: var(--soft); border-radius: var(--r-lg); padding: 44px 48px; }
.d-asst-text h3 { font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 10px; text-wrap: balance; }
.d-asst-text .muted { margin-bottom: 22px; }
.d-seats { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; }
.d-seats li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 18px; }
.d-seats b { color: var(--ink); font-family: var(--font-head); }
.d-seats span { color: var(--muted); font-size: .9rem; }
.d-seats em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--brand-blue); white-space: nowrap; }
.d-seats-note { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }

.d-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.d-feats li { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 14px 18px; }
.d-feats h4 { font-size: 1.02rem; margin: 14px 4px 4px; }
.d-feats li > p { color: var(--muted); font-size: .88rem; margin: 0 4px; }

/* Khung minh hoạ giao diện (thay bằng ảnh chụp thật khi có) */
.d-mock { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.d-mock-bar { display: flex; gap: 4px; padding: 7px 10px; background: var(--soft); border-bottom: 1px solid var(--line); }
.d-mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: #CBD5E1; }
.d-mock-body { height: 104px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.d-mock s, .d-mock u { display: block; height: 6px; border-radius: 3px; background: var(--line); text-decoration: none; }
/* Trợ lý AI: hỏi bên phải, trả lời bên trái */
.d-mock-ai p { margin: 0; border-radius: 10px; padding: 7px 8px; display: grid; gap: 4px; }
.d-mock-ai .u { align-self: flex-end; width: 45%; background: var(--brand-blue); }
.d-mock-ai .u s { background: rgba(255,255,255,.6); }
.d-mock-ai .a { width: 72%; background: #EEF3FB; }
.d-mock-ai .a s:last-child { width: 60%; }
/* Holo Chat / Tài liệu: dòng có ảnh đại diện / biểu tượng tệp */
.d-mock-chat p, .d-mock-doc p { margin: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #EEF2F7; }
.d-mock-chat p:last-child, .d-mock-doc p:last-child { border-bottom: 0; }
.d-mock-chat u { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #8DBBFF; }
.d-mock-chat p:first-child u { background: var(--brand-sky); }
.d-mock-chat s, .d-mock-doc s { flex: 1; }
.d-mock-chat p:nth-child(2) s { flex: none; width: 55%; }
.d-mock-doc u { flex: none; width: 14px; height: 18px; border-radius: 3px; background: var(--brand-blue); opacity: .75; }
.d-mock-doc p:nth-child(2) u { background: var(--accent); }
.d-mock-doc p:nth-child(2) s { flex: none; width: 62%; }
/* Lịch: lưới 7 cột, 2 ô có việc */
.d-mock-cal .d-mock-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.d-mock-cal span { border-radius: 5px; background: #F1F5F9; }
.d-mock-cal span.on { background: var(--brand-blue); box-shadow: inset 0 -6px 0 var(--brand-sky); }

/* ===== MẪU MỚI (02/12/2026) — Hai nhóm giải pháp theo mô hình doanh nghiệp (#mo-hinh) ===== */
.d-models { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.d-model { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 40px 40px 36px; }
.d-model-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.d-model-head i { color: var(--brand-blue); font-size: 1.5rem; }
.d-model-tag { font-size: .82rem; font-weight: 600; color: var(--brand-blue); background: var(--primary-soft); border-radius: 999px; padding: 5px 12px; }
.d-model h3 { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 10px; }
.d-model > p { color: var(--muted); font-size: .97rem; margin-bottom: 24px; }
.d-mods { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; flex: 1; align-content: start; }
.d-mods li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 12px; font-size: .92rem; color: var(--ink); font-weight: 500; }
.d-mods li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-sky); }
.d-model-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
/* Sản xuất: nền xanh đậm, nổi bật */
.d-model-main { border: 0; color: #fff; background: radial-gradient(circle at 88% 6%, rgba(0,198,255,.28), transparent 42%), var(--brand-navy); box-shadow: 0 28px 56px -28px rgba(13,27,61,.55); }
.d-model-main .d-model-head i { color: var(--brand-sky); }
.d-model-main .d-model-tag { color: var(--brand-navy); background: var(--brand-sky); }
.d-model-main h3 { color: #fff; }
.d-model-main > p { color: rgba(255,255,255,.8); }
.d-model-main .d-mods li { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.d-model-main .d-link { color: #fff; text-decoration-color: var(--brand-sky); }
.d-model-main a:focus-visible { outline-color: var(--brand-sky); }

@media (max-width: 1100px) {
  .d-asst { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1000px) {
  .d-ways { grid-template-columns: 1fr; }
  .d-models { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .d-way { padding: 26px 22px 24px; }
  .d-asst { padding: 28px 18px; border-radius: var(--r-md); }
  .d-asst-text h3 { font-size: 1.4rem; }
  .d-seats li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .d-seats span { grid-column: 1; grid-row: 2; }
  .d-seats em { grid-row: 1 / span 2; grid-column: 2; }
  .d-asst .d-pill { width: 100%; justify-content: center; }
  .d-model { padding: 28px 22px 26px; }
  .d-model h3 { font-size: 1.35rem; }
  .d-mods { grid-template-columns: 1fr; }
  .d-model-acts .d-pill { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .d-feats { grid-template-columns: 1fr; }
}

/* Trang giải pháp: một khối phân hệ duy nhất (Thương mại & dịch vụ) — danh sách chia 4 cột cho đỡ dài */
.d-models-1 { grid-template-columns: 1fr; }
.d-models-1 .d-mods { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .d-models-1 .d-mods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .d-models-1 .d-mods { grid-template-columns: 1fr; } }

/* giai-phap.html: mục "Ví dụ áp dụng theo ngành" còn 3 thẻ (thẻ Sản xuất thành nhóm giải pháp chính, 02/12/2026) */
.ld-nganh.ld-nganh-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .ld-nganh.ld-nganh-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ld-nganh.ld-nganh-3 { grid-template-columns: 1fr; } }
/* Badge trạng thái đặt trên biểu tượng trong thẻ .d-way (san-pham.html) */
.d-way > .badge { margin-bottom: 16px; }

/* ===== 03/12/2026 — Ba sản phẩm theo loại hình doanh nghiệp (.d-models-3: trang chủ #mo-hinh + san-pham.html #ba-san-pham) =====
   Mỗi thẻ 5 module; cả thẻ bấm được nhờ .d-model-lk::after phủ thẻ. Không nhấc thẻ khi rê chuột, chỉ đổi viền. */
.d-models-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-models-3 .d-model { position: relative; padding: 32px 28px 28px; transition: border-color .2s; }
.d-models-3 .d-model:hover { border-color: var(--brand-blue); }
.d-models-3 .d-model h3 { font-size: 1.45rem; }
.d-models-3 .d-mods { grid-template-columns: 1fr; margin-bottom: 24px; }
.d-model-lk { color: inherit; text-decoration: none; }
.d-model-lk::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.d-model-lk:focus-visible { outline: none; }
.d-models-3 .d-model:has(.d-model-lk:focus-visible) { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.d-models-3 .d-model-main:has(.d-model-lk:focus-visible) { outline-color: var(--brand-sky); }
@media (max-width: 1000px) {
  .d-models-3 { grid-template-columns: 1fr; }
  .d-models-3 .d-mods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .d-models-3 .d-model { padding: 26px 22px 24px; }
  .d-models-3 .d-mods { grid-template-columns: 1fr; }
}

/* =====================================================================
   Khối nổi bật "Trợ lý ảo thiết kế" (04/12/2026, anh Thái: sản phẩm chủ lực, cần nổi bật nhất)
   Dùng ở index.html (ngay dưới hero), giai-phap.html (trên "Ba giải pháp") và san-pham/hava-assistant.html.
   Nền xanh đậm có lưới bản vẽ mờ, 3 thẻ ảnh: Cơ khí / Xây dựng / Mô phỏng. Không nhãn nhỏ trên tiêu đề, không nhấc thẻ.
   ===================================================================== */
.tk-noi { position: relative; overflow: hidden; background: var(--brand-navy); color: #fff; padding: 96px 0; }
.tk-noi::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(0,198,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,198,255,.07) 1px, transparent 1px); background-size: 32px 32px; }
.tk-noi .container { position: relative; }
.tk-dau { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 64px; align-items: end; margin-bottom: 44px; }
.tk-dau h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.tk-dau h2 span { color: var(--brand-sky); }
.tk-dau p { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.65; margin: 0 0 22px; }
.tk-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.tk-nut-chinh { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: var(--brand-blue); color: #fff; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(10,102,255,.7); transition: background-color .2s; }
.tk-nut-chinh:hover, .tk-nut-chinh:focus-visible { background: #fff; color: var(--brand-navy); }
.tk-nut-phu { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 5px; }
.tk-nut-phu:hover, .tk-nut-phu:focus-visible { color: var(--brand-sky); }
.tk-ba { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.tk-the { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; transition: border-color .2s, background-color .2s; }
.tk-the:hover, .tk-the:focus-visible { border-color: var(--brand-sky); background: rgba(255,255,255,.1); color: #fff; }
.tk-the picture, .tk-the img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.tk-the-chu { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 26px; }
.tk-the h3 { color: #fff; font-size: 1.25rem; margin: 0; }
.tk-the p { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.6; margin: 0; flex: 1; }
.tk-the em { margin-top: 6px; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--brand-sky); }
@media (min-width: 768px) { .tk-ba { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tk-ba { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tk-the-chu { padding: 20px 20px 24px; } .tk-the h3 { font-size: 1.15rem; } }   /* 04/12/2026: 4 trợ lý (thêm website) */
@media (min-width: 1024px) { .tk-dau { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .tk-noi { padding: 64px 0; } .tk-nut-chinh { width: 100%; justify-content: center; } }
