/* RenSales — giao diện ưu tiên điện thoại. Màu theo logo HouseGold: xanh navy (#0C2448) và vàng 24K (#F5C22B).
   Chữ từ 17px, nút cao từ 48px, tương phản đạt WCAG AA. */

:root {
  --blue: #163A75;
  --blue-dark: #0C2448;
  --blue-soft: #EAF0FA;
  --green: #2E5A0C;
  --green-soft: #EAF3DE;
  --amber: #7A4708;
  --amber-soft: #FAEEDA;
  --red: #A32D2D;
  --red-soft: #FCEBEB;
  --text: #1a1a2e;
  --muted: #555b6e;
  --line: #dfe3ec;
  --bg: #f0f2f7;
  --card: #fff;
  --radius: 14px;
  --gold: #8A5A00;
  --gold-soft: #FFE7A8;
  --gold-24k: #F5C22B;
  --gold-24k-hi: #FFE48A;
  --gold-24k-deep: #D69A0A;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { font-size: 17px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Thanh trên */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--blue); color: #fff;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  min-height: 56px;
}
.brand { color: #fff; font-weight: 800; font-size: 1.12rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.brand-icon { display: inline-grid; place-items: center; flex: 0 0 auto; }
.brand-icon img { display: block; height: 38px; width: auto; }
.brand-word b, .auth-name b, .pub-footer-brand b { font-weight: inherit; color: var(--gold-24k); }
.brand-sub { font-weight: 600; color: #dbe4f5; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: .9rem; min-width: 0; }
.topbar-user .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }
.topbar-user button { min-height: 40px; padding: 6px 12px; background: transparent; color: #fff; border: 1.5px solid #fff; border-radius: 10px; font-size: .9rem; cursor: pointer; }

/* Khung nội dung */
.view { max-width: 760px; margin: 0 auto; padding: 16px; outline: none; }
h1 { font-size: 1.35rem; margin-bottom: 12px; }
h2 { font-size: 1.1rem; margin-bottom: 10px; }
p + p { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Điều hướng phụ (admin) */
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.tabs a { flex: 0 0 auto; padding: 10px 14px; min-height: 44px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; text-decoration: none; margin-bottom: 6px; }

/* Biểu mẫu */
label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid #c9cfdb; border-radius: 10px; background: #fff;
  font: inherit; color: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #9cc3ea; outline-offset: 1px; border-color: var(--blue); }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit input { flex: 1; }
.input-unit .unit { color: var(--muted); white-space: nowrap; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1.5px solid #c9cfdb; border-radius: 10px; background: #fff; font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; }
fieldset { border: none; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; float: left; width: 100%; padding: 0; }
legend + * { clear: both; }

/* Nút */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button:active, .btn:active { background: var(--blue-dark); border-color: var(--blue-dark); }
button[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:active { background: var(--blue-soft); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger-light { background: #fff; color: var(--red); border-color: var(--red); }

/* Nhãn */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--blue-soft); color: var(--blue-dark); }
.badge-active { background: var(--green-soft); color: var(--green); }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-suspended, .badge-locked { background: var(--red-soft); color: var(--red); }
.badge-left { background: #e6e8ee; color: #3d4252; }

/* Danh sách */
.list { list-style: none; }
.list > li + li { border-top: 1px solid var(--line); }
.list-item { display: block; padding: 12px 4px; color: inherit; text-decoration: none; min-height: 56px; }
a.list-item:active { background: var(--blue-soft); }
.list-item .title { font-weight: 700; }
.list-item .meta { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.list-item .chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.notes { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.kv dd { font-weight: 600; word-break: break-word; }

/* Thông báo */
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-warn { background: var(--amber-soft); color: var(--amber); }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100vw - 32px); width: max-content;
  background: #1f2433; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.toast.error { background: var(--red); }

/* Hộp thoại */
dialog { margin: auto; border: none; border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(20, 24, 40, .5); }
.dialog-body { padding: 18px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 0 18px 18px; flex-wrap: wrap; }
.secret { font-size: 2rem; font-weight: 800; letter-spacing: .3em; text-align: center; padding: 14px; background: var(--blue-soft); border-radius: 12px; margin: 12px 0; }

.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 8px; }

.audit-change { font-size: .9rem; margin-top: 6px; background: #f7f8fb; border-radius: 8px; padding: 8px 10px; word-break: break-word; }

/* Bảng hàng */
.room-list > li + li { border-top: none; }
.room-list > li { margin-bottom: 12px; }
.room-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: inherit; text-decoration: none; }
.room-card:active { background: var(--blue-soft); }
.room-card .title { font-weight: 700; margin-top: 2px; }
.room-card .meta { font-size: .92rem; color: var(--muted); margin-top: 2px; }
.room-card .chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--blue-dark); margin-top: 6px; }
.price.big { font-size: 1.6rem; }
.chip-plain { background: #eef0f5; color: #3d4252; font-weight: 500; }
.room-available { background: var(--green-soft); color: var(--green); }
.room-upcoming { background: var(--amber-soft); color: var(--amber); }
.room-reserved, .room-deposited { background: #EDE7F8; color: #4B2C83; }
.room-rented, .room-off { background: #e6e8ee; color: #3d4252; }
.room-img { width: 100%; border-radius: 10px; display: block; }
.filter-panel summary { font-weight: 700; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.saved-chip { flex: 0 0 auto; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.saved-chip a { padding: 10px 6px 10px 14px; color: var(--blue-dark); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.saved-chip .chip-x { min-height: 44px; min-width: 40px; padding: 0 12px 0 6px; background: transparent; border: none; color: var(--muted); font-size: 1.2rem; }
input[type=date], input[type=url], input[type=month] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #c9cfdb; border-radius: 10px; background: #fff; font: inherit; color: inherit; }
.home-btn { min-height: 56px; font-size: 1.08rem; }
.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 4px; }
.money-box { margin-bottom: 10px; }
.bell { position: relative; color: #fff; text-decoration: none; font-size: 1.25rem; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.bell-count { position: absolute; top: 2px; right: 0; background: #E53935; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 18px; text-align: center; }

/* Chế độ tối giản (SPEC 4.11): chữ từ 18px, nút cao từ 56px, mỗi màn hình một việc */
body.simple { font-size: 19px; }
body.simple .view { padding-bottom: 96px; }
.simple-screen > * + * { margin-top: 14px; }
.simple-screen h1 { font-size: 1.5rem; }
.simple-btn { min-height: 64px; font-size: 1.15rem; justify-content: flex-start; gap: 14px; text-align: left; padding: 12px 18px; }
.simple-icon { font-size: 1.5rem; width: 32px; text-align: center; flex: 0 0 auto; }
.simple-input { width: 100%; min-height: 60px; font-size: 1.3rem; padding: 12px 14px; border: 2px solid #8a93a8; border-radius: 12px; }
.simple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.simple-grid .simple-btn { justify-content: center; }
.simple-card { margin-bottom: 12px; font-size: 1.05rem; }
.simple-back { position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; min-height: 56px; padding: 14px 20px; border-radius: 14px; background: #1f2433; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
/* Màn hình hẹp 360px: không tràn ngang */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }
.kv dd { min-width: 0; }
@media (max-width: 380px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dt { margin-top: 6px; } .topbar-user .who { max-width: 30vw; } }

/* ── Màn chính: dải chúc mừng, thẻ của tôi, vinh danh (SPEC 4.15) ───────────── */
.ticker { overflow: hidden; margin: 0 0 14px; border-radius: 999px; background: var(--amber-soft); border: 1px solid #ecd29a; color: #4a2c05; }
.ticker-track { display: inline-flex; white-space: nowrap; padding: 9px 0; animation: ticker-run var(--ticker-dur, 30s) linear infinite; will-change: transform; }
.ticker-group { display: inline-flex; }
.ticker-item { padding: 0 22px; font-size: .95rem; }
.ticker-item b { font-weight: 800; }
.ticker-me b { color: var(--blue-dark); }
.ticker-time { color: #6b4a14; }
.ticker:hover .ticker-track, .ticker:active .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-empty .ticker-track { animation: none; white-space: normal; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

.me-card { display: block; text-decoration: none; color: #fff; border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #2A5DB0); box-shadow: 0 6px 18px rgba(12, 36, 72, .25); }
.me-headline { font-size: 1.12rem; font-weight: 800; }
.me-goal { margin-top: 4px; font-size: .97rem; color: #e3effb; }
.me-moneys { margin-top: 14px; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 4px 12px; }
.me-money { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
.me-money + .me-money { border-top: 1px solid rgba(255, 255, 255, .18); }
.me-money span { color: #e3effb; }
.me-money b { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.me-money b.me-strong { font-size: 1.25rem; }
.me-more { margin-top: 12px; font-size: .92rem; font-weight: 600; color: #e3effb; }

.task { display: flex; align-items: center; gap: 12px; }
.task-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.3rem; }
.task-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.task-go { flex: 0 0 auto; font-size: 1.6rem; color: var(--muted); }

.today-group + .today-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.today-group h3 { font-size: 1rem; margin-bottom: 2px; }
.today-group .price { font-size: 1.05rem; margin-top: 0; white-space: nowrap; }
.today-group .spread { flex-wrap: nowrap; align-items: baseline; }
.today-group .spread .title { min-width: 0; overflow-wrap: anywhere; }

.honor-list { list-style: none; display: grid; gap: 6px; }
.honor-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f7f8fb; min-height: 52px; }
.honor-row.honor-me { background: var(--blue-soft); outline: 2px solid var(--blue); }
.honor-rank { flex: 0 0 34px; text-align: center; font-size: 1.35rem; font-weight: 800; color: var(--muted); }
.honor-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.honor-count { flex: 0 0 auto; font-weight: 700; color: var(--green); white-space: nowrap; }

.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shortcut { min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 10px; }
@media (max-width: 340px) { .shortcuts { grid-template-columns: 1fr; } }

/* ── Bước E2: thanh điều hướng dưới, trang Tôi, huy hiệu, chuỗi ngày ───────── */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(16, 24, 40, .06);
  padding: 4px max(4px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-right)); }
.bottom-nav a { flex: 1 1 0; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: .78rem; font-weight: 600; border-radius: 12px; }
.bottom-nav .nav-icon { font-size: 1.35rem; line-height: 1; filter: grayscale(1); opacity: .75; }
.bottom-nav .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bottom-nav a.active { color: var(--blue-dark); background: var(--blue-soft); }
.bottom-nav a.active .nav-icon { filter: none; opacity: 1; }
body.has-nav .view { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-nav .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { .bottom-nav { justify-content: center; } .bottom-nav a { flex: 0 0 140px; } }

.profile { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; flex: 0 0 auto; }
.profile-name { font-size: 1.15rem; font-weight: 800; }
.btn-danger { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--red); background: #fff; color: var(--red); font-weight: 700; font-size: 1rem; cursor: pointer; }

.me-streak { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: .88rem; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gold-soft); color: #4a2c05; font-weight: 700; border: 1px solid #ecd29a; }
.badge-icon { font-size: 1.2rem; }
.ticker { background: linear-gradient(90deg, #FFF3CF, var(--amber-soft)); }

/* ── Bước E3: album ảnh vuốt ngang, quản lý ảnh ──────────────────────────────── */
.gallery-wrap { position: relative; }
.gallery-top { margin-bottom: 14px; }
@media (min-width: 700px) { .gallery img { aspect-ratio: 16 / 10; } }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; border-radius: 12px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; border-radius: 12px; background: #e9ecf3; }
.gallery:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .85rem; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.thumb { position: relative; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: #e9ecf3; }
.thumb-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; font-weight: 600; }
.thumb-del { position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer; }


/* ══ Trang công khai: danh mục phòng và trang phòng (SPEC 4.12) ══════════════
   Bố cục: ô tìm kiếm → hàng lọc nhanh dính trên → danh sách phòng + cột lọc bên phải. */
body.public { background: #f4f6fa; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.pub-main { outline: none; min-height: 60vh; }
.pub-loading { padding: 24px 16px; }
.pbody { padding-top: 14px; padding-bottom: 28px; }
.catalog-foot { margin-top: 16px; }
.ic { flex: 0 0 auto; }

/* Thanh trên của trang công khai: không dính, nhường chỗ cho hàng lọc */
.pub-top { position: static; }
.pub-nav { display: flex; align-items: center; gap: 4px; }
.pub-nav-link { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 10px; }
.pub-nav-link:hover { background: rgba(255, 255, 255, .14); }
.pub-nav-btn { color: var(--blue-dark); background: linear-gradient(180deg, var(--gold-24k-hi), var(--gold-24k)); text-decoration: none; font-weight: 700; font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; margin-left: 4px; }
.pub-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold-soft); color: #4a3200; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
@media (max-width: 620px) { .pub-nav-wide, .pub-nav-text { display: none; } }
@media (max-width: 420px) { .pub-top .brand-sub { display: none; } }

/* Băng đầu trang và ô tìm kiếm */
.phero { background: linear-gradient(135deg, var(--blue-dark), var(--blue) 62%, #2a78c2); color: #fff; padding: 20px 0 24px; }
.phero-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 4px; }
.phero-title { font-size: clamp(1.35rem, 3.6vw, 2rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.psearch { display: flex; align-items: center; gap: 8px; max-width: 760px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: 0 8px 24px rgba(8, 32, 64, .28); color: var(--muted); }
.psearch input[type=search] { flex: 1; min-width: 0; width: auto; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.psearch input[type=search]:focus { outline: none; border: 0; }
.psearch:focus-within { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.psearch button { min-height: 44px; padding: 0 18px; border-radius: 10px; flex: 0 0 auto; }
.phero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .9rem; color: #e6f0fb; }
.phero-points li { display: inline-flex; align-items: center; gap: 6px; }
.phero-points .ic { color: var(--gold-soft); }

/* Hàng lọc nhanh, dính trên cùng khi kéo trang */
.fbar { position: sticky; top: 0; z-index: 9; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16, 24, 40, .05); }
.fbar-row { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.fbar-row::-webkit-scrollbar, .qchips::-webkit-scrollbar { display: none; }
.fchip { flex: 0 0 auto; width: auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #c9cfdb; background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
select.fchip { appearance: none; -webkit-appearance: none; max-width: 210px; padding-right: 32px; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23555b6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
.fchip:active { background-color: var(--blue-soft); border-color: var(--blue); }
.fchip.on { border-color: var(--blue); background-color: var(--blue-soft); color: var(--blue-dark); }
.fchip-main { border-color: var(--blue); color: var(--blue-dark); }
.fchip-clear { border-color: transparent; background: transparent; color: var(--red); }

/* Đường dẫn phân cấp, tiêu đề, lối tắt khu vực */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.crumb { background: none; border: 0; padding: 0; min-height: 32px; border-radius: 4px; color: var(--muted); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.crumb:hover { color: var(--blue); text-decoration: underline; }
.crumb:active { background: none; }
.crumb-sep { color: #a3a9b8; }
.ptitle { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25; margin-bottom: 10px; }
.qchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.qchip { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.qchip:hover { border-color: var(--blue); color: var(--blue-dark); }
.qchip:active { background: var(--blue-soft); }
.opt-n { color: var(--muted); font-weight: 500; font-size: .85em; }

/* Hai cột trên màn rộng */
.playout { display: grid; gap: 20px; }
.pmain { min-width: 0; }
.pside { display: none; }
@media (min-width: 980px) {
  .playout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .pside { display: grid; gap: 14px; position: sticky; top: 76px; }
  .rside { top: 16px; }
}
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 1rem; margin-bottom: 8px; }
.side-cta { background: linear-gradient(160deg, #fff6dc, #fff 70%); border-color: #f0dca8; }
.side-cta p { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.opt { display: inline-flex; align-items: center; gap: 8px; font: inherit; cursor: pointer; }
.side-list { display: grid; }
.side-list .opt { justify-content: space-between; text-align: left; min-height: 38px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.side-list .opt:hover { background: var(--blue-soft); }
.side-list .opt.on { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .opt { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #c9cfdb; background: #fff; color: var(--text); font-weight: 600; font-size: .92rem; }
.opts .opt.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

/* Đầu danh sách: số phòng và sắp xếp */
.phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pcount { color: var(--muted); font-size: .95rem; }
select.psort { width: auto; flex: 0 0 auto; min-height: 42px; padding: 6px 10px; font-size: .92rem; }
.pempty { background: #fff; border: 1px dashed #c9cfdb; border-radius: var(--radius); padding: 24px 16px; text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 14px; }
.pempty p { color: var(--muted); }
.pseen, .psection { margin-top: 26px; }
.pseen h2, .psection h2 { margin-bottom: 12px; }

/* Thẻ phòng */
.rlist { display: grid; gap: 14px; margin-bottom: 14px; transition: opacity .15s; }
.rlist[aria-busy=true] { opacity: .55; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.rcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease; }
.rcard:hover { box-shadow: 0 8px 22px rgba(16, 24, 40, .12); transform: translateY(-1px); }
.rcard:focus-within { outline: 3px solid #9cc3ea; outline-offset: 1px; }
.rcard-media { position: relative; aspect-ratio: 16 / 10; background: #e9edf5; overflow: hidden; }
.rcard-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.rcard-media.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.rcard-media.mosaic img:first-child { grid-row: 1 / 3; }
.rcard-noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6b7286; font-size: .78rem; text-align: center; }
.rcard-noimg .ic { color: #b9c2d6; }
.rcard-status { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .78rem; font-weight: 700; }
.rcard-status.upcoming { background: var(--amber-soft); color: var(--amber); }
.rcard-count { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .78rem; font-weight: 600; }
.rcard-body { flex: 1; min-width: 0; padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.rcard-title { font-size: 1.02rem; line-height: 1.3; margin: 0; }
.rcard-link { color: var(--text); text-decoration: none; }
.rcard-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.rcard-link:focus-visible { outline: none; }
.rcard:hover .rcard-link { color: var(--blue-dark); }
.rcard-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.rcard-price b { font-size: 1.2rem; font-weight: 800; color: var(--blue-dark); }
.rcard-unit { color: var(--muted); font-size: .85rem; margin-right: 8px; }
.rcard-area { font-weight: 700; white-space: nowrap; }
.rcard-where { display: flex; gap: 5px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.rcard-where .ic { margin-top: 3px; }
.rcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rcard-tags span { padding: 2px 9px; border-radius: 6px; background: #eef1f6; color: #3d4252; font-size: .8rem; }
.rcard-extra { font-size: .88rem; color: var(--gold); font-weight: 600; }
.rcard-foot { display: flex; align-items: center; gap: 5px; color: #6b7286; font-size: .82rem; }
/* Chưa có ảnh: thẻ nằm ngang, ô ảnh nhỏ */
.rcard.noimg { flex-direction: row; }
.rcard.noimg .rcard-media { flex: 0 0 96px; aspect-ratio: auto; min-height: 112px; }
.rcard.noimg .rcard-noimg { justify-content: flex-start; padding-top: 16px; }
.rcard.noimg .rcard-status { left: 6px; right: 6px; top: auto; bottom: 8px; padding: 3px 6px; border-radius: 8px; text-align: center; font-size: .72rem; line-height: 1.25; }
.rcard.noimg .rcard-title { padding-right: 40px; }
@media (max-width: 520px) { .rcard-title { font-size: .98rem; } .rcard-price b { font-size: 1.12rem; } .rcard.noimg .rcard-body { padding: 10px 12px 12px; } }
@media (min-width: 700px) {
  .rlist .rcard { flex-direction: row; }
  .rlist .rcard-media { flex: 0 0 290px; aspect-ratio: auto; min-height: 196px; }
  .rlist .rcard.noimg .rcard-media { flex-basis: 170px; min-height: 150px; }
  .rlist .rcard.noimg .rcard-noimg { justify-content: center; padding-top: 0; padding-bottom: 28px; }
  .rlist .rcard-body { padding: 16px 18px; gap: 8px; }
  .rlist .rcard-title { font-size: 1.12rem; padding-right: 44px; }
  .rlist .rcard-price b { font-size: 1.35rem; }
}
/* Màn hình máy tính rộng: nới khung trang danh sách và xếp phòng thành hai cột, để hai bên không bỏ trống.
   Chỉ áp dụng cho trang danh sách (body.catalog); trang phòng và trang đăng ký giữ khung 1160px cho dễ đọc. */
@media (min-width: 1360px) {
  body.catalog .wrap { max-width: 1320px; }
  body.catalog .psearch { max-width: 860px; }
  body.catalog .rlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.catalog .rlist > :not(.rcard) { grid-column: 1 / -1; }
  body.catalog .rlist .rcard-media { flex-basis: 200px; min-height: 176px; }
  body.catalog .rlist .rcard.noimg .rcard-media { flex-basis: 132px; min-height: 150px; }
  body.catalog .rlist .rcard-body { padding: 14px 16px; }
  body.catalog .rlist .rcard-title { font-size: 1.04rem; }
  body.catalog .rlist .rcard-price b { font-size: 1.25rem; }
}
@media (min-width: 1640px) {
  body.catalog .wrap { max-width: 1560px; }
  body.catalog .playout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  body.catalog .rlist { gap: 16px; }
  body.catalog .rlist .rcard-media { flex-basis: 240px; min-height: 190px; }
  body.catalog .rlist .rcard.noimg .rcard-media { flex-basis: 140px; min-height: 150px; }
  body.catalog .rlist .rcard-body { padding: 16px 18px; }
  body.catalog .rlist .rcard-title { font-size: 1.08rem; }
  body.catalog .rlist .rcard-price b { font-size: 1.35rem; }
}

/* Nút trái tim lưu phòng */
.heart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .96); color: #5b6275; display: grid; place-items: center; cursor: pointer; }
.heart:active { background: #fff; border-color: #f3c2ca; }
.heart[aria-pressed=true] { color: #c6283f; border-color: #f3c2ca; }
.heart[aria-pressed=true] .ic-heart path { fill: currentColor; }
.heart-text { position: static; width: auto; height: auto; min-height: 42px; padding: 0 16px; border-radius: 999px; display: inline-flex; gap: 6px; font-weight: 600; font-size: .92rem; }

/* Hộp "Bộ lọc": trượt từ dưới lên trên điện thoại */
dialog.sheet { width: min(560px, 100vw); max-width: 100vw; max-height: min(88vh, 760px); padding: 0; border-radius: 18px; overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; }
@media (max-width: 600px) { dialog.sheet { margin: auto 0 0; width: 100vw; border-radius: 18px 18px 0 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; }
.sheet-close { width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); }
.sheet-close:active { background: var(--blue-soft); }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 16px 18px; }
.sheet-group h3 { font-size: .95rem; margin: 14px 0 8px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot button { flex: 1; }
.sheet-foot .btn-light { flex: 0 0 auto; }

/* Trang phòng */
.proom .gallery-top { margin-bottom: 16px; }
@media (min-width: 700px) { .proom .gallery img { aspect-ratio: 16 / 9; max-height: 540px; } }
.rwhere { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); margin-bottom: 12px; }
.rwhere .ic { margin-top: 3px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.facts > div { padding: 12px 14px; display: grid; gap: 2px; align-content: start; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts span { color: var(--muted); font-size: .82rem; }
.facts b { font-size: 1.05rem; line-height: 1.25; }
.facts small { color: var(--muted); font-size: .78rem; }
.facts b.facts-price { color: var(--blue-dark); font-size: 1.3rem; }
.facts-open { color: var(--green); }
.facts-soon { color: var(--amber); }
.ractions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ractions-note { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #6b7286; font-size: .85rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); column-gap: 28px; }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef0f5; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.amen { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.amen li { display: flex; gap: 8px; align-items: flex-start; }
.amen .ic { color: var(--green); margin-top: 3px; }
.rtip { font-size: .92rem; }
.rform { scroll-margin-top: 16px; }
.rcontact { display: grid; gap: 10px; }
.rcontact-price b { font-size: 1.6rem; font-weight: 800; color: var(--blue-dark); }
.rcontact-price span { color: var(--muted); }
.rcontact-who { display: grid; padding-top: 10px; border-top: 1px solid var(--line); }
.rcontact-who b { font-size: 1.05rem; overflow-wrap: anywhere; }
.rcontact-points { list-style: none; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.rcontact-points li { display: flex; align-items: center; gap: 6px; }
.rcontact-points .ic { color: var(--green); }

/* Thanh nút liên hệ dính dưới màn hình điện thoại */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); }
.cta-bar .btn { min-height: 48px; padding: 0 14px; }
.cta-bar .cta-main { flex: 1; }
body.has-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .cta-bar { display: none; } body.has-cta { padding-bottom: 0; } }

/* Băng người giới thiệu (trang riêng của CTV) */
.contact-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid #c9dff3; }
.contact-who { display: flex; flex-direction: column; min-width: 0; }
.contact-who b { font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .contact-actions { width: 100%; } .contact-actions .btn { flex: 1 1 0; } }

/* Chân trang */
.pub-footer { background: #0A1B38; border-top: 3px solid var(--gold-24k); color: #c9d6e6; padding: 28px 0 18px; font-size: .92rem; }
.pub-footer:empty { display: none; }
.pub-footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pub-footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.pub-footer-brand img { display: block; height: 34px; width: auto; }
.pub-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.pub-footer p { margin-bottom: 6px; }
.pub-footer ul { list-style: none; display: grid; }
.pub-footer a { color: #c9d6e6; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.pub-footer a:hover { color: #fff; text-decoration: underline; }
.pub-footer-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); color: #a9bace; font-size: .82rem; }

/* Mũi tên chuyển ảnh: chỉ hiện trên máy có chuột, điện thoại thì vuốt */
.gallery-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 44px; padding: 0 0 4px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.7rem; line-height: 1; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
@media (hover: hover) and (pointer: fine) { .gallery-nav { display: grid; place-items: center; } }

/* ══ Ứng dụng của CTV, sales: khung, màn chính, bảng hàng, đăng nhập (làm đẹp 14/11/2026) ══ */
body { background: #f3f5fa; }
.topbar { background: linear-gradient(120deg, var(--blue-dark), var(--blue) 78%); border-bottom: 2px solid var(--gold-24k); box-shadow: 0 2px 10px rgba(12, 36, 72, .18); }
.pub-top { box-shadow: none; }
.bell { width: 44px; height: 44px; border-radius: 12px; }
.bell:hover { background: rgba(255, 255, 255, .14); }
.bell-count { top: 3px; right: 1px; border: 2px solid var(--blue); }
.card { border-radius: 16px; }
.opt:active { background: var(--blue-soft); border-color: var(--blue); }

/* Thanh điều hướng dưới: biểu tượng nét mảnh, mục đang mở có nền tròn */
.bottom-nav { padding-top: 6px; border-top: 0; box-shadow: 0 -6px 24px rgba(16, 24, 40, .08); }
.bottom-nav a { gap: 3px; font-size: .7rem; color: #6b7286; }
.bottom-nav .nav-icon { filter: none; opacity: 1; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color .15s ease; }
.bottom-nav a.active { background: none; color: var(--blue-dark); }
.bottom-nav a.active .nav-icon { background: var(--blue-soft); }
.bottom-nav a.active .nav-label { font-weight: 700; }

/* Màn chính */
.home-hello { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.home-hello h1 { margin: 0; font-size: 1.45rem; }
.home-hello p { color: var(--muted); font-size: .9rem; }
.me-card { position: relative; overflow: hidden; border-radius: 18px; padding: 18px;
  background: radial-gradient(circle at 100% 0, rgba(255, 231, 168, .3), transparent 46%), linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #2A5DB0); }
.me-progress { height: 8px; margin-top: 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.me-progress span { display: block; height: 100%; border-radius: 999px; background: var(--gold-soft); }
.me-main { display: flex; flex-direction: column; margin-top: 16px; }
.me-main span { color: #e3effb; font-size: .9rem; }
.me-main b { font-size: clamp(1.7rem, 7vw, 2.1rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.me-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.me-tile { display: grid; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .13); }
.me-tile span { color: #e3effb; font-size: .85rem; }
.me-tile b { font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.me-more { display: flex; align-items: center; gap: 6px; }

.qa-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 88px; padding: 12px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; text-align: center; }
.qa:active { background: var(--blue-soft); }
.qa-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); }
.qa:nth-child(2) .qa-ic { background: var(--green-soft); color: var(--green); }
.qa:nth-child(3) .qa-ic { background: var(--amber-soft); color: var(--amber); }
.qa:nth-child(4) .qa-ic { background: #EDE7F8; color: #4B2C83; }
.qa-label { font-size: .82rem; font-weight: 700; line-height: 1.2; }

.task-icon { border-radius: 14px; }
.home-block { margin-bottom: 14px; }
.home-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.home-block-head h2 { margin: 0; }
.home-block-head a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--blue); font-weight: 600; font-size: .92rem; text-decoration: none; }
.today-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.today-counts span { padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 16px; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar, .bquick::-webkit-scrollbar { display: none; }
.mini-room { flex: 0 0 214px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.mini-room:active { background: var(--blue-soft); }
.mini-badge { align-self: flex-start; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.mini-new .mini-badge, span.mini-new { background: var(--green-soft); color: var(--green); }
.mini-drop .mini-badge, span.mini-drop { background: var(--red-soft); color: var(--red); }
.mini-star .mini-badge, span.mini-star { background: var(--gold-soft); color: #4a2c05; }
.mini-price { font-size: 1.15rem; font-weight: 800; color: var(--blue-dark); }
.mini-old { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.mini-title { font-weight: 700; overflow-wrap: anywhere; }
.mini-meta { font-size: .85rem; color: var(--muted); }

/* Bục vinh danh: hạng 2 – hạng 1 – hạng 3 */
.podium { list-style: none; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 6px 0 12px; }
.podium-col { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.podium-medal { font-size: 1.9rem; line-height: 1.1; }
.podium-1 .podium-medal { font-size: 2.4rem; }
.podium-name { margin-top: 2px; font-weight: 800; font-size: .92rem; overflow-wrap: anywhere; }
.podium-count { margin-bottom: 6px; font-size: .82rem; font-weight: 700; color: var(--green); }
.podium-step { width: 100%; display: grid; place-items: center; border-radius: 12px 12px 0 0; font-size: 1.3rem; font-weight: 800; color: rgba(0, 0, 0, .38); }
.podium-1 .podium-step { height: 78px; background: linear-gradient(#FFE7A8, #F6CF6B); }
.podium-2 .podium-step { height: 56px; background: linear-gradient(#EEF1F6, #D5DAE5); }
.podium-3 .podium-step { height: 42px; background: linear-gradient(#F6DCC3, #E7B98F); }
.podium-me .podium-name { color: var(--blue-dark); }
.podium-me .podium-step { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Ô lối tắt có biểu tượng */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 100px; padding: 12px 6px; border-radius: 14px; background: #f6f8fc; color: var(--text); text-decoration: none; text-align: center; }
.tile:active { background: var(--blue-soft); }
.tile-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue); }
.tile-label { font-size: .84rem; font-weight: 600; line-height: 1.25; }

/* Bảng hàng */
.bsearch { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 4px 4px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #c9cfdb; color: var(--muted); }
.bsearch:focus-within { border-color: var(--blue); outline: 3px solid #9cc3ea; outline-offset: 1px; }
.bsearch input[type=search] { flex: 1; min-width: 0; width: auto; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.bsearch input[type=search]:focus { outline: none; border: 0; }
.bsearch button { min-height: 44px; padding: 0 18px; border-radius: 10px; }
.bquick { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; margin: 0 -16px 2px; scrollbar-width: none; }
.bcount { margin-bottom: 10px; color: var(--muted); font-size: .92rem; }
.filter-panel summary { gap: 8px; list-style: none; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.filter-panel[open] summary::after { content: '▴'; }
.room-card { padding: 14px; border-radius: 16px; box-shadow: var(--shadow); }
.room-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.room-updated { display: inline-flex; align-items: center; gap: 4px; color: #6b7286; font-size: .82rem; }
.room-body { display: flex; align-items: flex-start; gap: 12px; }
.room-thumb { flex: 0 0 96px; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #e9edf5; }
.room-main { flex: 1; min-width: 0; }
.room-card .title { margin-top: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.room-card .meta { display: flex; align-items: flex-start; gap: 5px; }
.room-card .meta .ic { margin-top: 3px; }
.room-card .price { margin-top: 4px; }
.room-comm { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: .85rem; }
.room-comm b { margin-left: auto; font-size: 1rem; white-space: nowrap; }

/* Màn đăng nhập */
body.auth { background: linear-gradient(180deg, var(--blue-dark) 0, var(--blue) 250px, #f3f5fa 250px) no-repeat #f3f5fa; }
body.auth .topbar { display: none; }
body.auth .view { max-width: 440px; }
.auth-hero { padding: 30px 0 20px; text-align: center; color: #fff; }
.auth-logo { display: inline-block; }
.auth-logo img { display: block; height: 84px; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.auth-name { margin-top: 10px; font-size: 1.6rem; font-weight: 800; }
.auth-name span { color: #dbe4f5; font-weight: 600; }
.auth-tag { margin-top: 4px; color: #e3effb; font-size: .95rem; }
.auth-card { padding: 20px; border: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(16, 24, 40, .14); }
.auth-links { display: grid; justify-items: center; gap: 2px; margin-top: 6px; }
.auth-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); font-weight: 600; text-decoration: none; }
.room-card .price .small { font-weight: 500; }

/* ══ Banner trang công khai (SPEC 4.12): giới thiệu, tuyển CTV, mời chủ nhà ══
   Ba tông màu theo logo: xanh navy (thuê phòng), vàng 24K (cộng tác viên), xanh ngọc (chủ nhà). Hình minh họa là SVG trong banners.js.
   Ba dạng: tấm lớn trong khối trình chiếu (.bn-slide), dải ngang mảnh (.bn-strip), tấm ngang lớn có 3 ý (.bn-wide).
   Mọi chuyển động tắt khi máy đặt "giảm chuyển động" (cuối mục). */
.bn { position: relative; isolation: isolate; display: grid; overflow: hidden; border-radius: 22px; color: var(--bn-ink); text-decoration: none; }
.bn-blue {
  --bn-ink: #fff; --bn-soft: rgba(255, 255, 255, .93); --hl-bg: #F5C22B; --hl-ink: #0C2448; --cta-bg: #F5C22B; --cta-ink: #0C2448;
  --glass: rgba(255, 255, 255, .15); --glass-line: rgba(255, 255, 255, .32); --dot: rgba(255, 255, 255, .2); --bn-shadow: rgba(12, 36, 72, .6); --hl-shine: #FFF6CF; --ring: rgba(245, 194, 43, .65);
  background:
    radial-gradient(58% 90% at var(--gx, 90%) 96%, rgba(64, 142, 255, .82), transparent 62%),
    linear-gradient(var(--ga, 120deg), #071A38 0%, #0F2F66 48%, #1C52B5 100%);
}
.bn-gold {
  --bn-ink: #0C2448; --bn-soft: #1B3157; --hl-bg: #0C2448; --hl-ink: #FFD54A; --cta-bg: #0C2448; --cta-ink: #fff;
  --glass: rgba(255, 255, 255, .42); --glass-line: rgba(255, 255, 255, .75); --dot: rgba(255, 255, 255, .42); --bn-shadow: rgba(200, 140, 0, .6); --hl-shine: #2E5299; --ring: rgba(12, 36, 72, .42);
  background:
    radial-gradient(58% 90% at var(--gx, 92%) 98%, rgba(196, 124, 0, .7), transparent 62%),
    radial-gradient(46% 70% at 0% 0%, rgba(255, 251, 214, .92), transparent 62%),
    linear-gradient(var(--ga, 120deg), #FFE680 0%, #F5C22B 46%, #E3A40A 100%);
}
.bn-teal {
  --bn-ink: #fff; --bn-soft: rgba(255, 255, 255, .94); --hl-bg: #FFD54A; --hl-ink: #06402F; --cta-bg: #fff; --cta-ink: #05503F;
  --glass: rgba(255, 255, 255, .15); --glass-line: rgba(255, 255, 255, .32); --dot: rgba(255, 255, 255, .2); --bn-shadow: rgba(5, 115, 90, .6); --hl-shine: #FFF6CF; --ring: rgba(255, 255, 255, .6);
  background:
    radial-gradient(58% 90% at var(--gx, 90%) 96%, rgba(163, 230, 53, var(--glow, .62)), transparent 60%),
    linear-gradient(var(--ga, 120deg), #033F33 0%, #05735A 52%, #0C9B74 100%);
}

/* Lớp trang trí: chấm bi mờ dần, ba vòng tròn trôi chậm, vệt sáng lướt qua */
.bn-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.bn-fx::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1.3px, transparent 1.7px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(100deg, transparent 28%, #000); mask-image: linear-gradient(100deg, transparent 28%, #000); }
.bn-fx::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-18deg); opacity: 0; }
.bn-fx i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); animation: bn-drift 11s ease-in-out infinite alternate; }
.bn-fx i:nth-child(1) { width: 240px; height: 240px; right: -70px; top: -130px; }
.bn-fx i:nth-child(2) { width: 130px; height: 130px; left: 36%; bottom: -84px; animation-duration: 8s; animation-delay: -4s; }
.bn-fx i:nth-child(3) { width: 70px; height: 70px; left: -22px; top: 44%; background: none; border: 11px solid rgba(255, 255, 255, .1); animation-duration: 13s; animation-delay: -2s; }

/* Chữ */
.bn-text { position: relative; z-index: 1; min-width: 0; }
.bn-kicker { justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bn-kicker::before { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; color: var(--hl-bg); background: currentColor; animation: bn-ping 1.8s ease-out infinite; }
.bn .bn-title { margin: 0; font-weight: 800; letter-spacing: -.012em; line-height: 1.2; color: inherit; text-wrap: balance; }
.bn-hl { position: relative; display: inline-block; font-style: normal; padding: 0 .32em; margin: 0 .04em; border-radius: .38em; background: linear-gradient(100deg, var(--hl-bg) 0 38%, var(--hl-shine) 50%, var(--hl-bg) 62% 100%) 100% 0 / 300% 100%; color: var(--hl-ink); transform: rotate(-1.5deg); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); animation: bn-shimmer 3.4s ease-in-out infinite; }
.bn-hl::after { content: ''; position: absolute; right: -.3em; top: -.34em; width: .56em; height: .56em; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bn-twinkle 2s ease-in-out infinite; }
.bn-sub { display: block; font-size: .92rem; line-height: 1.45; color: var(--bn-soft); }
.bn-chips { display: none; flex-wrap: wrap; gap: 8px; }
.bn-chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.bn-chips .ic { color: var(--hl-bg); }

/* Nút: bóng đổ, vệt bóng chạy qua, mũi tên trong vòng tròn */
.bn-cta { position: relative; z-index: 1; overflow: hidden; justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--cta-bg); color: var(--cta-ink); font-weight: 800; font-size: .95rem; white-space: nowrap; text-decoration: none; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .12); animation: bn-glow 2.4s ease-out infinite; }
.bn-cta .ic { flex: 0 0 30px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--cta-ink); color: var(--cta-bg); transition: transform .25s ease; animation: bn-nudge 1.6s ease-in-out infinite; }
.bn-cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-150%) skewX(-20deg); animation: bn-shine 4.5s ease-in-out infinite; }

/* Hình minh họa và con dấu "Miễn phí" */
.bn-stage { position: absolute; z-index: 0; pointer-events: none; }
.bn-art { display: block; width: 100%; height: auto; overflow: visible; animation: bn-float 6s ease-in-out infinite; transition: scale .4s ease; }
.bn-art .a-bob, .bn-art .a-twinkle, .bn-art .a-swing, .bn-art .a-pop, .bn-art .a-spin, .bn-art .a-drift { transform-box: fill-box; transform-origin: center; }
.bn-art .a-bob { animation: bn-bob 2.6s ease-in-out infinite; }
.bn-art .a-bob.b2 { animation-delay: -.9s; }
.bn-art .a-bob.b3 { animation-delay: -1.6s; animation-duration: 2.1s; }
.bn-art .a-twinkle { animation: bn-twinkle 2.2s ease-in-out infinite; }
.bn-art .a-twinkle.t2 { animation-delay: -.7s; }
.bn-art .a-twinkle.t3 { animation-delay: -1.4s; }
.bn-art .a-blink { animation: bn-blink 3.6s ease-in-out infinite; }
.bn-art .a-blink.b2 { animation-delay: -1.8s; }
.bn-art .a-swing { transform-origin: 50% 18%; animation: bn-swing 3s ease-in-out infinite; }
.bn-art .a-pop { animation: bn-pop 2.8s ease-in-out infinite; }
.bn-art .a-spin { animation: bn-spin 40s linear infinite; }
.bn-art .a-drift { animation: bn-cloud 9s ease-in-out infinite alternate; }
.bn-art .a-march { animation: bn-march 1.6s linear infinite; }
.bn-seal { display: none; position: absolute; left: -7%; top: 9%; width: 88px; height: 88px; place-content: center; text-align: center; line-height: 1.12; border-radius: 50%; background: var(--hl-bg); color: var(--hl-ink); transform: rotate(-12deg); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .5); animation: bn-wobble 4s ease-in-out infinite; }
.bn-seal::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .55; animation: bn-spin 18s linear infinite; }
.bn-seal::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--hl-bg); animation: bn-ring 2.4s ease-out infinite; }
.bn-seal b { display: block; font-size: .84rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.bn-seal small { display: block; font-size: .68rem; font-weight: 700; }

a.bn:focus-visible { outline: 3px solid #FFB020; outline-offset: -4px; }
a.bn-cta:focus-visible, .bn-track:focus-visible, .bn-arrow:focus-visible, .bn-dot:focus-visible { outline: 3px solid #FFB020; outline-offset: 3px; }

/* ── Khối trình chiếu đầu trang: mỗi lần một tấm lớn ── */
.bn-show { margin-bottom: 18px; }
.bn-frame { position: relative; }
.bn-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; box-shadow: 0 22px 40px -24px rgba(20, 30, 110, .7), 0 2px 6px rgba(16, 24, 40, .08); }
.bn-track::-webkit-scrollbar { display: none; }
.bn-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; border-radius: 0; min-height: 248px; padding: 18px; }
.bn-slide .bn-text { display: flex; flex-direction: column; gap: 10px; }
.bn-slide .bn-title { font-size: 1.36rem; }
.bn-slide .bn-sub { display: none; }
.bn-slide .bn-cta { margin-top: auto; }
.bn-slide .bn-cta-long { display: none; }
.bn-slide .bn-stage { right: -6px; bottom: -4px; width: 47%; max-width: 178px; }
/* Chữ và hình của tấm đang hiện trượt vào lần lượt; tấm khác ẩn chữ và dừng chuyển động */
.bn-slide .bn-text > * { opacity: 0; transform: translateY(18px); transition: opacity .25s ease, transform .25s ease; }
.bn-slide.on .bn-text > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.bn-slide.on .bn-text > :nth-child(1) { transition-delay: .06s; }
.bn-slide.on .bn-text > :nth-child(2) { transition-delay: .14s; }
.bn-slide.on .bn-text > :nth-child(3) { transition-delay: .22s; }
.bn-slide.on .bn-text > :nth-child(4) { transition-delay: .3s; }
.bn-slide.on .bn-text > :nth-child(5) { transition-delay: .38s; }
.bn-slide .bn-stage { opacity: 0; transform: translateX(34px) scale(.92); transition: opacity .3s ease, transform .3s ease; }
.bn-slide.on .bn-stage { opacity: 1; transform: none; transition: opacity .7s ease .1s, transform .9s cubic-bezier(.2, .8, .2, 1) .1s; }
.bn-slide.on .bn-hl { animation: bn-hl .7s cubic-bezier(.2, .8, .2, 1) .5s both, bn-shimmer 3.4s ease-in-out 1.3s infinite; }
.bn-slide.on .bn-fx::after { animation: bn-sheen 1.3s ease-out .25s both; }
.bn-slide.on .bn-chips > span { animation: bn-chip .55s cubic-bezier(.2, .9, .3, 1.3) .55s both; }
.bn-slide.on .bn-chips > span:nth-child(2) { animation-delay: .67s; }
.bn-slide.on .bn-chips > span:nth-child(3) { animation-delay: .79s; }
.bn-slide:not(.on) *, .bn-slide:not(.on) *::before, .bn-slide:not(.on) *::after { animation-play-state: paused; }

.bn-arrow { display: none; }
.bn-dots { display: flex; justify-content: center; align-items: center; margin-top: 8px; }
.bn-dot { min-height: 0; height: 26px; padding: 0 8px; border: 0; border-radius: 999px; background: none; }
.bn-dot:active { background: none; }
.bn-dot i { display: block; position: relative; overflow: hidden; width: 9px; height: 7px; border-radius: 999px; background: #bcc5d8; transition: width .35s ease; }
.bn-dot.on i { width: 40px; background: #d2d9e7; }
.bn-dot.on i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #0C2448, #2A5DB0); transform-origin: 0 50%; animation: bn-fill 6.5s linear both; }
.bn-show.manual .bn-dot.on i::after { animation: none; }
.bn-show:focus-within .bn-dot i::after { animation-play-state: paused; }

@media (min-width: 640px) {
  .bn-slide { min-height: 276px; padding: 26px 30px; }
  .bn-slide .bn-text { max-width: 58%; gap: 12px; }
  .bn-slide .bn-title { font-size: 1.72rem; }
  .bn-slide .bn-sub { display: block; }
  .bn-slide .bn-cta-long { display: inline; }
  .bn-slide .bn-cta-short { display: none; }
  .bn-slide .bn-stage { right: 2%; top: 0; bottom: 0; width: 38%; max-width: 430px; display: flex; align-items: center; }
  .bn-seal { display: grid; }
}
@media (min-width: 1000px) {
  .bn-slide { min-height: 340px; padding: 38px 64px; }
  .bn-slide .bn-text { max-width: 60%; gap: 14px; }
  .bn-slide .bn-title { font-size: 2rem; line-height: 1.18; }
  .bn-slide .bn-sub { font-size: 1.02rem; }
  .bn-slide .bn-chips { display: flex; }
  .bn-slide .bn-cta { min-height: 50px; font-size: 1rem; margin-top: 6px; }
  .bn-slide .bn-stage { right: 4%; width: 33%; }
  .bn-seal { width: 96px; height: 96px; }
}
@media (hover: hover) and (pointer: fine) {
  .bn-arrow { display: grid; place-items: center; position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; min-height: 0; margin-top: -21px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .92); color: #0C2448; box-shadow: 0 8px 18px rgba(0, 0, 0, .22); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
  .bn-arrow:active { background: #fff; border-color: #fff; }
  .bn-prev { left: 10px; }
  .bn-prev .ic { transform: rotate(180deg); }
  .bn-next { right: 10px; }
  .bn-frame:hover .bn-arrow, .bn-arrow:focus-visible { opacity: 1; }
  .bn-arrow:hover { transform: scale(1.1); }
  .bn-show:hover .bn-dot i::after { animation-play-state: paused; }
  a.bn:hover .bn-cta .ic, a.bn-cta:hover .ic { transform: translateX(4px); }
  a.bn:hover .bn-art { scale: 1.04; }
  a.bn-strip:hover { transform: translateY(-3px); box-shadow: 0 22px 34px -18px var(--bn-shadow); }
  a.bn-cta { transition: transform .2s ease; }
  a.bn-cta:hover { transform: translateY(-2px); }
}

/* ── Dải ngang mảnh: xen giữa danh sách phòng, cuối trang phòng ── */
.bn-strip { grid-template-columns: minmax(0, 1fr) 98px; grid-template-areas: "text art" "cta art"; align-items: center; gap: 10px 12px; padding: 14px 14px 14px 18px; border-radius: 18px; box-shadow: 0 16px 28px -20px var(--bn-shadow); }
.bn-strip .bn-text { grid-area: text; display: grid; gap: 5px; }
.bn-strip .bn-title { font-size: 1.1rem; }
.bn-strip .bn-sub { font-size: .88rem; line-height: 1.4; }
.bn-strip .bn-cta { grid-area: cta; align-self: center; min-height: 40px; padding-left: 16px; font-size: .9rem; }
.bn-strip .bn-cta .ic { flex-basis: 26px; width: 26px; height: 26px; padding: 5px; }
.bn-strip .bn-stage { position: relative; grid-area: art; align-self: center; }
.bn-strip .bn-fx::after { animation: bn-sheen-loop 6s ease-in-out infinite; }
@media (min-width: 700px) {
  .bn-strip { grid-template-columns: 132px minmax(0, 1fr) auto; grid-template-areas: "art text cta"; gap: 20px; min-height: 116px; padding: 10px 24px 10px 16px; }
  .bn-strip .bn-title { font-size: 1.24rem; }
  .bn-strip .bn-sub { font-size: .93rem; }
  .bn-strip .bn-cta { min-height: 44px; font-size: .95rem; }
}

/* ── Hiện dần khi cuộn tới ── */
.rv { opacity: 0; transform: translateY(24px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }

/* ── Ba bước thuê phòng ── */
.how { margin-top: 38px; padding: 24px 18px 26px; background: linear-gradient(180deg, #fff, #f5f8ff); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); scroll-margin-top: 76px; }
.how-kicker { display: inline-block; margin-bottom: 8px; padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.how h2, .duo h2 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); line-height: 1.22; letter-spacing: -.01em; margin-bottom: 20px; }
/* Điện thoại: ba bước xếp dọc thành một trục, ô biểu tượng bên trái nối nhau bằng đường chấm, chữ bên phải. */
.how-steps { list-style: none; display: grid; }
.how-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; padding-bottom: 24px; }
.how-step:last-child { padding-bottom: 0; }
/* Máy còn giữ banners.js bản trước (tiêu đề và mô tả là con trực tiếp của bước): vẫn xếp chữ sang cột phải. */
.how-step > .how-ic { grid-row: 1 / span 3; }
.how-step > h3, .how-step > p { grid-column: 2; }
.how-step:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 64px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #b9c4e2 55%, transparent 55%) 0 0 / 2px 10px repeat-y; animation: bn-dashv 1s linear infinite; }
.how-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0C2448, #2A5DB0); box-shadow: 0 12px 18px -10px rgba(12, 36, 72, .8); }
.how-step:nth-child(2) .how-ic { color: #0C2448; background: linear-gradient(135deg, #E3A40A, #FFE07A); box-shadow: 0 12px 18px -10px rgba(200, 140, 0, .8); }
.how-step:nth-child(3) .how-ic { background: linear-gradient(135deg, #05735A, #34D399); box-shadow: 0 12px 18px -10px rgba(5, 115, 90, .8); }
.how-num { position: absolute; left: 44px; top: -7px; width: 24px; height: 24px; border-radius: 999px; background: #0C2448; color: #fff; border: 2px solid #fff; font-size: .76rem; font-weight: 800; display: grid; place-items: center; }
.how-tag { display: block; margin-top: 7px; font-size: .72rem; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.how-step:nth-child(2) .how-tag { color: var(--gold); }
.how-step:nth-child(3) .how-tag { color: #05735A; }
.how-step h3 { font-size: 1.08rem; line-height: 1.25; margin: 2px 0 4px; }
.how-step p { color: var(--muted); font-size: .92rem; }
.how.rv .how-step { opacity: 0; transform: translateY(16px); }
.how.rv.in .how-step { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.how.rv.in .how-step:nth-child(1) { transition-delay: .15s; }
.how.rv.in .how-step:nth-child(2) { transition-delay: .3s; }
.how.rv.in .how-step:nth-child(3) { transition-delay: .45s; }
.how.rv.in .how-ic { animation: bn-icpop .7s cubic-bezier(.2, .9, .3, 1.4) .25s both; }
.how.rv.in .how-step:nth-child(2) .how-ic { animation-delay: .4s; }
.how.rv.in .how-step:nth-child(3) .how-ic { animation-delay: .55s; }
@media (min-width: 760px) {
  .how { padding: 32px 32px 34px; }
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .how-step { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding-bottom: 0; }
  .how-step:not(:last-child)::before { display: none; }
  .how-step > .how-ic { grid-row: auto; }
  .how-step > h3, .how-step > p { grid-column: auto; }
  .how-tag { margin-top: 0; }
  .how-step:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: 76px; right: -14px; height: 2px; background: linear-gradient(90deg, #b9c4e2 55%, transparent 55%) 0 0 / 12px 2px repeat-x; animation: bn-dash 1s linear infinite; }
}

/* ── "Cùng làm với HouseGold": hai tấm ngang lớn so le (trang danh sách) hoặc hai dải mảnh (trang phòng) ── */
.duo { margin-top: 38px; }
.duo-list { display: grid; gap: 16px; }
.bn-wide { --glow: .3; gap: 6px; padding: 16px 18px 24px; border-radius: 24px; box-shadow: 0 24px 40px -28px var(--bn-shadow); }
.bn-wide .bn-text { display: grid; gap: 12px; justify-items: start; }
.bn-wide .bn-title { font-size: 1.42rem; }
.bn-wide .bn-stage { position: relative; order: -1; justify-self: center; width: 62%; max-width: 240px; }
.bn-points { list-style: none; display: grid; gap: 8px; width: 100%; }
.bn-points li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .92rem; font-weight: 600; line-height: 1.38; }
.bn-pt-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--hl-bg); color: var(--hl-ink); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); animation: bn-bob 2.8s ease-in-out infinite; }
.bn-points li:nth-child(2) .bn-pt-ic { animation-delay: -.9s; }
.bn-points li:nth-child(3) .bn-pt-ic { animation-delay: -1.8s; }
.bn-wide.rv .bn-points li { opacity: 0; transform: translateY(16px) scale(.94); }
.bn-wide.rv.in .bn-points li { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .3, 1.3); }
.bn-wide.rv.in .bn-points li:nth-child(1) { transition-delay: .35s; }
.bn-wide.rv.in .bn-points li:nth-child(2) { transition-delay: .5s; }
.bn-wide.rv.in .bn-points li:nth-child(3) { transition-delay: .65s; }
@media (min-width: 860px) {
  .bn-wide { --glow: .62; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px 44px; }
  .bn-wide.rev { --gx: 10%; --ga: 240deg; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .bn-wide .bn-stage { order: 0; width: 100%; max-width: 360px; }
  .bn-wide.rev .bn-stage { order: -1; }
  .bn-wide.rev .bn-fx::before { -webkit-mask-image: linear-gradient(260deg, transparent 28%, #000); mask-image: linear-gradient(260deg, transparent 28%, #000); }
  .bn-wide .bn-title { font-size: 1.9rem; }
  .bn-wide .bn-sub { font-size: 1rem; }
  .bn-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .bn-points li { flex-direction: column; align-items: flex-start; padding: 14px; }
  .bn-wide .bn-seal { left: auto; right: -4%; }
  .bn-wide.rev .bn-seal { right: auto; left: -4%; }
}

/* ── Banner đầu trang đăng ký và hàng các bước ── */
.bn-hero { min-height: 180px; margin-bottom: 14px; padding: 20px 18px; box-shadow: 0 20px 34px -24px var(--bn-shadow); }
.bn-hero .bn-text { display: grid; gap: 9px; align-content: start; justify-items: start; max-width: 64%; }
.bn-hero .bn-title { font-size: clamp(1.35rem, 4.4vw, 1.8rem); }
.bn-hero .bn-sub { font-size: .95rem; }
.bn-hero .bn-stage { right: -4px; bottom: -2px; width: 40%; max-width: 240px; }
.steps-row { list-style: none; display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.steps-row li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.steps-row .how-num { position: static; flex: 0 0 26px; width: 26px; height: 26px; border: 0; }
@media (min-width: 620px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@keyframes bn-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bn-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bn-twinkle { 0%, 100% { transform: scale(.45) rotate(0deg); opacity: .3; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes bn-blink { 0%, 50%, 100% { opacity: 1; } 62%, 82% { opacity: .3; } }
@keyframes bn-swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes bn-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } 90% { transform: scale(.96); } }
@keyframes bn-spin { to { transform: rotate(360deg); } }
@keyframes bn-cloud { from { transform: translateX(0); } to { transform: translateX(16px); } }
@keyframes bn-march { to { stroke-dashoffset: -36; } }
@keyframes bn-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-26px, 18px) scale(1.14); } }
@keyframes bn-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: .55; } }
@keyframes bn-shine { 0%, 55% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(360%) skewX(-20deg); } }
@keyframes bn-sheen { 0% { transform: translateX(0) skewX(-18deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(720%) skewX(-18deg); opacity: 0; } }
@keyframes bn-sheen-loop { 0%, 62% { transform: translateX(0) skewX(-18deg); opacity: 0; } 68% { opacity: 1; } 100% { transform: translateX(720%) skewX(-18deg); opacity: 0; } }
@keyframes bn-ping { 0% { box-shadow: 0 0 0 0 currentColor; } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes bn-shimmer { 0%, 12% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@keyframes bn-glow { 0% { box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 0 0 var(--ring); } 75%, 100% { box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 0 14px transparent; } }
@keyframes bn-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes bn-ring { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(1.38); opacity: 0; } }
@keyframes bn-chip { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 100% { opacity: 1; transform: none; } }
@keyframes bn-icpop { 0% { transform: scale(.4) rotate(-14deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bn-dashv { to { background-position: 0 10px; } }
@keyframes bn-dash { to { background-position: 12px 0; } }
@keyframes bn-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bn-hl { 0% { transform: rotate(-1.5deg) scale(.7); } 55% { transform: rotate(-3.5deg) scale(1.1); } 100% { transform: rotate(-1.5deg) scale(1); } }
@keyframes bn-wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(-5deg) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .bn, .bn *, .bn *::before, .bn *::after, .bn-dot i, .bn-dot i::after, .bn-arrow, .rv, .rv.in, .how *, .how *::before, .how *::after { animation: none !important; transition: none !important; }
  .bn-slide .bn-text > *, .bn-slide .bn-stage, .rv, .how.rv .how-step, .bn-wide.rv .bn-points li { opacity: 1; transform: none; }
  .bn-hl::after, .bn-seal::after { display: none; }
  .bn-fx::after { display: none; }
}
