/* =========================================================================
   SABI đặt bàn GĐ3 (mockup hướng B): trang đặt bàn, trang cảm ơn, trang khách.
   Chỉ biến SABI Typography v1.0: --fs-h1, --fs-h3, --fs-lead (19px); độ đậm 300, 400; không in nghiêng tiêu đề.
   Màu chữ bone-bright, bone-warm, bronze; nền sumi, charcoal. Bronze chỉ trên sumi hoặc charcoal (AA 4,5:1).
   Ô nhập, thông báo lỗi: Be Vietnam Pro 16px. Chuyển động: mờ dần 1,2 giây. Mọi quy tắc nằm dưới .db3.
   ========================================================================= */
.db3 {
  --db3-line: rgba(201, 197, 188, 0.18);
  --db3-line-manh: rgba(201, 197, 188, 0.36);
  --db3-thanh-duoi: 92px;
  margin: 0; background: var(--sumi); color: var(--bone-warm);
  font-family: var(--serif); font-size: var(--fs-lead); font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; color-scheme: dark; min-height: 100vh; min-height: 100dvh;
}
.db3 *, .db3 *::before, .db3 *::after { box-sizing: border-box; }
.db3 h1, .db3 h2, .db3 h3, .db3 p, .db3 ol, .db3 ul, .db3 dl, .db3 dd { margin: 0; }
.db3 h1, .db3 h2, .db3 h3 { font-family: var(--serif); font-weight: 400; font-style: normal; letter-spacing: -0.005em; color: var(--bone-bright); text-transform: none; }
.db3 h2, .db3 h3 { font-size: var(--fs-lead); }
.db3 button, .db3 input, .db3 select, .db3 textarea { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.db3 button { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; box-shadow: none; min-height: 0; line-height: inherit; }
.db3 button:hover, .db3 button:focus { background: none; color: inherit; }
.db3 button:disabled, .db3 button[disabled] { opacity: 1; }
.db3 a { color: inherit; }
.db3 img { display: block; max-width: 100%; height: auto; }
.db3 [hidden] { display: none !important; }
.db3 :focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.db3-an-chu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.db3-bo-qua { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--bone-bright); padding: 10px 16px; }
.db3-bo-qua:focus { top: 8px; }
.db3-mo-dan { animation: db3MoDan 1.2s var(--ease) both; }
@keyframes db3MoDan { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .db3-mo-dan { animation: none; } }
.db3.db3-khoa-cuon { overflow: hidden; }

