/* VHCNS theme: lớp tuỳ biến đặt trên Tabler 1.7 (MIT).
   Chất liệu: men trắng, mực lam gốm, son của con triện. */

:root {
  --men: #f5f7f6;          /* nền men trắng ngả lạnh */
  --giay: #ffffff;         /* mặt giấy */
  --lam: #1d3f78;          /* lam gốm, màu thao tác chính */
  --lam-dam: #12284f;      /* mực lam đậm, chữ */
  --lam-nhat: #e6ecf5;     /* lam loãng, nền phụ */
  --ke: #cdd6e3;           /* đường kẻ */
  --son: #b4261c;          /* son triện, chỉ dùng cho triện và cảnh báo */
  --dong: #96683a;         /* Triện Đồng */
  --bac: #647180;          /* Triện Bạc */
  --ngoc: #2f7a6b;         /* men ngọc, trạng thái tốt */
  --mo: #5b6880;           /* chữ phụ */

  --tblr-primary: var(--lam);
  --tblr-primary-rgb: 29, 63, 120;
  --tblr-primary-fg: #ffffff;
  --tblr-body-bg: var(--men);
  --tblr-body-color: var(--lam-dam);
  --tblr-secondary: var(--mo);
  --tblr-border-color: var(--ke);
  --tblr-border-radius: 4px;
  --tblr-border-radius-lg: 6px;
  --tblr-link-color: var(--lam);
  --tblr-link-color-rgb: 29, 63, 120;
  --tblr-font-sans-serif: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tblr-font-monospace: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tblr-body-font-size: 1rem;
  --tblr-body-line-height: 1.65;
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3 { color: var(--lam-dam); letter-spacing: -0.012em; line-height: 1.28; font-weight: 700; }
a { text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; border-radius: 2px; }
.ma { font-family: var(--tblr-font-monospace); font-size: 0.84em; letter-spacing: 0; white-space: nowrap; }
.chu-phu { color: var(--mo); }
.khung { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Thanh đầu trang ---------- */
.dau-trang { background: var(--giay); border-bottom: 1px solid var(--ke); position: sticky; top: 0; z-index: 50; }
.dau-trang .khung { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.thuong-hieu { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lam-dam); }
.thuong-hieu svg { width: 42px; height: 42px; flex: none; }
.thuong-hieu b { display: block; font-size: 1.02rem; line-height: 1.2; font-weight: 700; }
.thuong-hieu span { display: block; font-size: 0.74rem; color: var(--mo); line-height: 1.3; }
.dieu-huong { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.dieu-huong a { white-space: nowrap; padding: 8px 12px; color: var(--lam-dam); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.dieu-huong a:hover { border-bottom-color: var(--ke); }
.dieu-huong a.dang-xem { border-bottom-color: var(--son); }
.dau-trang .nut-nhom { display: flex; gap: 10px; align-items: center; }
.btn { font-weight: 600; }
.btn-primary { --tblr-btn-bg: var(--lam); --tblr-btn-border-color: var(--lam); --tblr-btn-hover-bg: var(--lam-dam); --tblr-btn-hover-border-color: var(--lam-dam); }
.btn-outline-primary { --tblr-btn-color: var(--lam); --tblr-btn-border-color: var(--lam); --tblr-btn-hover-bg: var(--lam); }
.btn-google { background: #fff; border: 1px solid var(--ke); color: var(--lam-dam); display: inline-flex; gap: 10px; align-items: center; }
.btn-google:hover { border-color: var(--lam); background: #fff; }

/* ---------- Mở đầu trang chủ ---------- */
.mo-dau { position: relative; background: var(--giay); border-bottom: 1px solid var(--ke); overflow: hidden; }
.mo-dau::before { /* lưới dữ liệu rất nhạt */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--lam-nhat) 1px, transparent 1px), linear-gradient(90deg, var(--lam-nhat) 1px, transparent 1px);
  background-size: 44px 44px; opacity: 0.55;
  mask-image: linear-gradient(100deg, transparent 0 34%, #000 78%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0 34%, #000 78%);
}
.mo-dau .khung { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 590px; gap: 48px; align-items: center; padding-block: 64px 56px; }
.tuyen-ngon { font-size: clamp(1.7rem, 1.1rem + 1.7vw, 2.55rem); font-weight: 800; line-height: 1.24; letter-spacing: -0.022em; margin: 0 0 22px; }
.tuyen-ngon em { font-style: normal; box-shadow: inset 0 -0.34em 0 var(--lam-nhat); }
.bao-chung { font-size: 1.06rem; color: var(--mo); max-width: 34em; margin-bottom: 28px; }
.mo-dau .hanh-dong { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.mo-dau .btn-lg { padding: 13px 22px; font-size: 1.02rem; }

/* ---------- Con triện ---------- */
.khoi-trien { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 26px; align-items: center; }
.trien-lon { width: 100%; max-width: 320px; aspect-ratio: 1; transform: rotate(-7deg); }
.trien-lon svg { width: 100%; height: 100%; overflow: visible; }
.trien-lon .cung { transition: stroke-width 0.18s ease, opacity 0.18s ease; cursor: pointer; }
.trien-lon .cung:hover, .trien-lon .cung.dang-chon { stroke-width: 26; opacity: 1 !important; }
.chu-giai { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.chu-giai li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 8px; border-bottom: 1px solid var(--ke); cursor: default; }
.chu-giai li.dang-chon { background: #fbeceb; }
.chu-giai i { width: 14px; height: 4px; background: var(--son); align-self: center; }
.chu-giai b { font-weight: 600; }
.chu-giai .ma { color: var(--mo); }
.chu-giai-dau { font-size: 0.78rem; color: var(--mo); margin-bottom: 4px; }

@keyframes dong-trien {
  0%   { opacity: 0; transform: rotate(-21deg) scale(1.55); }
  55%  { opacity: 1; transform: rotate(-5deg) scale(0.955); }
  72%  { transform: rotate(-8deg) scale(1.012); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}
@keyframes ve-cung { from { stroke-dashoffset: var(--dai); } to { stroke-dashoffset: 0; } }
.dong-xuong { animation: dong-trien 0.62s cubic-bezier(0.2, 0.9, 0.25, 1) 0.15s both; }
.dong-xuong .cung { stroke-dasharray: var(--dai) 2000; animation: ve-cung 0.7s ease-out both; animation-delay: calc(0.75s + var(--thu-tu) * 0.11s); }

/* Triện nhỏ theo cấp */
.trien { --mau: var(--mo); display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; color: var(--mau); transform: rotate(-8deg); }
.trien svg { width: 100%; height: 100%; }
.trien--dong { --mau: var(--dong); }
.trien--bac { --mau: var(--bac); }
.trien--son { --mau: var(--son); }
.trien--lon { width: 132px; height: 132px; }
.trien--vua { width: 76px; height: 76px; }
.nhan-trien { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; padding: 2px 9px 2px 7px; border: 1.5px solid currentColor; border-radius: 999px; background: var(--giay); white-space: nowrap; }
.nhan-trien::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nhan-trien.dong { color: var(--dong); } .nhan-trien.bac { color: var(--bac); } .nhan-trien.son { color: var(--son); }
.nhan-trien.chua { color: var(--mo); border-style: dashed; font-weight: 500; } .nhan-trien.chua::before { background: none; border: 1.5px solid currentColor; }

/* ---------- Nhật ký công nhận ---------- */
.nhat-ky { background: var(--lam-dam); color: #dfe7f3; font-size: 0.9rem; }
.nhat-ky .khung { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); display: flex; gap: 26px; align-items: center; min-height: 46px; overflow: hidden; white-space: nowrap; }
.nhat-ky strong { color: #fff; font-weight: 600; flex: none; }
.nhat-ky .dong-tin { display: flex; gap: 34px; }
.nhat-ky .ma { color: #9fb3d1; margin-right: 8px; }
.nhat-ky a { color: #fff; }

/* ---------- Khối nội dung ---------- */
.khoi { padding-block: 56px; }
.khoi + .khoi { border-top: 1px solid var(--ke); }
.khoi--giay { background: var(--giay); }
.tieu-de-khoi { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.tieu-de-khoi h2 { font-size: 1.6rem; margin: 0; }
.tieu-de-khoi p { margin: 6px 0 0; color: var(--mo); max-width: 44em; }
.tieu-de-khoi a { font-weight: 600; white-space: nowrap; }

.bon-viec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--lam-dam); }
.bon-viec > div { padding: 22px 22px 6px 0; }
.bon-viec > div + div { padding-left: 22px; border-left: 1px solid var(--ke); }
.bon-viec .thu-tu { font-size: 0.84rem; font-weight: 600; color: var(--mo); }
.bon-viec h3 { font-size: 1.22rem; margin: 6px 0 8px; }
.bon-viec p { color: var(--mo); font-size: 0.95rem; margin-bottom: 14px; }
.bon-viec .so { font-size: 1.5rem; font-weight: 800; color: var(--lam); line-height: 1; }
.bon-viec .so small { font-size: 0.82rem; font-weight: 500; color: var(--mo); margin-left: 6px; }

/* ---------- Sổ bộ sản phẩm ---------- */
.so-bo { width: 100%; border-collapse: collapse; background: var(--giay); border: 1px solid var(--ke); }
.so-bo th { text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--mo); padding: 10px 14px; border-bottom: 2px solid var(--lam-dam); background: var(--giay); }
.so-bo td { padding: 14px; border-bottom: 1px solid var(--ke); vertical-align: middle; }
.so-bo tr:last-child td { border-bottom: 0; }
.so-bo tbody tr:hover { background: #f8fafc; }
.so-bo .ten { font-weight: 700; font-size: 1.02rem; color: var(--lam-dam); text-decoration: none; }
.so-bo .ten:hover { text-decoration: underline; }
.so-bo .mot-cau { color: var(--mo); font-size: 0.9rem; margin-top: 2px; max-width: 34em; }
.so-bo .tac-gia { font-size: 0.92rem; }
.so-bo .tac-gia span { display: block; color: var(--mo); font-size: 0.84rem; }
.truy-cap { display: flex; gap: 8px; }
.truy-cap a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ke); border-radius: 4px; font-size: 0.86rem; font-weight: 600; text-decoration: none; background: var(--giay); white-space: nowrap; }
.truy-cap a:hover { border-color: var(--lam); }
.truy-cap a.ma-nguon { color: var(--lam-dam); }

/* ---------- Thẻ sản phẩm (dạng lưới) ---------- */
.luoi-sp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.the-sp { background: var(--giay); border: 1px solid var(--ke); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.the-sp:hover { border-color: var(--lam); }
.the-sp .bia { aspect-ratio: 16 / 9; background: var(--lam-nhat); display: block; position: relative; }
.the-sp .bia svg { width: 100%; height: 100%; display: block; }
.the-sp .trien { position: absolute; right: 14px; bottom: -24px; background: var(--giay); border-radius: 50%; padding: 3px; width: 60px; height: 60px; }
.the-sp .than { padding: 18px 18px 14px; flex: 1; }
.the-sp .loai { font-size: 0.8rem; color: var(--mo); margin-bottom: 4px; }
.the-sp h3 { font-size: 1.08rem; margin: 0 0 6px; padding-right: 60px; }
.the-sp h3 a { color: inherit; text-decoration: none; }
.the-sp p { font-size: 0.9rem; color: var(--mo); margin: 0 0 10px; }
.the-sp .chan { padding: 10px 18px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--ke); font-size: 0.86rem; }

/* ---------- Bộ lọc ---------- */
.bo-cuc-loc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.bo-loc h3 { font-size: 0.92rem; margin: 22px 0 8px; }
.bo-loc h3:first-child { margin-top: 0; }
.bo-loc label { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 0.92rem; cursor: pointer; }
.bo-loc label span { margin-left: auto; color: var(--mo); font-size: 0.8rem; font-family: var(--tblr-font-monospace); }
.thanh-cong-cu { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.thanh-cong-cu .form-control { max-width: 360px; }
.chuyen-kieu { display: inline-flex; border: 1px solid var(--ke); border-radius: 4px; overflow: hidden; margin-left: auto; }
.chuyen-kieu a { padding: 7px 12px; font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--mo); background: var(--giay); }
.chuyen-kieu a.dang-xem { background: var(--lam); color: #fff; }

/* ---------- Trang chi tiết ---------- */
.duong-dan { font-size: 0.86rem; color: var(--mo); padding-block: 18px 0; }
.duong-dan a { color: var(--mo); }
.dau-sp { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-block: 22px 34px; align-items: start; }
.dau-sp h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; margin: 6px 0 10px; }
.dau-sp .mot-cau { font-size: 1.1rem; color: var(--mo); max-width: 38em; }
.thong-so { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 18px 0 24px; font-size: 0.9rem; color: var(--mo); }
.thong-so b { color: var(--lam-dam); font-weight: 600; }
.nut-truy-cap { display: flex; flex-wrap: wrap; gap: 12px; }
.o-trien { border: 1px solid var(--ke); background: var(--giay); border-radius: 6px; padding: 20px; text-align: center; }
.o-trien h2 { font-size: 1.15rem; margin: 10px 0 4px; }
.o-trien p { font-size: 0.88rem; color: var(--mo); margin: 0 0 10px; }
.the-ngang { display: flex; gap: 0; border-bottom: 2px solid var(--lam-dam); margin-bottom: 26px; flex-wrap: wrap; }
.the-ngang a { padding: 10px 18px; font-weight: 600; color: var(--mo); text-decoration: none; border: 1px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.the-ngang a.dang-xem { color: var(--lam-dam); background: var(--giay); border-color: var(--lam-dam); border-bottom: 2px solid var(--giay); border-radius: 4px 4px 0 0; }
.bo-cuc-sp { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.bai-viet { font-size: 1.04rem; line-height: 1.75; max-width: 44em; }
.bai-viet h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.o-ben { border: 1px solid var(--ke); background: var(--giay); border-radius: 6px; padding: 18px; margin-bottom: 18px; font-size: 0.92rem; }
.o-ben h3 { font-size: 0.95rem; margin: 0 0 12px; }
.o-ben dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.o-ben dt { color: var(--mo); font-weight: 400; } .o-ben dd { margin: 0; font-weight: 600; text-align: right; }
.nguoi { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.anh-dd { width: 36px; height: 36px; border-radius: 50%; background: var(--lam-nhat); color: var(--lam); display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; flex: none; }
.nguoi span { display: block; font-size: 0.82rem; color: var(--mo); }
.trich-dan { background: var(--men); border: 1px dashed var(--ke); border-radius: 4px; padding: 12px; font-size: 0.86rem; line-height: 1.55; }
.can-ho-tro { border-left: 4px solid var(--ngoc); }
.can-ho-tro li { margin-bottom: 4px; }
.phieu-cham { width: 100%; border-collapse: collapse; background: var(--giay); border: 1px solid var(--ke); font-size: 0.93rem; }
.phieu-cham th, .phieu-cham td { padding: 10px 14px; border-bottom: 1px solid var(--ke); text-align: left; }
.phieu-cham th { font-size: 0.8rem; color: var(--mo); font-weight: 600; border-bottom: 2px solid var(--lam-dam); }
.thanh-diem { display: inline-grid; grid-template-columns: repeat(5, 16px); gap: 3px; vertical-align: middle; margin-right: 8px; }
.thanh-diem i { height: 10px; background: var(--lam-nhat); border-radius: 1px; }
.thanh-diem i.co { background: var(--lam); }

/* ---------- Biểu mẫu đăng sản phẩm ---------- */
.cac-buoc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 6px 0 30px; border: 1px solid var(--ke); background: var(--giay); border-radius: 6px; overflow: hidden; }
.cac-buoc > div { padding: 12px 16px; font-size: 0.9rem; font-weight: 600; color: var(--mo); border-right: 1px solid var(--ke); display: flex; gap: 10px; align-items: center; }
.cac-buoc > div:last-child { border-right: 0; }
.cac-buoc .so-buoc { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 0.78rem; flex: none; font-family: var(--tblr-font-monospace); }
.cac-buoc .xong { color: var(--ngoc); }
.cac-buoc .xong .so-buoc { background: var(--ngoc); border-color: var(--ngoc); color: #fff; }
.cac-buoc .dang-lam { color: var(--lam-dam); background: var(--lam-nhat); box-shadow: inset 0 -3px 0 var(--lam); }
.bo-cuc-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.o-form { background: var(--giay); border: 1px solid var(--ke); border-radius: 6px; padding: 26px; }
.o-form h2 { font-size: 1.25rem; margin: 0 0 4px; }
.o-form > p { color: var(--mo); margin-bottom: 22px; }
.truong { margin-bottom: 22px; }
.truong label { font-weight: 600; display: block; margin-bottom: 4px; }
.truong .goi-y { font-size: 0.86rem; color: var(--mo); margin-bottom: 8px; }
.truong .form-control, .truong .form-select { font-size: 1rem; padding: 10px 12px; }
.nhom-nhap { display: flex; }
.nhom-nhap .tien-to { padding: 10px 12px; background: var(--men); border: 1px solid var(--ke); border-right: 0; border-radius: 4px 0 0 4px; color: var(--mo); display: flex; align-items: center; }
.nhom-nhap .form-control { border-radius: 0 4px 4px 0; }
.kiem-tra { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; margin-top: 8px; font-weight: 500; }
.kiem-tra.tot { color: var(--ngoc); } .kiem-tra.cho { color: var(--mo); }
.chan-form { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--ke); }
.xem-truoc { position: sticky; top: 92px; }
.xem-truoc h3 { font-size: 0.92rem; color: var(--mo); font-weight: 600; margin: 0 0 10px; }
.viec-can { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.viec-can li { display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.viec-can .ti { margin-top: 3px; }
.viec-can .roi { color: var(--ngoc); } .viec-can .chua { color: var(--mo); }

/* ---------- Hồ sơ thành viên ---------- */
.dau-ho-so { background: var(--giay); border-bottom: 1px solid var(--ke); }
.dau-ho-so .khung { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding-block: 34px; }
.anh-lon { width: 112px; height: 112px; border-radius: 50%; background: var(--lam); color: #fff; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; }
.dau-ho-so h1 { font-size: 1.8rem; margin: 0 0 4px; }
.lop-tv { display: inline-flex; gap: 6px; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--ngoc); border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 10px; margin-left: 10px; vertical-align: middle; }
.day-trien { display: flex; gap: 14px; align-items: center; }
.day-trien .dem { text-align: center; font-size: 0.8rem; color: var(--mo); }
.day-trien .dem b { display: block; font-size: 1.3rem; color: var(--lam-dam); }
.nang-luc { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 0.9rem; }
.nang-luc th { text-align: left; font-weight: 500; padding-right: 10px; }
.nang-luc thead th { font-size: 0.78rem; color: var(--mo); text-align: center; font-weight: 600; }
.nang-luc td { width: 74px; height: 30px; border-radius: 3px; background: var(--lam-nhat); text-align: center; font-size: 0.78rem; color: var(--mo); }
.nang-luc td.dat { background: var(--lam); color: #fff; }
.nang-luc td.dang { background: repeating-linear-gradient(135deg, var(--lam-nhat) 0 6px, #c9d6ea 6px 12px); color: var(--lam-dam); }
.hai-cot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.dong-chung-nhan { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--ke); }
.dong-chung-nhan b { font-weight: 600; }

/* ---------- Danh sách thảo luận, lộ trình ---------- */
.dong-list { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--ke); align-items: center; }
.dong-list:first-of-type { border-top: 2px solid var(--lam-dam); }
.dong-list a.tieu { font-weight: 600; color: var(--lam-dam); text-decoration: none; font-size: 1.01rem; }
.dong-list a.tieu:hover { text-decoration: underline; }
.dong-list .phu { font-size: 0.86rem; color: var(--mo); }
.dang-bai { font-size: 0.76rem; font-weight: 600; padding: 1px 8px; border-radius: 3px; background: var(--lam-nhat); color: var(--lam); margin-right: 8px; white-space: nowrap; }
.dang-bai.hoi { background: #e3f1ee; color: var(--ngoc); }
.dang-bai.chinh-sach { background: #f6ece1; color: var(--dong); }
.tien-do { width: 120px; height: 6px; background: var(--lam-nhat); border-radius: 3px; overflow: hidden; }
.tien-do i { display: block; height: 100%; background: var(--ngoc); }

/* ---------- Chân trang ---------- */
.tho-cam { height: 22px; background-color: var(--lam-dam);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 11 11 0l11 11-11 11zM22 11 33 0l11 11-11 11z' fill='none' stroke='%237f97bf' stroke-width='1.4'/%3E%3Cpath d='M5.5 11 11 5.5 16.5 11 11 16.5zM27.5 11 33 5.5 38.5 11 33 16.5z' fill='%23b4261c'/%3E%3C/svg%3E"); }
.chan-trang { background: var(--lam-dam); color: #c5d1e4; font-size: 0.9rem; padding-block: 40px 28px; }
.chan-trang .khung { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.chan-trang h4 { color: #fff; font-size: 0.92rem; margin-bottom: 12px; }
.chan-trang a { color: #c5d1e4; text-decoration: none; display: block; padding: 3px 0; }
.chan-trang a:hover { color: #fff; text-decoration: underline; }
.chan-trang .phap-ly { grid-column: 1 / -1; border-top: 1px solid #2c4472; padding-top: 18px; font-size: 0.82rem; color: #9fb3d1; }
.minh-hoa { background: #fff8dc; border-bottom: 1px solid #e3c97a; color: #6b5310; font-size: 0.76rem; padding: 3px 16px; text-align: center; }

/* ---------- Hộp đăng nhập ---------- */
.man-che { position: fixed; inset: 0; background: rgba(18, 40, 79, 0.55); z-index: 80; display: grid; place-items: center; padding: 20px; }
.hop-dang-nhap { background: var(--giay); border-radius: 8px; width: 100%; max-width: 430px; padding: 34px 34px 28px; text-align: center; border-top: 5px solid var(--son); }
.hop-dang-nhap h2 { font-size: 1.4rem; margin: 14px 0 8px; }
.hop-dang-nhap p { color: var(--mo); font-size: 0.95rem; }
.hop-dang-nhap .btn-google { width: 100%; justify-content: center; padding: 13px; font-size: 1.02rem; margin: 14px 0 16px; }
.hop-dang-nhap small { color: var(--mo); font-size: 0.82rem; line-height: 1.5; display: block; }

/* ---------- Điện thoại ---------- */
@media (max-width: 900px) {
  .dieu-huong { display: none; }
  .dau-trang .khung { gap: 12px; justify-content: space-between; }
  .thuong-hieu span { display: none; }
  .dau-trang .an-dt { display: none; }
  .mo-dau .khung { grid-template-columns: 1fr; padding-block: 34px 30px; gap: 28px; }
  .mo-dau::before { mask-image: none; -webkit-mask-image: none; opacity: 0.3; }
  .khoi-trien { grid-template-columns: 1fr; justify-items: center; }
  .trien-lon { max-width: 230px; }
  .chu-giai { width: 100%; }
  .bon-viec { grid-template-columns: 1fr 1fr; }
  .bon-viec > div { padding: 18px 14px 10px 0; }
  .bon-viec > div + div { padding-left: 14px; }
  .bon-viec > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--ke); }
  .bon-viec > div:nth-child(4) { border-top: 1px solid var(--ke); }
  .so-bo thead { display: none; }
  .so-bo, .so-bo tbody, .so-bo tr, .so-bo td { display: block; width: 100%; }
  .so-bo tr { padding: 14px; border-bottom: 1px solid var(--ke); position: relative; }
  .so-bo td { padding: 2px 0; border: 0; }
  .so-bo td.o-trien-nho { position: absolute; right: 12px; top: 12px; width: auto; }
  .so-bo .ten { padding-right: 60px; display: block; }
  .luoi-sp, .bo-cuc-loc, .dau-sp, .bo-cuc-sp, .bo-cuc-form, .hai-cot { grid-template-columns: 1fr; }
  .cac-buoc { grid-template-columns: 1fr; }
  .cac-buoc > div { border-right: 0; border-bottom: 1px solid var(--ke); }
  .cac-buoc > div:not(.dang-lam) { display: none; }
  .xem-truoc { position: static; }
  .dau-ho-so .khung { grid-template-columns: 72px minmax(0, 1fr); }
  .anh-lon { width: 72px; height: 72px; font-size: 1.5rem; }
  .dau-ho-so .khung > div:last-child { grid-column: 1 / -1; min-width: 0; }
  .day-trien { grid-column: 1 / -1; }
  .chan-trang .khung { grid-template-columns: 1fr 1fr; }
  .khoi { padding-block: 36px; }
  .nhat-ky .dong-tin > span:nth-child(n+2) { display: none; }
}

/* ---------- Tôn trọng người nhạy cảm với chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dong-xuong, .dong-xuong .cung { animation: none !important; }
  * { transition: none !important; }
}

/* ---------- Bản in ---------- */
@media print {
  .dau-trang, .chan-trang, .tho-cam, .nhat-ky, .minh-hoa, .nut-truy-cap, .bo-loc, .thanh-cong-cu { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .khoi { padding-block: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}

/* ---------- Bốn cấp triện ---------- */
.bon-cap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ke); border-radius: 6px; background: var(--men); }
.bon-cap > div { padding: 24px 22px; position: relative; }
.bon-cap > div + div { border-left: 1px solid var(--ke); }
.bon-cap > div + div::before { content: ""; position: absolute; left: -7px; top: 56px; width: 12px; height: 12px; border-top: 1px solid var(--ke); border-right: 1px solid var(--ke); background: var(--men); transform: rotate(45deg); }
.bon-cap h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.bon-cap p { font-size: 0.92rem; color: var(--mo); margin-bottom: 12px; }
.bon-cap .ma { white-space: normal; font-family: inherit; font-size: 0.84rem; font-weight: 600; }

/* ---------- Khu quản trị (bố cục Tabler) ---------- */
.quan-tri .navbar-vertical { background: var(--lam-dam); }
.quan-tri .navbar-vertical .nav-item.active { background: rgba(255, 255, 255, 0.08); box-shadow: inset 3px 0 0 var(--son); }
.quan-tri .page-pretitle { text-transform: none; letter-spacing: 0; font-size: 0.86rem; }
.quan-tri .table thead th { text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.quan-tri .card-title { font-weight: 700; }
.quan-tri .form-selectgroup-label { min-width: 46px; font-weight: 600; }
.quan-tri .form-selectgroup-input:checked + .form-selectgroup-label { background: var(--lam); color: #fff; border-color: var(--lam); }

@media (max-width: 900px) {
  .bon-cap { grid-template-columns: 1fr 1fr; }
  .bon-cap > div:nth-child(3) { border-left: 0; }
  .bon-cap > div:nth-child(n+3) { border-top: 1px solid var(--ke); }
  .bon-cap > div + div::before { display: none; }
}

@media (max-width: 1180px) { .thuong-hieu span { display: none; } .mo-dau .khung { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .khoi-trien { grid-template-columns: 1fr; }
  .khung { padding-inline: 16px; }
  .dau-trang .btn-google { font-size: 0.86rem; padding: 7px 10px; }
  .nhat-ky .khung { -webkit-mask-image: none; mask-image: none; white-space: normal; padding-block: 8px; }
  .truy-cap { flex-wrap: wrap; }
  .the-ngang { flex-wrap: nowrap; overflow-x: auto; }
  .the-ngang a { white-space: nowrap; }
  .phieu-cham { display: block; overflow-x: auto; }
  .chan-form { flex-direction: column-reverse; gap: 12px; }
  .chan-form > div { display: grid !important; grid-template-columns: 1fr 1fr; }
  .nut-truy-cap .btn { width: 100%; }
  .tieu-de-khoi h1 { font-size: 1.5rem !important; }
  .chuyen-kieu { margin-left: 0; }
  .dong-list { grid-template-columns: 1fr; }
  .hai-cot { gap: 34px; }
}
@media (max-width: 900px) {
  .luoi-sp, .bo-cuc-loc, .dau-sp, .bo-cuc-sp, .bo-cuc-form, .hai-cot { grid-template-columns: minmax(0, 1fr); }
  .dau-trang .khung { gap: 6px; }
  .thuong-hieu { gap: 8px; } .thuong-hieu svg { width: 34px; height: 34px; } .thuong-hieu b { font-size: 0.9rem; }
  .dau-trang .nut-nhom { gap: 4px; }
}
.quan-tri .navbar-vertical .nav-link { font-size: 0.9rem; }
.quan-tri .navbar-vertical .nav-link-title { white-space: nowrap; overflow: visible; }
.quan-tri .navbar-vertical { min-height: 100vh; height: auto; bottom: 0; }
.quan-tri .badge { letter-spacing: 0; font-weight: 600; }
.quan-tri .page { min-height: 100vh; }

/* Màn hình rất hẹp: giữ con triện làm dấu nhận diện, bỏ phần chữ để thanh đầu trang
   không xuống ba dòng. Chữ vẫn còn cho trình đọc màn hình. */
@media (max-width: 440px) {
  .thuong-hieu b {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .thuong-hieu svg { width: 38px; height: 38px; }
  .dau-trang .khung { min-height: 60px; }
}

/* Dải trạng thái: nền tảng chưa vận hành chính thức. */
.dai-thu-nghiem { background: #fdf6e3; border-bottom: 1px solid #e7d6a8; color: #6b5310; }
.dai-thu-nghiem .khung { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.dai-thu-nghiem .nhan-tn { display: inline-flex; align-items: center; gap: 5px; flex: none;
  background: #c08a1e; color: #fff; border-radius: 999px; padding: 2px 11px; font-size: 0.74rem; font-weight: 700; }
.dai-thu-nghiem p { margin: 0; font-size: 0.86rem; line-height: 1.5; min-width: 0; }
.dai-thu-nghiem a { color: #8a6312; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .dai-thu-nghiem .khung { align-items: flex-start; gap: 9px; padding-block: 9px; }
  .dai-thu-nghiem .nhan-tn { margin-top: 1px; }
  .dai-thu-nghiem p { font-size: 0.82rem; }
}
@media print { .dai-thu-nghiem { display: none !important; } }
.chan-trang .dang-thu-nghiem { color: #f0c674; font-weight: 600; }
