/* KHUNG CHUNG cho các trang con thuanmenh.com: 5 form hồ sơ + trang góp ý (viết lại 07/10/2026, đồng bộ trang chủ bố cục 2e + logo Ấn viền).
   - 4 form gọn (tron-doi, bat-tu, than-so, huong-nghiep) KHÔNG còn CSS riêng: toàn bộ giao diện ở file này.
   - Form Tử Vi theo câu hỏi (index.html) và trang góp ý giữ CSS riêng cho phần đặc thù (thẻ nhiều phần, sao, NPS),
     bảng màu đã đổi thẳng trong trang; file này lo phần chung: thanh đầu/chân trang, bố cục 2 cột, thẻ tóm tắt, màn hình chờ.
   - Hành vi đi kèm ở form.js (báo lỗi tại ô, tự điền, thanh tiến độ chờ, gợi ý sau khi xong, phóng to trang mẫu).
   Font nạp bằng thẻ <link> trong từng trang (Noto Serif cho tiêu đề từ 15/10, Noto Serif Display chỉ cho tên thương hiệu, Be Vietnam Pro), không @import ở đây.
   Nguồn: app/public/nhan-dien/form.css -> VPS /var/www/thuanmenh.com/nhan-dien/form.css (trien-khai.sh). */
:root {
  --nen: #F4EEE4; --nen-2: #EDE5D7; --giay: #FFFFFF; --muc: #1F1D1A; --muc-2: #46413A; --mo: #7A7266;
  --son: #C8382B; --son-dam: #A92D22; --son-nhat: rgba(200,56,43,.08); --son-net: rgba(200,56,43,.3); --vien: #E3D8C6; --loi: #B3261E;
  --serif: 'Noto Serif', 'Noto Serif Display', Georgia, serif; --sans: 'Be Vietnam Pro', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--muc); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ===== Thanh đầu trang + chân trang: chép đúng trang chủ (app/public/trang-chu.html, .dau / .chan), tiền tố tm- ===== */
.tm-khung { width: min(1200px, 100% - 32px); margin: 0 auto; }
/* Đầu trang nền be đậm hơn thân trang (anh yêu cầu 07/10/2026), cùng màu với trang chủ */
.tm-dau { position: sticky; top: 0; z-index: 50; background: rgba(236,229,216,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #D6C8AF; box-shadow: 0 6px 18px rgba(31,29,26,.06); }
.tm-dau .tm-khung { display: flex; align-items: center; gap: 30px; height: 60px; } /* 72 -> 60px (anh yêu cầu thu gọn 07/10/2026) */
.tm-dau .tm-logo img { width: 34px; height: 34px; }
.tm-dau .tm-logo b { font-size: 20px; }
@media (min-width: 901px) { .tm-dau .tm-menu a.tm-nut { padding: 8px 16px; } }
.tm-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--muc); margin-right: auto; }
.tm-logo img { width: 40px; height: 40px; display: block; }
.tm-logo b { font: 600 23px 'Noto Serif Display', var(--serif); letter-spacing: -.005em; } /* tên thương hiệu giữ Noto Serif Display */
.tm-menu { display: flex; align-items: center; gap: 30px; }
.tm-menu a { font: 500 14.5px var(--sans); text-decoration: none; color: var(--muc-2); position: relative; }
.tm-menu a:not(.tm-nut)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--son); transition: right .25s; }
.tm-menu a:not(.tm-nut):hover::after { right: 0; }
.tm-menu a.tm-nut { display: inline-flex; align-items: center; background: var(--son); color: #fff; font: 600 14px var(--sans); padding: 10px 18px; border-radius: 10px; transition: transform .2s, background .2s; }
.tm-menu a.tm-nut:hover { background: var(--son-dam); transform: translateY(-2px); }
.tm-mo-menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.tm-mo-menu span { display: block; width: 24px; height: 1.8px; background: var(--muc); margin: 6px 0; transition: .2s; }
@media (max-width: 900px) {
  .tm-mo-menu { display: block; }
  /* Menu điện thoại nổi rõ (anh góp ý 07/10/2026): nền trắng tách khỏi đầu trang, bóng đậm, phủ mờ trang phía dưới (bấm vùng mờ để đóng) */
  .tm-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #FFFFFF; border-top: 1px solid #D6C8AF; border-radius: 0 0 18px 18px; box-shadow: 0 28px 48px rgba(31,29,26,.28); padding: 6px 20px 20px; display: none; }
  .tm-menu a { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--vien); font: 500 16.5px var(--sans); color: var(--muc); }
  .tm-menu a:not(.tm-nut)::after { display: block; position: static; content: "→"; background: none; height: auto; color: var(--son); font-size: 17px; transition: transform .2s; }
  .tm-menu a:not(.tm-nut):active::after { transform: translateX(4px); }
  .tm-menu a.tm-nut { margin-top: 18px; justify-content: center; border-bottom: 0; padding: 15px 18px; font-size: 16px; color: #fff; box-shadow: 0 10px 22px rgba(200,56,43,.28); }
  .tm-dau.tm-mo .tm-menu { display: flex; animation: tm-tha .22s ease-out; }
  .tm-dau.tm-mo::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 100vh; background: rgba(31,29,26,.5); z-index: -1; animation: tm-mo-dan .22s ease-out; }
  body:has(.tm-dau.tm-mo) { overflow: hidden; }
  @keyframes tm-tha { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  @keyframes tm-mo-dan { from { opacity: 0; } to { opacity: 1; } }
  .tm-dau.tm-mo .tm-mo-menu span:nth-child(1) { transform: translateY(7.8px) rotate(45deg); }
  .tm-dau.tm-mo .tm-mo-menu span:nth-child(2) { opacity: 0; }
  .tm-dau.tm-mo .tm-mo-menu span:nth-child(3) { transform: translateY(-7.8px) rotate(-45deg); }
}
/* Chân trang nền mực tối (anh chọn phương án B 07/10/2026, ảnh thuong-hieu/chan-trang-3-phuong-an_*.jpg); logo bản sáng an-vien-sang.svg */
.tm-chan { --chan-nen: #171512; --chan-chu: #CFC6B8; --chan-mo: #9C9384; --chan-nhat: #8C8375; --chan-son: #E58A7B; --chan-vien: rgba(237,229,215,.12);
  background: var(--chan-nen); color: var(--chan-chu); margin-top: 56px; font: 400 16px/1.6 var(--sans); }
.tm-chan > .tm-khung { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 64px 0 40px; }
.tm-chan .tm-thuong-hieu p { margin: 14px 0 0; color: var(--chan-mo); font-size: 14.5px; max-width: 320px; }
.tm-chan h4 { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--chan-son); margin: 0 0 16px; }
.tm-chan ul { list-style: none; margin: 0; padding: 0; }
.tm-chan li { margin-bottom: 9px; font-size: 14.5px; }
.tm-chan a { text-decoration: none; color: var(--chan-chu); transition: color .2s; }
.tm-chan a:hover { color: #fff; }
.tm-chan .tm-mxh { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; padding: 0 16px 0 12px; border: 1px solid rgba(237,229,215,.18); border-radius: 999px; font-size: 14.5px; transition: border-color .2s, color .2s, background .2s; }
.tm-chan .tm-mxh:hover { color: #fff; border-color: rgba(237,229,215,.45); background: rgba(237,229,215,.06); }
.tm-chan .tm-mxh:focus-visible { outline: 2px solid var(--chan-son); outline-offset: 3px; }
.tm-chan .tm-mxh svg { flex: none; }
.tm-chan .tm-logo, .tm-chan .tm-logo b { color: var(--nen); }
.tm-chan .tm-day { border-top: 1px solid var(--chan-vien); }
.tm-chan .tm-day .tm-khung { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; font-size: 13px; color: var(--chan-nhat); }
@media (max-width: 1000px) { .tm-chan > .tm-khung { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tm-chan > .tm-khung { grid-template-columns: 1fr; } }

/* ===== Bố cục: máy tính 2 cột (form trái, thẻ tóm tắt dính phải), điện thoại 1 cột ===== */
.wrap { width: min(1120px, 100% - 32px); max-width: none; margin: 0 auto; padding: 44px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; align-items: start; }
.wrap > * { grid-column: 1; min-width: 0; }
.wrap > .tm-tom { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: 84px; }
/* Trang không có thẻ tóm tắt (trang góp ý): một cột, căn giữa */
.wrap:not(:has(> .tm-tom)) { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.wrap:not(:has(> .tm-tom)) > header { text-align: center; }
.wrap:not(:has(> .tm-tom)) > header p { margin: 0 auto; }
@media (max-width: 960px) {
  .wrap { grid-template-columns: minmax(0, 1fr); max-width: 680px; padding-top: 30px; }
  .wrap > .tm-tom { grid-column: 1; grid-row: auto; position: static; margin-bottom: 22px; }
  .tm-dang-lam .wrap > .tm-tom { display: none; }
}

/* ===== Đầu trang của form ===== */
.wrap > header { text-align: left; margin-bottom: 26px; }
.wrap > header .nhan { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--son); margin-bottom: 10px; text-decoration: none; }
.wrap > header .nhan::before { content: ""; width: 24px; height: 1.5px; background: var(--son); }
.wrap > header h1 { font: 500 clamp(32px, 5vw, 46px)/1.12 var(--serif); letter-spacing: -.01em; margin: 0 0 12px; color: var(--muc); }
.wrap > header p { margin: 0; max-width: 620px; color: var(--muc-2); font-size: 16.5px; }

/* ===== Thẻ tóm tắt "Bạn nhận được" ===== */
.tm-tom { background: var(--giay); border: 1px solid var(--vien); border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px rgba(31,29,26,.06); }
.tm-tom .tm-nhan { font: 600 11.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--son); }
.tm-tom h2 { font: 500 23px/1.2 var(--serif); margin: 6px 0 14px; }
.tm-so { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.tm-so li { background: var(--nen); border-radius: 12px; padding: 9px 6px; text-align: center; font-size: 11.5px; color: var(--mo); line-height: 1.35; }
.tm-so b { display: block; font: 500 19px var(--serif); color: var(--muc); }
.tm-mau { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.tm-mau button { all: unset; cursor: zoom-in; display: block; }
.tm-mau img { display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--vien); background: #fff; transition: transform .2s, box-shadow .2s; }
.tm-mau button:hover img, .tm-mau button:focus-visible img { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(31,29,26,.14); }
.tm-mau-chu { font-size: 11.5px; color: var(--mo); margin: 0 0 14px; }
.tm-co { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--vien); }
.tm-co li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--vien); font-size: 14px; color: var(--muc-2); line-height: 1.45; }
.tm-co li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 11px; height: 6px; border-left: 1.8px solid var(--son); border-bottom: 1.8px solid var(--son); transform: rotate(-45deg); }
.tm-tin { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.tm-tin li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mo); line-height: 1.45; }
.tm-tin svg { flex: none; width: 17px; height: 17px; margin-top: 1px; stroke: var(--son); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tm-hoi { font: 600 13.5px var(--sans); color: var(--son); text-decoration: none; }
.tm-hoi:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .tm-tom { padding: 18px; }
  .tm-tom h2 { display: none; }
  .tm-co, .tm-hoi, .tm-tin { display: none; }
  .tm-mau-chu { margin-bottom: 0; }
}
/* Phóng to trang mẫu */
/* Khung xem lớn (làm lại 22/10/2026, form.js mục 3): thanh trên (tên trang, Phóng to, Đóng), trang vừa bề ngang + cuộn dọc,
   .to = gấp đôi cỡ (cuộn cả hai chiều), nút lật trang hai bên; ảnh nguồn 1400px ở nhan-dien/mau/lon/ */