/* Đầu trang */
.db3-dau { position: relative; z-index: 30; background: var(--charcoal); border-bottom: 1px solid var(--db3-line); }
.db3-dau-trong { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 0 8px; }
.db3-dau-trong > :first-child { justify-self: start; }
.db3-dau-phai { justify-self: end; }
.db3 .db3-nut-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--bone-warm); text-decoration: none; }
.db3 .db3-nut-icon:disabled { opacity: 1; color: var(--db3-line-manh); cursor: not-allowed; }
.db3-nut-icon svg, .db3-nut-dong svg, .db3-nut-tong svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: 0 0 auto; }
.db3-dau-logo-lk { display: inline-flex; min-height: 44px; align-items: center; }
.db3-dau-logo { width: 64px !important; height: 64px !important; margin: -10px 0; }
.db3-the-set-cau.dai { display: none; }
.db3-chu-may-tinh { display: none; }
.db3-tien-trinh { max-width: 1280px; margin: 0 auto; padding: 10px 16px 12px; }
/* Thanh 5 bước: chỉ ol trong .db3-tien-trinh (nhãn Tóm tắt dùng chung tên .db3-tt-nhan, không được ẩn theo). */
.db3-tien-trinh .db3-tt-nhan { display: none; list-style: none; padding: 0; }
.db3-tt-thanh { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.db3-tt-thanh i { height: 3px; background: var(--db3-line-manh); }
.db3-tt-thanh i.xong, .db3-tt-thanh i.dang { background: var(--bronze); }
.db3-tt-chu { margin-top: 8px; display: flex; justify-content: space-between; color: var(--bone-bright); }
.db3-tt-chu b { font-weight: 400; color: var(--bronze); }

/* Khung */
.db3-khung { max-width: 1280px; margin: 0 auto; padding: 24px 16px calc(var(--db3-thanh-duoi) + 40px); }
.db3-cot-chinh { min-width: 0; outline: none; }
.db3-buoc-tieu-de { font-size: var(--fs-h3) !important; line-height: 1.25; }
.db3-buoc-mo-ta { margin-top: 6px; }
.db3-nhan-muc { color: var(--bronze); letter-spacing: 0.04em; }
.db3 h2.db3-nhan-muc { color: var(--bronze); }
.db3-khoi { margin-top: 24px; }
.db3-goi-y { margin-top: 12px; color: var(--bronze); }
.db3 .db3-lien-ket { color: var(--bronze); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* Số khách, nút đếm */
.db3-so-khach { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--db3-line); border-bottom: 1px solid var(--db3-line); }
.db3-dem { display: inline-flex; align-items: center; gap: 4px; }
.db3 .db3-dem button { width: 44px; height: 44px; border: 1px solid var(--db3-line-manh); border-radius: 50%; color: var(--bone-bright); display: inline-grid; place-items: center; }
.db3 .db3-dem button:disabled { color: var(--db3-line-manh); border-color: var(--db3-line); cursor: not-allowed; }
.db3-dem output { min-width: 36px; text-align: center; color: var(--bone-bright); }

/* Lịch, khung giờ */
.db3-lich-va-gio { display: grid; gap: 20px; }
.db3-lich-dau { display: flex; align-items: center; justify-content: space-between; }
.db3-lich-thang { color: var(--bone-bright); }
.db3-lich { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 4px; text-align: center; }
.db3-lich .thu { color: var(--bone-warm); }
.db3 .db3-ngay { min-height: 44px; display: grid; place-items: center; position: relative; color: var(--bone-bright); border: 1px solid transparent; }
/* Ô ngày: đặt được chữ sáng, sắp kín thêm chấm đồng dưới số. Không đặt được (đã kín, không phục vụ, không đủ chỗ, đã qua, quá xa): chữ mờ,
   bấm vào chỉ hiện câu ngắn dưới lịch. Chú thích một dòng: chấm đồng Sắp kín. */
.db3 .db3-ngay[aria-disabled="true"] { cursor: not-allowed; }
.db3 .db3-ngay.khoa { color: rgba(201, 197, 188, 0.32); }
.db3 .db3-ngay.it::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--bronze); }
.db3 .db3-ngay.chon { border-color: var(--bronze); background: var(--charcoal); }
.db3-chu-giai { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.db3-chu-giai span { display: inline-flex; align-items: center; gap: 8px; }
.db3-cham { width: 5px; height: 5px; border-radius: 50%; background: var(--bronze); display: inline-block; }
.db3-cau-ngay { color: var(--bone-bright); }
.db3-nhan-ngay { margin-bottom: 10px; }
.db3-ds-gio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db3 .db3-nut-gio { padding: 14px 16px; min-height: 96px; text-align: left; border: 1px solid var(--db3-line-manh); background: var(--charcoal); display: grid; gap: 2px; align-content: start; }
.db3 .db3-nut-gio.chon { border-color: var(--bronze); }
.db3-nut-gio .gio { font-size: var(--fs-h3); color: var(--bone-bright); line-height: 1.2; }
.db3 .db3-nut-gio[aria-disabled="true"] { cursor: not-allowed; }
.db3 .db3-nut-gio[aria-disabled="true"] .gio { color: var(--bone-warm); }

/* Thẻ set: ảnh 4:3 cắt vừa khung, tên một dòng, giá một dòng, mô tả cắt đúng số dòng (giữ chỗ đủ số dòng), Thực đơn và nút đếm ghim đáy thẻ. */
.db3-con-khach { margin-top: 12px; scroll-margin-top: 16px; }
.db3-ds-set { display: grid; gap: 12px; }
.db3-the-set { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; background: var(--charcoal); border: 1px solid var(--db3-line); align-items: stretch; }
.db3-the-set.co-chon { border-color: var(--bronze); }
.db3-the-set-anh { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; align-self: start; }
.db3-the-set-than { display: flex; flex-direction: column; min-width: 0; }
.db3-the-set-ten { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.db3-the-set-gia { white-space: nowrap; line-height: 1.55; }
.db3-the-set-cau { --db3-so-dong: 2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--db3-so-dong); line-clamp: var(--db3-so-dong); overflow: hidden; line-height: 1.55; min-height: calc(1.55em * var(--db3-so-dong)); margin-top: 4px !important; }
.db3-the-set .db3-the-set-duoi { margin-top: auto; padding-top: 4px; flex-wrap: nowrap; }
.db3-the-set .db3-the-set-duoi .db3-lien-ket { white-space: nowrap; }
.db3-the-set-ten .kanji, .db3-tam-ten .kanji { font-family: var(--jp); font-weight: 300; color: var(--bronze); }
.db3-the-set-duoi { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Dòng nhắc trên nút Tiếp theo; nhấn mạnh khi khách bấm nút đang khoá. */
.db3-nhac { color: var(--bone-bright); display: flex; gap: 10px; align-items: center; }
.db3-nhac::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; background: var(--bronze); transform: rotate(45deg); }
.db3 .nhan-manh { animation: db3NhanManh 1.6s var(--ease) both; }
@keyframes db3NhanManh { 0%, 30% { background: rgba(153, 126, 101, 0.32); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .db3 .nhan-manh { animation: none; background: rgba(153, 126, 101, 0.2); } }
.db3.db3-co-nhac .db3-khung { padding-bottom: calc(var(--db3-thanh-duoi) + 80px); }

/* Không gian */
.db3-ds-khu { display: grid; gap: 12px; }
.db3 .db3-the-khu { position: relative; text-align: left; background: var(--charcoal); border: 1px solid var(--db3-line); display: block; width: 100%; }
.db3 .db3-the-khu.co-chon { border-color: var(--bronze); }
.db3 .db3-the-khu[aria-disabled="true"] { cursor: not-allowed; }
.db3 .db3-the-khu[aria-disabled="true"] img { filter: grayscale(0.6) brightness(0.6); }
.db3-the-khu img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.db3-the-khu-than { padding: 14px 16px 16px; display: grid; gap: 2px; }
.db3-the-khu-ten { color: var(--bone-bright); font-size: var(--fs-h3); line-height: 1.25; }
/* Phòng riêng chưa đạt chi tiêu tối thiểu: thẻ mờ, câu màu đồng ngay dưới tên. */
.db3 .db3-the-khu.chua-dat { opacity: 0.72; }
.db3-the-khu-chua-dat { color: var(--bronze); font-size: 0.875em; line-height: 1.45; margin: 2px 0 4px; }
.db3-dau-chon { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--charcoal); border: 1px solid var(--db3-line-manh); display: grid; place-items: center; }
.db3 .co-chon .db3-dau-chon { background: var(--bronze); border-color: var(--bronze); }
.db3-dau-chon svg { width: 16px; height: 16px; stroke: var(--charcoal); stroke-width: 2; fill: none; opacity: 0; }
.db3 .co-chon .db3-dau-chon svg { opacity: 1; }

/* Thông tin */
.db3-o { display: grid; gap: 6px; margin-top: 18px; }
.db3-o > label, .db3-o .db3-nhan { color: var(--bone-bright); }
.db3 .db3-o input:not([type=checkbox]), .db3 .db3-o select, .db3 .db3-o textarea {
  font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--bone-bright); background: var(--charcoal);
  border: 1px solid var(--db3-line-manh); border-radius: 0; padding: 12px 14px; min-height: 48px; width: 100%; box-shadow: none; margin: 0;
}
.db3 .db3-o textarea { min-height: 96px; resize: vertical; }
.db3 .db3-o input:focus, .db3 .db3-o textarea:focus, .db3 .db3-o select:focus { border-color: var(--bronze); outline: none; }
.db3 .db3-o.loi input:not([type=checkbox]) { border-color: var(--bronze); }
.db3-bao-loi, .db3-thong-bao { font-family: var(--sans); font-size: 16px; color: var(--bone-bright); display: flex; gap: 10px; align-items: flex-start; }
.db3-bao-loi::before, .db3-thong-bao::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; background: var(--bronze); transform: rotate(45deg); }
.db3-dien-thoai { display: grid; grid-template-columns: 104px 1fr; gap: 8px; }
.db3-goi-y-email { justify-self: start; }
.db3-chip-ds { display: flex; flex-wrap: wrap; gap: 8px; }
.db3 .db3-chip { min-height: 44px; padding: 8px 16px; border: 1px solid var(--db3-line-manh); border-radius: 22px; color: var(--bone-warm); }
.db3 .db3-chip[aria-pressed="true"] { border-color: var(--bronze); color: var(--bone-bright); background: var(--charcoal); }
.db3-o-tich { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 0; cursor: pointer; min-height: 48px; }
.db3 .db3-o-tich input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--bronze); }

/* Xác nhận */
.db3-tom-tat { background: var(--charcoal); border: 1px solid var(--db3-line); }
.db3-tt-dong { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--db3-line); }
.db3-tt-dong:last-child { border-bottom: 0; }
.db3-tt-dong:not(:has(.db3-tt-sua)) { grid-template-columns: 1fr; }
.db3-tom-tat .db3-tt-nhan { display: block; color: var(--bronze); grid-column: 1 / -1; white-space: nowrap; }
.db3-tt-gia-tri { color: var(--bone-bright); overflow-wrap: anywhere; }
.db3 .db3-tt-sua { color: var(--bone-warm); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; min-width: 44px; align-self: center; }
.db3-bang-tien { width: 100%; border-collapse: collapse; margin-top: 8px; }
.db3 .db3-bang-tien td { padding: 8px 0; color: var(--bone-warm); border: 0; background: none; }
.db3 .db3-bang-tien td:last-child { text-align: right; color: var(--bone-bright); white-space: nowrap; padding-left: 12px; }
.db3 .db3-bang-tien tr.tong td { border-top: 1px solid var(--db3-line-manh); padding-top: 14px; color: var(--bone-bright); font-size: var(--fs-h3); }
.db3 .db3-bang-tien tr.coc td { color: var(--bronze); }
.db3-chinh-sach { margin-top: 8px !important; padding-left: 20px; display: grid; gap: 6px; }