html.tm-lon-mo, html.tm-lon-mo body { overflow: hidden; }
.tm-lon { position: fixed; inset: 0; z-index: 96; background: #171512; display: flex; flex-direction: column; }
.tm-lon-khung img { animation: tm-lon-hien .16s ease-out; }
.tm-lon-thanh { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); color: #F4EEE4; }
.tm-lon-ten { flex: 1; min-width: 0; font: 500 14.5px/1.35 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-lon-thanh button { flex: none; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(244,238,228,.35); border-radius: 10px; background: rgba(244,238,228,.08); color: #F4EEE4; font: 600 14.5px var(--sans); cursor: pointer; }
.tm-lon-thanh button:hover { background: rgba(244,238,228,.16); }
.tm-lon-thanh .tm-lon-dong { padding: 0; font-size: 18px; }
.tm-lon-khung { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.tm-lon-khung img { display: block; margin: 0 auto; width: min(900px, 100%); height: auto; border-radius: 4px; box-shadow: 0 16px 50px rgba(0,0,0,.45); background: #fff; cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; }
.tm-lon.to .tm-lon-khung img { width: min(1800px, 200%); max-width: none; cursor: zoom-out; }
.tm-lon-lat { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(244,238,228,.92); color: var(--muc); font: 400 30px/1 var(--serif); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.tm-lon-truoc { left: 12px; }
.tm-lon-sau { right: 12px; }
.tm-lon button:focus-visible { outline: 2px solid #F4EEE4; outline-offset: 2px; }
@media (max-width: 640px) {
  .tm-lon-khung { padding-left: 8px; padding-right: 8px; }
  .tm-lon-lat { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); margin-top: 0; }
  .tm-lon-truoc { left: 16px; } .tm-lon-sau { right: 16px; }
}
@keyframes tm-lon-hien { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tm-lon-khung img { animation: none; } }

/* ===== Thẻ form + ô nhập (4 form gọn) ===== */
.the { background: var(--giay); border: 1px solid var(--vien); border-radius: 18px; padding: 26px 24px; box-shadow: 0 18px 40px rgba(31,29,26,.06); }
.muc { display: flex; align-items: center; gap: 10px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--son); margin: 26px 0 14px; }
.muc:first-of-type { margin-top: 0; }
.muc::after { content: ""; flex: 1; height: 1px; background: var(--vien); }
.field { margin-bottom: 18px; }
.q { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.q small { font-weight: 400; color: var(--mo); }
input[type=text], input[type=email], input[type=number], input[type=time], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--muc); padding: 12px 13px; background: #fff; border: 1px solid var(--vien); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #A9A091; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--son); box-shadow: 0 0 0 4px rgba(200,56,43,.12); }
form.the .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } /* chỉ 4 form gọn: form Tử Vi câu hỏi có .row riêng (22/10/2026) */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; gap: 7px; align-items: center; padding: 8px 14px; border: 1px solid var(--vien); border-radius: 99px; background: #fff; font-size: 15px; cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.chips label:hover { border-color: var(--son-net); }
.chips input { accent-color: var(--son); margin: 0; }
.chips label:has(input:checked) { background: var(--son-nhat); border-color: var(--son); color: var(--son-dam); }
.dong-y label, .chips label:has(input[name=dong_y]) { border-radius: 12px; align-items: flex-start; line-height: 1.5; }
.chips label:has(input[name=dong_y]) a { color: var(--son-dam); text-decoration: underline; text-underline-offset: 2px; }
.goi-y { font-size: 13.5px; color: var(--mo); margin: -8px 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.the button[type=submit] { width: 100%; font: 600 16.5px var(--sans); padding: 15px; border: 0; border-radius: 12px; background: var(--son); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(200,56,43,.22); transition: background .2s, transform .1s; }
form.the button[type=submit]:hover { background: var(--son-dam); }
form.the button[type=submit]:active { transform: translateY(1px); }
form.the button:disabled { opacity: .6; cursor: progress; }
.loi { color: var(--loi); font-size: 14px; margin-top: 10px; min-height: 1em; }
.tm-cam-ket { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 12px 0 0; font-size: 12.5px; color: var(--mo); text-align: center; }
form#f:not(.the) .row:has(#ngay) { grid-template-columns: 1fr 1fr 1.3fr; } /* form Tử Vi câu hỏi: ngày tháng năm vẫn một hàng */
@media (max-width: 420px) { form.the .row { grid-template-columns: 1fr 1fr 1.3fr; } .the { padding: 22px 16px; } } /* form.the: form Tử Vi câu hỏi có .row 2 ô riêng (22/10/2026) */

/* Báo lỗi tại ô (form.js) */
.tm-sai, .invalid { border-color: var(--loi) !important; box-shadow: 0 0 0 4px rgba(179,38,30,.1) !important; }
.tm-sai-chu { color: var(--loi); font-size: 13px; margin-top: 5px; }

/* ===== Màn hình chờ / đã xong (4 form gọn) ===== */
#trangThai { display: none; text-align: center; padding: 34px 26px; }
#trangThai h2 { font: 500 30px/1.2 var(--serif); margin: 0 0 8px; }
#trangThai #tdCon { color: var(--muc-2); max-width: 460px; margin: 0 auto; }
ol.buoc { list-style: none; text-align: left; max-width: 340px; margin: 24px auto 0; padding: 0; }
ol.buoc li { position: relative; padding: 9px 0 9px 34px; color: #A39A8C; }
ol.buoc li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CFC4B2; }
ol.buoc li.dang { color: var(--muc); font-weight: 600; }
ol.buoc li.dang::before { border-color: var(--son); border-right-color: transparent; animation: tm-xoay 1s linear infinite; }
ol.buoc li.xong { color: var(--muc); }
ol.buoc li.xong::before { background: var(--son); border-color: var(--son); }
@keyframes tm-xoay { to { transform: rotate(360deg); } }
.tai { display: inline-block; margin-top: 22px; padding: 14px 30px; border-radius: 12px; background: var(--son); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px rgba(200,56,43,.22); }
.tai:hover { background: var(--son-dam); }
.ghi { font-size: 13px; color: var(--mo); margin-top: 16px; }

/* Thanh tiến độ ước tính (form.js thêm vào màn hình chờ) */
.tm-tien-do { max-width: 420px; margin: 22px auto 0; }
.tm-tien-do .tm-thanh { height: 10px; border-radius: 99px; background: var(--vien); overflow: hidden; }
.tm-tien-do .tm-day { position: relative; height: 100%; width: 3%; border-radius: inherit; background: linear-gradient(90deg, #E8796D, var(--son)); transition: width 1s linear; overflow: hidden; }
.tm-tien-do .tm-day::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: tm-song 1.8s ease-in-out infinite; }
.tm-tien-do .tm-nhan-td { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--mo); }
@keyframes tm-song { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .tm-tien-do .tm-day::after, ol.buoc li.dang::before { animation: none; } }

/* Khối gợi ý sau khi gửi (form.js), dùng cho cả 5 form */
.tm-sau { margin: 28px auto 0; max-width: 560px; text-align: left; border-top: 1px solid var(--vien); padding-top: 22px; }
.tm-sau h3 { font: 500 20px var(--serif); margin: 0 0 4px; text-align: center; }
.tm-sau > p { font-size: 14px; color: var(--mo); margin: 0 0 14px; text-align: center; }
.tm-sau .tm-goi-y { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-sau .tm-goi-y a { display: block; padding: 13px 15px; border: 1px solid var(--vien); border-radius: 12px; text-decoration: none; background: #fff; transition: border-color .2s, transform .2s; }
.tm-sau .tm-goi-y a:hover { border-color: var(--son-net); transform: translateY(-2px); }
.tm-sau .tm-goi-y b { display: block; font: 500 16px var(--serif); color: var(--muc); }
.tm-sau .tm-goi-y span { font-size: 12.5px; color: var(--mo); }
.tm-sau .tm-gop-y { display: block; margin-top: 14px; text-align: center; padding: 13px; border-radius: 12px; background: var(--son-nhat); border: 1px dashed var(--son-net); color: var(--son-dam); text-decoration: none; font-weight: 600; font-size: 14.5px; }
@media (max-width: 520px) { .tm-sau .tm-goi-y { grid-template-columns: 1fr; } }

/* ===== Trang nội dung: Chính sách bảo mật, Điều khoản, Liên hệ, 404 (Đợt 2, 07/10/2026) ===== */
.tm-van { width: min(780px, 100% - 32px); margin: 0 auto; padding: 56px 0 8px; }
.tm-nhan-trang { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--son); margin-bottom: 12px; }
.tm-nhan-trang::before { content: ""; width: 24px; height: 1.5px; background: var(--son); }
.tm-van h1 { font: 500 clamp(34px, 5vw, 48px)/1.12 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.tm-van .tm-dan { font-size: 17.5px; color: var(--muc-2); margin: 0 0 10px; }
.tm-van .tm-ngay { font-size: 13.5px; color: var(--mo); margin: 0 0 30px; }
.tm-muc-luc { background: var(--giay); border: 1px solid var(--vien); border-radius: 16px; padding: 18px 22px; margin: 0 0 40px; }
.tm-muc-luc b { display: block; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mo); margin-bottom: 8px; }
.tm-muc-luc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.tm-muc-luc li { margin: 3px 0; break-inside: avoid; }
.tm-muc-luc a { color: var(--muc-2); text-decoration: none; }
.tm-muc-luc a:hover { color: var(--son); }
.tm-van section { padding: 4px 0 18px; border-top: 1px solid var(--vien); scroll-margin-top: 78px; }
.tm-van h2 { font: 500 25px/1.3 var(--serif); margin: 24px 0 12px; display: flex; gap: 12px; align-items: baseline; }
.tm-van h2 span { font: 600 13px var(--sans); color: var(--son); min-width: 22px; }
.tm-van p, .tm-van li { font-size: 16.5px; line-height: 1.75; color: var(--muc-2); }
.tm-van ul { padding-left: 22px; margin: 0 0 14px; }
.tm-van li { margin: 5px 0; }
.tm-van a { color: var(--son-dam); }
.tm-van strong { color: var(--muc); font-weight: 600; }
.tm-van table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; background: var(--giay); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--vien); }
.tm-van th, .tm-van td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--vien); line-height: 1.6; color: var(--muc-2); }
.tm-van th { font-weight: 600; color: var(--muc); background: var(--nen-2); }
.tm-van tr:last-child td { border-bottom: 0; }
.tm-o-nhac { background: var(--son-nhat); border: 1px solid var(--son-net); border-radius: 14px; padding: 16px 20px; margin: 8px 0 18px; }
.tm-o-nhac p { margin: 0; color: var(--muc); }
@media (max-width: 640px) { .tm-muc-luc ol { columns: 1; } .tm-van table { font-size: 14px; } .tm-van th, .tm-van td { padding: 9px 10px; } }
/* Liên hệ: dùng .wrap + .tm-tom + form.the như các form hồ sơ; khối trả lời nhanh */
.tm-nhanh { list-style: none; margin: 0; padding: 0; }
.tm-nhanh li { padding: 12px 0; border-top: 1px solid var(--vien); font-size: 14.5px; color: var(--muc-2); line-height: 1.6; }
.tm-nhanh li b { display: block; color: var(--muc); font-size: 15px; margin-bottom: 2px; }
.tm-da-gui { text-align: center; padding: 34px 24px; }
.tm-da-gui h2 { font: 500 28px var(--serif); margin: 0 0 8px; }
.tm-da-gui p { color: var(--muc-2); margin: 0 auto; max-width: 440px; }
/* 404 */
.tm-404 { text-align: center; padding: 72px 0 24px; }
.tm-404 .tm-so-lon { font: 500 clamp(84px, 16vw, 150px)/1 var(--serif); color: var(--son); letter-spacing: -.02em; }
.tm-404 h1 { margin-top: 12px; }
.tm-404 .tm-dan { max-width: 520px; margin: 0 auto 26px; }
.tm-404 .tm-sau { border-top: 0; padding-top: 0; }
.tm-nut-chinh { display: inline-flex; align-items: center; gap: 10px; background: var(--son); color: #fff !important; text-decoration: none; font: 600 15px var(--sans); padding: 14px 24px; border-radius: 10px; box-shadow: 0 10px 24px rgba(200,56,43,.25); }
.tm-nut-chinh:hover { background: var(--son-dam); }

/* ===== Thanh tiến độ (.progress, form Tử Vi theo câu hỏi + trang góp ý) khi dính dưới đầu trang (07/10/2026) =====
   form.js / trang góp ý thêm lớp .tm-dinh khi thanh chạm đầu trang: nền be như đầu trang, trải hết bề ngang
   (bóng đổ trải rộng + clip-path, không làm trang cuộn ngang), viền dưới 1px. Chưa dính thì trong suốt như cũ. */
.progress { position: sticky; z-index: 5; padding: 10px 0 12px; margin-bottom: 14px; }
.progress .bar { height: 4px; border-radius: 4px; background: rgba(31,29,26,.1); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--son); transition: width .3s; }
.progress .lbl { color: var(--mo); font-size: 12px; margin-top: 6px; text-align: right; }
.tm-dang-lam .progress[data-muc] { display: none; }
.progress { top: 61px !important; transition: background-color .2s; }
.progress.tm-dinh { background: #ECE5D8 !important; box-shadow: 0 1px 0 100vmax #D6C8AF, 0 0 0 100vmax #ECE5D8; clip-path: inset(0 -100vmax -1px); }
.progress.tm-dinh .bar { background: rgba(31,29,26,.14); }
.wrap > .progress ~ .tm-tom, .wrap:has(> .progress) > .tm-tom { top: 128px; }

/* Khóa nhận phiếu (09/10/2026): hộp báo do form.js chèn trước thanh tiến độ khi server bật KHOA_NHAN_PHIEU */
.tm-khoa { margin: 0 0 18px; padding: 16px 18px; background: var(--giay); border: 1px solid var(--son-net); border-left: 4px solid var(--son); border-radius: 10px; }
.tm-khoa b { display: block; font: 600 17px/1.35 var(--serif); color: var(--muc); }
.tm-khoa p { margin: 6px 0 8px; font-size: 15px; line-height: 1.55; color: var(--muc-2); }
.tm-khoa a { font-size: 15px; font-weight: 600; color: var(--son); }

/* ===== Thanh toán QR SePay (15/10/2026, form.js mục 5) ===== */
/* Khối giá trên nút gửi */
.tm-gia { margin: 18px 0 14px; padding: 16px 18px; background: var(--giay); border: 1px solid var(--vien); border-radius: 12px; }
.tm-gia-dong { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; color: var(--muc-2); }
.tm-gia-so { font: 600 22px/1.2 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-gia-so s, .tm-tt-tt s { font: 400 15px var(--sans); color: var(--mo); margin-right: 6px; }
.tm-gia-phu { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muc-2); }
.tm-gia-co-ma { margin-top: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: 600 15px var(--sans); color: var(--son-dam); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tm-gia-ma { margin-top: 12px; }
.tm-gia-ma label { display: block; font-size: 14.5px; font-weight: 600; color: var(--muc); margin-bottom: 6px; }
.tm-gia-o { display: flex; gap: 8px; }
.tm-gia-o input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; font: 500 16px var(--sans); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--vien); border-radius: 10px; background: #fff; color: var(--muc); }
.tm-gia-o button { min-height: 46px; padding: 0 16px; border: 1px solid var(--muc); border-radius: 10px; background: #fff; font: 600 15px var(--sans); color: var(--muc); cursor: pointer; }
.tm-gia-o button:disabled { opacity: .5; cursor: wait; }
.tm-gia-bao { margin: 6px 0 0; font-size: 14px; min-height: 1.4em; color: var(--muc-2); }
.tm-gia-dung { color: #2F6B3A; }
.tm-gia-sai { color: var(--loi); }

/* Lời nhắc đơn chưa trả (tải lại trang) */
.tm-don-cu { margin: 0 0 18px; padding: 14px 16px; background: var(--giay); border: 1px solid var(--son-net); border-left: 4px solid var(--son); border-radius: 10px; }
.tm-don-cu p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--muc); }
.tm-don-cu div { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-don-cu button { min-height: 44px; padding: 0 16px; border-radius: 10px; font: 600 15px var(--sans); cursor: pointer; }
.tm-don-mo { border: 0; background: var(--son); color: #fff; }
.tm-don-bo { border: 1px solid var(--vien); background: #fff; color: var(--muc-2); }

/* Hộp QR */
html.tm-tt-mo, html.tm-tt-mo body { overflow: hidden; }
.tm-tt { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(31,29,26,.62); overflow-y: auto; animation: tm-tt-hien .18s ease-out; }
.tm-tt-hop { position: relative; width: 100%; max-width: 780px; margin: auto; padding: 26px 26px 20px; background: var(--nen); border-radius: 16px; box-shadow: 0 24px 60px rgba(31,29,26,.35); outline: none; animation: tm-tt-len .22s cubic-bezier(.2,.8,.2,1); }
.tm-tt-nhan { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--son-dam); }
.tm-tt-hop h2 { margin: 0 0 18px; font: 600 24px/1.25 var(--serif); color: var(--muc); }
.tm-tt-luoi { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.tm-tt-qr { margin: 0; }
.tm-tt-qr img { display: block; width: 380px; height: auto; aspect-ratio: 1; object-fit: contain; padding: 8px; background: #fff; border: 1px solid var(--vien); border-radius: 12px; }
.tm-tt-qr figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muc-2); }
.tm-tt-tt { margin: 0; background: var(--giay); border: 1px solid var(--vien); border-radius: 12px; }
.tm-tt-tt > div { padding: 7px 12px; border-top: 1px solid var(--vien); }
.tm-tt-tt > div:first-child { border-top: 0; }
.tm-tt-tt dt { font-size: 12px; color: var(--mo); }
.tm-tt-tt dd { margin: 2px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14.5px; color: var(--muc); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tm-tt-tt dd b { font-weight: 700; font-size: 15.5px; }
.tm-tt-noi-dung { background: var(--son-nhat); }
.tm-tt-noi-dung dd b { color: var(--son-dam); letter-spacing: .05em; font-size: 16.5px; }
.tm-tt-tt button { margin-left: auto; min-height: 30px; min-width: 50px; padding: 0 10px; border: 1px solid var(--vien); border-radius: 7px; background: #fff; font: 600 12.5px var(--sans); color: var(--muc); cursor: pointer; }
.tm-tt-tt button:hover { border-color: var(--muc); }
.tm-tt-luu { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muc-2); }
.tm-tt-trang { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; background: var(--giay); border: 1px solid var(--vien); border-radius: 12px; font-size: 15px; line-height: 1.5; color: var(--muc); }
.tm-tt-xoay { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 2px solid var(--vien); border-top-color: var(--son); border-radius: 50%; animation: tm-tt-xoay 1s linear infinite; }
.tm-tt-trang.tm-tt-xong { border-color: #9BC3A2; background: #EEF6EF; }
.tm-tt-trang.tm-tt-xong .tm-tt-xoay { animation: none; border: 0; width: 20px; height: 20px; background: #2F6B3A; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tm-tt-nut { display: flex; justify-content: flex-end; margin-top: 14px; }
.tm-tt-nut:empty { display: none; }
.tm-tt-huy, .tm-tt-dong { min-height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px var(--sans); cursor: pointer; }
.tm-tt-huy { border: 1px solid var(--vien); background: transparent; color: var(--muc-2); }
.tm-tt-huy:hover { border-color: var(--muc-2); color: var(--muc); }
.tm-tt-dong { border: 0; background: var(--son); color: #fff; }
.tm-tt-chan { margin: 12px 0 0; font-size: 13.5px; color: var(--mo); }
.tm-tt-chan a { color: var(--son-dam); }
.tm-tt button:focus-visible, .tm-gia button:focus-visible, .tm-gia input:focus-visible, .tm-don-cu button:focus-visible { outline: 2px solid var(--muc); outline-offset: 2px; }
/* Bước chuyển khoản trên điện thoại (21/10/2026): 1. mở app ngân hàng (link VietQR), 2. lưu ảnh mã QR; QR + thông tin chép tay xếp dưới */
.tm-tt { overscroll-behavior: contain; }
.tm-tt-tom { margin: -8px 0 14px; font-size: 15.5px; color: var(--muc-2); }
.tm-tt-tom b { color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-tt-tom b + b, .tm-tt-tom b:last-child { color: var(--son-dam); letter-spacing: .04em; }
.tm-tt-app-khoi, .tm-tt-luu-khoi { margin: 0 0 12px; padding: 14px 12px 12px; background: #fff; border: 1px solid var(--vien); border-radius: 14px; }
.tm-tt-app-khoi h3, .tm-tt-luu-khoi h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 16px/1.35 var(--sans); color: var(--muc); }
.tm-tt-app-khoi h3 span, .tm-tt-luu-khoi h3 span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--son); color: #fff; font-size: 13px; }
.tm-tt-app-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tm-tt-app { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; min-height: 84px; padding: 9px 2px 8px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); color: var(--muc); text-decoration: none; font: 600 12.5px/1.2 var(--sans); text-align: center; touch-action: manipulation; transition: transform .12s, border-color .12s; }
.tm-tt-app:active { transform: scale(.96); border-color: var(--son); }
.tm-tt-app img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: cover; }
.tm-tt-app span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tt-app i { position: absolute; top: -7px; right: -3px; padding: 1px 6px; border-radius: 999px; background: #2F6B3A; color: #fff; font: 600 11px/1.5 var(--sans); font-style: normal; }
.tm-tt-app-them { margin-top: 8px; }
.tm-tt-app-them summary { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font: 600 14.5px var(--sans); color: var(--son-dam); cursor: pointer; list-style: none; }
.tm-tt-app-them summary::-webkit-details-marker { display: none; }
.tm-tt-app-them summary::after { content: ''; width: 8px; height: 8px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.tm-tt-app-them[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.tm-tt-app-ghi { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--muc-2); }
.tm-tt-app-ghi i { padding: 0 5px; border-radius: 999px; background: #2F6B3A; color: #fff; font: 600 11.5px/1.5 var(--sans); font-style: normal; }
.tm-tt-luu-qr { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 1.5px solid var(--son); border-radius: 12px; background: #fff; font: 600 15.5px var(--sans); color: var(--son-dam); cursor: pointer; touch-action: manipulation; }
.tm-tt-luu-qr::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11.2l4-4 1.4 1.4L12 17l-5.4-5.4L8 10.2l4 4V3zM4 19h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11.2l4-4 1.4 1.4L12 17l-5.4-5.4L8 10.2l4 4V3zM4 19h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tm-tt-luu-qr:disabled { opacity: .55; cursor: progress; }
.tm-tt-luu-bao { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--muc-2); }
.tm-tt-luu-bao:empty { display: none; }
.tm-tt-qr img { -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; } /* nhấn giữ để lưu ảnh QR */
.tm-tt-app-khoi .tm-tt-qr { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tm-tt-qr { min-width: 0; }
.tm-tt-qr img { max-width: 100%; box-sizing: border-box; }
.tm-tt-app-khoi .tm-tt-qr img { width: min(300px, 100%); }
.tm-tt-app-khoi .tm-tt-qr figcaption { font-size: 14.5px; color: var(--muc); }
.tm-tt-safari { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--son-nhat); font-size: 14.5px; line-height: 1.6; color: var(--muc-2); }
.tm-tt-safari a { display: inline-block; min-height: 24px; color: var(--son-dam); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tm-tt-nhay { animation: tm-tt-nhay .6s ease-in-out 3; }
.tm-tt-app:focus-visible, .tm-tt-app-them summary:focus-visible, .tm-tt-luu-qr:focus-visible { outline: 2px solid var(--muc); outline-offset: 2px; }
@keyframes tm-tt-nhay { 50% { box-shadow: 0 0 0 4px var(--son); } }
@media (min-width: 601px) and (max-width: 820px) { .tm-tt-luoi { grid-template-columns: 1fr; } .tm-tt-qr { display: flex; flex-direction: column; align-items: center; text-align: center; } .tm-tt-qr img { width: min(380px, 70vw); } }
@keyframes tm-tt-hien { from { opacity: 0; } }
@keyframes tm-tt-len { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes tm-tt-xoay { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .tm-tt { padding: 0; place-items: end center; }
  .tm-tt-hop { max-width: none; margin: auto 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .tm-tt-hop h2 { font-size: 21px; margin-bottom: 14px; }
  .tm-tt-luoi { grid-template-columns: 1fr; gap: 14px; }
  .tm-tt-qr { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .tm-tt-qr img { width: min(340px, 88vw); padding: 6px; }
  .tm-tt-qr figcaption { max-width: 300px; }
  .tm-tt-tt > div { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; padding: 5px 10px; }
  .tm-tt-tt dd { margin: 0; }
  .tm-tt-tt button { min-height: 36px; }
  .tm-tt-luu { margin-top: 10px; }
  .tm-tt-trang { margin-top: 10px; }
  .tm-tt-nut { justify-content: stretch; }
  .tm-tt-huy, .tm-tt-dong { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-tt, .tm-tt-hop, .tm-tt-nhay { animation: none; }
  .tm-tt-app { transition: none; }
  .tm-tt-xoay { animation-duration: 3s; }
}

/* Ô giá trong thẻ tóm tắt đầu form (15/10/2026) */
.tm-tom-gia { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0 0 12px; padding: 12px 14px; background: var(--son-nhat); border: 1px solid var(--son-net); border-radius: 12px; }
.tm-tom-gia-nhan { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--son-dam); }
.tm-tom-gia b { font: 600 26px/1.15 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-tom-gia-phu { font-size: 13.5px; line-height: 1.45; color: var(--muc-2); }

/* ===== Màn chờ "Đang lập hồ sơ" (dựng lại 15/10/2026, form.js mục 4; lớp .tm-cho chỉ gắn cho 4 form có #trangThai) ===== */
#trangThai.tm-cho { text-align: left; padding: 30px 30px 26px; }
.tm-cho-dau { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; }
.tm-cho-dau:not(:has(.tm-cho-bia)) { grid-template-columns: 1fr; }
.tm-cho-bia { position: relative; margin: 0; width: 112px; aspect-ratio: 112 / 158; border-radius: 6px; overflow: hidden; box-shadow: 0 14px 30px rgba(31,29,26,.18), 0 0 0 1px rgba(31,29,26,.06); transform: rotate(-2deg); }
.tm-cho-bia img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-cho-quet { position: absolute; left: 0; right: 0; top: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.55) 70%, rgba(200,56,43,.35) 72%, transparent 76%); animation: tm-cho-quet 2.6s ease-in-out infinite; }
.tm-cho-tich { position: absolute; right: -2px; bottom: -2px; width: 40px; height: 40px; border-radius: 50%; background: #2F6B3A; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1.4); }
.tm-cho-tich svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tm-cho-nhan { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--son-dam); }
#trangThai.tm-cho h2 { font: 500 30px/1.2 var(--serif); margin: 0 0 8px; color: var(--muc); }
.tm-cho-mo { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muc-2); max-width: 520px; }
.tm-cho-mo b { color: var(--muc); font-weight: 600; overflow-wrap: anywhere; }
#trangThai.tm-cho #tdCon { margin: 10px 0 0; max-width: none; padding: 10px 12px; border-radius: 10px; background: var(--nen); font-size: 14.5px; color: var(--muc); }
#trangThai.tm-cho #tdCon.tm-an, #trangThai.tm-cho #tdCon:empty { display: none; }
/* Tiến độ: số % lớn ở trên, thanh dày */
.tm-cho .tm-tien-do { max-width: none; margin: 26px 0 0; padding: 18px 18px 16px; background: var(--nen); border-radius: 14px; }
.tm-cho .tm-tien-do .tm-nhan-td { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: 14px; color: var(--muc-2); }
.tm-cho .tm-tien-do .tm-pct { font: 600 30px/1 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-cho .tm-tien-do .tm-thanh { height: 12px; background: #E3D8C6; }
/* Các bước: vòng số nối nhau bằng đường kẻ */
.tm-cho ol.buoc { display: grid; grid-template-columns: repeat(var(--so-buoc, 3), minmax(0, 1fr)); max-width: none; margin: 22px 0 0; padding: 0; counter-reset: buoc; }
.tm-cho ol.buoc li { counter-increment: buoc; position: relative; padding: 42px 8px 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--mo); }
.tm-cho ol.buoc li::before { content: counter(buoc); position: absolute; left: 50%; top: 0; width: 32px; height: 32px; margin-left: -16px; box-sizing: border-box; border-radius: 50%; border: 2px solid #D9CDB9; background: #fff; display: grid; place-items: center; font: 600 13.5px/1 var(--sans); color: var(--mo); animation: none; z-index: 1; }
.tm-cho ol.buoc li::after { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; border-radius: 2px; background: #E3D8C6; }
.tm-cho ol.buoc li:first-child::after { display: none; }
.tm-cho ol.buoc li.dang { color: var(--muc); font-weight: 600; }
.tm-cho ol.buoc li.dang::before { border-color: var(--son); color: var(--son); animation: tm-cho-nhip 1.6s ease-out infinite; }
.tm-cho ol.buoc li.xong { color: var(--muc); }
.tm-cho ol.buoc li.xong::before { content: ""; background: var(--son) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--son); }
.tm-cho ol.buoc li.xong::after, .tm-cho ol.buoc li.dang::after { background: var(--son); }
/* Nút tải khi xong */
.tm-cho #tdTai:empty { display: none; }
.tm-cho #tdTai { margin-top: 22px; }
.tm-cho #tdTai a.tai { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px; box-sizing: border-box; border-radius: 12px; background: var(--son); color: #fff; font: 600 17px var(--sans); text-decoration: none; box-shadow: 0 10px 24px rgba(200,56,43,.25); transition: background .2s; }
.tm-cho #tdTai a.tai:hover { background: var(--son-dam); }
.tm-cho #tdTai a.tai::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Ba dòng yên tâm */
.tm-cho-luu { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--vien); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tm-cho-luu li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muc-2); }
.tm-cho-luu svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--son); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Trạng thái xong / lỗi */
.tm-cho-xong .tm-cho-quet, .tm-cho-xong .tm-tien-do, .tm-cho-loi .tm-cho-quet, .tm-cho-loi .tm-tien-do { display: none; }
.tm-cho-xong .tm-cho-tich { opacity: 1; transform: scale(1); }
.tm-cho-xong .tm-cho-nhan { color: #2F6B3A; }
.tm-cho-xong #tdCon { display: none; }
.tm-cho-loi #tdCon { background: #FBEDEB; color: var(--loi); }
/* Gợi ý hồ sơ khác: gọn, xếp dưới cùng */
.tm-cho .tm-sau { max-width: none; margin-top: 22px; padding-top: 18px; }
.tm-cho .tm-sau h3 { font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mo); text-align: left; }
.tm-cho .tm-sau > p { display: none; }
.tm-cho .tm-sau .tm-goi-y { margin-top: 10px; gap: 8px; }
.tm-cho .tm-sau .tm-goi-y a { padding: 11px 13px; }
.tm-cho .tm-sau .tm-goi-y b { font-size: 15px; }
@keyframes tm-cho-quet { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(280%); } }
@keyframes tm-cho-nhip { 0% { box-shadow: 0 0 0 0 rgba(200,56,43,.35); } 100% { box-shadow: 0 0 0 10px rgba(200,56,43,0); } }
@media (max-width: 640px) {
  #trangThai.tm-cho { padding: 24px 18px 20px; }
  .tm-cho-dau { grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
  .tm-cho-bia { width: 76px; }
  .tm-cho-tich { width: 30px; height: 30px; box-shadow: 0 0 0 3px #fff; }
  .tm-cho-tich svg { width: 17px; height: 17px; }
  #trangThai.tm-cho h2 { font-size: 24px; }
  .tm-cho-mo { font-size: 15px; }
  .tm-cho ol.buoc { grid-template-columns: 1fr; gap: 0; }
  .tm-cho ol.buoc li { padding: 6px 0 6px 46px; text-align: left; min-height: 32px; display: flex; align-items: center; }
  .tm-cho ol.buoc li::before { left: 0; top: 50%; margin: -16px 0 0; }
  .tm-cho ol.buoc li::after { left: 15px; right: auto; top: -50%; width: 2px; height: calc(100% - 32px); transform: translateY(16px); }
  .tm-cho-luu { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-cho-quet, .tm-cho ol.buoc li.dang::before { animation: none; }
  .tm-cho-quet { display: none; }
}
.tm-dang-lam .tm-tom-gia { display: none; } /* đã gửi phiếu / đã trả tiền: thôi nhắc giá */

/* Màn chờ form Tử Vi theo câu hỏi (#done.tm-cho-tv): dựng thành thẻ như 4 form còn lại, ghi đè CSS riêng trong trang */
.done.tm-cho.tm-cho-tv { text-align: left; max-width: 760px; margin: 0 auto; padding: 30px 30px 26px; background: var(--giay); border: 1px solid var(--vien); border-radius: 18px; box-shadow: 0 18px 40px rgba(31,29,26,.06); color: var(--muc); }
.tm-cho-tv > .seal, .tm-cho-tv > .done-note { display: none; }
.tm-cho.tm-cho-tv h2 { font: 500 30px/1.2 var(--serif); margin: 0 0 8px; color: var(--muc); }
.tm-cho.tm-cho-tv .tm-cho-chu p { margin: 0; }
.tm-cho.tm-cho-tv #doneMsg { margin: 10px 0 0; max-width: none; padding: 10px 12px; border-radius: 10px; background: var(--nen); font-size: 14.5px; color: var(--muc); }
.tm-cho.tm-cho-tv #doneMsg.tm-an, .tm-cho.tm-cho-tv #doneMsg:empty { display: none; }
.tm-cho-loi.tm-cho-tv #doneMsg { background: #FBEDEB; color: var(--loi); }
.tm-cho-tv .tien-do { display: flex; flex-direction: column; max-width: none; margin: 26px 0 0; padding: 18px 18px 16px; background: var(--nen); border-radius: 14px; }
.tm-cho-tv .tien-do[hidden] { display: none; }
.tm-cho-tv .tien-do .td-lbl { order: -1; display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: 14px; color: var(--muc-2); }
.tm-cho-tv .tien-do .td-lbl #tdPct { font: 600 30px/1 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-cho-tv .tien-do .bar { height: 12px; border-radius: 99px; background: #E3D8C6; }
.tm-cho-tv .tien-do .fill { background: linear-gradient(90deg, #E8796D, var(--son)); }
.tm-cho-tv .tien-do .fill::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); }
.tm-cho-tv .diem-nb { max-width: none; margin: 22px 0 0; border-color: var(--vien); }
.tm-cho-tv .diem-nb .nb-tieu { font-family: var(--serif); }
.tm-cho-tv .diem-nb .nb-nhan span { background: var(--son-nhat); }
.tm-cho-tv a.dl { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 22px; padding: 0 20px; box-sizing: border-box; border-radius: 12px; background: var(--son); color: #fff; font: 600 17px var(--sans); text-decoration: none; box-shadow: 0 10px 24px rgba(200,56,43,.25); }
.tm-cho-tv a.dl[hidden] { display: none; }
.tm-cho-tv a.dl:hover { background: var(--son-dam); }
.tm-cho-tv a.dl::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm-cho-tv ol.buoc[hidden] { display: none; }
.tm-cho-xong .tien-do { display: none; }
@media (max-width: 640px) { .done.tm-cho.tm-cho-tv { padding: 24px 18px 20px; } .tm-cho.tm-cho-tv h2 { font-size: 24px; } }

/* Nút "Đọc hồ sơ ngay" + "Tải PDF" khi hồ sơ xong (15/10/2026) */
.tm-cho-nut { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 22px; }
.tm-cho-nut a { margin: 0 !important; }
.tm-doc-ngay { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px; box-sizing: border-box; border-radius: 12px; background: var(--son); color: #fff !important; font: 600 17px var(--sans); text-decoration: none; box-shadow: 0 10px 24px rgba(200,56,43,.25); transition: background .2s; }
.tm-doc-ngay:hover { background: var(--son-dam); }
.tm-doc-ngay svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-cho .tm-cho-nut a.tm-tai-phu, .tm-cho-tv .tm-cho-nut a.dl.tm-tai-phu { background: #fff !important; color: var(--muc) !important; border: 1px solid var(--vien); box-shadow: none; font-size: 16px; }
.tm-cho .tm-cho-nut a.tm-tai-phu::before { filter: invert(1); }
.tm-cho .tm-cho-nut a.tm-tai-phu:hover { border-color: var(--muc); }
.tm-cho .tm-cho-nut a:focus-visible { outline: 2px solid var(--muc); outline-offset: 2px; }
@media (max-width: 520px) { .tm-cho-nut { grid-template-columns: 1fr; } }

/* 16/10/2026: ô Giờ sinh trên Safari iPhone đè sang ô Canh giờ. Ô type=time của iOS có bề rộng tối thiểu riêng,
   cột lưới 1fr không co được -> tràn. Cho cột và ô co về 0, bỏ kiểu gốc của iOS, giữ cao bằng các ô khác. */
.row > *, .row2 > * { min-width: 0; }
.row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
input[type=time], input[type=date] { min-width: 0; max-width: 100%; display: block; -webkit-appearance: none; appearance: none; min-height: 48px; line-height: 1.3; }
input[type=time]::-webkit-date-and-time-value, input[type=date]::-webkit-date-and-time-value { text-align: left; }

/* Bản xem trước trước khi trả tiền (16/10/2026): màn toàn trang, cuộn dọc, thanh nút dính đáy. HTML do server dựng (lib/xem-truoc.mjs), form.js bọc khung. */
html.tm-xt-mo, html.tm-xt-mo body { overflow: hidden; }
.tm-xt { position: fixed; inset: 0; z-index: 88; display: flex; flex-direction: column; background: var(--nen); animation: tm-tt-hien .2s ease-out; }
.tm-xt-cuon { flex: 1; min-width: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scroll-padding-bottom: 120px; outline: none; }
.tm-xt-noi { max-width: 760px; margin: 0 auto; padding: 28px 20px 32px; }
.tm-xt-dau-trang { margin-bottom: 18px; }
.tm-xt-nhan { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 600 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--son-dam); }
.tm-xt-nhan::before { content: ""; width: 22px; height: 1.5px; background: var(--son); }
.tm-xt-dau-trang h2 { margin: 0 0 10px; font: 500 clamp(26px, 4.4vw, 34px)/1.18 var(--serif); color: var(--muc); text-wrap: balance; }
.tm-xt-dan { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muc-2); }
.tm-xt-khoi, .tm-xt-con { margin-top: 16px; padding: 20px 20px 18px; background: var(--giay); border: 1px solid var(--vien); border-radius: 16px; }
.tm-xt-khoi h3, .tm-xt-con h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 19px/1.3 var(--serif); color: var(--muc); }
.tm-xt-khoi h3 .so { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--son-nhat); color: var(--son-dam); font: 700 14px var(--sans); }
.tm-xt-khoi p, .tm-xt-con p { font-size: 16px; line-height: 1.6; color: var(--muc); }
.tm-xt-nho { margin: 12px 0 0; font-size: 14px !important; line-height: 1.55 !important; color: var(--mo) !important; }
.tm-xt-dong { list-style: none; margin: 0; padding: 0; }
.tm-xt-dong li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--vien); }
.tm-xt-dong li:first-child { border-top: 0; padding-top: 0; }
.tm-xt-dong p { margin: 0; }
.tm-xt-dau { flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 4px; border-radius: 50%; font: 700 15px var(--serif); font-variant-numeric: tabular-nums; border: 1.5px solid currentColor; background: #fff; }
.tm-xt-dau.d3 { color: #3E6B47; box-shadow: inset 0 0 0 4px rgba(62,107,71,.1); }
.tm-xt-dau.d2 { color: #3F5F85; box-shadow: inset 0 0 0 4px rgba(63,95,133,.1); }
.tm-xt-radar { max-width: 460px; margin: 0 auto 6px; }
.tm-xt-radar svg { display: block; width: 100%; height: auto; }
.tm-xt-chu-he { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px !important; font-size: 14px !important; color: var(--muc-2) !important; }
.tm-xt-chu-he span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.tm-xt-chu-he .tv::before { background: #3F5F85; } .tm-xt-chu-he .bt::before { background: #B08D57; } .tm-xt-chu-he .ts::before { background: #5E8A5F; }
.tm-xt-kieu, .tm-xt-ket { display: flex; gap: 14px; align-items: flex-start; }
.tm-xt-ket + .tm-xt-ket { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--vien); }
.tm-xt-kieu b { display: block; font: 600 20px/1.3 var(--serif); color: var(--muc); }
.tm-xt-kieu p, .tm-xt-ket p { margin: 4px 0 0; }
.tm-xt-ket > div > p:first-child { margin-top: 0; }
.tm-xt-vi-du { margin: 14px 0 0; padding: 10px 14px; background: var(--nen); border-radius: 10px; font-size: 15px !important; }
.tm-xt-he { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; }
.tm-xt-he li { padding: 8px 10px; border: 1px solid var(--vien); border-radius: 10px; background: var(--nen); font-size: 13.5px; line-height: 1.4; color: var(--muc-2); min-width: 0; overflow-wrap: anywhere; }
.tm-xt-he li b { display: block; font: 600 14px var(--sans); color: var(--muc); }
.tm-xt-he li.co { border-color: #B9D2BE; background: #F1F7F2; }
.tm-xt-he li.co b { color: #2F5E39; }
.tm-xt-he li span { display: block; margin-top: 2px; }
.tm-xt-nam { display: grid; gap: 12px; margin-top: 12px; }
.tm-xt-nam .o { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 12px; align-items: center; padding: 12px; border: 1px solid var(--vien); border-radius: 12px; }
.tm-xt-nam .o > b { font: 600 24px var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-xt-nam .o .tm-xt-he { grid-column: 1 / -1; margin: 0; }
.tm-xt-hoi-lai { margin: 14px 0 0 !important; font-weight: 600; }
.tm-xt-la-so { margin: 0 -8px; min-width: 0; max-width: calc(100% + 16px); overflow: hidden; }
.tm-xt-khoi, .tm-xt-noi { min-width: 0; }
.tm-xt-tru { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tm-xt-tru .o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); }
.tm-xt-tru .o.nc { border-color: var(--son-net); background: var(--son-nhat); }
.tm-xt-tru small { font-size: 12.5px; color: var(--mo); }
.tm-xt-tru b { font: 600 22px/1.25 var(--serif); color: var(--muc); }
.tm-xt-tru i { font: 600 12.5px var(--sans); font-style: normal; color: var(--son-dam); }
.tm-xt-thanh { display: grid; gap: 8px; margin-bottom: 12px; }
.tm-xt-thanh .d { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-size: 14.5px; }
.tm-xt-thanh .t { height: 10px; border-radius: 5px; background: var(--nen-2); overflow: hidden; }
.tm-xt-thanh .t i { display: block; height: 100%; border-radius: 5px; background: var(--muc-2); }
.tm-xt-thanh .t i.h-Mộc { background: #5E8A5F; } .tm-xt-thanh .t i.h-Hỏa { background: #B8603F; } .tm-xt-thanh .t i.h-Thổ { background: #A07F4F; } .tm-xt-thanh .t i.h-Kim { background: #7E848E; } .tm-xt-thanh .t i.h-Thủy { background: #3F5F85; }
.tm-xt-thanh em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muc-2); }
.tm-xt-so5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tm-xt-so5 .o { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tm-xt-so5 b { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font: 600 21px var(--serif); font-variant-numeric: tabular-nums; }
.tm-xt-so5 .ngay b { background: rgba(176,141,87,.16); border: 1.5px solid #B08D57; color: #6E5530; }
.tm-xt-so5 .ten b { background: var(--muc); color: #fff; }
.tm-xt-so5 span { font-size: 13.5px; color: var(--muc-2); }
.tm-xt-dl { margin: 0; }
.tm-xt-dl > div { padding: 10px 0; border-top: 1px solid var(--vien); }
.tm-xt-dl > div:first-child { border-top: 0; padding-top: 0; }
.tm-xt-dl dt { font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--son-dam); }
.tm-xt-dl dd { margin: 3px 0 0; font-size: 16px; line-height: 1.55; }
.tm-xt-ghi { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--son-net); border-radius: 12px; background: var(--son-nhat); font-size: 15px; line-height: 1.55; color: var(--muc); }
.tm-xt-con { background: transparent; border-style: dashed; }
.tm-xt-so { margin: -6px 0 10px !important; font-size: 14.5px !important; color: var(--muc-2) !important; }
.tm-xt-con ul { margin: 0; padding: 0; list-style: none; }
.tm-xt-con li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--vien); font-size: 15.5px; line-height: 1.5; color: var(--muc); }
.tm-xt-con li:first-child { border-top: 0; }
.tm-xt-con li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 12px; border: 1.5px solid var(--son); border-radius: 3px; }
.tm-xt-hoi { margin-top: 14px; padding: 12px 14px; background: var(--giay); border-left: 3px solid var(--son); border-radius: 0 10px 10px 0; }
.tm-xt-hoi b { display: block; font-size: 14.5px; color: var(--muc-2); }
.tm-xt-hoi p { margin: 6px 0 0 !important; font-style: italic; }
.tm-xt-day { flex: none; border-top: 1px solid var(--vien); background: rgba(244,238,228,.97); box-shadow: 0 -8px 24px rgba(31,29,26,.08); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.tm-xt-day-noi { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.tm-xt-gia { margin-right: auto; font-size: 13.5px; line-height: 1.35; color: var(--muc-2); }
.tm-xt-gia b { display: block; font: 600 22px var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-xt-gia s { margin-left: 6px; font: 400 14px var(--sans); color: var(--mo); }
.tm-xt-sua, .tm-xt-mua { min-height: 48px; border-radius: 12px; font: 600 16px var(--sans); cursor: pointer; touch-action: manipulation; }
.tm-xt-sua { padding: 0 16px; border: 1px solid var(--vien); background: transparent; color: var(--muc-2); }
.tm-xt-sua:hover { border-color: var(--muc-2); color: var(--muc); }
.tm-xt-mua { padding: 0 22px; border: 0; background: var(--son); color: #fff; box-shadow: 0 6px 16px rgba(200,56,43,.25); transition: background .15s; }
.tm-xt-mua:hover { background: var(--son-dam); }
.tm-xt button:focus-visible, .tm-xt-cuon:focus-visible { outline: 2px solid var(--muc); outline-offset: 2px; }
@media (max-width: 600px) {
  .tm-xt-noi { padding: 20px 16px 24px; }
  .tm-xt-khoi, .tm-xt-con { padding: 16px 14px 14px; border-radius: 14px; }
  .tm-xt-khoi h3, .tm-xt-con h3 { font-size: 17.5px; }
  .tm-xt-he { grid-template-columns: 1fr; gap: 6px; }
  .tm-xt-he li { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; }
  .tm-xt-he li b { flex: none; }
  .tm-xt-he li span { margin: 0; }
  .tm-xt-dau { min-width: 42px; height: 42px; font-size: 14px; }
  .tm-xt-so5 b { width: 50px; height: 50px; font-size: 18px; }
  .tm-xt-so5 span { font-size: 12.5px; }
  .tm-xt-tru b { font-size: 19px; }
  .tm-xt-thanh .d { grid-template-columns: 82px 1fr 40px; }
  .tm-xt-day { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .tm-xt-day-noi { flex-wrap: wrap; gap: 8px; }
  .tm-xt-gia { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; }
  .tm-xt-gia b { display: inline; font-size: 20px; }
  .tm-xt-mua { flex: 1; padding: 0 12px; }
  .tm-xt-sua { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .tm-xt { animation: none; } }
/* Bản xem trước bản 2 (16/10/2026): tóm tắt đầu trang, bảng từng hệ, xếp hạng kiểu việc, nhịp tháng/năm, phần khóa, trang mẫu */
.tm-xt-tom { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.tm-xt-tom li { padding: 8px 12px; border: 1px solid var(--vien); border-radius: 10px; background: var(--giay); }
.tm-xt-tom span { display: block; font-size: 12.5px; color: var(--mo); }
.tm-xt-tom b { font: 600 16px var(--serif); color: var(--muc); }
.tm-xt-bang { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 14.5px; }
.tm-xt-bang th, .tm-xt-bang td { padding: 8px 6px; border-bottom: 1px solid var(--vien); text-align: left; vertical-align: top; }
.tm-xt-bang thead th { font: 600 12.5px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--mo); }
.tm-xt-bang tbody th { font-weight: 600; white-space: nowrap; }
.tm-xt-xep { list-style: none; margin: 0; padding: 0; }
.tm-xt-xep li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--vien); }
.tm-xt-xep li:first-child { border-top: 0; padding-top: 0; }
.tm-xt-xep .hang { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--nen-2); font: 700 14px var(--sans); color: var(--muc-2); }
.tm-xt-xep li.dau .hang { background: var(--son); color: #fff; }
.tm-xt-xep li > div { min-width: 0; flex: 1; }
.tm-xt-xep b { font: 600 18px/1.3 var(--serif); color: var(--muc); margin-right: 8px; }
.tm-xt-xep .tm-xt-dau { min-width: 34px; height: 34px; font-size: 12.5px; vertical-align: middle; }
.tm-xt-xep p { margin: 4px 0 0; }
.tm-xt-nhip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.tm-xt-nhip .o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); text-align: center; }
.tm-xt-nhip .o.tot { border-color: #B9D2BE; background: #F1F7F2; }
.tm-xt-nhip small { font-size: 12.5px; color: var(--mo); }
.tm-xt-nhip b { font: 600 22px var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-xt-nhip span { font-size: 13px; line-height: 1.35; color: var(--muc-2); }
.tm-xt-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
.tm-xt-hai > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--vien); }
.tm-xt-hai .tot { background: #F1F7F2; border-color: #B9D2BE; }
.tm-xt-hai .luu { background: #FBF1EC; border-color: #E8C7B9; }
.tm-xt-hai small { display: block; font: 600 13.5px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muc-2); }
.tm-xt-hai b { display: block; margin-top: 4px; font: 500 16px/1.45 var(--sans); color: var(--muc); }
.tm-xt-radar.rong { max-width: 520px; }
.tm-xt-ngang { margin: 4px -4px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tm-xt-ngang > div { min-width: 560px; }
.tm-xt-ngang svg { display: block; width: 100%; height: auto; }
.tm-xt-sao { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; }
.tm-xt-sao li { padding: 12px 14px; border: 1px solid #E5D3A8; border-radius: 12px; background: #FBF6EA; }
.tm-xt-sao b { font: 600 16.5px var(--serif); color: var(--muc); }
.tm-xt-sao small { display: block; font-size: 12.5px; color: var(--mo); }
.tm-xt-sao p { margin: 6px 0 0; font-size: 15px !important; }
.tm-xt-dv { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 0 0 10px; padding: 0; }
.tm-xt-dv li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); }
.tm-xt-dv li.qua { opacity: .62; }
.tm-xt-dv li.nay { border-color: var(--son-net); background: var(--son-nhat); }
.tm-xt-dv b { font: 600 16px var(--serif); color: var(--muc); }
.tm-xt-dv small { font-size: 12.5px; color: var(--mo); font-variant-numeric: tabular-nums; }
.tm-xt-dv i { font: 600 12px var(--sans); font-style: normal; color: var(--son-dam); }
.tm-xt-so4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--vien); }
.tm-xt-so4 .o { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tm-xt-so4 b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--muc-2); font: 600 17px var(--serif); color: var(--muc); }
.tm-xt-so4 span { font-size: 13px; color: var(--muc-2); }
.tm-xt-luoi3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 280px; margin: 4px auto 12px; }
.tm-xt-luoi3 div { display: grid; place-items: center; aspect-ratio: 1.4; border: 1.5px solid #B08D57; border-radius: 10px; background: rgba(176,141,87,.12); font: 600 20px var(--serif); color: #6E5530; letter-spacing: .06em; overflow-wrap: anywhere; }
.tm-xt-luoi3 div.trong { border-style: dashed; border-color: var(--vien); background: transparent; color: var(--mo); }
.tm-xt-thanh .d.rong { grid-template-columns: minmax(0, 1.4fr) 1fr 44px; }
.tm-xt-khoa { margin-top: 16px; padding: 20px 20px 18px; border-radius: 16px; background: #23201B; color: #EFE7DA; }
.tm-xt-khoa h3 { margin: 0 0 6px; font: 600 19px/1.3 var(--serif); color: #fff; }
.tm-xt-khoa .tm-xt-nho { color: #B9AE9C !important; margin: 0 0 12px; }
.tm-xt-khoa ul { list-style: none; margin: 0; padding: 0; }
.tm-xt-khoa li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.tm-xt-khoa li > div { min-width: 0; flex: 1; }
.tm-xt-khoa b { display: block; font: 600 16.5px var(--sans); color: #fff; }
.tm-xt-khoa li span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: #D4C9B7; }
.tm-xt-o-khoa { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #E58A7B; }
.tm-xt-chip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tm-xt-chip i { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font: 500 12.5px var(--sans); font-style: normal; color: #CFC6B8; }
.tm-xt-khoa .tm-xt-hoi { background: rgba(255,255,255,.06); border-left-color: #E58A7B; }
.tm-xt-khoa .tm-xt-hoi b { color: #CFC6B8; }
.tm-xt-khoa .tm-xt-hoi p { color: #fff; }
.tm-xt-mau { margin-top: 16px; padding: 20px 20px 16px; background: var(--giay); border: 1px solid var(--vien); border-radius: 16px; }
.tm-xt-mau h3 { margin: 0 0 12px; font: 600 19px/1.3 var(--serif); color: var(--muc); }
.tm-xt-mau .luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tm-xt-mau img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 736; object-fit: cover; border-radius: 6px; border: 1px solid var(--vien); box-shadow: 0 6px 16px rgba(31,29,26,.1); background: var(--nen); }
@media (max-width: 600px) {
  .tm-xt-hai { grid-template-columns: 1fr; }
  .tm-xt-mau .luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-xt-khoa, .tm-xt-mau { padding: 16px 14px 14px; border-radius: 14px; }
  .tm-xt-so4 b { width: 40px; height: 40px; font-size: 15px; }
  .tm-xt-so4 span { font-size: 12px; }
  .tm-xt-bang { font-size: 13.5px; }
  .tm-xt-nhip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Bản xem trước: phần chữ Gemini viết (16/10/2026). Khung chờ 2-3 vạch nhấp nháy tới khi có chữ; không có chữ thì form.js bỏ khung. */
.tm-xt-moc { margin: 0 0 10px; font: 600 clamp(19px, 3.6vw, 23px)/1.35 var(--serif); color: var(--son-dam); }
.tm-xt-moc:empty { display: none; }
.tm-xt-ai { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--muc); }
.tm-xt-dau-trang .tm-xt-ai { margin: 0 0 12px; font-size: 16.5px; }
.tm-xt-khoi .tm-xt-ai.tm-xt-hien { padding: 12px 14px; border-left: 3px solid var(--son); background: var(--son-nhat); border-radius: 0 10px 10px 0; }
.tm-xt-cho { display: grid; gap: 8px; }
.tm-xt-cho i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--nen-2) 0%, #F7F1E7 50%, var(--nen-2) 100%); background-size: 200% 100%; animation: tm-xt-nhap 1.4s linear infinite; }
.tm-xt-cho i:last-child { width: 62%; }
.tm-xt-hien { animation: tm-tt-hien .35s ease-out; }
.tm-xt-treo { display: block; margin-top: 4px; font-size: 14.5px; font-style: normal; line-height: 1.5; color: #F2C9BF; }
.tm-xt-treo:empty { display: none; }
.tm-xt-cta { margin-top: 16px; padding: 22px 20px 18px; border-radius: 16px; background: var(--giay); border: 1.5px solid var(--son-net); box-shadow: 0 12px 30px rgba(200,56,43,.08); text-align: center; }
.tm-xt-cta h3 { margin: 0 0 8px; font: 600 20px/1.35 var(--serif); color: var(--muc); }
.tm-xt-cta p { margin: 0 auto 14px; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muc-2); }
.tm-xt-cta:empty { display: none; } /* 03/11/2026: bỏ nút mua giữa bài, khối chỉ còn khi có câu khách hỏi hoặc thẻ ưu đãi */
@keyframes tm-xt-nhap { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .tm-xt-cho i, .tm-xt-hien { animation: none; } }
.tm-xt-hai-la { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-xt-hai-la .cot { padding: 12px 14px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); }
.tm-xt-hai-la small { display: block; margin-bottom: 6px; font: 600 12.5px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--son-dam); }
.tm-xt-hai-la p { margin: 0 0 8px; font-size: 15px !important; line-height: 1.55; }
@media (max-width: 600px) { .tm-xt-hai-la { grid-template-columns: 1fr; } }
.tm-gia-mien { font: 600 18px var(--serif); color: #2F6B3A; }
.tm-gia-dong + .tm-gia-dong { margin-top: 6px; }
/* Khối giá 2 bước khi bản xem trước bật (16/10/2026, ui-ux-pro-max): bước 1 xem trước miễn phí nổi bật, bước 2 hồ sơ đầy đủ có giá rõ */
.tm-gia.tm-gia-2b { padding: 0; border: 0; background: transparent; box-shadow: none; }
.tm-gia-buoc { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; }
.tm-gia-buoc li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: 14px; border: 1.5px solid var(--vien); background: var(--giay); }
.tm-gia-buoc .b1 { border-color: #8FBF98; background: #EEF6EF; box-shadow: 0 8px 22px rgba(47,107,58,.12); }
.tm-gia-nhan-buoc { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muc-2); }
.tm-gia-buoc .b1 .tm-gia-nhan-buoc { color: #2F6B3A; }
.tm-gia-nhan-buoc svg { width: 16px; height: 16px; flex: none; }
.tm-gia-ten { font: 500 15.5px var(--sans); color: var(--muc); }
.tm-gia-mien-lon { font: 700 30px/1.1 var(--serif); color: #2F6B3A; letter-spacing: -.01em; }
.tm-gia-buoc .tm-gia-so { font: 700 30px/1.1 var(--serif); color: var(--muc); }
.tm-gia-buoc .tm-gia-so s { font: 400 16px var(--sans); color: var(--mo); margin-right: 6px; }
.tm-gia-mo { font-size: 14px; line-height: 1.45; color: var(--muc-2); }
.tm-gia-suat { align-self: flex-start; margin-top: 6px; padding: 5px 10px; border-radius: 999px; background: var(--son-nhat); border: 1px solid var(--son-net); font-size: 13px; line-height: 1.4; color: var(--son-dam); }
.tm-gia-suat b { font-weight: 700; }
.tm-gia-cam { margin: 12px 0 0; text-align: center; font-size: 14.5px; color: var(--muc-2); }
.tm-gia-2b .tm-gia-co-ma { display: block; margin: 8px auto 0; }
@media (max-width: 560px) {
  .tm-gia-buoc { grid-template-columns: 1fr; gap: 22px; }
  .tm-gia-buoc .b2::before { content: ""; position: absolute; left: 50%; top: -18px; width: 12px; height: 12px; margin-left: -6px; border-right: 2px solid #B9AE9C; border-bottom: 2px solid #B9AE9C; transform: rotate(45deg); }
  .tm-gia-mien-lon, .tm-gia-buoc .tm-gia-so { font-size: 28px; }
}
/* Mã ưu đãi trong thanh đáy bản xem trước (16/10/2026: form không còn khối giá) */
.tm-xt-gia .tm-xt-co-ma { display: block; margin-top: 2px; padding: 4px 0; min-height: 28px; border: 0; background: none; font: 600 13px var(--sans); color: var(--son-dam); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tm-xt-ma { max-width: 760px; margin: 0 auto 10px; }
.tm-xt-ma label { display: block; font: 600 13px var(--sans); color: var(--muc-2); margin-bottom: 4px; }
.tm-xt-ma .o { display: flex; gap: 8px; }
.tm-xt-ma input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--vien); border-radius: 10px; font: 600 16px var(--sans); letter-spacing: .04em; background: #fff; color: var(--muc); }
.tm-xt-ma .o button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--muc); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.tm-xt-ma .bao { margin: 6px 0 0; font-size: 14px; color: var(--muc-2); }
.tm-xt-ma .bao.dung { color: #2F6B3A; } .tm-xt-ma .bao.sai { color: var(--loi); }
.tm-xt-ma .bao:empty { display: none; }
/* Thẻ "Xem trước miễn phí" trong khung tóm tắt đầu form (16/10/2026) */
.tm-tom-gia.mien { grid-template-columns: 40px 1fr; align-items: center; gap: 12px; margin: 14px 0 16px; padding: 14px 16px; background: #EEF6EF; border-color: #B9D2BE; }
.tm-tom-gia.mien .o { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2F6B3A; color: #fff; }
.tm-tom-gia.mien .o svg { width: 22px; height: 22px; }
.tm-tom-gia.mien .chu { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-tom-gia.mien b { font: 700 20px/1.25 var(--serif); color: #2F6B3A; white-space: normal; }
.tm-tom-gia.mien .chu span { font-size: 14px; line-height: 1.45; color: var(--muc-2); }
/* Bản xem trước bản 3 (16/10/2026 khuya, anh: vẫn ít thông tin): khối ba hệ nhìn bạn, chỗ va / hợp, vòng chín năm, 12 tháng, đoạn trích trước */
.tm-xt-ba-he { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.tm-xt-ba-he .o { padding: 14px 16px; border: 1px solid var(--vien); border-left: 4px solid var(--son); border-radius: 12px; background: var(--nen); }
.tm-xt-ba-he .o.tv { border-left-color: #3F5F85; } .tm-xt-ba-he .o.bt { border-left-color: #B08D57; } .tm-xt-ba-he .o.ts { border-left-color: #5E8A5F; }
.tm-xt-ba-he small { display: block; font: 600 13.5px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muc-2); }
.tm-xt-ba-he b { display: block; margin-top: 4px; font: 600 17px/1.35 var(--serif); color: var(--muc); }
.tm-xt-ba-he p { margin: 6px 0 0; font-size: 15px !important; line-height: 1.55 !important; }
.tm-xt-nhip .o.cham { border-color: #E8C7B9; background: #FBF1EC; }
.tm-xt-nhip.muoi-hai { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tm-xt-qh { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tm-xt-qh li { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--vien); border-left: 4px solid #C9A27A; border-radius: 10px; background: var(--nen); }
.tm-xt-qh li.hop { border-left-color: #5E8A5F; }
.tm-xt-qh b { font: 600 15.5px var(--sans); color: var(--muc); }
.tm-xt-qh span { font-size: 14.5px; line-height: 1.5; color: var(--muc-2); }
.tm-xt-vong9 { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.tm-xt-vong9 .o { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); text-align: center; }
.tm-xt-vong9 .o.qua { opacity: .6; }
.tm-xt-vong9 .o.nay { border-color: var(--son); background: var(--son-nhat); box-shadow: 0 0 0 2px var(--son-nhat); }
.tm-xt-vong9 small { font-size: 12.5px; color: var(--mo); font-variant-numeric: tabular-nums; }
.tm-xt-vong9 b { font: 600 22px var(--serif); color: var(--muc); }
.tm-xt-vong9 span { font-size: 12.5px; line-height: 1.3; color: var(--muc-2); }
.tm-xt-trich { margin-top: 16px; padding: 22px 20px 18px; border-radius: 16px; background: #FFFDF8; border: 1px solid var(--vien); box-shadow: 0 10px 28px rgba(31,29,26,.06); }
.tm-xt-nhan-nho { margin: 0 0 6px; font: 600 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--son-dam); }
.tm-xt-trich h3 { margin: 0 0 12px; font: 600 21px/1.3 var(--serif); color: var(--muc); }
.tm-xt-trich .than { position: relative; max-height: 21em; overflow: hidden; }
.tm-xt-trich .than::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9em; background: linear-gradient(to bottom, rgba(255,253,248,0), #FFFDF8 88%); pointer-events: none; }
.tm-xt-trich [data-o="trich"] { margin: 0; font: 400 17px/1.75 var(--serif); color: var(--muc); white-space: pre-line; }
.tm-xt-trich .mo { display: flex; justify-content: center; margin-top: 4px; }
.tm-xt-trich .tm-xt-doc-tiep { background: var(--muc); box-shadow: 0 6px 16px rgba(31,29,26,.18); }
.tm-xt-trich .tm-xt-doc-tiep:hover { background: #000; }
.tm-xt-trich:not(:has([data-o="trich"])) { display: none; }
.tm-xt-tien { margin: 0 0 10px; font-size: 14.5px; color: #F2C9BF; }
@media (max-width: 600px) {
  .tm-xt-nhip.muoi-hai { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-xt-vong9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-xt-trich [data-o="trich"] { font-size: 16.5px; }
}
.tm-xt-nhip .o.tot b, .tm-xt-nhip .o.cham b { font-size: 17px; white-space: nowrap; }
/* Khối "Năm nay và hai năm tới" (16/10 khuya): mở trọn một mặt năm nay, khóa tại chỗ các mặt khác và các năm sau */
.tm-xt-nam3 { margin-top: 16px; padding: 22px 20px 18px; border-radius: 16px; background: #FFFDF8; border: 1px solid var(--vien); box-shadow: 0 10px 28px rgba(31,29,26,.06); }
.tm-xt-nam3 .nam { padding: 16px 0 14px; border-top: 1px solid var(--vien); }
.tm-xt-nam3 .nam:first-of-type { border-top: 0; padding-top: 6px; }
.tm-xt-nam3 .dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.tm-xt-nam3 .dau b { font: 600 21px/1.2 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-xt-nam3 .dau span { font-size: 14.5px; color: var(--muc-2); }
.tm-xt-nam3 .dau em { flex-basis: 100%; font-style: normal; font-size: 14px; font-weight: 600; color: var(--son-dam); }
.tm-xt-nam3 .nay .dau b { color: var(--son-dam); }
.tm-xt-nam3 .mat-mo { margin: 4px 0 12px; padding: 14px 16px 16px; border-radius: 12px; background: #fff; border: 1px solid #CFE0D2; border-left: 4px solid #3E6B47; }
.tm-xt-nam3 .mat-mo:not(:has([data-o="trich"])) { display: none; }
.tm-xt-nam3 .mat-mo h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font: 600 17.5px/1.3 var(--serif); color: var(--muc); }
.tm-xt-nam3 .mat-mo h4 i { font: 600 13px var(--sans); font-style: normal; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: #E7F1E9; color: #2F6B3A; }
.tm-xt-nam3 [data-o="trich"] { margin: 0; font: 400 16.5px/1.72 var(--serif); color: var(--muc); white-space: pre-line; }
.tm-xt-nam3 .mat-khoa { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tm-xt-nam3 .mat-khoa li { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: var(--nen); border: 1px dashed #D9CBB4; }
.tm-xt-nam3 .mat-khoa .tm-xt-o-khoa { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #A88B5E; }
.tm-xt-nam3 .mat-khoa b { display: block; font: 600 15.5px/1.35 var(--sans); color: var(--muc); }
.tm-xt-nam3 .mat-khoa span { display: block; font-size: 14px; line-height: 1.45; color: var(--mo); }
.tm-xt-nam3 .nam:not(.nay) .mat-khoa { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tm-xt-nam3 .mo { display: flex; justify-content: center; margin-top: 12px; }
.tm-xt-nam3 .tm-xt-doc-tiep { background: var(--muc); box-shadow: 0 6px 16px rgba(31,29,26,.18); }
.tm-xt-nam3 .tm-xt-doc-tiep:hover { background: #000; }
.tm-xt-nam3 > .tm-xt-nho { text-align: center; }

/* ===== Soát giao diện 4 form gọn (22/10/2026, ui-ux-pro-max, anh duyệt): phần có số, vùng bấm >= 44px, khung giờ sinh,
   lỗi hiện tại đúng ô (form.js mục 3b), khối "Thêm chi tiết" mở/đóng, thẻ tóm tắt gọn trên điện thoại ===== */
.muc .so { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--son); color: #fff; font: 600 12.5px/1 var(--sans); letter-spacing: 0; }
.the .muc { font-size: 12.5px; margin: 32px 0 16px; }
.the .muc:first-of-type { margin-top: 0; }
.tm-goi { margin: 7px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--mo); }
form.the input::placeholder, form.the textarea::placeholder { color: #8F8676; }
form.the .chips label { min-height: 46px; padding: 10px 16px; }
form.the .chips input[type=checkbox], form.the .chips input[type=radio] { width: 18px; height: 18px; flex: none; }
form.the .chips.doi { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; }
form.the .chips.doi label { justify-content: center; border-radius: 12px; font-weight: 500; }
form.the .chips label:has(input:focus-visible) { outline: 2px solid var(--son); outline-offset: 2px; }
form.the .dong-y .chips label { padding: 14px 16px; gap: 12px; }
form.the .dong-y .chips input { width: 20px; height: 20px; margin-top: 2px; }
/* Khung giờ sinh: giờ / canh giờ / độ chắc một khối */
.tm-gio { padding: 14px 14px 16px; background: #FAF6EF; border: 1px solid var(--vien); border-radius: 14px; }
.tm-gio-dan { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muc-2); }
.tm-gio .row2 { margin-bottom: 0; }
.tm-gio .row2 + .tm-gio-chac, .tm-gio > .tm-sai-chu + .tm-gio-chac { margin-top: 14px; }
.tm-gio > .tm-sai-chu { margin: 8px 0 0; }
.tm-gio .q { font-size: 14.5px; }
.tm-sai-ngay { margin: -10px 0 18px; }
/* Câu hỏi thêm */
.tm-cau-them { margin-top: 8px; }
.tm-them-cau { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0 2px; border: 0; background: none; font: 600 14.5px var(--sans); color: var(--son-dam); cursor: pointer; }
.tm-them-cau span { font-weight: 400; color: var(--mo); }
.tm-them-cau:focus-visible { outline: 2px solid var(--son); outline-offset: 2px; border-radius: 6px; }
/* Khối mở/đóng "Thêm chi tiết" */
.tm-them { margin: 4px 0 22px; border: 1px dashed #D3C5AE; border-radius: 14px; background: #FCFAF6; }
.tm-them summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; }
.tm-them summary::-webkit-details-marker { display: none; }
.tm-them summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--son); color: var(--son); font: 500 18px/1 var(--sans); }
.tm-them[open] summary::before { content: "−"; }
.tm-them summary:focus-visible { outline: 2px solid var(--son); outline-offset: 2px; border-radius: 14px; }
.tm-them-chu { display: flex; flex-direction: column; gap: 2px; }
.tm-them-chu b { font: 600 15px/1.35 var(--sans); color: var(--muc); }
.tm-them-chu small { font-size: 13px; line-height: 1.45; color: var(--mo); }
.tm-them-trong { padding: 4px 16px 2px; border-top: 1px dashed #E3D8C6; }
.tm-them-trong .field:first-child { margin-top: 14px; }
/* Lỗi tại ô cho nút chọn + khung giờ */
form.the .field.tm-loi-o .chips label, .tm-gio.tm-loi-o { border-color: var(--loi); }
form.the .field.tm-loi-o .chips label { background: #FDF3F2; }
.tm-sai-chu { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; font-weight: 500; }
.tm-sai-chu::before { content: "!"; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--loi); color: #fff; font: 700 11px/1 var(--sans); }
form.the { scroll-margin-top: 130px; }
form.the .field, .tm-gio { scroll-margin-top: 140px; }
/* Điện thoại: thẻ "Bạn nhận được" gọn để ô đầu tiên lên gần màn đầu */
@media (max-width: 960px) {
  .wrap { padding-top: 22px; }
  .wrap > header { margin-bottom: 18px; }
  .wrap > header h1 { font-size: 31px; margin-bottom: 10px; }
  .wrap > .tm-tom { padding: 14px; margin-bottom: 14px; }
  .wrap > .tm-tom .tm-nhan { display: none; }
  .wrap > .tm-tom .tm-tom-gia.mien { margin: 0 0 10px; padding: 10px 12px; grid-template-columns: 34px 1fr; }
  .wrap > .tm-tom .tm-tom-gia.mien .o { width: 34px; height: 34px; }
  .wrap > .tm-tom .tm-tom-gia.mien b { font-size: 18px; }
  .wrap > .tm-tom .tm-tom-gia.mien .chu span { font-size: 13.5px; }
  .wrap > .tm-tom .tm-so { margin-bottom: 10px; gap: 6px; }
  .wrap > .tm-tom .tm-so li { padding: 6px 4px; font-size: 12px; }
  .wrap > .tm-tom .tm-so b { font-size: 17px; }
  .wrap > .tm-tom .tm-mau { grid-template-columns: repeat(4, minmax(0, 66px)); justify-content: start; gap: 8px; margin-bottom: 4px; }
  .wrap > .tm-tom .tm-mau-chu { font-size: 12px; }
  .the { padding: 22px 16px; }
}
/* Ô canh giờ có "Tý (23h-24h)", "Tuất (19h-21h)" (22/10/2026): điện thoại nới ô canh rộng hơn ô giờ cho khỏi cụt chữ */
@media (max-width: 480px) {
  .tm-gio .row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 8px; }
  .tm-gio .row2 select { padding-left: 10px; padding-right: 4px; }
  .tm-gio .row2 input[type=time] { padding-left: 10px; padding-right: 8px; }
}

/* Thanh "Bản xem trước vẫn còn" trên nút gửi (23/10/2026): Back / Sửa thông tin chỉ cất bản xem trước, đơn giữ nguyên */
.tm-xt-giu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; padding: 14px 16px; background: var(--son-nhat); border: 1px solid var(--son-net); border-radius: 14px; }
.tm-xt-giu p { flex: 1 1 220px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muc-2); }
.tm-xt-giu p b { color: var(--muc); font-weight: 600; }
.tm-xt-giu button { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--son); border-radius: 12px; background: var(--giay); color: var(--son-dam); font: 600 15.5px var(--sans); cursor: pointer; touch-action: manipulation; }
.tm-xt-giu button:hover { background: var(--son-nhat); }
.tm-xt-giu button:focus-visible { outline: 3px solid var(--son-net); outline-offset: 2px; }
@media (max-width: 480px) { .tm-xt-giu button { flex: 1 1 100%; } }

/* Ô giờ sinh trống trên iPhone (23/10/2026): Safari iOS để ô time trống trơn, không có "--:--" như Android. Chỉ áp cho iOS
   (-webkit-touch-callout), chữ mờ tắt khi ô có giờ (.tm-co-gio do form.js gắn) hoặc khi đang chọn giờ */
@supports (-webkit-touch-callout: none) {
  input[type=time]:not(.tm-co-gio)::before { content: "-- : --"; color: var(--mo); letter-spacing: .04em; }
  input[type=time]:not(.tm-co-gio):focus::before { content: ""; }
}

/* Khối 3 "Mở bằng Safari" trong hộp QR iPhone trong app Facebook / Messenger (23/10/2026) */
.tm-tt-sf-nut { display: flex; gap: 10px; margin-top: 10px; }
.tm-tt-chep-link, .tm-tt-mo-safari { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 12px; font: 600 15.5px var(--sans); cursor: pointer; touch-action: manipulation; text-decoration: none; }
.tm-tt-chep-link { border: 1.5px solid var(--son); background: var(--son); color: #fff; }
.tm-tt-mo-safari { border: 1.5px solid var(--vien); background: #fff; color: var(--muc-2); }
.tm-tt-chep-link:focus-visible, .tm-tt-mo-safari:focus-visible { outline: 2px solid var(--muc); outline-offset: 2px; }
.tm-tt-sf-link { display: block; margin-top: 6px; font-weight: 600; color: var(--muc); word-break: break-all; -webkit-user-select: all; user-select: all; }

/* Bước 1 "Lưu ảnh mã QR" trên điện thoại (23/10/2026): dòng nhắc 5 app tự điền thì bỏ qua bước này */
.tm-tt-bo-qua { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--muc-2); }

/* iPhone trong app (23/10/2026): bảng thông tin chuyển khoản ngay dưới mã QR ở bước 1, Safari thu vào mục mở thêm */
.tm-tt-tt-nhan { margin: 14px 2px 8px; font: 600 14px var(--sans); color: var(--muc); }
.tm-tt-app-khoi .tm-tt-luu { margin: 10px 2px 0; }
details.tm-tt-sf { margin: 0 0 12px; padding: 0 14px; background: #FFF6E5; border: 1.5px solid #E8A33D; border-radius: 14px; }
details.tm-tt-sf summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 0; font: 700 15px/1.4 var(--sans); color: #7A4A0A; cursor: pointer; list-style: none; }
.tm-tt-sf-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E8A33D; color: #fff; font: 800 14px var(--sans); }
details.tm-tt-sf summary:focus-visible { outline: 2px solid #7A4A0A; outline-offset: 2px; border-radius: 8px; }
details.tm-tt-sf summary::-webkit-details-marker { display: none; }
details.tm-tt-sf summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 600; color: #B5741A; }
details.tm-tt-sf[open] summary::after { content: '−'; }
details.tm-tt-sf[open] { padding-bottom: 12px; }
details.tm-tt-sf .tm-tt-app-ghi { margin-top: 0; }

/* Lời báo đã nhận tiền (23/10/2026): dòng đầu đậm, dòng phụ nhỏ hơn */
.tm-tt-trang.tm-tt-xong .tm-tt-chu b { color: #1F4D27; }
.tm-tt-trang.tm-tt-xong .tm-tt-phu { display: inline-block; margin-top: 6px; font-size: 13.5px; color: var(--muc-2); }
.tm-tt-trang.tm-tt-xong .tm-tt-phu a { color: var(--son-dam); }

/* Popup "Đã nhận tiền" (23/10/2026, ui-ux-pro-max): thẻ giữa màn trên lớp phủ, dấu tích xanh tự vẽ một lần, 3 dòng thông tin có biểu tượng,
   một nút chính 52px; vào bằng phóng nhẹ + mờ dần 220ms, ra 160ms; máy đặt giảm chuyển động thì không chạy hiệu ứng */
.tm-dn { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px 16px; background: rgba(31,29,26,.55); opacity: 0; transition: opacity .22s ease-out; overflow-y: auto; }
.tm-dn.mo { opacity: 1; }
.tm-dn.dong { opacity: 0; transition-duration: .16s; }
.tm-dn-the { width: 100%; max-width: 400px; padding: 28px 22px 22px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(31,29,26,.28); text-align: center; transform: translateY(12px) scale(.96); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.tm-dn.mo .tm-dn-the { transform: none; }
.tm-dn.dong .tm-dn-the { transform: translateY(8px) scale(.98); transition-duration: .16s; }
.tm-dn-tich { width: 64px; height: 64px; margin: 0 auto 14px; }
.tm-dn-tich svg { width: 100%; height: 100%; }
.tm-dn-tich circle { fill: #EEF6EF; stroke: #2F6B3A; stroke-width: 2.5; }
.tm-dn-tich path { fill: none; stroke: #2F6B3A; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; }
.tm-dn.mo .tm-dn-tich path { animation: tm-dn-ve .45s .15s ease-out forwards; }
@keyframes tm-dn-ve { to { stroke-dashoffset: 0; } }
.tm-dn-the h2 { margin: 0; font: 600 26px/1.25 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-dn-cam { margin: 6px 0 18px; font-size: 16px; line-height: 1.5; color: #2F6B3A; font-weight: 600; }
.tm-dn-ds { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; border: 1px solid var(--vien); border-radius: 14px; background: var(--nen); }
.tm-dn-ds li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--vien); }
.tm-dn-ds li:first-child { border-top: 0; }
.tm-dn-ds svg { flex: none; width: 22px; height: 22px; color: var(--son); }
.tm-dn-ds span { display: grid; gap: 1px; min-width: 0; }
.tm-dn-ds small { font-size: 12.5px; color: var(--mo); }
.tm-dn-ds b { font-size: 15.5px; font-weight: 600; color: var(--muc); overflow-wrap: anywhere; }
.tm-dn-phu { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--muc-2); text-align: left; }
.tm-dn-phu a { color: var(--son-dam); }
.tm-dn-nut { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--son); color: #fff; font: 600 16.5px var(--sans); cursor: pointer; touch-action: manipulation; transition: background .15s; }
.tm-dn-nut:hover { background: var(--son-dam); }
.tm-dn-nut:active { transform: scale(.98); }
.tm-dn-nut:focus-visible, .tm-dn-phu a:focus-visible { outline: 3px solid var(--son-net); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tm-dn, .tm-dn-the { transition: none; transform: none; } .tm-dn-tich path { stroke-dashoffset: 0; animation: none !important; } }

/* Khung xem mã QR lớn để nhấn giữ lưu ảnh (iPhone / Android trong app Facebook, Messenger, Zalo; 23/10/2026) */
.tm-qr-lon { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(31,29,26,.72); overflow-y: auto; }
.tm-qr-lon-the { width: 100%; max-width: 380px; padding: 20px 18px 18px; background: #fff; border-radius: 18px; text-align: center; }
.tm-qr-lon-the p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muc); }
.tm-qr-lon-the img { display: block; width: 100%; max-width: 320px; height: auto; margin: 14px auto; -webkit-touch-callout: default; user-select: auto; }
.tm-qr-lon-the .tm-qr-lon-phu { font-size: 13.5px; color: var(--muc-2); margin-bottom: 14px; }
.tm-qr-lon-the button { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--son); color: #fff; font: 600 16px var(--sans); cursor: pointer; touch-action: manipulation; }
.tm-qr-lon-the button:focus-visible { outline: 3px solid var(--son-net); outline-offset: 2px; }

/* Đếm ngược 5 giây trong popup "Đã nhận tiền" (23/10/2026): dòng chữ + vạch chạy hết trong 5 giây */
.tm-dn-dem { margin: 12px 0 8px; font-size: 13.5px; color: var(--muc-2); }
.tm-dn-dem b { font-variant-numeric: tabular-nums; color: var(--muc); }
.tm-dn-vach { display: block; height: 4px; border-radius: 4px; background: var(--vien); overflow: hidden; }
.tm-dn-vach i { display: block; height: 100%; width: 100%; background: #2F6B3A; transform-origin: left; transform: scaleX(1); }
.tm-dn.mo .tm-dn-vach i { animation: tm-dn-dem 5s linear forwards; }
@keyframes tm-dn-dem { to { transform: scaleX(0); } }
.tm-dn.mo .tm-dn-vach i { animation-duration: 8s; }
.tm-dn.tm-dn-dung .tm-dn-vach { display: none; }
@media (prefers-reduced-motion: reduce) { .tm-dn.mo .tm-dn-vach i { animation: none; } }

/* Ưu đãi bản xem trước (24/10/2026): thẻ đầu khối kêu gọi + dòng đếm giờ ở thanh giá đáy. Màu son trên nền ấm; giá có chữ "Bớt", không chỉ dựa màu. */
.tm-xt-ud { margin: 0 auto 18px; max-width: 520px; padding: 14px 16px 12px; border-radius: 12px; background: #FFF6EC; border: 1px solid var(--son-net); text-align: center; }
.tm-xt-ud p { margin: 0; max-width: none; }
.tm-xt-cta .tm-xt-ud p { margin: 0; font-size: inherit; }
.tm-xt-ud .tm-xt-ud-nhan { font: 600 13px/1.4 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--son-dam); }
.tm-xt-ud .tm-xt-ud-gia { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; }
.tm-xt-ud-gia b { font: 600 30px/1.1 var(--serif); color: var(--muc); font-variant-numeric: tabular-nums; }
.tm-xt-ud-gia s { font: 400 16px var(--sans); color: var(--mo); font-variant-numeric: tabular-nums; }
.tm-xt-cta .tm-xt-ud .tm-xt-ud-chu { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muc-2); }
.tm-xt-ud-dem { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--son-net); }
.tm-xt-cta .tm-xt-ud .tm-xt-ud-dem-nhan { font: 600 13px/1.4 var(--sans); color: var(--muc-2); }
.tm-xt-ud-dem .o { margin-top: 8px; display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.tm-xt-ud-dem .o span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm-xt-ud-dem .o b { min-width: 56px; padding: 6px 8px; border-radius: 10px; background: var(--muc); color: #fff; font: 600 28px/1.15 var(--serif); font-variant-numeric: tabular-nums; text-align: center; }
.tm-xt-ud-dem .o i { font: 500 12px/1 var(--sans); font-style: normal; color: var(--mo); }
.tm-xt-ud-dem .o em { padding-top: 8px; font: 600 24px/1 var(--serif); font-style: normal; color: var(--son-dam); }
.tm-xt-cta .tm-xt-ud .tm-xt-ud-het { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muc-2); }
.tm-xt-ud-het svg { display: inline-block; vertical-align: -4px; margin-right: 2px; color: var(--son-dam); }
.tm-xt-ud-con b { font-variant-numeric: tabular-nums; }
.tm-xt-gia .tm-xt-ud-con b { display: inline; font: inherit; color: inherit; }
.tm-xt-gia .tm-xt-ud-con { display: flex; align-items: center; gap: 4px; margin-top: 1px; font: 600 12.5px/1.4 var(--sans); color: var(--son-dam); }
.tm-xt-gia .tm-xt-ud-con svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 600px) {
  .tm-xt-gia { flex-wrap: wrap; row-gap: 0; }
  .tm-xt-gia .tm-xt-ud-con { flex-basis: 100%; order: 3; }
  .tm-xt-ud-gia b { font-size: 27px; }
}

/* Câu điều hướng dưới lời đọc từng khối bản xem trước (24/10/2026, anh: "viết thêm câu điều hướng xem bản hồ sơ full"). Nút "Xem chi tiết" mở QR như nút mua. */
.tm-xt-full { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--nen); font-size: 14.5px; line-height: 1.55; color: var(--muc-2); }
.tm-xt-full .tm-xt-o-khoa { width: 16px; height: 16px; margin-top: 3px; color: var(--son-dam); }
.tm-xt .tm-xt-full .tm-xt-full-nut { display: inline; min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: 600 14.5px/1.55 var(--sans); color: var(--son-dam); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tm-xt .tm-xt-full .tm-xt-full-nut::after { content: ' →'; }
.tm-xt .tm-xt-full .tm-xt-full-nut:hover { background: none; color: var(--son); }
.tm-xt-nhay { animation: tm-xt-nhay 1.2s ease-out 1; }
@keyframes tm-xt-nhay { 0% { box-shadow: 0 0 0 0 rgba(200,56,43,.45); } 100% { box-shadow: 0 0 0 14px rgba(200,56,43,0); } }
@media (prefers-reduced-motion: reduce) { .tm-xt-nhay { animation: none; outline: 2px solid var(--son); outline-offset: 3px; } }

/* Câu khách hỏi đặt ngay trên thẻ ưu đãi trong khối kêu gọi (24/10/2026, anh yêu cầu) */
.tm-xt-cta-hoi { margin: 0 auto 14px; max-width: 520px; padding: 14px 16px; border-radius: 12px; background: var(--nen); border-left: 3px solid var(--son); text-align: left; }
.tm-xt-cta .tm-xt-cta-hoi p { margin: 0; max-width: none; }
.tm-xt-cta .tm-xt-cta-hoi .nhan { font: 600 13px/1.4 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--mo); }
.tm-xt-cta .tm-xt-cta-hoi .cau { margin-top: 6px; font: 600 18px/1.45 var(--serif); color: var(--muc); }
.tm-xt-cta .tm-xt-cta-hoi .dap { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font: 600 14.5px/1.5 var(--sans); color: var(--son-dam); }
.tm-xt-cta-hoi .dap .tm-xt-o-khoa { width: 16px; height: 16px; margin-top: 3px; color: var(--son-dam); }

/* Khung chờ chữ Gemini có dòng báo đang viết (24/10/2026, anh: khách không biết phần mờ là gì). Chữ do CSS vẽ, mất khi chữ thật hiện (bỏ lớp .tm-xt-cho). */
.tm-xt-ai.tm-xt-cho::before { content: 'Đang viết riêng cho bạn…'; display: block; padding-left: 22px; min-height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A92D22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") left center / 16px 16px no-repeat; font: 600 13.5px/1.4 var(--sans); color: var(--son-dam); animation: tm-xt-viet 1.6s ease-in-out infinite; }
.tm-xt-ai.tm-xt-cho[data-o="moDau"]::before { content: 'Đang viết phần mở đầu riêng cho bạn, khoảng 10-30 giây…'; }
.tm-xt-ai.tm-xt-cho[data-o^="khoi-"]::before { content: 'Đang viết lời đọc cho phần này…'; }
.tm-xt-ai.tm-xt-cho[data-o="trich"]::before { content: 'Đang viết phần năm nay riêng cho bạn…'; }
@keyframes tm-xt-viet { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tm-xt-ai.tm-xt-cho::before { animation: none; } }

/* Gạch đầu dòng trong từng phần khóa (24/10/2026, anh: cho khách thấy bản full có nhiều giá trị) */
.tm-xt-khoa .tm-xt-ds { display: grid; gap: 6px; margin: 8px 0 0; }
.tm-xt-khoa .tm-xt-ds li { display: block; position: relative; padding: 0 0 0 18px; border: 0; font-size: 14.5px; line-height: 1.5; color: #D4C9B7; }
.tm-xt-khoa .tm-xt-ds li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #E58A7B; }

/* Thanh giá đáy bản xem trước tách khỏi nội dung (24/10/2026, anh: "dễ bị lẫn với nội dung"; anh chọn kiểu B trong 5 kiểu thử:
   nền mực tối; viền son 3px trên đã bỏ theo lời anh cùng ngày). Soát theo ui-ux-pro-max: bề mặt khác hẳn nền trang,
   chữ trắng / kem trên mực đủ tương phản, đếm giờ thành nhãn có nền, số canh đều. */
.tm-xt-day { background: #23201B; border-top: 0; box-shadow: 0 -12px 32px rgba(0,0,0,.28); }
/* Safari iPhone: màn cố định dừng ở mép trên thanh công cụ, dưới đó hở nền trang. Đổi nền trang cùng màu thanh giá lúc mở bản xem trước để không còn dải sáng, nút vẫn ở trên thanh công cụ (03/11/2026, anh báo) */
html.tm-xt-mo, html.tm-xt-mo body { background: #23201B; }
/* Nền tối chưa đủ: chữ của trang phía sau vẫn lộ trong phần hở đó (03/11/2026, anh báo "Các chặng 10 năm" hiện dưới thanh giá). Ẩn nội dung trang, chỉ liệt kê khung trang để các lớp phủ gắn vào body (QR, đăng nhập, xem lớn) không bị ẩn. */
html.tm-xt-mo body > :is(header:not(.tm-dau), main, section, footer, p, .hn, .wrap, .khung, .thanh, .tien-do) { visibility: hidden; }
.tm-xt-gia { color: #CFC6B8; }
.tm-xt-gia b { color: #fff; }
.tm-xt-gia s { color: #9A907F; }
.tm-xt-gia .tm-xt-ud-con { display: inline-flex; width: max-content; margin-top: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(229,138,123,.16); border: 1px solid rgba(229,138,123,.5); color: #F2B3A8; }
.tm-xt-gia .tm-xt-co-ma { color: #F2B3A8; }
.tm-xt-day .tm-xt-sua { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.tm-xt-day .tm-xt-sua:focus-visible, .tm-xt-day .tm-xt-mua:focus-visible { outline: 2px solid #F4EEE4; outline-offset: 2px; }
.tm-xt-day .tm-xt-ma label { color: #CFC6B8; }
.tm-xt-day .tm-xt-ma .o button { background: var(--son); }
.tm-xt-day .tm-xt-ma .bao { color: #E8DFD0; }
.tm-xt-day .tm-xt-ma .bao.dung { color: #9FD3A6; }
.tm-xt-day .tm-xt-ma .bao.sai { color: #F2B3A8; }
@media (max-width: 600px) {
  .tm-xt-gia .tm-xt-ud-con { flex-basis: auto; margin-top: 2px; }
  .tm-xt-gia .tm-xt-co-ma { order: 4; }
}

/* Trang mẫu trong bản xem trước bấm được để xem lớn (24/10/2026) */
.tm-xt-mau .luoi button { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; touch-action: manipulation; }
.tm-xt-mau .luoi button::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(31,29,26,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tm-xt-mau .luoi button:hover img { box-shadow: 0 10px 22px rgba(31,29,26,.18); }
.tm-xt-mau .luoi button:focus-visible { outline: 2px solid var(--son); outline-offset: 3px; }

/* Hộp QR: dòng trạng thái chờ tiền nổi bật + nút Huỷ nền mực (25/10/2026, anh yêu cầu, dựng theo ui-ux-pro-max:
   trạng thái chờ là phản hồi chính sau khi khách chuyển khoản nên phải nhìn thấy ngay; nút Huỷ nền đen chữ trắng theo lời anh) */
.tm-tt-trang { position: relative; gap: 14px; align-items: center; margin-top: 16px; padding: 16px 18px 16px 16px; background: #FFF4EA; border: 1.5px solid #EBC7AE; border-radius: 14px; box-shadow: inset 5px 0 0 var(--son), 0 8px 22px rgba(181,50,43,.10); padding-left: 20px; font: 500 16px/1.5 var(--sans); color: var(--muc); }
.tm-tt-trang .tm-tt-xoay { width: 26px; height: 26px; margin-top: 0; border-width: 3px; border-color: #F1D3C0; border-top-color: var(--son); }
.tm-tt-trang.tm-tt-xong { background: #EEF6EF; border-color: #9BC3A2; box-shadow: inset 5px 0 0 #2F6B3A, 0 8px 22px rgba(47,107,58,.12); }
.tm-tt-trang.tm-tt-xong .tm-tt-xoay { width: 26px; height: 26px; }
.tm-tt-huy { border: 0; background: var(--muc); color: #fff; box-shadow: 0 6px 16px rgba(31,29,26,.18); }
.tm-tt-huy:hover { background: #000; color: #fff; }
.tm-tt-huy:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
@media (max-width: 600px) { .tm-tt-trang { font-size: 15.5px; } .tm-tt-huy { min-height: 50px; font-size: 16px; } }
/* Bản nền đỏ (25/10/2026 khuya, anh muốn xem): thẻ chờ tiền nền son, chữ trắng; xong thì vẫn về xanh lá */
.tm-tt-trang:not(.tm-tt-xong) { background: var(--son); border-color: var(--son); color: #fff; box-shadow: 0 10px 26px rgba(181,50,43,.30); }
.tm-tt-trang:not(.tm-tt-xong) .tm-tt-chu { color: #fff; }
.tm-tt-trang:not(.tm-tt-xong) .tm-tt-xoay { border-color: rgba(255,255,255,.35); border-top-color: #fff; }

/* Đọc trọn hồ sơ mẫu trong bản xem trước (26/10/2026, anh yêu cầu): nút dưới 4 trang mẫu + khung toàn màn hình có iframe */
.tm-xt-mau-day { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 14px; padding: 0 18px; border: 1.5px solid var(--muc); border-radius: 12px; background: #fff; color: var(--muc); font: 600 16px/1.2 var(--sans); cursor: pointer; touch-action: manipulation; }
.tm-xt-mau-day svg { width: 22px; height: 22px; flex: none; }
.tm-xt-mau-day:hover { background: var(--muc); color: #fff; }
.tm-xt-mau-day:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-mau-day iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #F4EEE4; }
.tm-mau-dong { flex: none; margin-left: auto; min-height: 44px; padding: 0 16px; border: 1px solid rgba(244,238,228,.35); border-radius: 10px; background: transparent; color: #F4EEE4; font: 600 15px var(--sans); cursor: pointer; }
.tm-mau-dong:hover { background: rgba(244,238,228,.12); }
.tm-mau-dong:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-xt-mau-ghi { margin: 10px 0 0; text-align: center; font: 500 14.5px/1.5 var(--sans); color: var(--mo); }

/* Khung lật trang hồ sơ mẫu (26/10/2026, anh: lật qua lật lại như trang sách) */
.tm-sach .tm-lon-thanh { gap: 10px; }
.tm-sach .tm-lon-ten { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-sach-pdf { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--son); color: #fff; font: 600 15px var(--sans); text-decoration: none; }
.tm-sach-pdf:focus-visible { outline: 3px solid #F4EEE4; outline-offset: 2px; }
.tm-sach .tm-mau-dong { margin-left: 0; }
.tm-sach-khung { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px 12px; overflow: hidden; perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tm-sach-trang { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.45); transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.tm-sach.to .tm-sach-khung { display: block; overflow: auto; touch-action: auto; }
.tm-sach.to .tm-sach-trang { max-width: none; max-height: none; width: 200%; margin: 0 auto; }
.tm-sach-goi { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 99px; background: rgba(23,21,18,.86); color: #F4EEE4; font: 500 14px/1.3 var(--sans); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.tm-sach-goi.an { opacity: 0; }
.tm-sach-day { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); color: #F4EEE4; }
.tm-sach-nut { min-width: 44px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(244,238,228,.35); border-radius: 12px; background: rgba(244,238,228,.08); color: #F4EEE4; font: 600 16px var(--sans); cursor: pointer; touch-action: manipulation; }
.tm-sach-nut:disabled { opacity: .35; cursor: default; }
.tm-sach-nut:not(:disabled):hover { background: rgba(244,238,228,.16); }
.tm-sach-nut:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-sach-so { font: 600 15px var(--sans); font-variant-numeric: tabular-nums; }
.tm-sach-tien { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(244,238,228,.15); }
.tm-sach-tien b { display: block; height: 100%; width: 0; background: var(--son); transition: width .25s; }
@media (max-width: 420px) { .tm-sach-nut span { display: none; } .tm-sach-nut { padding: 0 18px; font-size: 22px; } }
/* Thanh đáy khung toàn màn hình (06/11/2026, anh: nút Trước / Sau sát số trang, thêm ô chọn số trang) */
.tm-sach .tm-sach-day { justify-content: center; gap: 14px; }
.tm-sach .tm-sach-so { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tm-sach-chon { min-height: 44px; min-width: 64px; padding: 0 30px 0 12px; border: 1px solid rgba(244,238,228,.35); border-radius: 10px; background: rgba(244,238,228,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23F4EEE4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color: #F4EEE4; font: 600 16px var(--sans); font-variant-numeric: tabular-nums; text-align: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tm-sach-chon:hover { background-color: rgba(244,238,228,.16); }
.tm-sach-chon:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-sach-chon option { background: #1B1916; color: #F4EEE4; }
@media (max-width: 420px) { .tm-sach .tm-sach-day { gap: 10px; } .tm-sach .tm-sach-so { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .tm-sach-trang, .tm-sach-tien b, .tm-sach-goi { transition: none !important; } }
/* Mục lục trong khung lật trang (26/10/2026, anh: nút nhỏ ở góc trên phải trang) */
.tm-sach-ml-nut { position: absolute; top: 8px; right: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; background: rgba(23,21,18,.78); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; touch-action: manipulation; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.tm-sach-ml-nut::after { content: ""; position: absolute; inset: -8px -6px; } /* vùng bấm rộng hơn nút nhìn thấy */
.tm-sach-ml-nut svg { width: 15px; height: 15px; }
.tm-sach-ml-nut:hover { background: rgba(23,21,18,.95); }
.tm-sach-ml-nut:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-sach .tm-sach-ml-nut { top: 16px; right: 18px; }
.tm-sach.to .tm-sach-ml-nut { position: fixed; top: 76px; }
.tm-sach-dang { margin: 0; padding: 8px 14px 0; font: 500 13.5px/1.35 var(--sans); color: #CFC6B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-xt-sach .tm-sach-dang { padding: 10px 14px 0; }
.tm-sach .tm-sach-dang { flex: none; text-align: center; }
.tm-sach-ml { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: #1B1916; color: #F4EEE4; }
.tm-sach-ml[hidden] { display: none; }
.tm-sach .tm-sach-ml { top: auto; height: min(78vh, 640px); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px rgba(0,0,0,.5); }
.tm-sach-ml-dau { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px 16px; border-bottom: 1px solid rgba(244,238,228,.14); }
.tm-sach-ml-dau b { font: 600 16px var(--sans); }
.tm-sach-ml-dong { min-height: 44px; padding: 0 16px; border: 1px solid rgba(244,238,228,.35); border-radius: 10px; background: transparent; color: #F4EEE4; font: 600 15px var(--sans); cursor: pointer; }
.tm-sach-ml-ds { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px 8px 14px; list-style: none; }
.tm-sach-ml-nhom { padding: 14px 8px 6px; font: 700 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #F0B8A8; }
.tm-sach-ml-ds button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 10px; border: 0; border-radius: 10px; background: transparent; color: #F4EEE4; font: 500 15.5px/1.35 var(--sans); text-align: left; cursor: pointer; touch-action: manipulation; }
.tm-sach-ml-ds button span { flex: 1; min-width: 0; }
.tm-sach-ml-ds button i { flex: none; font-style: normal; font-size: 13.5px; color: #A9A093; font-variant-numeric: tabular-nums; }
.tm-sach-ml-ds button:hover { background: rgba(244,238,228,.08); }
.tm-sach-ml-ds button.dang { background: rgba(200,56,43,.22); box-shadow: inset 3px 0 0 var(--son); }
.tm-sach-ml-ds button:focus-visible, .tm-sach-ml-dong:focus-visible { outline: 3px solid var(--son); outline-offset: -2px; }

/* Khung lật hồ sơ mẫu trong bản xem trước, bản 2 (26/10/2026, anh chê bản hộp đen xấu; dựng theo ui-ux-pro-max):
   nền giấy sáng, trang có xấp giấy phía sau, nút tròn ‹ › nổi hai mép trang (luôn thấy, không chỉ dựa vào vuốt),
   số trang + Mục lục + Phóng to đặt trên trang, chạm trang là mở toàn màn hình, dưới trang vạch tiến độ + tên phần. */
.tm-xt-mau-dan { margin: 6px 0 4px; font: 400 15px/1.5 var(--sans); color: var(--mo); }
.tm-xt-sach { position: relative; margin: 0 -6px; }
.tm-sach-san { position: relative; padding: 18px 34px 24px; border-radius: 18px; background: radial-gradient(120% 90% at 50% 30%, #FBF7F0 0%, #EFE7DA 100%); }
.tm-xt-sach .tm-sach-khung { position: relative; display: block; max-width: 400px; margin: 0 auto; padding: 0; overflow: visible; perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.tm-sach-xap, .tm-sach-xap::before { position: absolute; inset: 0; border-radius: 6px; background: #FBF8F3; box-shadow: 0 1px 2px rgba(31,29,26,.12); }
.tm-sach-xap { transform: translate(7px, 7px) rotate(1.2deg); }
.tm-sach-xap::before { content: ""; transform: translate(-3px, 4px) rotate(-2deg); }
.tm-xt-sach .tm-sach-trang { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1100 / 1556; max-width: none; max-height: none; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(31,29,26,.12), 0 16px 34px rgba(31,29,26,.20); }
.tm-xt-sach .tm-sach-ml-nut { top: 10px; right: 10px; border-color: rgba(31,29,26,.12); background: rgba(255,255,255,.94); color: var(--muc); box-shadow: 0 4px 14px rgba(31,29,26,.18); }
.tm-xt-sach .tm-sach-ml-nut:hover { background: #fff; }
.tm-sach-to-nut { position: absolute; top: 10px; left: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(31,29,26,.12); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--muc); box-shadow: 0 4px 14px rgba(31,29,26,.18); cursor: pointer; }
.tm-sach-to-nut::after { content: ""; position: absolute; inset: -7px; }
.tm-sach-to-nut svg { width: 16px; height: 16px; }
.tm-sach-to-nut:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-xt-sach .tm-sach-so { position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%); padding: 5px 11px; border-radius: 99px; background: rgba(31,29,26,.78); color: #fff; font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; pointer-events: none; }
.tm-xt-sach .tm-sach-goi { bottom: 40px; padding: 7px 12px; background: rgba(31,29,26,.82); font-size: 13px; }
.tm-xt-sach .tm-sach-nut { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; min-width: 0; min-height: 0; margin-top: -22px; padding: 0; border: 1px solid rgba(31,29,26,.10); border-radius: 50%; background: #fff; color: var(--muc); box-shadow: 0 6px 18px rgba(31,29,26,.22); cursor: pointer; touch-action: manipulation; transition: transform .15s, opacity .15s; }
.tm-xt-sach .tm-sach-nut svg { width: 20px; height: 20px; }
.tm-xt-sach .tm-sach-nut:not(:disabled):hover { transform: scale(1.06); }
.tm-xt-sach .tm-sach-nut:not(:disabled):active { transform: scale(.96); }
.tm-xt-sach .tm-sach-nut:disabled { opacity: 0; pointer-events: none; }
.tm-xt-sach .tm-sach-nut:focus-visible { outline: 3px solid var(--son); outline-offset: 2px; }
.tm-sach-trai { left: 6px; }
.tm-sach-phai { right: 6px; }
.tm-sach-duoi { padding: 12px 10px 2px; }
.tm-sach-duoi .tm-sach-tien { position: static; display: block; height: 4px; border-radius: 99px; background: #E6DCCB; overflow: hidden; }
.tm-sach-duoi .tm-sach-tien b { border-radius: 99px; }
.tm-xt-sach .tm-sach-dang { padding: 8px 2px 0; text-align: center; font: 500 13.5px/1.4 var(--sans); color: var(--mo); }
/* Bảng mục lục trong bản xem trước: nền sáng, nằm đè lên khung */
.tm-xt-sach .tm-sach-ml { border-radius: 18px; background: #FFFDF9; color: var(--muc); box-shadow: 0 10px 30px rgba(31,29,26,.18); border: 1px solid #E6DCCB; }
.tm-xt-sach .tm-sach-ml-dau { border-bottom-color: #EAE1D3; }
.tm-xt-sach .tm-sach-ml-dau b span { font-weight: 500; color: var(--mo); }
.tm-xt-sach .tm-sach-ml-dong { border-color: #D9CDB9; color: var(--muc); }
.tm-xt-sach .tm-sach-ml-nhom { color: var(--son-dam, #93281F); }
.tm-xt-sach .tm-sach-ml-ds button { color: var(--muc); }
.tm-xt-sach .tm-sach-ml-ds button i { color: var(--mo); }
.tm-xt-sach .tm-sach-ml-ds button:hover { background: #F4EDE2; }
.tm-xt-sach .tm-sach-ml-ds button.dang { background: #FBE9E5; box-shadow: inset 3px 0 0 var(--son); }
/* Mục lục xổ ngay dưới nút (06/11/2026, anh: bảng nửa màn hình trên điện thoại rối, cho xổ thẳng xuống cho gọn).
   form.js (moMl) đặt --ml-tren / --ml-phai / --ml-cao theo vị trí nút; áp cho cả khung trong bản xem trước lẫn khung toàn màn hình. */
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml { inset: auto; top: var(--ml-tren, 56px); right: var(--ml-phai, 12px); width: min(340px, calc(100% - 20px)); height: auto; max-height: var(--ml-cao, 60vh); border-radius: 14px; border: 1px solid rgba(244,238,228,.16); box-shadow: 0 14px 36px rgba(0,0,0,.5); transform-origin: top right; animation: tm-ml-xo .16s ease-out; }
.tm-xt-sach .tm-sach-ml { border-color: #E6DCCB; box-shadow: 0 14px 36px rgba(31,29,26,.22); }
@keyframes tm-ml-xo { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-dau { padding: 4px 4px 4px 14px; }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-dau b { font-size: 14.5px; }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-dong { position: relative; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; }
.tm-sach-ml-dong svg { width: 18px; height: 18px; }
.tm-sach-ml-dong:hover { background: rgba(127,127,127,.12); }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-ds { position: relative; padding: 4px 6px 8px; }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-nhom { padding: 10px 8px 4px; font-size: 11.5px; }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-ds button { min-height: 44px; padding: 6px 10px; gap: 10px; font-size: 15px; line-height: 1.3; }
:is(.tm-sach, .tm-xt-sach) .tm-sach-ml-ds button i { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { :is(.tm-sach, .tm-xt-sach) .tm-sach-ml { animation: none; } }
@media (max-width: 420px) { .tm-sach-san { padding: 14px 26px 22px; } .tm-sach-trai { left: 2px; } .tm-sach-phai { right: 2px; } }
@media (prefers-reduced-motion: reduce) { .tm-xt-sach .tm-sach-nut { transition: none; } }
/* Chân dung lá số đầu bản xem trước (02/11/2026, lib/chan-dung.mjs): điện thoại ảnh trên chữ dưới, máy tính ảnh trái chữ phải */
.tm-xt-cd { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: 24px; margin: 14px 0 18px; padding: 16px; background: var(--giay); border: 1px solid var(--vien); border-radius: 18px; }
.tm-xt-cd img { display: block; width: 100%; height: auto; border-radius: 12px; }
.tm-xt-cd figcaption { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tm-xt-cd small { font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--son-dam); }
.tm-xt-cd b { font: 500 clamp(27px, 4.6vw, 34px)/1.18 var(--serif); color: var(--muc); text-wrap: balance; }
.tm-xt-cd span { font-size: 18px; line-height: 1.45; color: var(--muc-2); text-wrap: balance; }
.tm-xt-cd em { font: 500 14.5px var(--sans); color: var(--mo); }
@media (max-width: 600px) { .tm-xt-cd { grid-template-columns: minmax(0, 1fr); gap: 14px; text-align: center; } .tm-xt-cd img { max-width: 360px; margin: 0 auto; } }
/* Ngày, tháng, năm là ô xổ xuống (03/11/2026, anh yêu cầu): chữ mờ khi chưa chọn */
select.tm-ngay { padding-left: 10px !important; padding-right: 2px !important; cursor: pointer; } /* mũi tên của trình duyệt đã chiếm chỗ riêng */
select.tm-ngay:invalid { color: var(--mo); }
select.tm-ngay option { color: var(--muc); }

/* Độ hiếm lá số + 17 phần tính riêng trong bản xem trước Tử Vi trọn đời (03/11/2026) */
.tm-xt-hiem { margin: 0 0 18px; padding: 16px 16px 12px; background: var(--giay); border: 1px solid var(--vien, #E3D8C6); border-radius: 16px; }
.tm-xt-hiem h3 { margin: 0 0 10px; font: 600 17px/1.3 var(--serif); color: var(--muc); }
.tm-xt-hiem ul { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; }
.tm-xt-hiem li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 10px 9px; background: #FBF7EE; border-radius: 10px; }
.tm-xt-hiem b { font: 600 clamp(19px, 5.2vw, 24px)/1.1 var(--serif); color: var(--son-dam); font-variant-numeric: tabular-nums; }
.tm-xt-hiem span { font-size: 13px; line-height: 1.35; color: var(--muc-2); }
.tm-xt-hiem p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--mo); }
.tm-xt-17 ol { list-style: none; margin: 0; padding: 0; }
.tm-xt-17 ol > li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 16px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.tm-xt-17 ol > li > .so { font: 500 13.5px var(--serif); color: #B9AE9C; font-variant-numeric: tabular-nums; }
.tm-xt-17 ol > li > div { min-width: 0; }
.tm-xt-17 ol b { font-size: 15.5px; line-height: 1.3; }
.tm-xt-17 ol > li > div > span { font-size: 13.5px; line-height: 1.4; color: #CFC6B8; }
.tm-xt-17 em { font: 600 13px/1 var(--sans); padding: 5px 7px; border-radius: 999px; white-space: nowrap; }
.tm-xt-17 em.n-cao { color: #BFE3C6; background: rgba(120,190,135,.16); }
.tm-xt-17 em.n-giua { color: #CFC6B8; background: rgba(255,255,255,.08); }
.tm-xt-17 em.n-thap { color: #F3B7A7; background: rgba(229,138,123,.16); }
.tm-xt-17 ol > li > svg { width: 14px; height: 14px; opacity: .65; }
.tm-xt-them { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; line-height: 1.5; color: #D4C9B7; }

/* Popup chờ luận bản xem trước (03/11/2026, anh yêu cầu): che bản miễn phí tới khi chữ viết xong, thanh đếm giây + các bước thật (moChoLuan trong form.js) */
/* Popup chờ luận kiểu A "Màn chàm" (03/11/2026, anh chọn từ 3 mẫu GPT `thuong-hieu/cho-luan-xem-truoc/gpt-3-phuong-an/`):
   màn chàm phủ kín khung, khung vàng đôi, vòng 12 nan đếm giây có cung vàng chạy theo tiến độ, núi mực mờ đáy */
.tm-cl { position: absolute; inset: 0; z-index: 30; display: flex; padding: 12px; box-sizing: border-box; overflow-y: auto; align-items: flex-start; background: #111F44; color: #F6EFE2; transition: opacity .28s ease; }
.tm-cl.het { opacity: 0; pointer-events: none; }
.tm-cl-the { position: relative; isolation: isolate; flex: 1 0 auto; width: 100%; min-width: 0; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  padding: 30px max(22px, calc((100% - 440px) / 2)) 34px; box-sizing: border-box; text-align: center; border: 3px double rgba(201,168,106,.72); outline: none; overflow: hidden; }
.tm-cl-the > * { flex-shrink: 0; position: relative; }
.tm-cl-the::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: min(34%, 300px); pointer-events: none;
  background: url(/nhan-dien/cho-luan-nui.webp) center bottom / max(100%, 760px) auto no-repeat; -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.tm-cl-the img { display: block; margin: 0 auto 14px; }
.tm-cl-nhan { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #C9A86A; }
.tm-cl-nhan::before, .tm-cl-nhan::after { content: ''; width: 34px; height: 1px; background: rgba(201,168,106,.7); }
.tm-cl-the h2 { margin: 0 0 12px; font: 600 clamp(27px, 7.4vw, 36px)/1.2 'Noto Serif Display', 'Noto Serif', serif; color: #F6EFE2; text-wrap: balance; }
.tm-cl-ly { max-width: 380px; margin: 0; font-size: 16px; line-height: 1.55; color: #DCD4C4; text-wrap: pretty; }
.tm-cl-vong { position: relative; width: 168px; height: 168px; margin: 22px 0 18px; }
.tm-cl-vong svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.tm-cl-vong .nan { stroke: rgba(201,168,106,.2); stroke-width: 1; }
.tm-cl-vong .nen { stroke: rgba(201,168,106,.42); stroke-width: 1.2; }
.tm-cl-vong .chay { stroke: #C9A86A; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .25s linear; }
.tm-cl-giay { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 30px; font-size: 15px; line-height: 1.35; color: #F6EFE2; font-variant-numeric: tabular-nums; text-wrap: balance; }
.tm-cl-giay b { font: 600 48px/1 'Noto Serif Display', 'Noto Serif', serif; color: #E6D3A6; }
.tm-cl-giay.xong { color: #E6D3A6; font-weight: 600; font-size: 16px; }
/* 09/11/2026: các bước là trạng thái, không phải nút (Clarity: ~75 lượt bấm nhầm trong 3 ngày) - bỏ vòng tròn rỗng kiểu ô chọn, bỏ vạch kẻ hàng, bước đang làm có vòng quay */
.tm-cl-buoc { list-style: none; width: 100%; max-width: 360px; margin: 0; padding: 0; text-align: left; pointer-events: none; user-select: none; -webkit-user-select: none; cursor: default; }
.tm-cl-buoc li { display: flex; align-items: center; gap: 12px; min-height: 38px; font-size: 15.5px; line-height: 1.4; color: rgba(246,239,226,.5); transition: color .2s; }
.tm-cl-buoc li.dang { color: #F6EFE2; }
.tm-cl-buoc svg { flex: none; width: 20px; height: 20px; padding: 3px; box-sizing: border-box; border-radius: 50%; border: 0; background: radial-gradient(circle, rgba(201,168,106,.6) 0 3px, transparent 3.5px); fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, stroke .2s; }
.tm-cl-buoc li.dang svg { background: none; border: 2px solid rgba(201,168,106,.28); border-top-color: #E6D3A6; animation: tmClQuay .9s linear infinite; }
@keyframes tmClQuay { to { transform: rotate(360deg); } }
.tm-cl-buoc li.xong { color: #F6EFE2; }
.tm-cl-buoc li.xong svg { background: #C9A86A; stroke: #111F44; border: 0; animation: none; }
.tm-cl-bo { margin-top: 18px; min-height: 46px; padding: 0 22px; border: 1px solid #C9A86A; border-radius: 999px; background: none; color: #F6EFE2; font: inherit; font-size: 15.5px; cursor: pointer; }
.tm-cl-bo:hover { background: rgba(201,168,106,.14); }
.tm-cl-the :focus-visible { outline: 2px solid #E6D3A6; outline-offset: 3px; }
@media (max-width: 480px) { .tm-cl { padding: 10px; } .tm-cl-nhan { gap: 8px; font-size: 13px; letter-spacing: .1em; } .tm-cl-nhan::before, .tm-cl-nhan::after { width: 20px; } .tm-cl-the { padding: 24px 18px 28px; } .tm-cl-vong { width: 150px; height: 150px; margin: 18px 0 12px; } .tm-cl-giay b { font-size: 44px; } .tm-cl-buoc li { min-height: 36px; } }
@media (max-height: 700px) { .tm-cl-the img { display: none; } .tm-cl-the { padding-top: 22px; padding-bottom: 22px; } .tm-cl-vong { width: 132px; height: 132px; margin: 14px 0 8px; } .tm-cl-giay { padding: 0 22px; font-size: 14px; } .tm-cl-giay b { font-size: 38px; } .tm-cl-buoc li { min-height: 34px; } }
@media (prefers-reduced-motion: reduce) { .tm-cl, .tm-cl-vong .chay, .tm-cl-buoc li, .tm-cl-buoc svg { transition: none; } .tm-cl-buoc li.dang svg { animation: none; border-top-color: rgba(201,168,106,.28); background: radial-gradient(circle, #E6D3A6 0 4px, transparent 4.5px); } }

/* Bản xem trước kiểu B "Chương sáng tối" (03/11/2026, anh chọn từ 3 mẫu GPT ở thuong-hieu/xem-truoc-phong-cach-moi/): chỉ áp cho bản có chân dung (.tm-xt-b, lib/xem-truoc.mjs manChamB).
   Màn mở đầu nền chàm như dải vai trang chủ, các chương là dải giấy toàn bề ngang xen hai tông (box-shadow + clip-path, không gây cuộn ngang),
   số chương vàng, lời đọc trong thẻ giấy viền vàng đôi, 17 phần là dải chàm, thanh giá đáy nền kem viền vàng. Hộp trắng bên trong đổi sang tông giấy qua biến --giay. */
.nam-hang { display: none; }
.tm-xt:has(.tm-xt-b) { background: #F4EDE0; }
.tm-xt-b { --cham: #111F44; --vang: #C9A86A; --vang-dam: #8E6F3E; --vang-nhat: #E6D3A6; --kem: #F6EFE2; --giay: #FBF6EC; --nen: #F1E7D5; --nen-2: #E9DDC6; --vien: #DCCBAA; --dai: #EDE3D1;
  max-width: 780px; padding-top: 0; }
.tm-xt-b .tm-xt-dau-trang { margin-bottom: 0; }
/* Màn mở đầu nền chàm */
.tm-xt-b .tm-xt-hero { margin: 0; padding: 30px 0 32px; color: var(--kem); text-align: center; background: var(--cham); box-shadow: 0 0 0 100vmax var(--cham); clip-path: inset(0 -100vmax);
  background-image: radial-gradient(60% 46% at 50% 62%, rgba(201,168,106,.2), transparent 72%); }
.tm-xt-b .tm-xt-hero .tm-xt-nhan { margin: 0 0 6px; color: var(--vang); }
.tm-xt-b .tm-xt-hero .tm-xt-nhan::before { background: var(--vang); }
.tm-xt-b .tm-xt-hero h2 { margin: 0 0 22px; font: 400 16.5px/1.45 var(--sans); color: #CFC8BA; }
.tm-xt-hero-cd { margin: 0; display: grid; gap: 22px; justify-items: center; }
.tm-xt-hero-cd figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.tm-xt-hero-cd small { display: inline-flex; align-items: center; gap: 12px; font: 600 13.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--vang); }
.tm-xt-hero-cd small::before, .tm-xt-hero-cd small::after { content: ""; width: 34px; height: 1px; background: rgba(201,168,106,.7); }
.tm-xt-hero-cd b { font: 600 clamp(30px, 8.4vw, 48px)/1.1 'Noto Serif Display', var(--serif); color: var(--kem); text-wrap: balance; }
.tm-xt-hero-cd span { max-width: 32ch; font: italic 400 clamp(16px, 4.1vw, 19px)/1.45 var(--serif); color: var(--vang-nhat); text-wrap: balance; }
.tm-xt-hero-cd em { font: 500 14.5px var(--sans); font-style: normal; color: #B8B1A3; }
.tm-xt-hero-cd .anh { width: min(100%, 340px); padding: 6px; border: 1px solid rgba(201,168,106,.75); border-radius: 14px; box-shadow: 0 0 0 5px var(--cham), 0 0 0 6px rgba(201,168,106,.4), 0 26px 60px rgba(0,0,0,.45); }
.tm-xt-hero-cd img { display: block; width: 100%; height: auto; border-radius: 9px; }
.tm-xt-hero-hiem { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin: 26px auto 0; padding: 10px 20px; border: 1px solid var(--vang); border-radius: 999px; background: rgba(201,168,106,.1); text-align: left; }
.tm-xt-hero-hiem b { flex: none; font: 600 24px/1 var(--serif); color: var(--vang-nhat); font-variant-numeric: tabular-nums; }
.tm-xt-hero-hiem span { font-size: 14.5px; line-height: 1.4; color: var(--kem); }
.tm-xt-hero-dem { max-width: 46ch; margin: 10px auto 0; font-size: 13px; line-height: 1.5; color: #9F988A; text-wrap: balance; }
/* Phần mở đầu trên giấy */
.tm-xt-b .tm-xt-moc { margin: 30px 0 12px; font: 600 clamp(22px, 5.4vw, 28px)/1.3 'Noto Serif Display', var(--serif); color: var(--cham); text-wrap: balance; }
.tm-xt-b .tm-xt-moc:empty + .tm-xt-ai { margin-top: 28px; }
.tm-xt-b .tm-xt-dau-trang .tm-xt-ai { font-size: 17px; line-height: 1.75; }
.tm-xt-b .tm-xt-dan { font-size: 15px; color: var(--mo); }
.tm-xt-b .tm-xt-tom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 26px; }
.tm-xt-b .tm-xt-tom li { padding: 10px 10px 9px; border: 0; border-radius: 4px; text-align: center; box-shadow: inset 0 0 0 3px var(--giay), inset 0 0 0 4px #E7D8BA; }
.tm-xt-b .tm-xt-tom b { color: var(--cham); }
/* Chương: dải giấy toàn bề ngang, xen hai tông */
.tm-xt-b .tm-xt-khoi { margin: 0; padding: 40px 0 38px; border: 0; border-radius: 0; background: transparent; }
.tm-xt-b > .tm-xt-khoi:nth-child(even) { background: var(--dai); box-shadow: 0 0 0 100vmax var(--dai); clip-path: inset(0 -100vmax); }
.tm-xt-b .tm-xt-khoi h3 { flex-direction: column; gap: 8px; margin: 0 0 20px; text-align: center; font: 600 clamp(25px, 6.4vw, 32px)/1.22 'Noto Serif Display', var(--serif); color: var(--cham); text-wrap: balance; }
.tm-xt-b .tm-xt-khoi h3 .so { display: inline-flex; align-items: center; gap: 14px; width: auto; height: auto; border-radius: 0; background: none; font: 600 34px/1 var(--serif); color: var(--vang); font-variant-numeric: lining-nums; }
.tm-xt-b .tm-xt-khoi h3 .so::before, .tm-xt-b .tm-xt-khoi h3 .so::after { content: ""; width: 48px; height: 1px; background: var(--vang); }
.tm-xt-b .tm-xt-khoi .tm-xt-ai.tm-xt-hien { margin-top: 18px; padding: 18px 20px; border: 0; border-radius: 4px; background: var(--giay); box-shadow: inset 0 0 0 1px #D7C39C, inset 0 0 0 4px var(--giay), inset 0 0 0 5px #E8DABD; font-size: 16.5px; line-height: 1.72; }
.tm-xt-b .tm-xt-full { margin-top: 14px; padding: 12px 2px 0; border-top: 1px dashed #CDB98F; border-radius: 0; background: none; }
.tm-xt-b .tm-xt-full .tm-xt-o-khoa { color: var(--vang-dam); }
.tm-xt-b .tm-xt-la-so { overflow-x: auto; overscroll-behavior-x: contain; }
/* Năm nay và hai năm tới: hàng ba năm + thẻ giấy viền vàng đôi */
.tm-xt-b .tm-xt-nam3 { margin: 0; padding: 40px 0 36px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tm-xt-b .tm-xt-nam3 > .tm-xt-nhan-nho { margin: 0 0 18px; text-align: center; font: 600 clamp(25px, 6.4vw, 32px)/1.22 'Noto Serif Display', var(--serif); letter-spacing: 0; text-transform: none; color: var(--cham); }
.tm-xt-b .nam-hang { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.tm-xt-b .nam-hang span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border: 1px dashed #CDB98F; border-radius: 6px; color: var(--mo); }
.tm-xt-b .nam-hang b { font: 600 24px/1.1 var(--serif); color: var(--muc-2); font-variant-numeric: tabular-nums; }
.tm-xt-b .nam-hang i { font: 600 13px var(--sans); font-style: normal; }
.tm-xt-b .nam-hang .nay { border: 0; background: var(--giay); box-shadow: inset 0 0 0 1.5px var(--vang), inset 0 0 0 4px var(--giay), inset 0 0 0 5px #E8DABD; color: var(--son-dam); }
.tm-xt-b .nam-hang .nay b { color: var(--cham); }
.tm-xt-b .nam-hang .tm-xt-o-khoa { width: 15px; height: 15px; color: var(--vang-dam); }
.tm-xt-b .tm-xt-nam3 .nam { padding: 18px 0 14px; border-top: 1px solid var(--vien); }
.tm-xt-b .tm-xt-nam3 .dau b { font: 600 24px/1.2 var(--serif); }
.tm-xt-b .tm-xt-nam3 .nay .dau b { color: var(--cham); }
.tm-xt-b .tm-xt-nam3 .mat-mo { border: 0; border-radius: 4px; background: var(--giay); box-shadow: inset 0 0 0 1px #D7C39C, inset 0 0 0 4px var(--giay), inset 0 0 0 5px #E8DABD; padding: 18px 20px 20px; }
.tm-xt-b .tm-xt-nam3 .mat-khoa li { background: transparent; border-color: #CDB98F; }
.tm-xt-b .tm-xt-nam3 .tm-xt-doc-tiep { background: var(--cham); box-shadow: 0 8px 20px rgba(17,31,68,.22); }
.tm-xt-b .tm-xt-nam3 .tm-xt-doc-tiep:hover { background: #0A1430; }
/* 17 phần: dải chàm */
.tm-xt-b .tm-xt-khoa { margin: 0; padding: 40px 0 36px; border-radius: 0; background: var(--cham); box-shadow: 0 0 0 100vmax var(--cham); clip-path: inset(0 -100vmax); color: var(--kem); }
.tm-xt-b .tm-xt-khoa .tm-xt-tien { text-align: center; color: var(--vang-nhat); }
.tm-xt-b .tm-xt-khoa h3 { margin: 4px 0 8px; text-align: center; font: 600 clamp(25px, 6.4vw, 32px)/1.22 'Noto Serif Display', var(--serif); color: var(--kem); text-wrap: balance; }
.tm-xt-b .tm-xt-khoa > .tm-xt-nho { text-align: center; color: #B8B1A3 !important; }
.tm-xt-b .tm-xt-17 ol { margin-top: 18px; padding: 4px 16px; border: 1px solid rgba(201,168,106,.55); border-radius: 6px; box-shadow: inset 0 0 0 4px var(--cham), inset 0 0 0 5px rgba(201,168,106,.3); }
.tm-xt-b .tm-xt-17 ol > li { border-top-color: rgba(201,168,106,.2); }
.tm-xt-b .tm-xt-17 ol > li:first-child { border-top: 0; }
.tm-xt-b .tm-xt-17 ol > li > .so { color: var(--vang); }
.tm-xt-b .tm-xt-17 ol > li > svg { color: var(--vang); opacity: .85; }
.tm-xt-b .tm-xt-them { border-top-color: rgba(201,168,106,.3); }
.tm-xt-b .tm-xt-luu { margin: 30px 0 0; }
.tm-xt-b .tm-xt-cta:not(:empty) { margin: 30px 0 0; }
.tm-xt-b .tm-xt-mau { margin: 0; padding: 40px 0 8px; border: 0; border-radius: 0; background: transparent; }
.tm-xt-b .tm-xt-mau h3 { text-align: center; font: 600 clamp(25px, 6.4vw, 32px)/1.22 'Noto Serif Display', var(--serif); color: var(--cham); }
.tm-xt-b .tm-xt-mau-dan { text-align: center; }
/* Thanh "Bạn đã xem n/N phần" dính đầu khung cuộn (form.js ganTienDo) */
.tm-xt-tien-do { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 9px 0; background: #F4EDE0; box-shadow: 0 0 0 100vmax #F4EDE0; clip-path: inset(0 -100vmax -1px); border-bottom: 1px solid #DCCBAA; font: 500 13px var(--sans); color: var(--muc-2); }
.tm-xt-tien-do b { color: var(--cham); font-variant-numeric: tabular-nums; }
.tm-xt-tien-do > i { flex: 1; height: 3px; border-radius: 3px; background: #E3D6BD; overflow: hidden; }
.tm-xt-tien-do > i > i { display: block; height: 100%; width: 100%; background: var(--vang-dam); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
/* Thanh giá đáy nền kem viền vàng */
html.tm-xt-mo:has(.tm-xt-b), html.tm-xt-mo:has(.tm-xt-b) body { background: #FBF6EC; }
.tm-xt:has(.tm-xt-b) .tm-xt-day { background: #FBF6EC; border-top: 1px solid #C9A86A; box-shadow: 0 -10px 28px rgba(17,31,68,.12); }
.tm-xt:has(.tm-xt-b) .tm-xt-day-noi { max-width: 780px; }
.tm-xt:has(.tm-xt-b) .tm-xt-gia { color: var(--muc-2); }
.tm-xt:has(.tm-xt-b) .tm-xt-gia b { color: #111F44; }
.tm-xt:has(.tm-xt-b) .tm-xt-gia s { color: var(--mo); }
.tm-xt:has(.tm-xt-b) .tm-xt-gia .tm-xt-ud-con { background: var(--son-nhat); border-color: var(--son-net); color: var(--son-dam); }
.tm-xt:has(.tm-xt-b) .tm-xt-gia .tm-xt-co-ma { color: var(--son-dam); }
.tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-sua { border-color: #CDB98F; color: var(--muc); }
.tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-mua { border-radius: 999px; }
.tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-sua:focus-visible, .tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-mua:focus-visible { outline-color: #111F44; }
.tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-ma label, .tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-ma .bao { color: var(--muc-2); }
.tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-ma .bao.dung { color: #2F6B3A; }
.tm-xt:has(.tm-xt-b) .tm-xt-day .tm-xt-ma .bao.sai { color: var(--loi); }
.tm-xt-b button:focus-visible { outline-color: var(--cham); }
.tm-xt-b .tm-xt-hero button:focus-visible, .tm-xt-b .tm-xt-khoa button:focus-visible { outline-color: var(--kem); }
@media (min-width: 720px) {
  .tm-xt-b .tm-xt-hero { padding: 40px 0 40px; text-align: left; }
  .tm-xt-b .tm-xt-hero .tm-xt-nhan, .tm-xt-b .tm-xt-hero h2 { text-align: left; }
  /* Máy tính (03/11/2026, anh báo lệch): cả cột chữ (tên vai, dải độ hiếm, dòng đếm) nằm trái, căn giữa theo chiều cao ảnh bên phải.
     Trước đây dải độ hiếm + dòng đếm nằm dưới cả hai cột nên thò sang dưới ảnh. figure thành display: contents để 4 phần cùng một lưới; hàng 1 và 5 để trống (1fr) đẩy cụm chữ vào giữa. */
  .tm-xt-b .tm-xt-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 44px;
    background-image: radial-gradient(42% 60% at 76% 48%, rgba(201,168,106,.2), transparent 72%); }
  .tm-xt-hero-cd { display: contents; }
  .tm-xt-hero-cd figcaption { grid-column: 1; grid-row: 2; align-items: flex-start; }
  .tm-xt-hero-cd .anh { grid-column: 2; grid-row: 1 / -1; width: 100%; align-self: center; }
  .tm-xt-hero-cd small::before { display: none; }
  .tm-xt-hero-hiem { grid-column: 1; grid-row: 3; justify-self: start; margin: 26px 0 0; border-radius: 16px; }
  .tm-xt-hero-dem { grid-column: 1; grid-row: 4; max-width: 44ch; margin: 10px 0 0; text-wrap: pretty; }
}
@media (max-width: 600px) {
  .tm-xt-b { padding-top: 0; }
  .tm-xt-b .tm-xt-hero { padding: 24px 0 28px; }
  .tm-xt-hero-cd .anh { width: min(94%, 360px); }
  .tm-xt-hero-hiem { padding: 9px 14px; gap: 10px; }
  .tm-xt-hero-hiem b { font-size: 21px; }
  .tm-xt-hero-hiem span { font-size: 13.5px; }
  .tm-xt-b .tm-xt-khoi, .tm-xt-b .tm-xt-nam3, .tm-xt-b .tm-xt-khoa { padding: 32px 0 30px; }
  .tm-xt-b .tm-xt-khoi h3 .so { font-size: 30px; }
  .tm-xt-b .tm-xt-khoi .tm-xt-ai.tm-xt-hien, .tm-xt-b .tm-xt-nam3 .mat-mo { padding: 16px 16px; }
  .tm-xt-b .tm-xt-17 ol { padding: 2px 12px; }
  .tm-xt-b .tm-xt-tom { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 14px; border-radius: 4px; background: var(--giay); box-shadow: inset 0 0 0 1px #D7C39C, inset 0 0 0 4px var(--giay), inset 0 0 0 5px #E8DABD; }
  .tm-xt-b .tm-xt-tom li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid #E8DABD; border-radius: 0; text-align: right; box-shadow: none; background: none; }
  .tm-xt-b .tm-xt-tom li:first-child { border-top: 0; }
  .tm-xt-b .tm-xt-tom span { flex: none; font-size: 13.5px; text-align: left; }
  .tm-xt-b .tm-xt-tom b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tm-xt-tien-do > i > i { transition: none; } }
/* Lá số 12 cung thu nhỏ vừa khung trên màn hẹp, chạm để xem to (03/11/2026, form.js ganLaSo / moLaSoTo) */
.tm-xt-la-so { position: relative; }
.tm-xt-la-so.nho { margin: 0; max-width: 100%; overflow: hidden; cursor: zoom-in; border-radius: 4px; }
.tm-xt-la-so.nho .la-so-cuon { overflow: visible; }
.tm-xt-la-so.nho .la-so { width: 760px; transform-origin: 0 0; }
/* Safari iPhone tự phóng chữ trong khối rộng hơn màn (text autosizing), lá số co lại thì chữ tràn ô: tắt tự phóng chữ lúc mở bản xem trước + trong khung xem to */
html.tm-xt-mo, html.tm-lon-mo, .tm-xt-la-so, .tm-ls { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.tm-xt-ls-to { display: none; }
.tm-xt-la-so.nho .tm-xt-ls-to { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(17,31,68,.92); color: #F6EFE2; font: 600 14.5px var(--sans); white-space: nowrap; box-shadow: 0 8px 22px rgba(17,31,68,.3); cursor: pointer; }
.tm-xt-ls-to svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tm-ls .tm-lon-khung { padding: 8px; background: #F4EDE0; text-align: left; }
.tm-ls .la-so { width: 760px; margin: 0; }
/* 17 phần: nhãn và ổ khóa luôn ở hai cột cố định, dòng không có nhãn vẫn thẳng hàng (03/11/2026, anh báo lệch) */
.tm-xt-17 ol > li > em { grid-column: 3; }
.tm-xt-17 ol > li > svg { grid-column: 4; justify-self: end; }
/* Màn chàm bỏ nhãn + tên hồ sơ (03/11/2026, anh yêu cầu): tiêu đề chỉ còn cho trình đọc màn hình */
.tm-xt-an { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Màn chờ kiểu C "Ba phần đang lập" (03/11/2026, anh chọn từ mẫu GPT thuong-hieu/man-dang-lap-gpt/c-ba-phan.png; form.js mục 4c,
   lớp .tm-cho-c chỉ gắn cho 4 form có #trangThai). Khối chàm #111F44 khung vàng đôi + thẻ giấy cho từng thứ khách nhận. ===== */
#trangThai.tm-cho-c { --cham: #111F44; --vang: #C9A35B; --vang-nhat: #E6CF9C; --kem: #F4EDE0; --giay-c: #FBF6EC; --xanh-c: #556B2F;
  padding: 0 0 22px; overflow: hidden; text-align: left; }
.tm-cho-c .tm-c-dau { position: relative; margin: 0; padding: 30px 26px 26px; text-align: center; color: var(--kem); border-radius: 17px 17px 0 0;
  background: radial-gradient(120% 90% at 50% 120%, rgba(60,80,130,.45), transparent 60%), var(--cham) url("/nhan-dien/cho-luan-nui.webp") center bottom / 100% auto no-repeat; }
.tm-cho-c .tm-c-dau::before { content: ""; position: absolute; inset: 9px; border: 3px double rgba(201,163,91,.7); border-radius: 10px; pointer-events: none; }
.tm-cho-c .tm-c-nhan { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--vang-nhat); }
.tm-cho-c .tm-c-nhan::before, .tm-cho-c .tm-c-nhan::after { content: ""; width: 22px; height: 1px; background: var(--vang); opacity: .8; }
#trangThai.tm-cho-c h2 { position: relative; margin: 0 auto 8px; max-width: 30ch; font: 600 clamp(22px, 5.8vw, 26px)/1.25 'Noto Serif Display', var(--serif); color: #FFF8EA; text-wrap: balance; }
.tm-cho-c .tm-c-mo { position: relative; margin: 0 auto; max-width: 34ch; font-size: 15px; line-height: 1.55; color: #E3DCCD; }
.tm-cho-c .tm-c-mo b { color: #FFF8EA; font-weight: 600; overflow-wrap: anywhere; }
#trangThai.tm-cho-c #tdCon { position: relative; margin: 12px auto 0; max-width: 40ch; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: #F3EBDD; font-size: 14.5px; }
#trangThai.tm-cho-c #tdCon.tm-an, #trangThai.tm-cho-c #tdCon:empty { display: none; }
.tm-cho-c .tm-c-phut { position: relative; margin: 14px 0 10px; font: 600 clamp(19px, 5vw, 21px)/1.2 'Noto Serif Display', var(--serif); color: #FFF8EA; font-variant-numeric: tabular-nums; }
/* Số phút đỏ cam (03/11/2026, anh yêu cầu): #FF6B45 trên chàm #111F44 tương phản ~5,9:1; son gốc #B5322B quá tối trên nền này */
.tm-cho-c .tm-c-phut b { font-weight: inherit; color: #FF6B45; }
/* Đồng hồ cát trước "còn khoảng" (03/11/2026, anh yêu cầu): cát đỏ cam chảy từ bầu trên xuống bầu dưới rồi lật, 3 giây một vòng.
   Chữ cập nhật vào .tm-c-con nên hình không bị dựng lại mỗi lần máy chủ trả tiến độ (hoạt ảnh không giật). Giảm chuyển động: đứng yên ở giữa chừng. */
.tm-cho-c .tm-c-phut { display: flex; align-items: center; justify-content: center; gap: 9px; }
.tm-c-cat { flex: none; width: .95em; height: 1.27em; overflow: visible; animation: tm-cat-lat 3s ease-in-out infinite; }
.tm-c-cat .khung { fill: none; stroke: #E6CF9C; stroke-width: 1.8; stroke-linecap: round; }
.tm-c-cat .tren, .tm-c-cat .duoi { fill: #FF6B45; transform-box: view-box; }
.tm-c-cat .tren { transform-origin: 12px 15px; animation: tm-cat-tren 3s linear infinite; }
.tm-c-cat .duoi { transform-origin: 12px 28px; animation: tm-cat-duoi 3s linear infinite; }
.tm-c-cat .tia { stroke: #FF6B45; stroke-width: 1.2; stroke-dasharray: 2 2; animation: tm-cat-tia 3s linear infinite; }
@keyframes tm-cat-lat { 0%, 80% { transform: rotate(0); } 100% { transform: rotate(180deg); } }
@keyframes tm-cat-tren { 0% { transform: scale(1); } 78%, 100% { transform: scale(0); } }
@keyframes tm-cat-duoi { 0% { transform: scale(0); } 78%, 100% { transform: scale(1); } }
@keyframes tm-cat-tia { 0% { opacity: 1; stroke-dashoffset: 0; } 76% { opacity: 1; stroke-dashoffset: -12; } 78%, 100% { opacity: 0; stroke-dashoffset: -12; } }
@media (prefers-reduced-motion: reduce) {
  .tm-c-cat, .tm-c-cat .tren, .tm-c-cat .duoi, .tm-c-cat .tia { animation: none; }
  .tm-c-cat .tren { transform: scale(.6); } .tm-c-cat .duoi { transform: scale(.6); } .tm-c-cat .tia { opacity: 0; }
}
.tm-cho-c .tm-c-vach { position: relative; max-width: 300px; height: 7px; margin: 0 auto; border-radius: 99px; background: rgba(255,248,234,.14); border: 1px solid rgba(201,163,91,.45); overflow: hidden; }
.tm-cho-c .tm-c-vach i { display: block; height: 100%; background: linear-gradient(90deg, #B98F45, #E9CF92); transform-origin: left; transform: scaleX(.03); transition: transform 1s linear; }
.tm-cho-c .tm-c-nut:empty { display: none; }
.tm-cho-c .tm-c-nut { position: relative; margin-top: 18px; }
.tm-cho-c .tm-c-nut a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 12px; background: var(--son); color: #fff; font: 600 16.5px var(--sans); text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: background .2s; }
.tm-cho-c .tm-c-nut a:hover { background: var(--son-dam); }
.tm-cho-c .tm-c-nut a:focus-visible, .tm-the-nut a:focus-visible { outline: 3px solid var(--vang-nhat); outline-offset: 3px; }
.tm-cho-xong.tm-cho-c .tm-c-phut, .tm-cho-xong.tm-cho-c .tm-c-vach, .tm-cho-loi.tm-cho-c .tm-c-phut, .tm-cho-loi.tm-cho-c .tm-c-vach { display: none; }
.tm-cho-xong.tm-cho-c .tm-c-nhan { color: var(--vang-nhat); }
.tm-cho-loi.tm-cho-c .tm-the-ds { display: none; }
.tm-cho-c ol.buoc[hidden], .tm-cho-c .tm-an-c { display: none !important; }
/* Thẻ từng phần */
.tm-the-ds { list-style: none; margin: 18px 18px 0; padding: 0; display: grid; gap: 12px; }
.tm-the[hidden] { display: none; }
.tm-the { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: start; padding: 15px 14px 15px 15px;
  background: var(--giay-c); border: 1px solid #DCC9A2; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--giay-c), inset 0 0 0 4px #EADFC8; }
.tm-the-hinh { width: 58px; display: grid; place-items: center; }
.tm-the-hinh img { display: block; width: 50px; height: auto; border-radius: 4px; box-shadow: 0 6px 14px rgba(17,31,68,.25); transform: rotate(-3deg); }
.tm-the-hinh svg { width: 48px; height: 48px; }
.tm-the-hinh .g { fill: #FFFDF8; stroke: #B79A63; stroke-width: 1.6; stroke-linejoin: round; }
.tm-the-hinh .s { fill: var(--son); }
.tm-the-hinh text { font: 700 7.5px var(--sans); fill: #fff; text-anchor: middle; letter-spacing: .04em; }
.tm-the-hinh .v { fill: none; stroke: #B98A3E; stroke-width: 3; stroke-linecap: round; }
.tm-the-hinh .v.d { fill: #D9AE5F; stroke-width: 2; }
.tm-the-chu { min-width: 0; }
.tm-the-chu h3 { margin: 0 0 3px; font: 600 18px/1.3 'Noto Serif Display', var(--serif); color: var(--cham, #111F44); }
.tm-the-chu p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muc-2); }
.tm-the-nhan { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font: 600 12.5px/1.3 var(--sans); white-space: nowrap; background: #E8E2D6; color: #5E574C; }
.tm-the-nhan svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tm-the[data-tt=dang] .tm-the-nhan { background: var(--son); color: #fff; }
.tm-the[data-tt=xong] .tm-the-nhan { background: var(--xanh-c); color: #fff; }
.tm-the[data-tt=loi] .tm-the-nhan { background: #EFE3D9; color: #8A4B2E; }
.tm-the-vach { display: none; height: 5px; margin-top: 10px; border-radius: 99px; background: #E8DDCB; overflow: hidden; position: relative; }
.tm-the[data-tt=dang] .tm-the-vach { display: block; }
.tm-the-vach i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--son); animation: tm-the-chay 1.6s ease-in-out infinite; }
@keyframes tm-the-chay { 0% { left: -40%; } 100% { left: 100%; } }
.tm-the[data-tt=xong] .tm-the-hinh img, .tm-the[data-tt=xong] .tm-the-hinh svg { opacity: 1; }
.tm-the[data-tt=cho] .tm-the-hinh { opacity: .7; }
/* Trình phát khoá trong thẻ bản nghe */
.tm-the-pha { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 8px 5px 5px; border-radius: 99px; background: #EFE7D8; }
.tm-the-play { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #9C9384; display: grid; place-items: center; }
.tm-the-play svg { width: 13px; height: 13px; fill: #fff; margin-left: 2px; }
.tm-the-song { flex: 1; min-width: 0; height: 18px; fill: #C9AE7A; opacity: .7; }
.tm-the-chip { flex: none; padding: 2px 9px; border-radius: 99px; background: #F6E9C9; color: #7A5A1E; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tm-the[data-tt=dang] .tm-the-song { animation: tm-the-nhip 1.2s ease-in-out infinite alternate; }
@keyframes tm-the-nhip { from { opacity: .45; } to { opacity: 1; } }
.tm-the[data-tt=xong] .tm-the-play { background: var(--son); }
.tm-the[data-tt=xong] .tm-the-song { fill: #B98A3E; opacity: 1; }
.tm-the-nut:empty { display: none; }
.tm-the-nut { margin-top: 10px; }
.tm-the-nut a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--cham, #111F44); color: var(--cham, #111F44); font: 600 15px var(--sans); text-decoration: none; background: #fff; }
.tm-the-nut a:hover { background: var(--cham, #111F44); color: #fff; }
/* Lời yên tâm + gợi ý hồ sơ khác dạng dòng */
.tm-cho-c .tm-cho-luu { margin: 18px 18px 0; grid-template-columns: 1fr; gap: 10px; }
.tm-cho-c .tm-sau { margin: 18px 18px 0; }
.tm-cho-c .tm-sau .tm-goi-y { grid-template-columns: 1fr; gap: 8px; }
.tm-cho-c .tm-sau .tm-goi-y a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 40px 9px 10px; position: relative; background: var(--giay-c); border-color: #E2D3B6; }
.tm-cho-c .tm-sau .tm-goi-y a::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--muc-2); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.tm-goi-bt { flex: none; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--g, #2E4170); }
.tm-goi-bt svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tm-cho-c .tm-goi-chu { display: block; min-width: 0; font-size: 13px; }
.tm-cho-c .tm-sau .tm-goi-y b { font: 600 16px 'Noto Serif Display', var(--serif); color: var(--cham, #111F44); }
@media (min-width: 641px) { .tm-cho-c .tm-sau .tm-goi-y { grid-template-columns: 1fr 1fr; } .tm-cho-c .tm-cho-luu { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) {
  .tm-cho-c .tm-c-dau { padding: 26px 18px 22px; }
  .tm-cho-c .tm-c-nhan { gap: 0; font-size: 11.5px; letter-spacing: .06em; }
  .tm-cho-c .tm-c-nhan::before, .tm-cho-c .tm-c-nhan::after { display: none; }
  .tm-the-ds, .tm-cho-c .tm-cho-luu, .tm-cho-c .tm-sau { margin-left: 12px; margin-right: 12px; }
  .tm-the { grid-template-columns: 46px 1fr; grid-template-areas: "hinh nhan" "hinh chu"; gap: 6px 12px; padding: 13px 12px; }
  .tm-the-hinh { grid-area: hinh; align-self: start; }
  .tm-the-chu { grid-area: chu; }
  .tm-the-hinh { width: 46px; }
  .tm-the-hinh img { width: 42px; }
  .tm-the-hinh svg { width: 40px; height: 40px; }
  .tm-the-nhan { grid-area: nhan; justify-self: start; }
  .tm-the-chu h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .tm-the-vach i { animation: none; left: 0; width: 100%; opacity: .5; } .tm-the[data-tt=dang] .tm-the-song { animation: none; } .tm-cho-c .tm-c-vach i { transition: none; } }

/* Giờ sinh và canh giờ chỉ điền một (03/11/2026, anh chốt): ô bị khoá mờ đi, dòng dưới có nút Xoá để đổi (form.js khoaGio) */
:is(input[type=time], select[name*="canh"], select[id*="canh"]):disabled { opacity: .42; cursor: not-allowed; background-color: #F1EBE0; }
.tm-gio-khoa { margin: 8px 0 18px; font: 400 13.5px/1.5 var(--sans, 'Be Vietnam Pro', sans-serif); color: #5A544B; }
.tm-gio-khoa[hidden] { display: none; }
.tm-gio .tm-gio-khoa { margin-bottom: 0; }
.tm-gio-khoa button { display: inline-flex; align-items: center; min-height: 32px; margin-left: 2px; padding: 0 2px; border: 0; background: none; font: 600 13.5px var(--sans, 'Be Vietnam Pro', sans-serif); color: #A92D22; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; }
.tm-gio-khoa button:focus-visible { outline: 2px solid #1F1D1A; outline-offset: 2px; border-radius: 4px; }

/* ===== Trang QR kiểu C "Ba chặng + thanh dính đáy" (03/11/2026, anh chọn từ mẫu GPT thuong-hieu/trang-qr-gpt/; form.js moThanhToan, lớp .tm-tt-c).
   Bỏ popup "Đã nhận tiền": tiền về thì thanh đáy đổi xanh, QR phủ dấu tích, ~1,6 giây sau tự sang màn "Đang lập hồ sơ". ===== */
.tm-tt-c { --cham: #111F44; --vang: #C9A35B; --giay-c: #FAF4E8; --xanh-c: #2F6B3A; }
.tm-tt-c .tm-tt-hop { padding-bottom: 0; background: #F6F0E4; }
.tm-tt-c .tm-tt-nhan { margin-bottom: 2px; font-size: 12.5px; letter-spacing: .08em; }
.tm-tt-c .tm-tt-hop h2 { margin: 0; font: 600 clamp(26px, 6.6vw, 32px)/1.2 'Noto Serif Display', var(--serif); color: var(--cham); }
.tm-tt-c .tm-tt-hop h2 b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tm-tt-c .tm-tt-tom { margin: 4px 0 0; font-size: 15px; color: var(--muc-2); }
.tm-tt-c .tm-tt-tom b { color: var(--muc); letter-spacing: .04em; }
/* Hộp QR: hạn quà 2 giờ + tên người trong gói người thân (08/11/2026) */
.tm-tt-c .tm-tt-qua, .tm-tt-c .tm-tt-goi-ten { margin: 8px auto 0; max-width: 520px; padding: 7px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.tm-tt-c .tm-tt-qua { background: #FBF3DF; border: 1px solid #E2CB91; color: #5A4520; }
.tm-tt-c .tm-tt-qua b { color: #8E2A1F; font-variant-numeric: tabular-nums; }
.tm-tt-c .tm-tt-goi-ten { background: #F6F2EA; color: var(--muc-2); }
.tm-tt-c .tm-tt-goi-ten b { color: var(--muc); overflow-wrap: anywhere; }
/* Dải 3 chặng */
.tm-tt-chang { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 16px; padding: 0; }
.tm-tt-chang li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--mo); }
.tm-tt-chang li::before { content: ""; position: absolute; top: 17px; right: calc(50% + 22px); left: calc(-50% + 22px); height: 2px; background: repeating-linear-gradient(90deg, #CDBE9F 0 4px, transparent 4px 8px); }
.tm-tt-chang li:first-child::before { display: none; }
.tm-tt-chang li.xong::before, .tm-tt-chang li.dang::before { background: var(--vang); }
.tm-tt-chang .so { display: grid; place-items: center; width: 36px; height: 36px; box-sizing: border-box; border-radius: 50%; border: 2px solid #CDBE9F; background: #fff; font: 600 15px 'Noto Serif Display', var(--serif); color: var(--mo); position: relative; z-index: 1; }
.tm-tt-chang li.dang { color: var(--cham); font-weight: 600; }
.tm-tt-chang li.dang .so { border-color: var(--son); color: var(--son); box-shadow: 0 0 0 4px rgba(181,50,43,.12); }
.tm-tt-chang li.xong { color: var(--cham); }
.tm-tt-chang li.xong .so, .tm-tt-chang li.dang:last-child.xong .so { border-color: var(--son); background: var(--son); color: transparent; }
.tm-tt-chang li.xong .so::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.tm-tt-da-tra .tm-tt-chang li:last-child .so { border-color: var(--xanh-c); background: var(--xanh-c); }
/* Thẻ QR giấy viền vàng đôi */
.tm-tt-qr-the { position: relative; padding: 16px 14px 14px; background: var(--giay-c); border: 1px solid #DCC9A2; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--giay-c), inset 0 0 0 4px #EADFC8; text-align: center; }
.tm-tt-c .tm-tt-qr { display: flex; flex-direction: column; align-items: center; }
.tm-tt-c .tm-tt-qr img { width: min(300px, 76vw); border-color: #E5D8BE; }
.tm-tt-c .tm-tt-luu-qr { margin-top: 12px; border: 0; background: var(--cham); color: #FFF8EA; min-height: 50px; }
.tm-tt-c .tm-tt-luu-qr:hover { background: #0A1430; }
.tm-tt-qr-xong { display: none; }
.tm-tt-da-tra .tm-tt-qr img { opacity: .18; transition: opacity .3s; }
.tm-tt-da-tra .tm-tt-qr-xong { position: absolute; left: 0; right: 0; top: calc(16px + min(150px, 38vw) - 56px); display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; font: 600 19px 'Noto Serif Display', var(--serif); color: var(--xanh-c); animation: tm-tt-bat .35s cubic-bezier(.2,.8,.2,1.3); }
.tm-tt-qr-xong span { width: 72px; height: 72px; border-radius: 50%; background: var(--xanh-c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 40px no-repeat; box-shadow: 0 8px 22px rgba(47,107,58,.3); }
@keyframes tm-tt-bat { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tm-tt-da-tra .tm-tt-luu-qr, .tm-tt-da-tra .tm-tt-tt button, .tm-tt-da-tra .tm-tt-luu-bao { display: none; }
/* Bảng chuyển tay gập được (điện thoại) */
.tm-tt-tay { margin-top: 12px; background: var(--giay-c); border: 1px solid #DCC9A2; border-radius: 14px; overflow: hidden; }
.tm-tt-tay summary { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; cursor: pointer; list-style: none; font: 600 16.5px 'Noto Serif Display', var(--serif); color: var(--cham); }
.tm-tt-tay summary::-webkit-details-marker { display: none; }
.tm-tt-tay summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--cham); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.tm-tt-tay[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.tm-tt-tay .tm-tt-tt { margin: 0; border-width: 1px 0 0; border-radius: 0; }
.tm-tt-tay .tm-tt-luu { margin: 0; padding: 10px 14px 12px; font-size: 13.5px; }
.tm-tt-tay summary:focus-visible { outline: 2px solid var(--muc); outline-offset: -2px; }
.tm-tt-ve { display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px 0; font-size: 14px; line-height: 1.5; color: var(--muc-2); }
.tm-tt-ve span { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--son); color: #fff; font: 700 13px var(--sans); }
.tm-tt-c .tm-tt-chan { margin: 14px 0 0; padding-bottom: 14px; }
/* Thanh dính đáy */
.tm-tt-day { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -26px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--cham); border-top: 2px solid var(--vang); border-radius: 0 0 16px 16px; overflow: hidden; }
.tm-tt-c .tm-tt-trang { flex: 1; min-width: 0; margin: 0; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; color: #FFF8EA; align-items: center; }
.tm-tt-c .tm-tt-trang .tm-tt-xoay { width: 30px; height: 30px; border: 3px solid rgba(201,163,91,.35); border-top-color: var(--vang); }
.tm-tt-chu-boc { display: flex; flex-direction: column; min-width: 0; }
.tm-tt-c .tm-tt-chu { color: #FFF8EA !important; font: 600 17px/1.3 'Noto Serif Display', var(--serif); }
.tm-tt-c .tm-tt-phu { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #CDBE9F; }
.tm-tt-c .tm-tt-nut { margin: 0; flex: none; }
.tm-tt-c .tm-tt-huy { min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255,248,234,.55); background: transparent; color: #FFF8EA; box-shadow: none; font-size: 15px; }
.tm-tt-c .tm-tt-huy:hover { background: rgba(255,248,234,.1); }
.tm-tt-vach { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #CDE7C9; }
.tm-tt-c .tm-tt-trang.tm-tt-thieu .tm-tt-xoay { border-top-color: #F2C46D; }
.tm-tt-c .tm-tt-trang.tm-tt-thieu .tm-tt-chu { color: #F6D58C !important; }
.tm-tt-c .tm-tt-trang.tm-tt-xong .tm-tt-xoay { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; -webkit-mask: none; mask: none; position: relative; }
.tm-tt-c .tm-tt-trang.tm-tt-xong .tm-tt-xoay::after { content: ""; position: absolute; inset: 0; background: var(--xanh-c); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tm-tt-da-tra .tm-tt-day { background: var(--xanh-c); }
.tm-tt-da-tra .tm-tt-phu { color: #DCEBD8; }
.tm-tt-da-tra .tm-tt-vach { animation: tm-tt-chay 1.6s linear forwards; }
@keyframes tm-tt-chay { to { width: 100%; } }
/* Máy tính: QR trái, bảng phải */
.tm-tt-c .tm-tt-luoi { grid-template-columns: minmax(0, 340px) 1fr; margin-top: 4px; }
.tm-tt-c .tm-tt-luoi .tm-tt-qr img { width: 100%; max-width: 300px; }
.tm-tt-c .tm-tt-luoi .tm-tt-tt { background: var(--giay-c); border-color: #DCC9A2; }
@media (max-width: 820px) { .tm-tt-c .tm-tt-luoi { grid-template-columns: 1fr; } } /* cửa sổ hẹp trên máy tính: QR trên, bảng dưới */
@media (max-width: 600px) {
  .tm-tt-c .tm-tt-hop { padding: 20px 16px 0; }
  .tm-tt-day { margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
  .tm-tt-c .tm-tt-nut { flex: none; }
  .tm-tt-c .tm-tt-huy { flex: none; min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  .tm-tt-chang li { font-size: 12.5px; }
  .tm-tt-c .tm-tt-tt > div { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tm-tt-da-tra .tm-tt-qr-xong { animation: none; } .tm-tt-da-tra .tm-tt-vach { animation: none; width: 100%; } .tm-tt-c .tm-tt-trang .tm-tt-xoay { animation-duration: 3s; } }

/* Khung 100 mục (10/11/2026, dựng thử A, B): phần xác nhận đầu hộp thanh toán + giá gạch / tiết kiệm trong Rương */
.tm-tt-xn { margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px dashed #DCCBAA; }
.tm-tt-k100 .tm-tt-xn h2 { margin: 2px 0 6px; font: 600 clamp(22px, 6vw, 26px)/1.25 'Noto Serif Display', var(--serif); color: var(--cham, #24335A); }
.tm-tt-xn-mo { margin: 0 0 12px; font: 400 14.5px/1.5 var(--sans); color: var(--muc-2); }
.tm-tt-xn-gia { margin: 0; padding: 10px 14px; border: 1px solid #E6D9BF; border-radius: 12px; background: #FFFCF6; }
.tm-tt-xn-gia > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font: 400 15px var(--sans); color: var(--muc-2); }
.tm-tt-xn-gia dt, .tm-tt-xn-gia dd { margin: 0; }
.tm-tt-xn-gia s { color: var(--mo); }
.tm-tt-xn-gia .bot { color: #A92D22; font-weight: 600; }
.tm-tt-xn-gia .tong { margin-top: 4px; padding-top: 8px; border-top: 1px solid #EADFC8; font-weight: 600; color: var(--muc); }
.tm-tt-xn-gia .tong dd { font: 700 24px var(--serif); color: #A92D22; font-variant-numeric: tabular-nums; }
.tm-tt-xn-tk { display: table; margin: 8px 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #E4EEE2; font: 600 13.5px var(--sans); color: #3F6B41; }
.tm-tt-xn-cach { margin: 0 0 10px; font: 400 15px/1.5 var(--sans); color: var(--muc-2); }
.tm-tt-de-sau { min-height: 44px; margin-right: auto; padding: 0 20px; border: 1px solid var(--muc-2); border-radius: 10px; background: #fff; font: 600 15px var(--sans); color: var(--muc); cursor: pointer; }
.tm-tt-k100 .tm-tt-huy { border: 0; font-weight: 500; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.tm-tt-k100 .tm-tt-nut { align-items: center; gap: 12px; }
.tm-xt-rg-tk { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 2px 0 4px; font: 400 15px var(--sans); color: #CFC6B8; }
.tm-xt-rg-tk span { padding: 3px 10px; border-radius: 999px; background: rgba(120,190,135,.18); color: #BFE3C6; font-weight: 600; font-size: 13.5px; }
/* Hộp thanh toán khung 100 mục: thanh đáy xuống 2 hàng (trạng thái chờ tiền / Để sau + Huỷ đơn) để chữ trạng thái không bị bóp */
.tm-tt-k100 .tm-tt-day { flex-wrap: wrap; row-gap: 10px; }
.tm-tt-k100 .tm-tt-trang { flex: 1 1 100%; }
.tm-tt-c .tm-tt-k100 .tm-tt-nut { flex: 1 1 100%; display: flex; justify-content: space-between; align-items: center; }
.tm-tt-c .tm-tt-k100 .tm-tt-de-sau { margin: 0; border: 0; background: #FFF8EA; color: var(--cham, #24335A); }
.tm-tt-c .tm-tt-k100 .tm-tt-huy { border: 0; padding: 0 4px; color: rgba(255,248,234,.75); text-decoration: underline; text-underline-offset: 3px; }

/* 11/11/2026 (anh: "Bỏ phần báo giá ở thanh dưới và trong rương, chỉ báo giá ở popup quét QR; popup thêm mã giảm giá"):
   bản có Rương (Tử Vi trọn đời) ẩn giá + ô mã ở thanh đáy; ô mã giảm giá nằm trong hộp QR (.tm-tt-ma) */
.tm-xt-khong-gia .tm-xt-gia { display: none; }
.tm-xt-khong-gia .tm-xt-sua { margin-right: auto; }
.tm-tt-ma { margin: 12px 0 6px; }
.tm-tt-ma-o { text-align: left; }
.tm-tt-ma-o label { display: block; margin-bottom: 4px; font: 600 13.5px var(--sans); color: var(--muc-2); }
.tm-tt-ma-o .o { display: flex; gap: 8px; }
.tm-tt-ma-o input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--vien); border-radius: 10px; font: 600 16px var(--sans); letter-spacing: .04em; background: #fff; color: var(--muc); }
.tm-tt-ma-o .o button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--muc); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.tm-tt-ma-o .o button:disabled { opacity: .6; cursor: default; }
.tm-tt-ma-bao { margin: 6px 0 0; font: 400 14px/1.5 var(--sans); color: var(--muc-2); text-align: left; }
.tm-tt-ma-bao:empty { display: none; }
.tm-tt-ma-bao.dung { color: #2F6B3A; }
.tm-tt-ma-bao.sai { color: var(--loi); }

/* 11/11/2026 anh: bản xem trước Tử Vi trọn đời không hiện khối người thân (vẫn giữ trong DOM để hộp QR mở); hộp QR có 1 dòng "Lập thêm cho người thân" */
.tm-xt-khong-gia .tm-xt-nt-ghi { display: none !important; }
.tm-tt-nt { display: block; width: 100%; min-height: 44px; margin: 4px 0 8px; padding: 8px 4px; border: 0; background: none; font: 600 15px/1.45 var(--sans); color: var(--son-dam); text-align: center; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Popup giá gói người thân mở từ hộp QR (11/11/2026, làm lại theo ui-ux-pro-max: nền giấy, khung viền vàng, chữ chàm, nút son; hàng dọc cho điện thoại) */
.tm-tt-ntd { width: min(calc(100vw - 24px), 420px); max-height: calc(100dvh - 32px); padding: 6px; border: 0; border-radius: 20px; background: #FBF6EC; color: #24335A; box-shadow: 0 28px 70px rgba(17,31,68,.4); overscroll-behavior: contain; animation: tmNtdVao .22s cubic-bezier(.2,.8,.2,1); }
.tm-tt-ntd::backdrop { background: rgba(17,24,40,.6); }
@keyframes tmNtdVao { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tm-tt-ntd { animation: none; } }
.tm-tt-ntd .k { position: relative; padding: 26px 18px 16px; border: 1px solid #DCC79B; border-radius: 15px; background: radial-gradient(120% 60% at 50% 0, #FFFDF8 0, rgba(255,253,248,0) 70%); text-align: center; }
.tm-tt-ntd .x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #6E6A63; cursor: pointer; }
.tm-tt-ntd .x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tm-tt-ntd .x:hover { background: rgba(36,51,90,.06); color: #24335A; }
.tm-tt-ntd .nhan { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 6px; font: 600 13px/1.4 'Be Vietnam Pro', var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #A92D22; }
.tm-tt-ntd .nhan::before, .tm-tt-ntd .nhan::after { content: ""; flex: 0 1 36px; height: 1px; background: #C9A86A; }
.tm-tt-ntd h3 { margin: 0 0 8px; font: 600 25px/1.25 'Noto Serif', Georgia, serif; color: #111F44; text-wrap: balance; }
.tm-tt-ntd .mo { margin: 0 auto 16px; max-width: 34ch; font: 400 15px/1.6 'Be Vietnam Pro', var(--sans); color: #4A4F63; }
.tm-tt-ntd .g { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; text-align: left; }
.tm-tt-ntd .g li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 12px 12px; border: 1px solid #E6D9BF; border-radius: 14px; background: #fff; }
.tm-tt-ntd .g li::before { content: none; }
.tm-tt-ntd .g li.le { background: transparent; border-style: dashed; }
.tm-tt-ntd .g li.tot { border: 1.5px solid #C9A86A; background: linear-gradient(180deg, #FFFBF1, #FBF1DC); box-shadow: 0 6px 18px rgba(150,110,40,.14); margin-top: 6px; }
.tm-tt-ntd .g .co { position: absolute; top: -11px; left: 14px; padding: 3px 10px; border-radius: 999px; background: #A92D22; color: #fff; font: 600 12px/1.4 'Be Vietnam Pro', var(--sans); letter-spacing: .02em; }
.tm-tt-ntd .g .bt { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #F3ECDD; color: #24335A; }
.tm-tt-ntd .g .tot .bt { background: #24335A; color: #F4E3B8; }
.tm-tt-ntd .g .bt svg { width: 28px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tm-tt-ntd .g .bt .xa { opacity: .6; }
.tm-tt-ntd .g .ten b { display: block; font: 600 16px/1.3 'Be Vietnam Pro', var(--sans); color: #111F44; }
.tm-tt-ntd .g .ten { min-width: 0; }
.tm-tt-ntd .g .ten small { display: block; margin-top: 2px; white-space: nowrap; font: 400 13px/1.4 'Be Vietnam Pro', var(--sans); color: #6E6A63; }
.tm-tt-ntd .g .gia { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tm-tt-ntd .g .gia b { font: 700 18px/1.2 'Noto Serif', Georgia, serif; color: #111F44; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-tt-ntd .g .le .gia b { font-weight: 600; color: #4A4F63; }
.tm-tt-ntd .g .gia em { padding: 2px 7px; border-radius: 999px; background: #F8E7E4; color: #A92D22; font: 600 12.5px/1.4 'Be Vietnam Pro', var(--sans); font-style: normal; white-space: nowrap; }
.tm-tt-ntd .cach { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: #F3ECDD; text-align: left; font: 400 14px/1.55 'Be Vietnam Pro', var(--sans); color: #3A372F; }
.tm-tt-ntd .cach svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #8E6A2A; stroke-width: 1.8; stroke-linecap: round; }
.tm-tt-ntd .chinh, .tm-tt-ntd .phu { display: block; width: 100%; min-height: 50px; border-radius: 12px; font: 600 16px 'Be Vietnam Pro', var(--sans); cursor: pointer; touch-action: manipulation; }
.tm-tt-ntd .chinh { border: 0; background: #C8382B; color: #fff; box-shadow: 0 8px 20px rgba(200,56,43,.28); transition: background .15s; }
.tm-tt-ntd .chinh:hover { background: #A92D22; }
.tm-tt-ntd .chinh:active { transform: scale(.98); }
.tm-tt-ntd .phu { margin-top: 6px; min-height: 44px; border: 0; background: none; color: #4A4F63; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.tm-tt-ntd button:focus-visible { outline: 2px solid #24335A; outline-offset: 3px; }
@media (max-width: 359px) { .tm-tt-ntd .g li { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 12px 10px; } .tm-tt-ntd .g .bt { width: 36px; height: 36px; } .tm-tt-ntd h3 { font-size: 22px; } }
@media (max-width: 374px) { .tm-tt-ntd { padding: 4px; } .tm-tt-ntd .k { padding-left: 12px; padding-right: 12px; } .tm-tt-ntd .g li { padding: 12px 10px; gap: 8px; } .tm-tt-ntd .g .ten small { white-space: normal; } }