/* Thanh dưới (điện thoại), nút */
.db3-thanh-duoi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--charcoal); border-top: 1px solid var(--db3-line-manh); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.db3-thanh-duoi-hang { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.db3 .db3-nut-tong { text-align: left; min-height: 52px; display: grid; align-content: center; grid-column: 2; }
.db3-nut-tong .so { color: var(--bone-bright); display: inline-flex; align-items: center; gap: 6px; }
.db3-nut-tong .so svg { width: 16px; height: 16px; stroke: var(--bone-warm); }
.db3-tong-nhan, .db3-nut-tong .phu { color: var(--bone-warm); }
.db3 .db3-nut-chinh, .db3 .db3-nut-phu { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.04em; text-decoration: none; }
.db3 .db3-nut-chinh { background: var(--bronze); color: var(--charcoal); }
.db3-thanh-duoi-hang .db3-nut-chinh { grid-column: 3; }
.db3 .db3-nut-chinh:hover, .db3 .db3-nut-chinh:focus { background: var(--bronze); color: var(--charcoal); }
.db3 .db3-nut-chinh[aria-disabled="true"], .db3 .db3-nut-chinh:disabled { background: transparent; color: var(--bone-warm); border: 1px solid var(--db3-line-manh); cursor: not-allowed; }
.db3 .db3-nut-phu { border: 1px solid var(--db3-line-manh); color: var(--bone-bright); }
.db3-nut-lui { display: none !important; }
.db3.db3-ban-phim .db3-nut-tong, .db3.db3-dang-nhap .db3-nut-tong { visibility: hidden; }
.db3.db3-ban-phim .db3-thanh-duoi { padding-top: 8px; padding-bottom: 8px; }

/* Tấm: mờ dần, không trượt */
.db3-man-che { position: fixed; inset: 0; background: rgba(15, 14, 13, 0.82); z-index: 50; }
.db3-tam { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--charcoal); border-top: 1px solid var(--db3-line-manh); max-height: 86vh; max-height: 86dvh; overflow: auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }
.db3-tam-dau { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; position: sticky; top: -8px; background: var(--charcoal); z-index: 1; }
.db3-tam-ten { font-size: var(--fs-h3) !important; }
.db3 .db3-nut-dong { width: 44px; height: 44px; display: inline-grid; place-items: center; color: var(--bone-bright); border: 0; background: none; }
.db3-nut-dong svg { stroke-width: 1; width: 22px; height: 22px; }
.db3-tam-anh { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 8px 0 16px; }
.db3-tam-gia { color: var(--bone-bright); margin-bottom: 8px !important; }
.db3-mon { display: grid; grid-template-columns: 7.5em 1fr; gap: 0 12px; margin-top: 12px; }
.db3-mon dt { font-family: var(--jp); font-weight: 300; color: var(--bronze); padding: 8px 0; border-top: 1px solid var(--db3-line); }
.db3-mon dd { color: var(--bone-bright); padding: 8px 0; border-top: 1px solid var(--db3-line); }

/* Tổng quan (máy tính) */
.db3-tong-quan { display: none; }
.db3-tq-tieu-de { font-size: var(--fs-h3) !important; }
.db3-tq-dong { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--db3-line); }
.db3-tq-dong .n { color: var(--bronze); }
.db3-tq-dong .g { color: var(--bone-bright); }
.db3-tq-dong .g.trong { color: var(--bone-warm); }

/* Trang cảm ơn, trang khách */
.db3-trang-khach .db3-khung { padding-bottom: 64px; }
.db3-hero { text-align: center; padding: 16px 0 8px; }
.db3-hero .kanji-lon { font-family: var(--jp); font-weight: 300; color: var(--bronze); font-size: var(--fs-h3); }
.db3 .db3-hero h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.1; margin-top: 8px; }
.db3-hero p { margin-top: 12px; max-width: 40em; margin-left: auto; margin-right: auto; }
.db3-ma-dat-ban { margin: 20px auto 0; display: inline-grid; gap: 2px; padding: 12px 24px; border: 1px solid var(--db3-line-manh); background: var(--charcoal); }
.db3-ma-dat-ban .so { color: var(--bone-bright); font-size: var(--fs-h3); letter-spacing: 0.04em; }
.db3-sau-gui { display: grid; gap: 24px; margin-top: 28px; }
.db3-the { background: var(--charcoal); border: 1px solid var(--db3-line); padding: 16px; }
.db3-the > h2 { margin-bottom: 12px; }
.db3-qr { background: var(--bone-bright); padding: 12px; width: min(280px, 100%); margin: 12px auto; }
.db3-qr img { width: 100%; height: auto; }
.db3-dong-ck { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--db3-line); }
.db3-dong-ck .n { color: var(--bone-warm); }
.db3-dong-ck .g { color: var(--bone-bright); grid-column: 1; overflow-wrap: anywhere; }
.db3 .db3-dong-ck .copy-btn { grid-column: 2; grid-row: 1 / span 2; color: var(--bronze); min-height: 44px; min-width: 44px; text-decoration: underline; text-underline-offset: 4px; }
.db3-dem-nguoc { text-align: center; padding: 14px; border: 1px solid var(--db3-line-manh); margin: 12px 0; }
.db3-dem-nguoc .time { font-size: var(--fs-h3); color: var(--bone-bright); }
.db3-moc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; list-style: none; padding: 0; }
.db3-moc li { border-top: 3px solid var(--db3-line-manh); padding-top: 8px; }
.db3-moc li.xong { border-color: var(--bronze); color: var(--bone-bright); }
/* Bước hiện tại nổi bật (trang khách, 25/10/2026): vạch dày hơn, chữ sáng. */
.db3-moc li { color: var(--bone-warm); }
.db3-moc li.dang { border-top-width: 5px; border-color: var(--bronze); color: var(--bone-bright); padding-top: 6px; }
.db3-cau-the { margin-top: 14px; color: var(--bone-bright); }
.db3-doi-soat { display: grid; gap: 4px; justify-items: start; outline: none; }
.db3-thao-tac { display: grid; gap: 12px; margin-top: 16px; }
.db3-thao-tac .db3-nut-chinh, .db3-thao-tac .db3-nut-phu { width: 100%; }
.db3 .sabi-payment-result { font-family: var(--sans); font-size: 16px; color: var(--bone-bright); margin-top: 12px; }
.db3-lien-he { margin-top: 16px; }
.db3-lien-he a { color: var(--bone-bright); }
/* Trang huỷ bằng mã (mu-plugin sabi-erp/huy-dat-ban.php) */
.db3-huy { max-width: 560px; margin: 28px auto 0; display: grid; gap: 20px; }
.db3 .db3-o input.db3-o-ma { letter-spacing: 0.4em; text-align: center; }
/* Phần xác nhận đến, đổi lịch, huỷ, phản hồi (mu-plugin sabi-erp/trang-khach-x2.php) */
.db3 .sabi-x2 { display: grid; gap: 24px; margin-top: 32px; }
.db3 .sabi-x2-khoi { border-top: 1px solid var(--db3-line-manh); padding-top: 20px; }
.db3 .sabi-x2-khoi .sabi-section-label { color: var(--bronze); letter-spacing: 0.04em; }
.db3 .sabi-x2-cau, .db3 .sabi-x2-ds { margin: 8px 0 14px; }
.db3 .sabi-x2-ds { padding-left: 20px; }
.db3 .sabi-x2-form { display: grid; gap: 14px; }
.db3 .sabi-x2-form > label, .db3 .sabi-x2-diem + label { display: grid; gap: 6px; color: var(--bone-bright); }
/* Trang khách: cọc là số khách cần nhất, chữ sáng, cỡ như Tổng dự kiến (Typography chỉ cho độ đậm 300, 400). */
.db3 .db3-trang-khach-tien tr.coc td { color: var(--bone-bright); font-size: var(--fs-h3); padding-top: 4px; }
.db3 .db3-trang-khach-tien tr.coc td:first-child { border-left: 2px solid var(--bronze); padding-left: 12px; }
/* Đổi lịch, Huỷ: hai liên kết nhỏ dưới Tóm tắt, bấm mới mở khối. */
.db3-x2-lien-ket { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }
.db3 .db3-x2-lien-ket .db3-lien-ket { color: var(--bone-warm); }
.db3 .sabi-x2-khoi:focus { outline: none; }
.db3 .sabi-x2-lich { display: grid; gap: 12px; }
.db3 .sabi-x2-form input[type=date], .db3 .sabi-x2-form select, .db3 .sabi-x2-form textarea {
  font-family: var(--sans); font-size: 16px; color: var(--bone-bright); background: var(--charcoal); border: 1px solid var(--db3-line-manh);
  border-radius: 0; padding: 12px 14px; min-height: 48px; width: 100%;
}
.db3 .sabi-x2-diem { display: flex; gap: 8px; flex-wrap: wrap; }
.db3 .sabi-x2-diem input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.db3 .sabi-x2-diem span { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--db3-line-manh); border-radius: 50%; cursor: pointer; }
.db3 .sabi-x2-diem input:checked + span { background: var(--bronze); color: var(--charcoal); }
.db3 .sabi-x2-diem input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.db3 .sabi-x2 .sabi-btn { min-height: 52px; padding: 0 22px; width: 100%; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.04em; border: 1px solid var(--db3-line-manh); color: var(--bone-bright); }
.db3 .sabi-x2 .sabi-btn-primary { background: var(--bronze); color: var(--charcoal); border-color: var(--bronze); }
.db3 .sabi-x2 .sabi-x2-xac-nhan-huy { display: grid; gap: 12px; margin-top: 12px; }

@media (min-width: 1024px) {
  .db3 { --db3-thanh-duoi: 0px; }
  .db3-dau-trong { min-height: 72px; padding: 0 32px; }
  .db3-chu-may-tinh { display: inline; }
  .db3-tien-trinh { padding: 8px 32px 0; }
  .db3-tt-chu { display: none; }
  .db3-tien-trinh .db3-tt-nhan { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .db3 .db3-tt-nhan button { text-align: left; padding: 10px 0 14px; color: var(--bone-warm); min-height: 44px; width: 100%; }
  .db3 .db3-tt-nhan button.dang, .db3 .db3-tt-nhan button.xong { color: var(--bone-bright); }
  .db3 .db3-tt-nhan button:disabled { cursor: default; }
  .db3-tt-nhan .so { color: var(--bronze); margin-right: 8px; }
  .db3-khung { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; padding: 40px 32px 64px; align-items: start; }
  .db3-trang-khach .db3-khung { display: block; max-width: 1080px; }
  .db3-tong-quan { display: block; position: sticky; top: 24px; background: var(--charcoal); border: 1px solid var(--db3-line); padding: 24px; }
  .db3-thanh-duoi { position: static; background: transparent; border: 0; padding: 20px 0 0; }
  .db3-thanh-duoi-hang { grid-template-columns: auto 1fr; }
  .db3 .db3-thanh-duoi .db3-nut-tong { display: none; }
  .db3-nut-lui:not([hidden]) { display: inline-flex !important; }
  .db3 .db3-thanh-duoi .db3-nut-chinh { width: 100%; grid-column: 2; }
  .db3-ds-set { grid-template-columns: 1fr 1fr; gap: 16px; }
  .db3-the-set { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0; gap: 14px; }
  .db3-the-set-than { padding: 0 16px 12px; }
  .db3-the-set-cau { --db3-so-dong: 3; }
  .db3.db3-co-nhac .db3-khung { padding-bottom: 64px; }
  .db3-the-set-cau.ngan { display: none; }
  .db3-the-set-cau.dai { display: -webkit-box; }
  .db3-ds-khu { grid-template-columns: 1fr 1fr; gap: 16px; }
  .db3-lich-va-gio { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
  .db3-ds-gio { grid-template-columns: 1fr; }
  .db3-hai-o { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .db3-man-che { background: rgba(15, 14, 13, 0.7); }
  .db3-tam { left: auto; top: 0; width: 520px; max-height: none; border-top: 0; border-left: 1px solid var(--db3-line-manh); padding: 24px 32px; }
  .db3-sau-gui { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .db3 .sabi-x2 { grid-template-columns: 1fr 1fr; gap: 28px 48px; }
}

/* Chọn phương thức trả cọc trên trang khách (05/11/2026): 2 thẻ radio, 1 nút chính; điện thoại: thẻ xếp dọc, nút dính đáy màn hình. */
.db3-pt-chon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.db3 .db3-pt-the { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 44px; padding: 14px; border: 1px solid var(--db3-line-manh); background: transparent; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.db3 .db3-pt-the:hover { border-color: var(--bronze); }
.db3 .db3-pt-the.chon { border-color: var(--bronze); box-shadow: inset 0 0 0 1px var(--bronze); }
.db3-pt-the input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.db3 .db3-pt-the:focus-within { outline: 2px solid var(--bronze); outline-offset: 2px; }
.db3-pt-dau { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.db3-pt-cham { width: 18px; height: 18px; margin-top: 3px; border: 1px solid var(--db3-line-manh); border-radius: 50%; display: block; }
.db3-pt-the.chon .db3-pt-cham { border-color: var(--bronze); box-shadow: inset 0 0 0 4px var(--charcoal); background: var(--bronze); }
.db3-pt-ten { color: var(--bone-bright); line-height: 1.35; }
.db3-pt-phu { display: block; color: var(--bone-warm); font-size: 0.875em; line-height: 1.4; margin-top: 2px; }
.db3-pt-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: auto; }
.db3-pt-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 40 / 26; padding: 3px 4px; background: #fff; border-radius: 2px; }
.db3-pt-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.db3-pt-ck[hidden] { display: none; }
@media (max-width: 767px) {
  .db3-pt-chon { grid-template-columns: minmax(0, 1fr); }
  .db3-pt-logos { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .db3-pt-logo { padding: 2px 3px; }
  .db3-pt-day { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--charcoal); border-top: 1px solid var(--db3-line-manh); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .db3-pt-day .db3-thao-tac { margin-top: 0; }
}
