/* Chữ Be Vietnam Pro tự lưu trên máy chủ (giấy phép OFL, public/fonts/OFL.txt) – không gọi Google Fonts. */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #fff8f6; --surface: #ffffff; --surface-2: #fdeceb; --ink: #2a1215; --muted: #7a5a60; --line: #f6dde0;
  --primary: #db2a4e; --primary-ink: #ffffff; --primary-soft: #ffe4e8; --accent: #dd4f0f;
  --grad: linear-gradient(135deg, #e11d48 0%, #dd4f0f 100%);
  --danger: #c62828; --danger-soft: #fdecec; --ok: #15803d; --warn: #b45309;
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(80, 40, 20, .06), 0 8px 24px rgba(80, 40, 20, .07);
  --font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17110e; --surface: #221915; --surface-2: #2d221d; --ink: #f6ece6; --muted: #b9a59b; --line: #3a2c25;
  --primary: #ff6b81; --primary-ink: #1a0b0e; --primary-soft: #3d1b22; --accent: #ff8a4c;
  --grad: linear-gradient(135deg, #ff5c7a 0%, #ff8a4c 100%);
  --danger: #f27070; --danger-soft: #3a1c1f; --ok: #5ccf86; --warn: #f0b259;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110e; --surface: #221915; --surface-2: #2d221d; --ink: #f6ece6; --muted: #b9a59b; --line: #3a2c25;
  --primary: #ff6b81; --primary-ink: #1a0b0e; --primary-soft: #3d1b22; --accent: #ff8a4c;
  --grad: linear-gradient(135deg, #ff5c7a 0%, #ff8a4c 100%);
  --danger: #f27070; --danger-soft: #3a1c1f; --ok: #5ccf86; --warn: #f0b259;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sheet:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- khung app ---------- */
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); min-height: 56px; }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0; flex: 1; }
.topbar .sub { font-size: 13px; color: var(--muted); font-weight: 400; }
main { flex: 1; padding: 4px 16px calc(104px + env(safe-area-inset-bottom)); }
main.no-nav { padding-bottom: 24px; }

.tabbar { position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 448px; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; align-items: center; padding: 0 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 28px rgba(80, 40, 20, .16), 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; color: var(--muted);
  font-size: 11px; font-weight: 600; position: relative; border-radius: 999px; }
.tabbar a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }
.tabbar a[aria-current="page"] svg { stroke: var(--primary); stroke-width: 2.2; }
.tabbar svg { width: 23px; height: 23px; }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 14px; border: 0; font-weight: 600; cursor: pointer; background: var(--surface-2); color: var(--ink);
  transition: transform .08s ease, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- form ---------- */
.field { display: block; margin-bottom: 18px; }
.field > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--primary); }
textarea.input { resize: none; min-height: 88px; }
.phone-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); height: 56px; }
.phone-wrap:focus-within { border-color: var(--primary); }
.phone-wrap .cc { padding: 0 12px 0 16px; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line); }
.phone-wrap input { flex: 1; border: 0; background: transparent; height: 100%; padding: 0 14px; font-size: 18px; letter-spacing: .02em; outline: none; }
.otp { font-size: 28px; letter-spacing: .5em; text-align: center; height: 64px; font-variant-numeric: tabular-nums; padding-left: .5em; }
.hint { font-size: 13px; color: var(--muted); }
.error-text { color: var(--danger); font-size: 14px; margin: 8px 0 0; min-height: 1.2em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button { height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--accent-text); font-weight: 600; }
.chip.static { cursor: default; height: 30px; font-size: 13px; padding: 0 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- thẻ, danh sách ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); min-height: 56px; width: 100%;
  background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; color: var(--ink); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row.danger { color: var(--danger); }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 24px 4px 8px; }

/* ---------- đăng nhập ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.auth .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: var(--primary-ink); }
.logo svg { width: 20px; height: 20px; }
.auth h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin: 56px 0 10px; font-weight: 750; }
.auth .lead { color: var(--muted); margin: 0 0 32px; }
.auth .foot { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }
.auth .back { margin: -8px 0 0 -8px; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.notice.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

/* ---------- khám phá ---------- */
.deck { position: relative; aspect-ratio: 3 / 4; max-height: calc(100dvh - 250px); min-height: 320px; margin: 4px auto 0; }
.pcard { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none; will-change: transform; }
.pcard.back { transform: scale(.95) translateY(10px); opacity: .7; }
.pcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pcard .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.pcard .bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.pcard .bars i.on { background: var(--card); }
.pcard .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 18px 18px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(255,255,255,0)); }
.pcard .name { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.pcard .name span { font-weight: 400; }
.pcard .meta { font-size: 14px; opacity: .92; margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pcard .why { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.pcard .stamp { position: absolute; top: 28px; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-size: 24px; font-weight: 800; letter-spacing: .04em; opacity: 0; }
.pcard .stamp.like { left: 20px; color: #4ade80; transform: rotate(-12deg); }
.pcard .stamp.pass { right: 20px; color: #f87171; transform: rotate(12deg); }
.pcard .tapzone { position: absolute; top: 0; bottom: 40%; width: 40%; }
.pcard .tapzone.l { left: 0; } .pcard .tapzone.r { right: 0; }
.actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 18px 0 8px; }
.act { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .1s; }
.act:active { transform: scale(.92); }
.act svg { width: 28px; height: 28px; }
.act.pass { color: var(--muted); }
.act.like { color: #fff; background: var(--primary); }
.act.like svg { fill: currentColor; stroke: none; }
.about { padding: 16px 4px 0; }
.about p { margin: 0 0 12px; }

.empty { text-align: center; padding: 56px 24px; }
.empty .art { width: 84px; height: 84px; border-radius: 26px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .art svg { width: 40px; height: 40px; }
.empty h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.empty p { margin: 0 auto 20px; color: var(--muted); max-width: 300px; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 22px; }
@keyframes sh { to { background-position: -200% 0; } }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 16, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow-y: auto; animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.sheet p { color: var(--muted); margin: 0 0 16px; }
.sheet .stack { display: grid; gap: 10px; margin-top: 8px; }
.radio-list label { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.radio-list input { width: 20px; height: 20px; accent-color: var(--primary); }
.toasts { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: calc(100% - 24px); max-width: 456px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--solid, var(--ink)); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); animation: drop .2s; pointer-events: auto; cursor: pointer; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- đăng nhập ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.auth .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: var(--primary-ink); }
.logo svg { width: 20px; height: 20px; }
.auth h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin: 56px 0 10px; font-weight: 750; }
.auth .lead { color: var(--muted); margin: 0 0 32px; }
.auth .foot { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }
.auth .back { margin: -8px 0 0 -8px; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* =================== Lemme =================== */
.btn.primary, .grad { background: var(--grad); color: #fff; }
.btn.primary { box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.logo { background: var(--grad); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.sec h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 6px; }
.sec h2 img { width: 22px; height: 22px; }
.sec a { font-size: 14px; font-weight: 600; }

/* trang chủ */
.hero { position: relative; border-radius: 26px; padding: 20px 18px 18px; background: var(--grad); color: #fff; overflow: hidden; margin-top: 4px; }
.hero h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 4px; font-weight: 800; max-width: 230px; }
.hero p { margin: 0 0 16px; opacity: .9; font-size: 14px; max-width: 210px; }
.hero .art { position: absolute; right: -14px; top: -4px; width: 112px; transform: rotate(10deg); filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.hero .art2 { position: absolute; right: 70px; top: 70px; width: 50px; transform: rotate(-14deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.searchbar { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--surface); color: var(--muted);
  box-shadow: 0 8px 20px rgba(80, 20, 20, .18); font-size: 15px; cursor: text; border: 0; width: 100%; text-align: left; }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-size: 16px; color: var(--ink); }
.area-pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.area-pill svg { width: 16px; height: 16px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; margin-top: 18px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; color: var(--ink); line-height: 1.25; }
.cat .ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); transition: transform .12s; }
.cat .ic img { width: 42px; height: 42px; }
.cat:active .ic { transform: scale(.94); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.trust div { background: var(--surface); border-radius: 16px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.trust img { width: 30px; height: 30px; margin: 0 auto 4px; }

/* thẻ máy */
.tile { width: 158px; color: var(--ink); display: block; }
.grid2 .tile { width: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: grid; place-items: center; }
.thumb img.real { width: 100%; height: 100%; object-fit: cover; }
.thumb img.art { width: 62%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); transition: transform .2s; }
.tile:hover .thumb img.art { transform: scale(1.05) rotate(-3deg); }
.thumb .tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(var(--card-rgb),.88); color: var(--ink); font-size: 11px; font-weight: 700; backdrop-filter: blur(6px); }
.thumb .fav { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(var(--card-rgb),.88); display: grid; place-items: center; border: 0; color: var(--primary); cursor: pointer; }
.thumb .fav svg { width: 18px; height: 18px; }
.thumb .fav.on svg { fill: currentColor; }
.tile .t { font-weight: 600; font-size: 14px; margin: 8px 2px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tile .p { margin: 3px 2px 0; font-weight: 800; color: var(--accent-text); font-size: 15px; letter-spacing: -.01em; }
.tile .p small { font-weight: 500; color: var(--muted); font-size: 12px; }
.tile .m { margin: 2px 2px 0; font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { color: #f59e0b; }
.bg-phone { background: linear-gradient(145deg, var(--well), #ffd2c2); } .bg-camera { background: linear-gradient(145deg, var(--well), var(--well)); }
.bg-video { background: linear-gradient(145deg, var(--well), var(--well)); } .bg-laptop { background: linear-gradient(145deg, var(--well), var(--well)); }
.bg-game { background: linear-gradient(145deg, var(--well), var(--well)); } .bg-drone { background: linear-gradient(145deg, var(--well), var(--well)); }
.bg-audio { background: linear-gradient(145deg, var(--well), var(--well)); } .bg-projector { background: linear-gradient(145deg, var(--well), var(--well)); }
:root[data-theme="dark"] .thumb { filter: saturate(.85) brightness(.9); }

/* cửa hàng */
.shopcard { width: 220px; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); color: var(--ink); display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.shopcard b { display: block; font-size: 15px; line-height: 1.25; }
.shopcard > span:last-child > span { font-size: 12px; color: var(--muted); }

/* chi tiết máy */
.gallery { margin: 0 -16px; position: relative; }
.gallery .thumb { border-radius: 0 0 30px 30px; aspect-ratio: 1.1; }
.gallery .thumb img.art { width: 52%; }
.floatbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.circle { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(var(--card-rgb),.9); display: grid; place-items: center; color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.circle.on { color: var(--primary); } .circle.on svg { fill: currentColor; }
.ptitle { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; margin: 18px 0 4px; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.price b { font-size: 26px; color: var(--accent-text); letter-spacing: -.02em; font-weight: 800; }
.price span { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.pill img { width: 18px; height: 18px; }
.box { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); margin-top: 14px; }
.box h3 { font-size: 15px; margin: 0 0 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.cal .h { color: var(--muted); font-size: 11px; font-weight: 600; }
.cal .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; }
.cal .d.full { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.cal .d.today { outline: 2px solid var(--primary); font-weight: 700; }
.cal .d.sel { background: var(--grad); color: #fff; font-weight: 700; }
.cal .d.in { background: var(--primary-soft); color: var(--accent-text); }
.cal .d.pick { cursor: pointer; }
.cal .d.pick:hover { background: var(--primary-soft); }
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.review:last-child { border-bottom: 0; }
.review .who { display: flex; justify-content: space-between; font-weight: 600; }
.review p { margin: 4px 0 0; color: var(--muted); }
.bottombar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 456px; z-index: 12;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px); box-shadow: 0 8px 28px rgba(80, 40, 20, .18); }
.bottombar .sum { flex: 1; line-height: 1.2; } .bottombar .sum b { font-size: 18px; color: var(--accent-text); } .bottombar .sum span { display: block; font-size: 12px; color: var(--muted); }
.bottombar .btn { min-width: 150px; }

/* đơn thuê */
.order { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 12px; border-radius: 20px; box-shadow: var(--shadow); color: var(--ink); margin-bottom: 10px; }
.order .thumb { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.order .thumb img.art { width: 70%; }
.order .grow { flex: 1; min-width: 0; }
.order b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order .sub { font-size: 13px; color: var(--muted); }
.st { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.st.requested { background: var(--well); color: #a16207; } .st.accepted { background: var(--well); color: #15803d; } .st.active { background: var(--primary-soft); color: var(--accent-text); }
.st.returned { background: var(--well); color: #0369a1; } .st.overdue { background: var(--danger); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0 4px; }
.steps div { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.steps div::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.steps div.on { color: var(--accent-text); } .steps div.on::before { background: var(--grad); }
.kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; gap: 12px; }
.kv span:first-child { color: var(--muted); } .kv b { text-align: right; }
.kv.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 16px; }
.kv.total b { color: var(--accent-text); font-size: 18px; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.photos img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; width: 100%; }
.msgs { display: grid; gap: 6px; margin-bottom: 10px; max-height: 320px; overflow-y: auto; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 16px; background: var(--surface-2); font-size: 14px; justify-self: start; }
.msg.mine { justify-self: end; background: var(--grad); color: #fff; }
.compose { display: flex; gap: 8px; }
.compose input { flex: 1; }
.tabs { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 36px; padding: 0 14px; border-radius: 18px; border: 0; background: var(--surface); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.tabs button[aria-pressed="true"] { background: var(--solid, var(--ink)); color: var(--bg); }
.tabs button .n { margin-left: 6px; padding: 0 6px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 20px; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--muted); }
.stats .money { grid-column: 1 / -1; background: var(--grad); color: #fff; }
.stats .money span { color: rgba(255,255,255,.85); }
.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uploader label, .uploader .pv { aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); cursor: pointer; overflow: hidden; background: var(--surface); position: relative; }
.uploader label img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.uploader input { display: none; }
.me-head { display: flex; gap: 14px; align-items: center; padding: 16px; }
.me-head b { font-size: 18px; }
.verify { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); margin-top: 12px; }
.verify img { width: 40px; height: 40px; }
.verify .grow { flex: 1; }
.verify.ok { background: var(--well); } .verify.wait { background: var(--well); }
.badge-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; font-size: 13px; }
.row .ic3 { width: 28px; height: 28px; }
.empty .art img { width: 56px; height: 56px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 12px; padding: 0 16px; scrollbar-width: none; }
.filters .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.filters .chip img { width: 18px; height: 18px; }
.datepair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) {
  #app { max-width: 1100px; }
  main { padding-left: 32px; padding-right: 32px; }
  .grid2 { grid-template-columns: repeat(4, 1fr); }
  .cats { grid-template-columns: repeat(8, 1fr); }
  .hero { padding: 36px 32px; } .hero h1 { font-size: 38px; max-width: 460px; } .hero .art { width: 200px; right: 40px; } .hero .art2 { right: 220px; top: 70px; width: 90px; }
  .hero .searchbar { max-width: 520px; }
  .gallery { margin: 0; } .gallery .thumb { border-radius: 30px; }
  .detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
}

.thumb .brandmark { position: absolute; left: 10px; bottom: 6px; font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: rgba(255,255,255,.75); text-transform: uppercase; line-height: 1; pointer-events: none; }
.gallery .thumb .brandmark { font-size: 54px; left: 18px; bottom: 14px; }
.order .thumb .brandmark { display: none; }
.contract { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sigs > div { display: grid; gap: 4px; }
.sigs span { font-size: 12px; font-weight: 600; color: var(--muted); }
.sigs canvas { width: 100%; height: 110px; border: 2px dashed var(--line); border-radius: 12px; background: var(--card); touch-action: none; }
.sigs.view img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.linkbtn { border: 0; background: none; color: var(--accent-text); font-size: 12px; font-weight: 600; cursor: pointer; justify-self: start; padding: 0; }
.doc p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.doc h3 { font-size: 15px; }
@media print { .tabbar, .topbar, .btn, .toasts { display: none !important; } body { background: var(--card); } .box { box-shadow: none; border: 1px solid var(--line); } }

/* =================== Bộ mặt Photo (15/11): ảnh thật là chủ thể, màu nhấn chỉ ở nút cam kết ===================
   Bỏ chuyển màu, bỏ bóng đổ trang trí, icon 3D chỉ còn ở ô danh mục. */
:root { --grad: var(--primary); --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f5; --line: #ececee; --ink: #18181b; --muted: #6b6b72;
  --shadow: none; --radius: 16px; }
:root[data-theme="dark"] { --grad: var(--primary); }
body { background: var(--bg); }
.btn.primary { background: var(--primary); box-shadow: none; }
.btn { border-radius: 12px; }
.btn.dark, .stats .money { background: var(--solid, var(--ink)); color: var(--bg); }
.logo, .avatar { background: var(--surface-2); color: var(--ink); }
.msg.mine { background: var(--solid, var(--ink)); color: var(--bg); }
.card, .box, .list, .order, .shopcard, .verify, .stats div, .trust div, .pill, .tabs button, .cat .ic { box-shadow: none; }
.box, .order, .shopcard, .verify, .stats div { border: 1px solid var(--line); }
.pill img, .verify > img, .row .ic3, .box > img, .empty .art { display: none; }
.tabs button { border: 1px solid var(--line); }
.tabs button[aria-pressed="true"] { border-color: var(--ink); }
.tabbar { box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0,0,0,.08); }
.tabbar a[aria-current="page"] { color: var(--ink); } .tabbar a[aria-current="page"] svg { stroke: var(--ink); }

/* đầu trang chủ: ô tìm theo nhu cầu + khu vực + ngày */
.homehead { padding: 8px 0 4px; }
.brandrow { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: -.02em; }
.homehead h1 { font-size: 24px; letter-spacing: -.03em; margin: 14px 0 12px; font-weight: 800; }
.finder { border: 1px solid var(--line); border-radius: 18px; padding: 6px; display: grid; gap: 6px; }
.f-q { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.f-q input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); height: 100%; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.f-cell { text-align: left; border: 0; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.f-cell span { display: block; font-size: 12px; color: var(--muted); }
.f-cell b { font-size: 15px; }
.cats { margin-top: 20px; gap: 12px 6px; }
.cat .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--surface-2); }
.cat .ic img { width: 38px; height: 38px; }
.sec h2 { font-size: 19px; }
.row-cta { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; border-radius: 16px; background: var(--surface-2); color: var(--ink); }

/* thẻ đồ: ảnh 1:1 bo 14, chữ dưới ảnh, không khung */
.tile { width: 168px; }
.thumb { border-radius: 14px; background: var(--surface-2); }
.thumb .tag { left: 8px; top: 8px; background: var(--card); color: var(--ink); border-radius: 8px; font-size: 11px; }
.tile .t { font-size: 14.5px; font-weight: 600; margin-top: 8px; min-height: auto; -webkit-line-clamp: 2; }
.tile .p { color: var(--ink); font-weight: 500; font-size: 14px; }
.tile .p b { font-weight: 800; font-size: 15px; }
.tile .p span { color: var(--muted); }
.tile .m { font-size: 13px; }
.star { color: var(--ink); }
.thumb .brandmark { display: none; }

/* chi tiết */
.gallery .thumb { aspect-ratio: 1; border-radius: 0 0 24px 24px; }
.periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.periods div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.periods b { display: block; font-size: 16px; letter-spacing: -.01em; }
.periods span { font-size: 12px; color: var(--muted); }
.trustline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14px; }
.trustline li { display: flex; gap: 8px; align-items: center; }
.trustline svg { width: 18px; height: 18px; stroke: var(--ok); stroke-width: 2.4; }
.tick { color: var(--ok); font-size: 13px; }
.bottombar { box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0,0,0,.08); }
.bottombar .sum b { color: var(--ink); }
.price b, .kv.total b { color: var(--ink); }
@media (min-width: 900px) { .tile { width: 200px; } .homehead h1 { font-size: 34px; } .finder { max-width: 620px; } }

/* danh mục: icon nét mảnh, không nền màu */
.cats { display: flex; gap: 4px; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 76px; gap: 6px; font-weight: 500; font-size: 12px; color: var(--muted); }
.cat .ic { width: 52px; height: 52px; border-radius: 16px; background: transparent; border: 1px solid var(--line); }
.cat:hover .ic { border-color: var(--ink); } .cat:hover { color: var(--ink); }
svg.ci { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.filters .chip svg.ci { width: 18px; height: 18px; }
@media (min-width: 900px) { .cats { justify-content: space-between; margin: 22px 0 0; padding: 0; } .cat { width: auto; min-width: 90px; } }

/* =================== Kiểu SÀN (15/11, chủ chọn "như Shopee nhưng chỉ đồ công nghệ") ===================
   Nền xám nhạt, khối trắng, khối đầu màu thương hiệu, giá đỏ, lưới 2 cột dày. Không số liệu giả (không "đã bán" bịa, không flash sale giả). */
:root { --bg: #f5f5f6; --surface: #fff; --line: #ececee; --brand: #e5383b; --primary: #e5383b; --grad: #e5383b; --radius: 10px; }
body { background: var(--bg); }
main { padding: 0 0 calc(76px + env(safe-area-inset-bottom)); }
main.no-nav { padding: 0 0 24px; }
main > .box, main > .order, main > .list, main > .tabs, main > .stats, main > .section-title, main > p, main > form, main > .uploader, main > .field, main > div:not([class]), main > .empty, main > .verify, main > .grid2, main > .sec, main > .hscroll, main > .card, main > .seg, main > a.btn, main > button.btn { margin-left: 12px; margin-right: 12px; }
.topbar { background: var(--card); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.tabbar { left: 0; right: 0; transform: none; bottom: 0; width: 100%; max-width: none; border-radius: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); backdrop-filter: none; box-shadow: 0 -1px 0 var(--line); }
.tabbar a[aria-current="page"] { color: var(--accent-text); } .tabbar a[aria-current="page"] svg { stroke: var(--brand); }
@media (min-width: 900px) { .tabbar { left: 50%; transform: translateX(-50%); max-width: 1100px; } }

.mall-head { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--brand); }
.mall-head.slim { padding: 8px 10px; }
.mall-search { flex: 1; }
.mall-search label { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--card); border-radius: 6px; color: var(--muted); }
.mall-search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; color: var(--ink); height: 100%; }
.hd-ic { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border: 0; background: transparent; cursor: pointer; }
.hd-ic svg { stroke: #fff; }
.hd-ic .dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--card); color: var(--accent-text); font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; }
.mall-sub { display: flex; gap: 8px; padding: 0 12px 10px; background: var(--brand); }
.mall-sub button { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.mall-sub svg { width: 15px; height: 15px; stroke: #fff; }

.banner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 10px 12px 0; border-radius: 10px; }
.banner::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; aspect-ratio: 2.4; scroll-snap-align: start; background-size: cover; background-position: center; position: relative; color: #fff; display: flex; align-items: flex-end; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(255,255,255,0) 70%); }
.slide div { position: relative; padding: 14px 16px; display: grid; gap: 2px; max-width: 70%; }
.slide b { font-size: 19px; letter-spacing: -.02em; line-height: 1.2; } .slide span { font-size: 13px; opacity: .92; }
.dots { display: flex; justify-content: center; gap: 5px; margin: 6px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #d4d4d8; } .dots i.on { width: 16px; background: var(--brand); }
.perks { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px; font-size: 12px; color: #0f7a3b; font-weight: 600; }
.perks span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.perks svg { width: 14px; height: 14px; stroke: #0f7a3b; stroke-width: 2.5; }

.panel { background: var(--card); margin-top: 8px; padding: 12px 0; }
.panel .hscroll { margin: 0; padding: 0 12px 4px; }
.ptitle-row { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; }
.ptitle-row h2 { font-size: 15px; margin: 0; letter-spacing: .01em; color: var(--ink); }
.ptitle-row h2.hotttl { color: var(--accent-text); }
.ptitle-row a { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; } .ptitle-row a svg { width: 16px; height: 16px; }
.panel .cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; margin: 0; padding: 0 8px; overflow: visible; }
.panel .cat { width: auto; color: var(--ink); font-size: 12px; font-weight: 500; }
.panel .cat .ic { width: 54px; height: 54px; border-radius: 50%; border: 0; background-size: cover; background-position: center; background-color: var(--surface-2); }
.mini-t { width: 112px; color: var(--ink); display: grid; gap: 4px; text-align: center; }
.mini-t .thumb { border-radius: 6px; }
.mini-t b { color: var(--accent-text); font-size: 14px; }
.mini-t .bar { position: relative; height: 16px; border-radius: 8px; background: var(--well); overflow: hidden; }
.mini-t .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); }
.mini-t .bar em { position: relative; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; line-height: 16px; text-shadow: 0 0 2px rgba(0,0,0,.25); }
.panel .shopcard { width: 128px; flex-direction: column; text-align: center; gap: 2px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 8px; align-items: center; }
.panel .shopcard .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--well); color: var(--accent-text); font-size: 17px; margin-bottom: 4px; }
.panel .shopcard b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.panel .shopcard > span:not(.avatar) { font-size: 11px; color: var(--muted); }
.suggest-h { position: sticky; top: 60px; z-index: 4; background: var(--card); color: var(--accent-text); text-align: center; font-weight: 800; font-size: 14px; padding: 12px; margin-top: 8px; border-bottom: 3px solid var(--brand); }

/* thẻ sản phẩm kiểu sàn */
.grid2 { gap: 6px; margin: 6px 6px 0; grid-template-columns: 1fr 1fr; }
.tile { width: auto; background: var(--card); border-radius: 4px; overflow: hidden; }
.hscroll .tile { width: 150px; }
.tile .thumb { border-radius: 0; aspect-ratio: 1; }
.tile .tag { left: 0; top: auto; bottom: 0; border-radius: 0 6px 0 0; background: #0f9d58; color: #fff; font-size: 10px; padding: 2px 6px; }
.tile .tb { padding: 6px 8px 8px; display: grid; gap: 3px; }
.tile .t { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.35; min-height: 2.7em; -webkit-line-clamp: 2; }
.tile .hot { display: inline-block; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
.tile .p { margin: 0; color: var(--accent-text); font-size: 12px; font-weight: 500; }
.tile .p b { font-size: 16px; font-weight: 700; color: var(--accent-text); }
.tile .p small { color: var(--accent-text); }
.tile .tot { font-size: 11px; color: var(--muted); }
.tile .m { display: flex; justify-content: space-between; margin: 0; font-size: 11px; color: var(--muted); }
.tile .m .star { color: #f5a623; }
.tile .loc { font-size: 11px; color: var(--muted); }
.thumb img.real { transition: none; }

/* tìm kiếm */
.sorts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-bottom: 1px solid var(--line); }
.sorts button { height: 44px; border: 0; background: none; font-size: 13.5px; color: var(--ink); cursor: pointer; position: relative; }
.sorts button[aria-pressed="true"] { color: var(--accent-text); font-weight: 700; }
.sorts button[aria-pressed="true"]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--brand); }
.filters { margin: 8px 0; padding: 0 12px; }
.chip[aria-pressed="true"] { background: var(--well); border-color: var(--brand); color: var(--accent-text); }
#res > p { margin: 6px 12px; }

/* chi tiết */
.detail { background: var(--bg); }
.gallery { margin: 0; } .gallery .thumb { border-radius: 0; }
.detail > div:last-child > .ptitle, .detail .hint, .detail .periods, .detail .trustline { padding-left: 12px; padding-right: 12px; }
.detail > div:last-child { background: var(--card); }
.detail .box { margin: 8px 0 0; border-radius: 0; border: 0; border-top: 8px solid var(--bg); }
.periods div:first-child b { color: var(--accent-text); font-size: 20px; }
.bottombar.mall { left: 0; right: 0; transform: none; bottom: 0; width: 100%; max-width: none; border-radius: 0; padding: 0 0 env(safe-area-inset-bottom); gap: 0; box-shadow: 0 -1px 0 var(--line); background: var(--card); height: calc(56px + env(safe-area-inset-bottom)); }
.bottombar.mall .bb-ic { width: 64px; display: grid; place-items: center; font-size: 10px; color: var(--ink); height: 56px; border-right: 1px solid var(--line); }
.bottombar.mall .bb-ic svg { width: 20px; height: 20px; }
.bottombar.mall .sum { padding: 0 12px; } .bottombar.mall .sum b { color: var(--accent-text); font-size: 16px; }
.bottombar.mall .btn { height: 56px; border-radius: 0; min-width: 132px; }
@media (min-width: 900px) {
  main { padding-left: 0; padding-right: 0; }
  .grid2 { grid-template-columns: repeat(5, 1fr); }
  .panel .cats { grid-template-columns: repeat(8, 1fr); }
  .slide { aspect-ratio: 3.6; } .slide b { font-size: 28px; } .slide span { font-size: 16px; }
  .bottombar.mall { left: 50%; transform: translateX(-50%); max-width: 1100px; }
}

/* tin nhắn, giỏ thuê, trang Tôi, đăng nhập (kiểu sàn) */
.bottombar.mall .bb-ic { border: 0; border-right: 1px solid var(--line); background: var(--card); cursor: pointer; padding: 0; }
.bottombar.mall .bb-ic span { font-size: 10px; }
.me-top { display: flex; align-items: center; gap: 12px; padding: 22px 14px 18px; background: var(--brand); color: #fff; }
.me-top .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--accent-text); font-size: 20px; }
.me-top b { font-size: 17px; } .me-top div div { font-size: 12.5px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-top .btn { background: rgba(255,255,255,.18); color: #fff; border: 1px solid var(--line-2); }
.ostat { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 6px; }
.ostat a { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink); padding: 6px 0; }
.ostat svg { width: 26px; height: 26px; stroke-width: 1.5; }
main > .list { margin-left: 0; margin-right: 0; border-radius: 0; }
.chatrow .thumb { width: 52px; height: 52px; border-radius: 8px; flex: none; }
.chatrow b { font-size: 15px; } .chatrow .last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.chatrow .last.un { color: var(--ink); font-weight: 700; }
.chathead { margin: 0 !important; border-radius: 0; border-left: 0; border-right: 0; position: sticky; top: 56px; z-index: 3; }
.chathead .thumb { width: 52px; height: 52px; }
.chatbox { display: grid; gap: 6px; padding: 12px; min-height: 50vh; align-content: end; }
.chatbox .msg { background: var(--card); border: 1px solid var(--line); }
.chatbox .msg.mine { background: var(--brand); color: #fff; border-color: var(--brand); }
.msg i { display: block; font-style: normal; font-size: 10px; opacity: .6; margin-top: 2px; text-align: right; }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; }
.quick .chip { flex: none; background: var(--card); }
.compose.bar { position: sticky; bottom: 0; background: var(--card); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin: 0 !important; }
.compose.bar .btn { height: 44px; padding: 0 16px; }
.datebar { display: block; width: calc(100% - 24px); margin: 10px 12px 0; border: 1px solid var(--line); background: var(--card); }
.cartshop { padding-bottom: 4px; } .cartshop h2 { display: flex; align-items: center; gap: 6px; } .cartshop h2 svg { width: 18px; height: 18px; }
.cartrow { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.cartrow .thumb { width: 72px; height: 72px; border-radius: 6px; flex: none; }
.cartrow b { font-size: 14px; color: var(--ink); } .cartrow .sub { font-size: 12px; color: var(--muted); } .cartrow .pr { color: var(--accent-text); }
.auth { background: var(--card); padding: 0 20px 24px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin: 0 -20px; padding: 14px 20px; background: var(--brand); color: #fff; }
.auth-top .brand { color: #fff; } .auth-x { color: #fff; } .auth-x svg { stroke: #fff; }
.auth h2 { margin-top: 28px; }
.sorts { position: sticky; top: 0; z-index: 4; }
.topbar + main .sorts { top: 56px; }
.tabbar { grid-template-columns: repeat(5, 1fr) !important; }
.sorts button { font-size: 12.5px; padding: 0 2px; line-height: 1.2; }
.auth-top .brand img { border-radius: 9px; box-shadow: 0 0 0 2px #fff; }

/* =================== BẢN CHỐT (16/11): nền B sáng kiểu Apple + chữ chạy, máy ảnh 3D (A), bộ đồ theo chuyến đi (C) ===================
   Chữ tiêu đề Bricolage Grotesque tự lưu trên máy chủ (giấy phép OFL, public/fonts/OFL-bricolage.txt). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-vietnamese-800-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root, :root[data-theme="dark"] { --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f5f7; --line: #e5e5ea; --ink: #1d1d1f; --muted: #6e6e73;
  --brand: #d92d30; --primary: #d92d30; --primary-ink: #fff; --primary-soft: #fde8e8; --grad: #d92d30; --radius: 20px;
  --display: "Bricolage Grotesque", var(--font); color-scheme: light; }
body { background: var(--card); }
.topbar { background: rgba(var(--card-rgb),.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar h1, .ptitle h1, .sheet h3, .empty h3, .auth h2 { font-family: var(--display); letter-spacing: -.03em; }
.btn { border-radius: 999px; }
.btn.primary { background: var(--primary); }
.tabbar { background: rgba(var(--card-rgb),.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tabbar a[aria-current="page"], .tabbar a[aria-current="page"] svg { color: var(--accent-text); stroke: var(--brand); }
.panel { background: var(--card); margin-top: 4px; }
.ptitle-row h2 { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; font-weight: 800; }
.mini-t b, .tile .p, .tile .p b, .tile .p small, .cartrow .pr, .bottombar.mall .sum b, .periods div:first-child b { color: var(--ink); }
.mini-t .sub { font-size: 11px; color: var(--muted); }
.mini-t .thumb, .tile, .cartrow .thumb { border-radius: 16px; }
.grid2 { gap: 14px 12px; margin: 8px 16px 0; }
.tile { background: none; }
.tile .thumb { border-radius: 18px; background-color: var(--surface-2); }
.tile .tb { padding: 8px 2px 0; }
.tile .hot { background: var(--solid, var(--ink)); border-radius: 4px; }
.tile .tag { border-radius: 0 10px 0 18px; }
.panel .shopcard { border-radius: 18px; }
.panel .shopcard .avatar, .me-top .avatar { background: var(--surface-2); color: var(--ink); }
.me-top, .auth-top { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.me-top .btn { background: var(--surface-2); color: var(--ink); border: 0; }
.auth-top .brand, .auth-x { color: var(--ink); } .auth-x svg { stroke: var(--ink); }
.chatbox .msg.mine { background: var(--solid, var(--ink)); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--solid, var(--ink)); border-color: var(--ink); color: #fff; }
.sorts button[aria-pressed="true"] { color: var(--ink); } .sorts button[aria-pressed="true"]::after { background: var(--solid, var(--ink)); }

/* trang chủ */
.hb { padding: 12px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.hb-top { display: flex; align-items: center; gap: 4px; height: 44px; }
.hb-logo { flex: 1; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.045em; }
.hb-ic { position: relative; width: 44px; height: 44px; border-radius: 22px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.hb-ic .dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; }
.hb-h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.12; letter-spacing: -.045em; }
.hb-h1 .ln { display: block; }
.roll { display: inline-block; height: 1.12em; overflow: hidden; vertical-align: top; color: var(--brand); }
.roll-in { display: flex; flex-direction: column; animation: lmRoll 9s cubic-bezier(.7, 0, .2, 1) infinite; }
.roll-in span { height: 1.12em; white-space: nowrap; }
@keyframes lmRoll { 0%,18% { transform: translateY(0) } 25%,43% { transform: translateY(-1.12em) } 50%,68% { transform: translateY(-2.24em) } 75%,93% { transform: translateY(-3.36em) } 100% { transform: translateY(-4.48em) } }
.hb-search label { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 26px; background: var(--surface-2); color: var(--muted); }
.hb-search input { flex: 1; min-width: 0; border: 0; outline-offset: 6px; background: transparent; font-size: 16px; color: var(--ink); }
.hb-pills { display: flex; gap: 8px; margin-top: -6px; }
.hb-pills button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; }
.hb-pills svg { width: 16px; height: 16px; }
.hb-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.hb-cats::-webkit-scrollbar { display: none; }
.hb-cats a { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 22px; background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hb-cats svg.ci { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hb-h2 { margin: 12px 0 -4px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.04em; }
.hb-h2.pad { margin: 28px 20px 4px; }

/* máy ảnh 3D */
.hb-hero { border-radius: 28px; background: var(--surface-2); height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.hb-hero-top { display: flex; justify-content: space-between; padding: 16px 18px 0; font-size: 13px; color: var(--muted); }
.hint3d { display: inline-flex; align-items: center; gap: 6px; } .hint3d svg { width: 14px; height: 14px; }
.cam-stage { flex: 1; perspective: 900px; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; position: relative; padding-top: 18px; user-select: none; }
.cam-stage:active { cursor: grabbing; }
.cam-shadow { position: absolute; bottom: 20px; left: 50%; width: 190px; height: 22px; margin-left: -95px; border-radius: 50%; background: #1d1d1f; opacity: .26; filter: blur(12px); }
.cam3d-sway { transform-style: preserve-3d; animation: lmSway 5s ease-in-out infinite alternate; }
@keyframes lmSway { from { transform: rotateY(-12deg) } to { transform: rotateY(12deg) } }
.cam3d { width: 200px; height: 124px; position: relative; transform-style: preserve-3d; }
.cam3d i { position: absolute; display: block; }
.cam3d .cb { inset: 0; border-radius: 20px; }
.cam3d .hump { top: -22px; left: 72px; width: 60px; height: 26px; border-radius: 9px 9px 0 0; background: #3a3d45; }
.cam3d .dial { top: -10px; left: 16px; width: 28px; height: 11px; border-radius: 5px; background: #c4c7ce; transform: translateZ(-20px); }
.cam3d .face { inset: 0; border-radius: 20px; background: linear-gradient(180deg, #4c505a 0%, #25282e 100%); }
.cam3d .grip { left: 0; top: 0; width: 50px; height: 124px; border-radius: 20px 10px 10px 20px; background: #15171b; transform: translateZ(7px); }
.cam3d .btn1 { right: 16px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #0e1014; transform: translateZ(1px); }
.cam3d .ring { border-radius: 50%; }
.cam3d .glass { left: 82px; top: 26px; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #7c8fb8 0%, var(--panel) 42%, var(--panel) 100%); transform: translateZ(49px); }
.cam3d .glint { left: 96px; top: 38px; width: 18px; height: 10px; border-radius: 50%; background: var(--card); opacity: .4; transform: translateZ(50px) rotate(-30deg); }
.hb-hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 18px 18px; }
.hb-hero-foot b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.hb-hero-foot strong { font-size: 15px; } .hb-hero-foot span { color: var(--muted); font-size: 14px; }
.hb-go { flex: none; width: 52px; height: 52px; border-radius: 26px; background: var(--brand); color: #fff; display: grid; place-items: center; }

/* bộ đồ theo chuyến đi */
.hb-chips { display: flex; gap: 8px; }
.hb-chips button { height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--surface-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.hb-chips button[aria-pressed="true"] { background: var(--solid, var(--ink)); color: #fff; }
.kit-mat { position: relative; height: 380px; border-radius: 28px; transition: background .3s ease; }
.kit-l, .kit-r { position: absolute; top: 16px; font-size: 13px; }
.kit-l { left: 18px; font-weight: 700; } .kit-r { right: 18px; color: var(--ink); }
.kit-it { position: absolute; padding: 6px 6px 22px; border: 0; border-radius: 14px; background: var(--card); cursor: pointer;
  transform: rotate(var(--r)); box-shadow: 0 5px 10px rgba(29,29,31,.16); transition: transform .28s cubic-bezier(.2,.9,.3,1.3), box-shadow .28s ease; }
.kit-it .thumb { aspect-ratio: 1; border-radius: 10px; }
.kit-it.on { transform: rotate(var(--r)) translateY(-10px) scale(1.06); box-shadow: 0 22px 26px rgba(29,29,31,.28); z-index: 2; }
.kit-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) scale(.6); opacity: 0; background: var(--solid, var(--ink)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 13px; white-space: nowrap; transition: transform .22s ease, opacity .22s ease; }
.kit-it.on .kit-tag { transform: translateX(-50%) scale(1); opacity: 1; }
.kit-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; padding: 0 10px 0 22px; border-radius: 38px; background: var(--surface-2); margin-top: -4px; }
.kit-bar span { display: block; font-size: 13px; color: var(--muted); }
.kit-bar b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; } .kit-bar small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
.kit-bar .btn { height: 56px; padding: 0 24px; }
@media (prefers-reduced-motion: reduce) { .roll-in, .cam3d-sway { animation: none; } .kit-it, .kit-tag { transition: none; } }
@media (min-width: 900px) { .hb { max-width: 760px; margin: 0 auto; } .hb-h1 { font-size: 64px; } .grid2 { margin: 8px 24px 0; } }
.bottombar.mall .btn.primary { height: 52px; border-radius: 26px; margin: 0 12px 0 4px; min-width: 128px; }
.bottombar.mall { align-items: center; height: calc(68px + env(safe-area-inset-bottom)); background: rgba(var(--card-rgb),.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* =================== BẢN CHỐT – chi tiết món (16/11) =================== */
.itd-gal { position: relative; margin: 0; }
.itd-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.itd-photos::-webkit-scrollbar { display: none; }
.itd-ph { flex: 0 0 100%; scroll-snap-align: center; cursor: zoom-in; }
.itd-ph .thumb { aspect-ratio: 1; border-radius: 0; background-color: var(--surface-2); }
.itd-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.itd-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(var(--card-rgb),.6); transition: width .2s ease; }
.itd-dots i.on { width: 18px; background: var(--card); }
.itd-body { padding: 0 20px; }
.itd-cat { margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; text-transform: uppercase; }
.itd-title { margin: 4px 0 6px; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -.04em; }
.itd-meta { font-size: 14px; color: var(--muted); } .itd-meta b { color: var(--ink); } .itd-meta .star { color: var(--ink); }
.itd-price { margin-top: 18px; display: flex; align-items: baseline; gap: 4px; }
.itd-price b { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.045em; line-height: 1; }
.itd-price span { font-size: 16px; color: var(--muted); }
.itd-deals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.itd-deals span { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.itd-deals b { color: var(--ink); } .itd-deals em { font-style: normal; font-weight: 700; color: var(--accent-text); }
.itd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.itd-trust div { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 20px; background: var(--surface-2); }
.itd-trust svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.itd-trust b { font-size: 13px; line-height: 1.25; } .itd-trust span { font-size: 12px; color: var(--muted); }
.itd-sec { margin-top: 30px; }
.itd-sec h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.itd-sec h2 small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.itd-sec > p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.itd-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.itd-specs span { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface-2); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.itd-shop { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 14px 14px 14px 16px; border-radius: 24px; border: 1px solid var(--line); color: var(--ink); }
.itd-shop .avatar { width: 48px; height: 48px; border-radius: 24px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.itd-shop .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; } .itd-shop .grow > span { font-size: 13px; color: var(--muted); }
.itd-shop .tick { color: var(--ok); } .itd-shop > svg { width: 20px; height: 20px; color: var(--muted); }
.itd-legend { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.itd-legend i { width: 12px; height: 12px; border-radius: 6px; display: inline-block; }
.itd-legend .lg-free { border: 1.5px solid var(--line); } .itd-legend .lg-full { background: var(--surface-2); margin-left: 10px; }
.itd .cal { gap: 4px; font-size: 15px; }
.itd .cal .d { aspect-ratio: auto; height: 40px; }
.itd .cal .d { border-radius: 50%; font-weight: 500; }
.itd .cal .d.full { background: var(--surface-2); color: var(--muted); }
.itd .cal .d.today { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 800; }
.itd .cal .d.sel { background: var(--solid, var(--ink)); color: #fff; box-shadow: none; }
.itd .cal .d.in { background: var(--surface-2); color: var(--ink); border-radius: 0; }
.itd-revs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.itd-revs::-webkit-scrollbar { display: none; }
.itd-rev { flex: 0 0 78%; scroll-snap-align: start; padding: 16px; border-radius: 22px; background: var(--surface-2); }
.itd-rev .who { display: flex; align-items: center; gap: 10px; }
.itd-rev .who b { flex: 1; font-size: 14px; } .itd-rev .star { font-size: 12px; color: var(--ink); letter-spacing: 1px; }
.itd-rev .avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.itd-rev p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
@media (min-width: 900px) {
  .itd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; max-width: 1100px; margin: 0 auto; padding-top: 16px; }
  .itd-gal { margin: 0; position: sticky; top: 16px; } .itd-ph .thumb { border-radius: 32px; }
  .itd-revs { margin: 0; padding: 0; } .itd-rev { flex-basis: 85%; }
}

/* =================== BẢN CHỐT – giỏ thuê, đơn thuê (16/11) =================== */
.datebar { width: calc(100% - 40px); margin: 12px 20px 0; border: 0; background: var(--surface-2); border-radius: 22px; padding: 14px 18px; }
.datebar b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.cartshop { background: none; padding: 0 20px; margin-top: 22px; }
.cartshop .ptitle-row { padding: 0 0 10px; }
.cartshop h2 { font-size: 18px !important; } .cartshop h2 svg { width: 20px; height: 20px; }
.cartrow { border-top: 0; padding: 10px 0; gap: 14px; }
.cartrow .thumb { width: 84px; height: 84px; border-radius: 18px; background-color: var(--surface-2); }
.cartrow b { font-size: 15px; } .cartrow .sub { font-size: 13px; margin: 2px 0 4px; }
.cartrow .pr { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.cartrow .icon-btn { width: 36px; height: 36px; border-radius: 18px; background: var(--surface-2); flex: none; }
.cartrow .icon-btn svg { width: 16px; height: 16px; }
main > .hint { margin: 18px 20px !important; }

.sorts { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 0; overflow-x: auto; scrollbar-width: none; background: rgba(var(--card-rgb),.94); }
.sorts::-webkit-scrollbar { display: none; }
.sorts button { flex: none; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.sorts button[aria-pressed="true"] { background: var(--solid, var(--ink)); color: #fff; }
.sorts button[aria-pressed="true"]::after { display: none; }
main > div:not([class]) > .order { margin-left: 8px; margin-right: 8px; } main > .order { margin-left: 20px; margin-right: 20px; }
.order { background: var(--surface-2); border: 0; box-shadow: none; border-radius: 24px; padding: 12px; margin-top: 10px; gap: 14px; }
.order .thumb { width: 84px; height: 84px; border-radius: 18px; background-color: var(--card); }
.order > b:last-child { color: var(--ink) !important; font-family: var(--display); font-size: 17px; }
.order .sub { margin: 2px 0 6px; }
.st { border-radius: 10px; }

.box:has(.steps), .box:has(.kv), .box:has(.msgs), .box:has(.photos) { background: var(--surface-2); border: 0; box-shadow: none; border-radius: 26px; padding: 18px; }
main > .box { margin-left: 20px; margin-right: 20px; }
.box h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.steps div.on { color: var(--ink); } .steps div.on::before { background: var(--solid, var(--ink)); }
.steps div::before { background: #dcdce0; }
.kv a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.kv.total b { font-family: var(--display); letter-spacing: -.02em; }
.box .compose .input { background: var(--card); }
.cartrow .grow { flex: 1; min-width: 0; }
.sheet .cal { gap: 4px; font-size: 16px; }
.sheet .cal .d { aspect-ratio: auto; height: 44px; border-radius: 50%; }
.sheet .cal .d.past { color: #c7c7cc; }
.sheet .cal .d.full { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.sheet .cal .d.today { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 800; }
.sheet .cal .d.sel { background: var(--solid, var(--ink)); color: #fff; box-shadow: none; }
.sheet .cal .d.in { background: var(--surface-2); color: var(--ink); border-radius: 0; }
.sheet .cal .d.pick:hover { background: var(--surface-2); }
.btn.primary:disabled { background: var(--surface-2); color: var(--muted); opacity: 1; }

/* =================== BẢN CHỐT – combo, font Be Vietnam Pro, trang chủ gọn (16/11) =================== */
:root, :root[data-theme="dark"] { --display: "Be Vietnam Pro", var(--font); }
.hb-h1 { letter-spacing: -.035em; line-height: 1.15; }
.hb-h2, .itd-title, .itd-price b, .ptitle-row h2 { letter-spacing: -.03em; }
.roll, .roll-in span { height: 1.15em; }
@keyframes lmRoll { 0%,18% { transform: translateY(0) } 25%,43% { transform: translateY(-1.15em) } 50%,68% { transform: translateY(-2.3em) } 75%,93% { transform: translateY(-3.45em) } 100% { transform: translateY(-4.6em) } }
/* ô tìm kiếm có nút khu vực + ngày bên trong */
.hb-search { display: flex; flex-direction: column; gap: 0; border-radius: 26px; background: var(--surface-2); }
.hb-search label { background: none; }
.hb-where { display: flex; align-items: center; gap: 6px; margin: -8px 0 0; padding: 0 18px 12px 46px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.hb-where svg { width: 14px; height: 14px; }
/* nút Combo đầu thanh danh mục */
.hb-cats a.combo { background: var(--solid, var(--ink)); color: #fff; }
.hb-cats a.combo svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* combo: chip trượt ngang, món có nút đổi */
.hb-chips { overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.hb-chips::-webkit-scrollbar { display: none; }
.hb-chips button { flex: none; white-space: nowrap; }
#kits { display: flex; flex-direction: column; gap: 14px; }
.kit-it { padding: 6px 6px 22px; }
.kit-pick { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.kit-it:not(.on) { opacity: .45; }
.kit-sw { position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; border-radius: 17px; border: 0; background: var(--solid, var(--ink)); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.kit-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.kit-names span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: var(--surface-2); }
.kit-names span.off { color: var(--muted); text-decoration: line-through; }
@media (min-width: 900px) { .kit-mat { height: 460px; } .kit-it { max-width: 220px; } }
/* nút + trên ô sản phẩm */
.tile .thumb { position: relative; }
.tile-add { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 18px; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; z-index: 2; }
.tile-add svg { width: 18px; height: 18px; stroke-width: 2.2; }
.tile-add.done { background: var(--solid, var(--ink)); color: #fff; }
.own .tile-add { display: none; }
/* bớt chữ phụ trang chủ */
.hb-hero-top span:first-child { font-weight: 600; color: var(--ink); }
.kit-bar b { white-space: nowrap; } .kit-bar .btn { white-space: nowrap; flex: none; }
.tile .m { font-size: 12px; color: var(--muted); }
.kit-tag { bottom: 2px; font-size: 11px; padding: 3px 8px; }
.kit-it { padding-bottom: 26px; }

/* =================== BẢN VOLT (16/11 trưa): nền kem ấm, thẻ trắng có khung, bo vuông 10–20, xanh điện, chuyển động khi cuộn ===================
   Lấy hướng nhìn từ mẫu chủ gửi (Givolt), tự viết lại toàn bộ, không dùng mã hay ảnh của mẫu. */
:root, :root[data-theme="dark"] { --bg: #F2F1ED; --surface: #fff; --surface-2: #fff; --well: #F2F1ED; --line: #E3E1D9; --ink: #1A1A2E; --muted: #5B6270;
  --brand: #2563EB; --primary: #2563EB; --primary-soft: #E4ECFD; --grad: #2563EB; --shadow: 0 4px 20px rgba(26,26,46,.08); }
body { background: var(--bg); color: var(--ink); }
main { overflow-x: clip; }
.sheet, .tile, .itd-rev, .hb-search, .kit-bar, .order, .box, .ben { --surface-2: var(--well); }
.order, .box, .box:has(.steps), .box:has(.kv), .box:has(.msgs), .box:has(.photos) { background: var(--card); box-shadow: var(--shadow); }
.topbar, .sorts, .bottombar.mall { background: rgba(250,249,247,.92); }
.me-top, .auth-top { background: var(--bg); }
.panel { background: transparent; }
.hb-h1, .hb-h2, .itd-title, .itd-price b, .itd-sec h2, .ptitle-row h2, .topbar h1, .kit-bar b, .box h3, .datebar b, .cartrow .pr, .sheet h3, .empty h3, .auth h2 { font-weight: 600; }

/* nút: bo vuông, nút chính có ô mũi tên trượt */
.btn { border-radius: 12px; }
.btn.primary { background: var(--brand); box-shadow: none; }
.btn.primary:disabled { background: var(--line); color: var(--muted); }
.btn.arr { padding: 0 6px 0 20px; gap: 14px; }
.btn.arr i, .vt-cta i { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--card); color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.btn.arr:disabled i { background: rgba(var(--card-rgb),.6); color: var(--muted); }
.btn.arr:hover:not(:disabled) i svg, .btn.arr:active:not(:disabled) i svg, .vt-cta:hover i svg, .vt-cta:active i svg, .vt-sgo:hover svg { animation: vtArr .5s cubic-bezier(.6,0,.3,1); }
@keyframes vtArr { 0% { transform: translateX(0) } 45% { transform: translateX(160%) } 46% { transform: translateX(-160%) } 100% { transform: translateX(0) } }
.btn:active { transform: scale(.97); } .btn { transition: transform .15s ease, background .2s ease; }
.chip, .sorts button, .itd-specs span, .itd-deals span, .hb-chips button, .kit-names span, .f-cell { border-radius: 10px; }
.chip[aria-pressed="true"], .sorts button[aria-pressed="true"], .hb-chips button[aria-pressed="true"] { background: var(--solid, var(--ink)); color: #fff; }

/* đầu trang dính */
.vt-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 16px; background: rgba(250,249,247,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.hb-logo { color: var(--ink); font-weight: 700; font-size: 26px; }
.hb-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--card); }
.hb-ic.dark { background: var(--solid, var(--ink)); color: #fff; }
.hb-ic .dot { top: -4px; right: -4px; background: var(--brand); }

/* nhãn mục có chấm xanh nhấp nháy */
.lbl { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.lbl i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: vtPulse 2.2s ease-out infinite; }
@keyframes vtPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--glow),.45) } 70%,100% { box-shadow: 0 0 0 9px rgba(var(--glow),0) } }
.vt-sec { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 26px; }
.vt-sec.pad { margin: 38px 20px 8px; }
.hb-h2 { margin: 0; font-size: 28px; }

/* đầu trang chủ */
.hb { padding-top: 0; }
.vt-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 26px; text-align: center; }
.hb-h1 { font-size: 38px; text-align: center; }
.roll { color: var(--brand); text-align: left; }
.hb-search { width: 100%; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-align: left; margin-top: 6px; }
.hb-search label { height: 58px; padding: 0 9px 0 18px; }
.vt-sgo { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.hb-where { margin-top: -6px; }

/* sân khấu: ảnh món thật có khung trắng, xếp tầng, nghiêng theo tay, trôi lệch khi cuộn */
.vt-stage { position: relative; height: 290px; margin: 2px -6px 0; perspective: 800px; }
.vt-card { position: absolute; left: var(--l); top: var(--t); width: var(--w); color: #fff;
  transform: translate3d(0, calc(var(--sy, 0px) * var(--k)), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--z));
  transition: transform .35s cubic-bezier(.2,.8,.2,1); animation: vtIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes vtIn { from { opacity: 0; scale: .7; translate: 0 46px; } }
.vt-card .thumb { aspect-ratio: var(--ar, 1); border: 5px solid var(--frame); border-radius: 18px; background-color: var(--card); box-shadow: 0 12px 30px rgba(26,26,46,.16); overflow: hidden;
  animation: vtFloat 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
.vt-card .thumb img { border-radius: 12px; }
@keyframes vtFloat { from { transform: translateY(-5px) } to { transform: translateY(6px) } }
.vt-card.c0 { --l: 31%; --t: 4%; --w: 38%; --ar: .78; --z: 40px; --k: -.05; z-index: 3; }
.vt-card.c1 { --l: 1%; --t: 30%; --w: 27%; --z: 0px; --k: -.12; }
.vt-card.c2 { --l: 72%; --t: 8%; --w: 27%; --ar: .82; --z: 10px; --k: -.16; }
.vt-card.c3 { --l: 73%; --t: 60%; --w: 22%; --z: 60px; --k: -.24; z-index: 4; }
.vt-card.c4 { --l: 9%; --t: 3%; --w: 18%; --z: -30px; --k: -.08; }
.vt-chip { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; max-width: 170%; padding: 7px 12px; border-radius: 10px; background: var(--solid, var(--ink)); white-space: nowrap; box-shadow: 0 8px 20px rgba(26,26,46,.25); }
.vt-chip b { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; } .vt-chip small { font-size: 11px; opacity: .75; }

/* danh mục: thẻ ảnh, Combo đứng đầu */
.hb-cats { gap: 10px; padding-bottom: 6px; margin-top: 8px; }
.hb-cats a { width: 104px; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 5px 5px 10px; border-radius: 16px; background: var(--card); text-align: center; }
.hb-cats .cc-ph { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--well) center / cover; margin-bottom: 8px; }
.hb-cats b { font-size: 14px; font-weight: 600; } .hb-cats small { font-size: 12px; color: var(--muted); }
.hb-cats a.combo { background: var(--solid, var(--ink)); color: #fff; } .hb-cats a.combo small { color: rgba(255,255,255,.65); }
.hb-cats a.combo .cc-ph { background: radial-gradient(circle at 30% 20%, var(--brand) 0%, var(--brand) 45%, var(--brand) 100%); }
.hb-cats a.combo svg { width: 34px; height: 34px; }

/* cam kết */
.vt-ben { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ben { display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border-radius: 14px; background: var(--card); box-shadow: 0 4px 20px rgba(26,26,46,.06); }
.ben svg { width: 28px; height: 28px; stroke: var(--brand); margin-bottom: 8px; }
.ben b { font-size: 15px; font-weight: 600; line-height: 1.25; } .ben span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* dải chữ chạy */
.vt-mq { margin: 40px -10px 6px; padding: 14px 0; background: var(--solid, var(--ink)); color: #fff; overflow: hidden; transform: rotate(-2deg); }
.vt-mq > div { display: flex; align-items: center; width: max-content; animation: vtMq 30s linear infinite; }
.vt-mq span { font-size: 24px; font-weight: 800; letter-spacing: .02em; } .vt-mq i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin: 0 18px; }
@keyframes vtMq { to { transform: translateX(-25%) } }

/* combo */
.hb-chips button { background: var(--card); }
.kit-mat { border-radius: 20px; }
.kit-it { border-radius: 16px; } .kit-it .thumb { border-radius: 11px; }
.kit-sw { border-radius: 10px; } .kit-tag { border-radius: 8px; }
.kit-bar { height: 72px; padding: 0 10px 0 18px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.kit-bar .btn { height: 50px; padding: 0 6px 0 18px; }

/* thẻ món */
.grid2 { gap: 10px; }
.tile { background: var(--card); border-radius: 16px; padding: 6px 6px 12px; }
.tile .thumb { border-radius: 12px; overflow: hidden; }
.tile .thumb img { transition: transform .6s cubic-bezier(.2,.8,.2,1); } .tile:hover .thumb img { transform: scale(1.06); }
.tile .tb { padding: 10px 6px 0; }
.tile .t { font-weight: 600; }
.tile-add { border-radius: 10px; }
.vt-cta { display: flex; align-items: center; gap: 12px; margin: 30px 16px 0; padding: 24px 18px; border-radius: 20px; background: var(--solid, var(--ink)); color: #fff; position: relative; overflow: hidden; }
.vt-cta::before { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow),.75), rgba(var(--glow),0) 68%); }
.vt-cta .grow { flex: 1; position: relative; display: flex; flex-direction: column; gap: 4px; } .vt-cta b { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; } .vt-cta small { font-size: 13px; color: rgba(255,255,255,.7); }
.vt-cta i { position: relative; width: 46px; height: 46px; border-radius: 12px; }

/* thanh điều hướng dưới */
.tabbar { border-radius: 18px; background: rgba(var(--card-rgb),.94); box-shadow: 0 10px 30px rgba(26,26,46,.14), 0 0 0 1px var(--line); padding: 0 6px; }
.tabbar a { border-radius: 12px; height: 52px; justify-content: center; transition: background .25s ease, color .25s ease; }
.tabbar a[aria-current="page"] { background: var(--solid, var(--ink)); color: #fff; } .tabbar a[aria-current="page"] svg { color: #fff; stroke: #fff; }

/* chi tiết món, lịch */
.itd-trust div, .itd-shop, .itd-rev { background: var(--card); border: 0; border-radius: 14px; box-shadow: 0 4px 20px rgba(26,26,46,.06); }
.itd-trust svg { stroke: var(--brand); }
.itd .cal .d.full { background: var(--line); } .itd .cal .d.in, .sheet .cal .d.in { background: var(--primary-soft); }
.itd .cal .d.sel, .sheet .cal .d.sel { background: var(--brand); }
.bottombar.mall .btn.primary { border-radius: 12px; }
.datebar, .cartrow .thumb, .order, .box:has(.steps), .box:has(.kv), .box:has(.msgs), .box:has(.photos) { border-radius: 16px; }
.cartrow .icon-btn, .order .thumb, .cartrow .thumb { border-radius: 12px; }
.order .thumb { background-color: var(--well); }
.datebar { box-shadow: var(--shadow); }

/* hiện dần khi cuộn tới */
.rv0 { opacity: 0; transform: translateY(24px); }
.rv1 { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .vt-card, .vt-card .thumb, .vt-mq > div, .lbl i { animation: none; } }
@media (min-width: 900px) { .hb-h1 { font-size: 60px; } .vt-stage { height: 440px; } .vt-ben { grid-template-columns: repeat(4, 1fr); } .hb-cats a { width: 130px; } }
.kit-bar .btn span, .btn.arr span { display: inline; color: inherit; font-size: inherit; }
.vt-card.c3 { --l: 75%; --t: 63%; }
.mall-head, .mall-sub { background: rgba(250,249,247,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mall-head { border-bottom: 1px solid var(--line); }
.mall-head .hd-ic, .mall-head .icon-btn, .mall-head > button, .mall-head > a { color: var(--ink); }
.mall-head svg { stroke: var(--ink); }
.mall-head .hd-search, .mall-head form, .mall-head label { border-radius: 12px; }
.mall-search label { border-radius: 12px; border: 1px solid var(--line); }
.hd-ic .dot { background: var(--brand); color: #fff; }

/* ---------- Volt, chỉnh theo góp ý 16/11 11:40 ---------- */
/* chữ: giữ độ đậm của bản Lemme cũ */
.hb-h1, .hb-h2, .itd-title, .itd-price b, .itd-sec h2, .ptitle-row h2, .kit-bar b, .datebar b, .cartrow .pr { font-weight: 800; }
.hb-logo { font-weight: 800; } .vt-cta b { font-weight: 700; }
.hb-h1 { font-size: 40px; letter-spacing: -.035em; }
/* nền công nghệ: lưới mảnh + quầng sáng xanh trôi chậm */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%); }
body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; left: 50%; top: -140px; width: 620px; height: 520px; margin-left: -310px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow),.26), rgba(var(--glow-2),.12) 55%, transparent); filter: blur(10px); animation: vtGlow 14s ease-in-out infinite alternate; }
@keyframes vtGlow { from { transform: translate(-90px, 0) scale(1) } to { transform: translate(110px, 60px) scale(1.15) } }
.vt-stage::before { content: ""; position: absolute; left: 8%; right: 8%; top: 14%; bottom: 6%; border-radius: 50%; border: 1px dashed rgba(var(--glow),.35); animation: vtSpin 40s linear infinite; }
.vt-stage::after { content: ""; position: absolute; left: 22%; right: 22%; top: 24%; bottom: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow),.22), transparent); }
@keyframes vtSpin { to { transform: rotate(360deg) } }
/* khu vực ở đầu trang, ngày trong ô tìm */
.vt-loc { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 42px; margin: 0 4px 0 10px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.vt-loc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-loc svg { width: 16px; height: 16px; flex: none; } .vt-loc svg:first-child { color: var(--brand); }
.hb-logo { flex: none; }
.vt-date { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; margin-right: -2px; border: 0; border-radius: 10px; background: var(--well); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.vt-date svg { width: 16px; height: 16px; }
.pa-head { display: flex; align-items: center; gap: 6px; } .pa-head h3 { margin: 0; }
.pa-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin-top: 12px; border-radius: 12px; background: var(--well); color: var(--muted); }
.pa-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.pa-list { height: 52dvh; overflow-y: auto; margin-top: 8px; }
.pa-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 15px; text-align: left; cursor: pointer; }
.pa-row.all { font-weight: 700; color: var(--accent-text); } .pa-row svg { width: 16px; height: 16px; color: var(--muted); }
/* thương hiệu: hai hàng ô trắng chạy ngược chiều nhau */
.vt-brands { margin: 34px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.vt-brands p { margin: 0 0 6px; text-align: center; font-size: 15px; font-weight: 600; }
.br-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.br-row > div { display: flex; gap: 10px; width: max-content; animation: vtMq 36s linear infinite; }
.br-row.rev > div { animation-direction: reverse; }
.br-row span { flex: none; display: grid; place-items: center; min-width: 132px; height: 62px; padding: 0 22px; border-radius: 12px; background: var(--card); font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
@keyframes vtMq { to { transform: translateX(calc(-25% - 2.5px)) } }
@media (prefers-reduced-motion: reduce) { body::after, .vt-stage::before, .br-row > div { animation: none; } }

/* =================== BẢN SÁNG CÔNG NGHỆ (16/11 13:45): chủ chê bản tối cam, quay về sáng + xanh nhưng lạnh và "máy" hơn ===================
   Nền trắng băng có lưới + quầng cực quang xanh/lam/tím; thẻ kính mờ; nhấn chuyển sắc xanh điện → lam ngọc; khối 3D và thẻ mời đăng đồ giữ nền tối. */
:root, :root[data-theme="dark"] { --bg: #F3F6FC; --surface: #fff; --surface-2: #fff; --well: #E9EEF7; --card: rgba(255,255,255,.74); --frame: #fff; --line: rgba(15,23,42,.09); --ink: #0B1020; --muted: #56607A;
  --brand: #2563EB; --primary: #2563EB; --primary-ink: #fff; --primary-soft: #E1EAFE; --grad: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%); --solid: #0B1020;
  --shadow: 0 8px 30px var(--shade); color-scheme: light; }
body { background: var(--bg); color: var(--ink); }
/* lưới kỹ thuật: ô nhỏ mảnh + ô lớn đậm hơn, mờ dần xuống dưới */
body::before { background:
    linear-gradient(rgba(var(--glow),.10) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, rgba(var(--glow),.10) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%); }
/* cực quang: ba quầng xanh điện, lam ngọc, tím trôi chậm */
body::after { left: 0; top: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; filter: blur(50px); opacity: .9;
  background: radial-gradient(420px 320px at 85% 2%, rgba(var(--glow),.34), transparent 70%), radial-gradient(380px 300px at 8% 16%, rgba(var(--glow-2),.30), transparent 70%), radial-gradient(420px 340px at 60% 46%, rgba(var(--glow-2),.16), transparent 70%), radial-gradient(420px 320px at 10% 88%, rgba(var(--glow),.18), transparent 70%);
  animation: vtAurora 18s ease-in-out infinite alternate; }
@keyframes vtAurora { from { transform: translate3d(-3%, -1%, 0) scale(1) } to { transform: translate3d(4%, 3%, 0) scale(1.12) } }
/* kính mờ */
.vt-top, .topbar, .sorts, .bottombar.mall, .mall-head, .mall-sub, .tabbar { background: rgba(var(--card-rgb),.66); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-color: var(--line); }
.tabbar { box-shadow: 0 12px 34px var(--shade), 0 0 0 1px var(--line); }
.tile, .ben, .hb-cats a, .kit-bar, .hb-search, .br-row span, .vt-loc, .hb-ic, .hb-chips button, .order, .box, .box:has(.steps), .box:has(.kv), .box:has(.msgs), .box:has(.photos), .itd-trust div, .itd-shop, .itd-rev, .datebar, .sorts button, .chip, .itd-specs span, .itd-deals span, .kit-names span, .shopcard, .panel .shopcard {
  background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 6px 24px var(--shade), inset 0 0 0 1px rgba(15,23,42,.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.sheet, .tile, .itd-rev, .hb-search, .kit-bar, .order, .box, .ben { --surface-2: var(--well); }
.panel, .me-top, .auth-top, .cartshop, .auth { background: transparent; color: var(--ink); border-color: var(--line); }
.bottombar.mall .bb-ic { background: transparent; color: var(--ink); }
.auth .btn:not(.primary) { background: none; }
/* nhấn chuyển sắc */
.btn.primary, .vt-sgo, .hb-ic.dark, .tabbar a[aria-current="page"], .hb-cats a.combo .cc-ph, .kit-tag, .kit-sw, .tile-add.done { background: var(--grad); color: #fff; border: 0; }
.btn.primary { box-shadow: 0 8px 24px -6px rgba(var(--glow),.55); }
.btn.primary:disabled { background: var(--well); color: var(--muted); box-shadow: none; }
.btn.arr i, .vt-cta i { background: var(--card); color: var(--ink); }
.chip[aria-pressed="true"], .sorts button[aria-pressed="true"], .hb-chips button[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: #fff; }
.hb-cats a.combo { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border-color: transparent; color: #fff; }
.vt-date, .pa-search, .f-cell { background: var(--well); }
.lbl { padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(var(--card-rgb),.7); border: 1px solid var(--line); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.lbl i { width: 7px; height: 7px; background: var(--accent-2); }
/* tiêu đề: mực đậm, từ chạy chuyển sắc xanh → lam */
.hb-h1 .ln:last-child, .hb-h2 { background: none; -webkit-text-fill-color: currentColor; }
.roll-in span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vt-stage::before { border-color: rgba(var(--glow),.4); } .vt-stage::after { background: radial-gradient(closest-side, rgba(var(--glow-2),.25), transparent); }
.vt-card .thumb { box-shadow: 0 16px 36px var(--shade); }
.vt-chip { background: rgba(var(--panel-rgb),.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ben svg, .itd-trust svg { stroke: var(--brand); } .vt-loc svg:first-child { color: var(--brand); }
.br-row span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vt-brands p { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kit-mat { border-radius: 20px; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(15,23,42,.05); background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 24px 24px; }
.kit-it.on { box-shadow: 0 22px 26px var(--shade), 0 0 0 1.5px var(--brand); }
.tile-add { background: rgba(var(--card-rgb),.9); color: var(--ink); border: 0; box-shadow: 0 2px 10px rgba(15,23,42,.18); }
.tile .thumb, .order .thumb, .cartrow .thumb, .hb-cats a:not(.combo) .cc-ph { background-color: var(--well); }
.vt-cta { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 0; }
.vt-cta::before { background: radial-gradient(circle, rgba(var(--glow-2),.75), rgba(var(--glow),.35) 40%, rgba(var(--glow),0) 70%); }
.itd-cat, .pa-row.all, .itd-deals em { color: var(--accent-text); }
.itd .cal .d.full { background: var(--well); } .itd .cal .d.sel, .sheet .cal .d.sel { background: var(--brand); color: #fff; } .itd .cal .d.in, .sheet .cal .d.in { background: var(--primary-soft); }
.skeleton { background: linear-gradient(90deg, var(--well) 0%, var(--well) 50%, var(--well) 100%); background-size: 200% 100%; }
.price-mono, .tile .p b, .kit-bar b, .itd-price b, .h3d-foot strong { font-variant-numeric: tabular-nums; }
/* viền sáng chạy theo chuột (chỉ máy có chuột) */
@media (hover: hover) {
  .tile, .ben, .hb-cats a, .kit-bar, .order, .itd-trust div { position: relative; }
  .tile::after, .ben::after, .hb-cats a::after, .kit-bar::after, .order::after, .itd-trust div::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--brand), var(--accent-2) 35%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  .tile:hover::after, .ben:hover::after, .hb-cats a:hover::after, .kit-bar:hover::after, .order:hover::after, .itd-trust div:hover::after { opacity: 1; }
}
/* sân khấu 3D: khối tối giữa trang sáng, có lưới và góc ngắm */
.h3d { position: relative; height: 330px; border-radius: 24px; overflow: hidden; touch-action: pan-y; cursor: grab; color: #fff;
  background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(120% 90% at 50% 0%, var(--panel-3) 0%, var(--panel) 60%);
  box-shadow: 0 20px 50px var(--shade); }
.h3d:active { cursor: grabbing; }
.h3d::before { content: ""; position: absolute; left: 50%; top: 44%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow-2),.35), rgba(var(--glow),.25) 50%, transparent); filter: blur(30px); }
.h3d::after { content: ""; position: absolute; inset: 12px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(var(--accent-2), var(--accent-2)) 0 0 / 18px 1.5px no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 0 0 / 1.5px 18px no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 100% 0 / 18px 1.5px no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 100% 0 / 1.5px 18px no-repeat; opacity: .8; }
.h3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h3d-tag, .h3d-foot { position: absolute; z-index: 2; background: rgba(var(--panel-rgb),.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12); }
.h3d-tag { top: 24px; left: 24px; display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--ink); pointer-events: none; }
.h3d-tag i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: vtBlink 1.6s ease-in-out infinite; } @keyframes vtBlink { 50% { opacity: .3 } }
.h3d-foot { left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; color: #fff; }
.h3d-foot .grow { flex: 1; min-width: 0; } .h3d-foot small { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.h3d-foot b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .h3d-foot span { font-size: 13px; color: var(--muted); } .h3d-foot span strong { color: #fff; }
.h3d-foot i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
@media (min-width: 900px) { .h3d { height: 460px; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
.lbl, .vt-brands p, .h3d-tag, .h3d-foot small { font-family: var(--font); letter-spacing: .08em; font-weight: 600; }

/* ---------- Khoảnh khắc A: đổi chuyến đi thì đồ bay ra, đồ mới bay vào và "đáp" xuống; giá nhảy số ---------- */
.kit-mat { overflow: hidden; }
.kit-it.wait { opacity: 0; }
.kit-it.in { animation: kitIn .75s cubic-bezier(.2,1.35,.35,1) both; animation-delay: calc(var(--n, 0) * 110ms); }
@keyframes kitIn { 0% { translate: var(--fx) var(--fy); rotate: var(--fr); scale: .5; opacity: 0; } 35% { opacity: 1; } 100% { translate: 0 0; rotate: 0deg; scale: 1; } }
.kit-it.out { translate: var(--fx) var(--fy); rotate: var(--fr); opacity: 0 !important; transition: translate .26s cubic-bezier(.5,0,.9,.4), rotate .26s ease-in, opacity .26s ease-in; }
.kit-bar b { font-variant-numeric: tabular-nums; }
/* ---------- Khoảnh khắc B: hộp 3D được ghim lại khi cuộn, máy tách thành từng phần rồi ráp lại ---------- */
#h3d:has(.h3d) { height: 590px; }
#h3d .h3d { position: sticky; top: 72px; }
.h3d-part { position: absolute; z-index: 2; padding: 5px 10px; border-radius: 8px; background: rgba(var(--panel-rgb),.6); border: 1px solid rgba(var(--glow-2),.55); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
  opacity: calc((var(--ex, 0) - .35) * 3); transform: translateY(calc((1 - var(--ex, 0)) * 10px)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.h3d-part::before { content: ""; position: absolute; top: 50%; width: 26px; height: 1px; background: var(--accent-2); }
.h3d-part.p1 { right: 20px; top: 34%; } .h3d-part.p1::before { right: 100%; }
.h3d-part.p2 { left: 20px; top: 22%; } .h3d-part.p2::before { left: 100%; }
.h3d-part.p3 { left: 20px; top: 54%; } .h3d-part.p3::before { left: 100%; }
@media (min-width: 900px) { #h3d:has(.h3d) { height: 900px; } }
@media (prefers-reduced-motion: reduce) { #h3d:has(.h3d) { height: auto; } .kit-it.in { animation: none; } .kit-it.wait { opacity: 1; } }

/* ---------- Khoảnh khắc C: xem 3D / đặt thử ngoài đời ---------- */
.itd-ar { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 16px; text-align: left; cursor: pointer; color: #fff;
  background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(135deg, var(--panel-2), var(--panel)); box-shadow: 0 12px 30px var(--shade); }
.itd-ar .ar-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.itd-ar .grow { flex: 1; } .itd-ar b { display: block; font-size: 15px; } .itd-ar small { font-size: 12px; color: var(--muted); } .itd-ar svg { width: 18px; height: 18px; color: var(--accent-2); }
.mv { display: block; width: 100%; height: 46dvh; margin-top: 10px; border-radius: 18px; --poster-color: transparent;
  background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(120% 90% at 50% 0%, var(--panel-3) 0%, var(--panel) 60%); }
.mv-ar { position: absolute; left: 12px; right: 12px; bottom: 12px; width: auto; }
.mv-hint { text-align: center; margin-top: 10px; }

/* ---------- Thẻ món nổi bật (17/11): chuyển từ mẫu React chủ gửi sang mã thuần, đổi cam → xanh/lam của Lemme ---------- */
.lux-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 6px 20px 22px; scrollbar-width: none; perspective: 1200px; }
.lux-row::-webkit-scrollbar { display: none; }
.lux { position: relative; flex: none; width: min(78vw, 320px); scroll-snap-align: center; display: flex; flex-direction: column; padding: 20px; border-radius: 24px; overflow: hidden; color: #fff; user-select: none; -webkit-user-select: none;
  background: var(--card); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 44px var(--shade);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.lux.lit { transition: transform .1s ease-out; }
.lux > span { position: relative; z-index: 1; }
.lux-spot, .lux-glare, .lux-glow { position: absolute !important; pointer-events: none; }
.lux-spot { inset: -1px; border-radius: inherit; opacity: 0; transition: opacity .5s; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(var(--glow-2),.28), transparent 42%); z-index: 0 !important; }
.lux.lit .lux-spot { opacity: 1; }
.lux-glow { top: 38%; left: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; filter: blur(60px); opacity: .45; background: radial-gradient(circle, rgba(var(--glow),.9), rgba(var(--glow-2),.5)); transition: opacity .7s, transform .7s; z-index: 0 !important; }
.lux.lit .lux-glow, .lux.seen .lux-glow { opacity: .8; transform: scale(1.12); }
.lux-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.lux-st { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #dbe4f5; font-weight: 500; }
.lux-st i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: vtBlink 1.6s ease-in-out infinite; }
.lux-cat { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lux-img { display: block; margin: 18px 6px; transform: translateZ(45px); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.lux.lit .lux-img, .lux.seen .lux-img { transform: translateZ(45px) scale(1.04); }
.lux-img .thumb { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background-color: var(--panel); box-shadow: 0 26px 34px rgba(0,0,0,.6); }
.lux-body { display: flex; flex-direction: column; gap: 6px; transform: translateZ(20px); }
.lux-t { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.lux.lit .lux-t { color: var(--accent-2); }
.lux-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lux-inc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lux-inc em { font-style: normal; font-size: 11px; padding: 4px 9px; border-radius: 7px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); color: #d5deef; }
.lux-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.lux-foot small { display: block; font-size: 11px; color: var(--muted); } .lux-foot strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; } .lux-foot i { font-style: normal; font-size: 12px; color: var(--muted); }
.lux-btn { flex: none; padding: 9px 14px; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; transition: background .3s, color .3s; }
.lux.lit .lux-btn, .lux:active .lux-btn { background: var(--grad); color: #fff; }
.lux-glare { inset: 0; z-index: 2 !important; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(var(--card-rgb),.8), transparent 60%); }
.lux.lit .lux-glare { opacity: .13; }
.lux.seen:not(.lit) .lux-glare { opacity: .16; background: linear-gradient(115deg, transparent 35%, rgba(var(--card-rgb),.75) 50%, transparent 65%) 0 0 / 300% 100%; animation: luxSweep 1.1s ease-out both; }
@keyframes luxSweep { from { background-position: 100% 0 } to { background-position: 0 0 } }
@media (min-width: 900px) { .lux-row { margin: 0; padding: 6px 0 26px; } .lux { width: 320px; } }
.lux-foot > span:first-child { white-space: nowrap; } .lux-foot strong { font-size: 21px; }
.lux-img .thumb { aspect-ratio: 1; }

/* ---------- 17/11 00:20: câu khẩu hiệu, lớp hạt nhiễu mịn, ảnh PNG tách nền trong thẻ nổi bật ---------- */
.vt-tag { margin: -4px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); } .vt-tag span { color: var(--muted); }
#app::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lux-inc { max-height: 56px; overflow: hidden; }

/* ---------- 17/11: trạng thái trống của sàn (mục B bản giao) ---------- */
.empty.open { margin-top: 18px; padding: 40px 20px; border-radius: 20px; background: var(--card); border: 1px dashed var(--line); }
.empty.open h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.empty-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.empty-act .btn { flex: 0 1 auto; }

/* ---------- 17/11: nút chọn tỉnh, thành → phường, xã trong form mở trang cho thuê (mục D) ---------- */
.pick-area { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; color: var(--muted); }
.pick-area > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-area.set { color: var(--ink); }
.pick-area svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 17/11: đăng đồ — hướng dẫn chụp, danh sách ảnh, chọn ảnh bìa (mục E) ---------- */
.shoot { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--well); font-size: 13px; }
.shoot b { display: block; margin-bottom: 4px; font-size: 14px; }
.shoot ul { margin: 0; padding-left: 18px; color: var(--muted); }
.ph-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ph-list:empty { display: none; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--well); border: 2px solid transparent; }
.ph.cover { border-color: var(--primary); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph b, .ph-cv { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 5px 4px; border: 0; border-radius: 9px; font: inherit; font-size: 11px; font-weight: 700; text-align: center; color: #fff; }
.ph b { background: var(--primary); }
.ph-cv { background: rgba(0,0,0,.62); cursor: pointer; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#phup[hidden] { display: none; }
#phn { margin: 6px 2px 0; }
.fee-hint { margin-top: -6px; }

/* =================== BẢN SÁNG ẤM (17/11, bàn giao 2): nền trắng ấm, thẻ trắng, nhấn cam san hô ===================
   MỌI MÀU CỦA GIAO DIỆN NẰM TRONG KHỐI BIẾN NÀY (thay cho bảng Hello Studio tối cam). Không còn nền tối ở trang nào.
   --accent chỉ dùng cho nút, icon và chữ to từ 18px. Chữ cam cỡ nhỏ và link dùng --accent-text (đủ tương phản trên nền trắng). */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #FAF7F2;      /* nền trang, trắng ấm */
  --card: #FFFFFF;
  --card-2: #F4EFE8;  /* ô phụ, ô nhập */
  --tx: #1C1917;      /* chữ chính */
  --mu: #78716C;      /* chữ phụ */
  --line: #EDE7DF;    /* viền */
  --accent: #FF5A36;  /* nút, icon, chấm logo */
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE9E2;
  --accent-text: #C2410C; /* chữ màu cam cỡ nhỏ, link */
  --ok: #15803D; --warn: #B45309; --bad: #B91C1C;

  /* tên biến cũ của Lemme trỏ về bảng trên, để các lớp CSS phía trên không phải sửa */
  --surface: var(--card); --frame: var(--card); --surface-2: var(--card-2); --well: var(--card-2);
  --panel: var(--card-2); --panel-2: var(--card); --panel-3: var(--card-2);
  --ink: var(--tx); --muted: var(--mu); --line-2: #DDD4C8;
  --brand: var(--accent); --primary: var(--accent); --primary-ink: var(--accent-ink); --primary-soft: var(--accent-soft);
  --accent-2: var(--accent-text); --grad: var(--accent); --solid: var(--accent);
  --danger: var(--bad); --danger-soft: #FDECEC;
  --card-rgb: 255,255,255; --panel-rgb: 255,255,255; --glow: 255,90,54; --glow-2: 255,90,54;
  --shade: rgba(28,25,23,.10); --shadow: 0 8px 28px rgba(28,25,23,.08);
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}
body { background: var(--bg); color: var(--ink); }
body::before, body::after { content: none; }   /* không dùng lưới nền và quầng màu của các bản trước */
a { color: inherit; }
.linkbtn, main a:not(.btn):not(.row):not(.order):not(.tile):not(.verify):not([class]) { color: var(--accent-text); }
/* chữ trên nền nhấn luôn trắng */
.tabs button[aria-pressed="true"], .btn.dark, .stats .money, .msg.mine, .chatbox .msg.mine, .btn.primary, .chip[aria-pressed="true"], .sorts button[aria-pressed="true"], .hb-chips button[aria-pressed="true"] { color: var(--accent-ink); }
.btn.primary { border-radius: 999px; background: var(--accent); box-shadow: 0 8px 20px -8px rgba(var(--glow),.6); }
.btn.arr i { background: var(--card); color: var(--tx); }
.toast { background: var(--card); color: var(--tx); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.toast.err { border-color: var(--bad); color: var(--bad); }
.thumb[class*="bg-"] { background: var(--card-2); }
:root .thumb, :root[data-theme="dark"] .thumb { filter: none; }
.sigs canvas, .sigs.view img { background: #fff; }   /* ô ký: nền trắng, mực đen, lưu vào hợp đồng */
input, select, textarea { color: var(--tx); }
::placeholder { color: var(--mu); opacity: .8; }

/* ---- các khối trước đây nền tối: chuyển sang sáng ---- */
.h3d { background: linear-gradient(rgba(28,25,23,.045) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(28,25,23,.045) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--card-2) 70%); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--tx); }
/* bóng đổ mềm dưới máy ảnh, thay cho quầng sáng của bản tối */
.h3d::before { left: 50%; top: auto; bottom: 26%; width: 240px; height: 34px; margin: 0 0 0 -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(28,25,23,.28), rgba(28,25,23,0)); filter: blur(10px); }
.h3d::after { --c: rgba(28,25,23,.35); background: linear-gradient(var(--c), var(--c)) 0 0 / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px 18px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px 18px no-repeat; opacity: .8; }
.h3d-tag, .h3d-foot, .h3d-part { background: rgba(255,255,255,.82); border: 1px solid var(--line-2); color: var(--tx); }
.h3d-tag { color: var(--mu); }
.h3d-foot, .h3d-foot b, .h3d-foot span strong { color: var(--tx); } .h3d-foot span { color: var(--mu); } .h3d-foot small { color: var(--accent-text); }
.h3d-foot i { background: var(--accent); color: var(--accent-ink); }
.h3d-part { border-color: rgba(var(--glow),.55); } .h3d-part::before { background: var(--accent); }
.vt-cta { background: var(--card); border: 1px solid var(--line); color: var(--tx); box-shadow: var(--shadow); }
.vt-cta b { color: var(--tx); } .vt-cta small { color: var(--mu); }
.vt-cta::before { background: radial-gradient(circle, rgba(var(--glow),.28), rgba(var(--glow),0) 70%); }
.vt-cta i { background: var(--accent); color: var(--accent-ink); }
.lux { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--tx); }
.lux-t, .lux.lit .lux-t, .lux-foot strong { color: var(--tx); } .lux-sub, .lux-foot small, .lux-foot i, .lux-cat, .lux-st { color: var(--mu); }
.lux-inc em { background: var(--card-2); color: var(--tx); border-color: var(--line); }
.lux-btn { background: var(--accent); color: var(--accent-ink); }
.lux-glow { opacity: .18; }
.kit-mat { background-color: var(--card-2); background-image: linear-gradient(rgba(28,25,23,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(28,25,23,.045) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid var(--line); box-shadow: none; }
.kit-l { color: var(--tx); } .kit-r { color: var(--mu); }
.kit-it { background: var(--card); border: 1px solid var(--line-2); }
.itd-ar, .mv { background: var(--card-2); color: var(--tx); border: 1px solid var(--line); }
.lbl i { background: var(--accent); }

/* ---- bộ icon 3D ---- */
.i3d { display: inline-block; flex: none; object-fit: contain; }
/* ô danh mục: icon 3D 60px trên nền thẻ, không viền tròn hay nền màu phía sau */
.hb-cats a, .hb-cats a.combo { background: var(--card); border: 1px solid var(--line); color: var(--tx); }
.hb-cats a.combo small { color: var(--mu); }
.hb-cats .cc-ph, .hb-cats a.combo .cc-ph, .hb-cats a:not(.combo) .cc-ph { background: none; border-radius: 0; aspect-ratio: auto; height: 72px; display: grid; place-items: center; margin-bottom: 4px; }
/* thanh dưới: tab đang chọn icon đủ màu + chữ --tx; tab không chọn xám mờ. Không nhấp nháy, không đổi màu khi rê chuột */
.tabbar a { background: none; color: var(--mu); box-shadow: none; }
.tabbar a .i3d { filter: grayscale(1); opacity: .55; transition: none; }
.tabbar a svg { opacity: .55; }
.tabbar a[aria-current="page"], .tabbar a[aria-current="page"] svg { background: none; color: var(--tx); opacity: 1; }
.tabbar a[aria-current="page"] .i3d { filter: none; opacity: 1; }
.tabbar a[aria-current="page"] span { font-weight: 700; }
.tabbar a:hover .i3d { transition: none; }
/* chuông: số đếm là chấm tròn màu nhấn ở góc trên phải icon */
.hb-ic.bell { position: relative; background: var(--card); border: 1px solid var(--line); }
.dot.bell-n, .hb-ic .dot, .badge, .tabs .n { background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.dot.bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1; }
.dot.bell-n[hidden] { display: none; }
/* trạng thái trống: icon 3D 96px phía trên dòng chữ */
.empty .i3d { display: block; margin: 0 auto 14px; }
.empty.open { margin-top: 18px; padding: 36px 20px; border-radius: 20px; background: var(--card); border: 1px dashed var(--line-2); }

/* ---- bàn giao 2: đăng nhập, điều khoản, báo cáo, thông báo, khu Chủ đồ, nhắc an toàn ---- */
.auth-links { margin: 14px 0 0; text-align: center; }
.check span { flex: 1; }
.terms { margin: 14px 0; padding-left: 22px; display: grid; gap: 12px; } .terms b { font-size: 16px; } .terms p { margin: 2px 0 0; color: var(--mu); }
.terms-page { padding: 4px 4px 40px; }
.report-btn { display: inline-block; margin: 12px 2px 0; font-size: 13px; color: var(--mu); text-decoration: underline; }
.safe { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--tx); font-size: 13.5px; }
.safe b { display: block; margin-bottom: 4px; font-size: 14px; }
.safe ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.safe .check { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.sigs.locked { opacity: .4; pointer-events: none; }
.msg-warn { align-self: stretch; margin: 2px 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--tx); font-size: 12.5px; text-align: center; }
.reply-line { margin: 10px 2px 0; font-size: 13px; color: var(--mu); }
.trustrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.trustrow span { padding: 4px 10px; border-radius: 999px; background: var(--card-2); font-size: 12.5px; color: var(--tx); }
.trustrow .ok { background: #E7F5EC; color: var(--ok); font-weight: 600; } .trustrow .no { color: var(--warn); }
.ntf-top { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 10px; font-size: 13px; color: var(--mu); }
.row.ntf { align-items: flex-start; gap: 10px; } .row.ntf b { display: block; font-size: 14px; } .row.ntf .grow > div:first-of-type { font-size: 14px; color: var(--mu); }
.ntf-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: transparent; }
.row.ntf.un .ntf-dot { background: var(--accent); } .row.ntf.un .grow > div:first-of-type { color: var(--tx); }
.owner-link { display: flex; align-items: center; gap: 12px; }
.own-head { display: flex; align-items: center; gap: 12px; margin: 4px 2px 0; } .own-head b { font-size: 19px; }
.own-wait { margin-top: 10px; padding: 12px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.own-item { display: flex; gap: 12px; align-items: center; } .own-item .thumb { width: 64px; flex: none; border-radius: 12px; aspect-ratio: 1; }
.own-item .sub { font-size: 13px; color: var(--mu); } .own-rent { flex: none; font-size: 16px; }
.own-timer { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; } .own-timer.late { color: var(--bad); }
.own-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.own-none { margin: 6px 4px; }
.st.returned { color: var(--ok); }   /* trước đây xanh lam */
.tabbar a svg, .tabbar a[aria-current="page"] svg { stroke: currentColor; fill: none; }   /* icon nét của tab Trang chủ theo màu chữ */
/* D5–D7: cài đặt thông báo, món bị gỡ */
.setrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.setrow span { display: grid; } .setrow small { color: var(--mu); font-size: 13px; }
.removed-note { margin: 6px 2px 0; color: var(--bad); font-size: 12.5px; }
/* ---- trả lời 14 câu hỏi (17/11) ---- */
/* chuông ở đầu mọi trang */
.topbar .hb-ic.bell.in-top, .mall-head .hb-ic.bell.in-top { flex: none; margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; position: relative; }
.mall-head .hb-ic.bell.in-top { margin-left: 8px; }
.hb-ic.bell.circle { position: relative; display: grid; place-items: center; }
/* tên danh mục trên điện thoại không bị cắt: cho xuống 2 dòng, ô cao đều nhau */
.hb-cats a { justify-content: flex-start; }
.hb-cats b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; text-wrap: balance; }
.hb-cats small { min-height: 1.3em; }
.hb-cats small:empty { visibility: hidden; }
.hb-ic.bell.in-me { flex: none; position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
/* ---- bàn giao 3: trang quản trị (#/admin). Máy tính: thanh bên trái; điện thoại: thanh tab cuộn ngang ---- */
main.adm-wide { max-width: 1280px; }
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-nav { position: sticky; top: 76px; display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--mu); }
.adm-nav a[aria-current="page"] { background: var(--card-2); color: var(--tx); }
.adm-nav a .i3d { filter: grayscale(1); opacity: .6; } .adm-nav a[aria-current="page"] .i3d { filter: none; opacity: 1; }
.adm-main { min-width: 0; }
.adm-top { position: relative; display: flex; gap: 10px; align-items: center; }
.adm-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.adm-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--mu); stroke-width: 1.8; stroke-linecap: round; }
.adm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; }
.adm-bell { flex: none; position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.adm-bell .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; } .adm-bell .dot[hidden] { display: none; }
.adm-results { position: absolute; z-index: 20; left: 0; right: 54px; top: 50px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.adm-results a { display: grid; padding: 8px 10px; border-radius: 8px; } .adm-results a:hover { background: var(--card-2); } .adm-results span { font-size: 13px; color: var(--mu); } .adm-results .hint { margin: 8px 10px; }
.adm-h { display: flex; align-items: center; gap: 10px; margin: 16px 2px 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .adm-h small { font-size: 13px; font-weight: 500; color: var(--mu); }
.adm-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.adm-tiles > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.adm-tiles span { font-size: 12.5px; color: var(--mu); } .adm-tiles b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; } .adm-tiles small { font-size: 12px; color: var(--mu); }
.adm-tnote { margin: 8px 2px 0; }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.adm-row .grow { flex: 1 1 200px; min-width: 0; } .adm-row small { display: block; font-size: 12.5px; color: var(--mu); font-weight: 400; } .adm-row em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.adm-row.hl { border-color: var(--accent); } .adm-row .avatar { flex: none; }
.adm-item-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.input.sm { height: 36px; padding: 0 10px; font-size: 13.5px; width: auto; max-width: 100%; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--mu); } .adm-filters label { display: flex; align-items: center; gap: 6px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .adm-actions .btn { height: 40px; }
.adm-board { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.adm-col { min-width: 0; padding: 10px; border-radius: 14px; background: var(--card-2); } .adm-col h4 { margin: 0 0 8px; font-size: 13px; } .adm-col h4 small { color: var(--mu); font-weight: 500; }
.adm-card { display: grid; gap: 2px; margin-top: 6px; padding: 9px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--mu); }
.adm-card b { font-size: 13.5px; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .adm-card i { font-style: normal; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; } .adm-card i.late { color: var(--bad); }
.adm-feed { border-radius: 14px; background: var(--card); border: 1px solid var(--line); max-height: 420px; overflow: auto; }
.adm-feed a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13.5px; } .adm-feed a:first-child { border-top: 0; } .adm-feed small { flex: none; color: var(--mu); font-size: 12px; }
.adm-feed i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mu); } .adm-feed i.k-report { background: var(--bad); } .adm-feed i.k-order, .adm-feed i.k-respond { background: var(--accent); } .adm-feed i.k-return { background: var(--ok); }
.adm-note { margin: 8px 0; font-size: 14px; } .adm-note small { display: block; color: var(--mu); font-size: 12px; }
.adm-id3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; } .adm-id3 figure { margin: 0; } .adm-id3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; background: var(--card-2); } .adm-id3 figcaption { font-size: 12px; color: var(--mu); text-align: center; margin-top: 4px; }
.adm-idph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.adm-chat { margin-top: 10px; } .adm-thread { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); font-size: 13.5px; } .adm-thread p { margin: 6px 0 0; } .adm-thread em { font-style: normal; font-weight: 700; } .adm-thread small { color: var(--mu); margin-left: 6px; font-size: 12px; }
.adm-cat { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .adm-cat .input { flex: 1; } .adm-cat input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.adm-log > div { display: grid; grid-template-columns: 96px 150px 1fr; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 13.5px; } .adm-log small { color: var(--mu); } .adm-log em { font-style: normal; font-size: 11px; color: var(--mu); } .adm-log code { font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--card-2); } .adm-log i { color: var(--mu); }
@media (max-width: 1100px) { .adm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .adm { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .adm-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; } .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav a { flex: none; white-space: nowrap; padding: 8px 12px; }
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-log > div { grid-template-columns: 1fr; gap: 2px; }
  .adm-results { right: 0; }
}
@media (max-width: 899px) { .adm { padding: 0 12px; } }
/* quản trị: nút về app của người dùng ở đầu thanh bên */
.adm-nav a.adm-home { font-weight: 700; color: var(--accent-text); border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 2px; }
@media (max-width: 899px) { .adm-nav a.adm-home { border-bottom: 0; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; margin: 0; } }

/* ---- bàn giao 4: liên kết chính sách, dòng phí giữ chỗ (chỉ bố cục và cỡ chữ, dùng lại màu sẵn có) ---- */
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 4px; font-size: 13px; }
.policy-links a { color: var(--mu); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.home-foot { margin: 22px 12px 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.policy-more { margin: -8px 0 16px; }
.kv.bfee { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.bfee-link { display: inline-block; font-size: 12px; color: var(--mu); text-decoration: underline; text-underline-offset: 3px; padding: 2px 0 4px; }
.del-list { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.trustrow.rep { margin: 10px 0 0; }
.bfee-note { font-size: 12px; color: var(--mu); padding: 0 0 4px; } .bfee-note .bfee-link { padding: 0; }

/* ---- trang chủ dạng website (20/11): menu trên, khối Cách thuê, chủ đồ, hỏi đáp, chân trang. Chỉ dùng màu có sẵn. ---- */
.hm-nav, .hm-acct, .hm-post { display: none; }
.hm-top { display: contents; }
.hm-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; font-weight: 600; color: var(--tx); }
.hm-facts li { display: inline-flex; align-items: center; gap: 6px; } .hm-facts svg { width: 16px; height: 16px; stroke: var(--accent); flex: none; }
.hm-sec { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; scroll-margin-top: 76px; }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px 16px; border-radius: 14px; background: var(--card); box-shadow: 0 4px 20px rgba(26,26,46,.06); }
.hm-steps i { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font: 800 20px/1 var(--display); font-style: normal; }
.hm-steps b { font-size: 16px; font-weight: 700; line-height: 1.3; align-self: end; } .hm-steps span { font-size: 14px; line-height: 1.5; color: var(--mu); }
.ben span { font-size: 14px; line-height: 1.5; }
.hm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hm-owner { margin-top: 56px; padding: 44px 0; background: var(--accent-soft); scroll-margin-top: 60px; }
.hm-owner .hm-wrap, .hm-faq .hm-wrap { display: grid; gap: 24px; }
.hm-owner-l { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; } .hm-owner-l .hb-h2 { margin: 4px 0 0; } .hm-owner-l p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx); }
.hm-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; margin-top: 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.hm-btn svg { width: 18px; height: 18px; } .hm-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--glow),.3); } .hm-btn:active { transform: translateY(0) scale(.98); }
.hm-owner-r { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-owner-r li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--card); }
.hm-owner-r svg { width: 22px; height: 22px; stroke: var(--accent); flex: none; margin-top: 1px; } .hm-owner-r b { display: block; font-size: 15px; font-weight: 700; } .hm-owner-r span { font-size: 14px; line-height: 1.5; color: var(--mu); } .hm-owner-r b { color: var(--tx); }
.hm-faq { padding: 52px 0 12px; scroll-margin-top: 60px; } .hm-faq-l .hb-h2 { margin: 10px 0 0; }
.hm-faq details { border-bottom: 1px solid var(--line-2); }
.hm-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-size: 16px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary svg { width: 20px; height: 20px; flex: none; stroke: var(--accent); transition: transform .25s var(--ease); } .hm-faq details[open] summary svg { transform: rotate(45deg); }
.hm-faq details p { margin: 0 0 18px; max-width: 62ch; font-size: 15px; line-height: 1.6; color: var(--mu); } .hm-faq details p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.hm-foot.home-foot { margin: 44px 0 0; padding: 40px 0 24px; border-top: 1px solid var(--line); background: var(--card); }
.hm-foot .hm-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.hm-foot-b { grid-column: 1 / -1; } .hm-foot-b p { margin: 8px 0 0; max-width: 36ch; font-size: 14px; line-height: 1.55; color: var(--mu); }
.hm-foot h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--tx); }
.hm-foot .hm-wrap > div:not(.hm-foot-b) a { display: block; padding: 7px 0; font-size: 14px; color: var(--mu); text-decoration: none; } .hm-foot .hm-wrap > div:not(.hm-foot-b) a:hover { color: var(--accent-text); }
.hm-foot .policy-links { display: block; margin: 0; }
.hm-copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mu); }
@media (min-width: 900px) {
  #app:has(.vt-top) { max-width: none; }
  .vt-top { height: 68px; padding: 0 max(24px, calc((100% - 1120px) / 2 + 20px)); gap: 10px; }
  .vt-top .hb-logo { flex: none; margin-right: 18px; }
  .hm-nav { display: flex; flex: 1; align-items: center; gap: 4px; }
  .hm-nav a, .hm-nav button { height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--tx); font: 600 14px/40px var(--font); cursor: pointer; transition: background .2s ease; }
  .hm-nav a:hover, .hm-nav button:hover { background: var(--card-2); }
  .vt-top .vt-loc { flex: none; margin: 0; padding: 0 14px; }
  .hm-acct { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 12px; color: var(--tx); font-size: 14px; font-weight: 600; } .hm-acct:hover { background: var(--card-2); }
  .hm-post { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; transition: transform .2s var(--ease); } .hm-post:hover { transform: translateY(-2px); } .hm-post:active { transform: scale(.97); }
  .hb { max-width: 1120px; gap: 20px; }
  .hm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .hm-top .vt-hero { position: sticky; top: 108px; align-items: flex-start; text-align: left; padding-top: 48px; gap: 18px; }
  .hm-top .hb-h1 { font-size: 54px; text-align: left; } .hm-top .vt-tag { font-size: 18px; }
  .hm-facts { justify-content: flex-start; font-size: 14px; gap: 8px 20px; margin-top: 8px; }
  .hm-top #h3d:has(.h3d) { height: 640px; } .hb-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0 0 2px; overflow: visible; } .hb-cats a { width: auto; } .hm-top .h3d { height: 520px; top: 92px; }
  .hm-sec { margin-top: 56px; gap: 22px; } .hb-h2 { font-size: 38px; }
  .hm-steps { grid-template-columns: repeat(4, 1fr); gap: 14px; } .hm-steps li { grid-template-columns: 1fr; padding: 24px 22px; row-gap: 8px; } .hm-steps i { grid-row: auto; margin-bottom: 10px; }
  .vt-ben { gap: 14px; } .ben { padding: 24px 22px; }
  #feed { max-width: 1120px; margin: 0 auto; } #feed .grid2 { grid-template-columns: repeat(4, 1fr); margin: 8px 20px 0; }
  .hm-owner { margin-top: 88px; padding: 80px 0; } .hm-owner .hm-wrap { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .hm-owner-l p { font-size: 17px; max-width: 44ch; } .hm-owner-r { grid-template-columns: 1fr 1fr; gap: 14px; } .hm-owner-r li { flex-direction: column; padding: 22px; }
  .hm-faq { padding: 88px 0 24px; } .hm-faq .hm-wrap { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } .hm-faq-l { position: sticky; top: 100px; } .hm-faq summary { font-size: 18px; min-height: 68px; }
  .hm-foot.home-foot { margin-top: 72px; padding: 56px 0 28px; } .hm-foot .hm-wrap { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px 32px; } .hm-foot-b { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .hm-btn, .hm-post, .hm-faq summary svg { transition: none; } }

/* ---- khung trang máy tính (20/11): thanh bên nổi, thanh trên, nút sáng tối, bảng thông báo ---- */
.dk-top { display: none; }
.th-sw { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.th-sw button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--mu); font: 600 13px/1 var(--font); cursor: pointer; transition: background .2s ease, color .2s ease; }
.th-sw button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.th-sw svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vt-top .th-sw { display: none; }
.row.th-row { align-items: center; }
.ntf-pop { position: fixed; z-index: 40; width: 380px; max-height: min(560px, calc(100dvh - 100px)); overflow-y: auto; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 60px var(--shade), 0 2px 8px var(--shade); animation: ntfIn .22s var(--ease); }
@keyframes ntfIn { from { opacity: 0; transform: translateY(-8px); } }
.ntf-pop-h { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 10px; } .ntf-pop-h b { font: 800 18px/1.2 var(--display); letter-spacing: -.02em; } .ntf-pop-h span { font-size: 13px; color: var(--mu); }
.ntf-pop-r { display: flex; gap: 12px; padding: 12px 18px; color: var(--tx); border-top: 1px solid var(--line); transition: background .15s ease; } .ntf-pop-r:hover { background: var(--card-2); }
.ntf-pop-r i { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; } .ntf-pop-r.un i { background: var(--accent); }
.ntf-pop-r span { min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--mu); } .ntf-pop-r b { display: block; font-size: 14px; font-weight: 700; color: var(--tx); } .ntf-pop-r small { display: block; margin-top: 3px; font-size: 12px; }
.ntf-pop-e { margin: 0; padding: 18px; font-size: 14px; color: var(--mu); border-top: 1px solid var(--line); }
.ntf-pop-all { display: block; padding: 14px 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-text); }
@media (min-width: 900px) {
  /* thanh bên nổi: chỉ icon, rê chuột vào thì mở rộng hiện chữ */
  .tabbar { left: 16px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: 68px; max-width: none; height: auto; display: grid; grid-template-columns: 1fr !important; gap: 6px; padding: 10px 8px; border-radius: 24px; overflow: hidden; z-index: 20; background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 18px 44px var(--shade), 0 0 0 1px var(--line); transition: width .28s var(--ease), box-shadow .28s ease; }
  .tabbar:hover, .tabbar:focus-within { width: 196px; box-shadow: 0 26px 60px var(--shade), 0 0 0 1px var(--line); }
  .tabbar a { position: relative; flex-direction: row; justify-content: flex-start; gap: 14px; height: 52px; padding: 0 12px; border-radius: 16px; white-space: nowrap; }
  .tabbar a span { font-size: 14px; opacity: 0; transition: opacity .2s ease; } .tabbar:hover a span, .tabbar:focus-within a span { opacity: 1; }
  .tabbar a .i3d { flex: none; }
  .tabbar a:hover { background: var(--card-2); } .tabbar a[aria-current="page"] { background: var(--accent-soft); color: var(--tx); }
  .tabbar .badge { position: absolute; left: 32px; top: 5px; }
  main, main.no-nav { padding-bottom: 48px; } #app:has(.vt-top) main { padding-bottom: 0; }
  /* thanh trên */
  .dk-top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 16px; background: rgba(var(--card-rgb), .82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); }
  .dk-top .hb-logo { flex: none; margin-right: 14px; }
  .dk-search { flex: 1; max-width: 440px; margin-right: auto; }
  .dk-search label { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--card-2); color: var(--mu); border: 1px solid transparent; transition: border-color .2s ease; } .dk-search label:focus-within { border-color: var(--accent); }
  .dk-search svg { width: 18px; height: 18px; flex: none; } .dk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--tx); }
  .vt-top .th-sw { display: inline-flex; }
  .topbar, .mall-head, .sorts { top: 68px; } .suggest-h { top: 128px; } .chathead { top: 124px; } .itd-gal { top: 84px; } .adm-nav { top: 144px; }
  .topbar .hb-ic.bell.in-top { display: none; }
}
@media (min-width: 900px) and (max-width: 1339px) { body { padding-left: 92px; } }
@media (prefers-reduced-motion: reduce) { .tabbar, .tabbar a span, .ntf-pop { transition: none; animation: none; } }

/* ---- bảng màu tối: người dùng tự bật bằng nút Sáng / Tối, mặc định vẫn là sáng ---- */
:root[data-theme="dark"] {
  --bg: #141210; --card: #1F1B18; --card-2: #2A2521; --tx: #F5F0EA; --mu: #ADA59D; --line: #342E29; --line-2: #443C35;
  --accent: #FF6A47; --accent-ink: #FFFFFF; --accent-soft: #3B2219; --accent-text: #FF9E80;
  --ok: #5CCF86; --warn: #F0B259; --bad: #F27070; --danger-soft: #3A1C1F;
  --card-rgb: 31,27,24; --panel-rgb: 31,27,24; --shade: rgba(0,0,0,.45); --shadow: 0 8px 28px rgba(0,0,0,.45);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--tx); }
.hm-nav a, .hm-nav button { white-space: nowrap; }
:root[data-theme="dark"] .h3d-tag, :root[data-theme="dark"] .h3d-foot, :root[data-theme="dark"] .h3d-part { background: rgba(var(--card-rgb), .82); }
@media (min-width: 900px) { .tabbar { grid-template-columns: minmax(0, 1fr) !important; } .tabbar a { min-width: 0; overflow: hidden; } .itd .hb-ic.bell, .floatbar .hb-ic.bell { display: none; } }
.hm-acct, .hm-post { white-space: nowrap; flex: none; }
.bg-fashion { background: linear-gradient(145deg, var(--well), var(--accent-soft)); }
.cc-line { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-qr { display: block; width: 220px; height: 220px; margin: 12px auto; border-radius: 12px; background: #fff; }
.self-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--card-2); font-size: 13px; line-height: 1.5; color: var(--tx); }
.self-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke: var(--accent); } .self-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
main > .self-note { margin: 10px 12px 0; }
.hm-note { margin: -6px 0 0; max-width: 70ch; font-size: 14px; line-height: 1.55; color: var(--mu); }

/* ---- Trung tâm điều phối (21/11): ô số liệu, bảng công tắc, hàng duyệt món. Dùng được trên điện thoại. ---- */
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.hub-tile { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--tx); min-height: 96px; }
.hub-tile span { font-size: 12.5px; color: var(--mu); } .hub-tile b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; } .hub-tile small { font-size: 12px; color: var(--mu); line-height: 1.35; }
.hub-tile.warn { border-color: var(--accent); background: var(--accent-soft); } .hub-tile.warn b { color: var(--accent-text); }
a.hub-tile { transition: transform .2s var(--ease); } a.hub-tile:hover { transform: translateY(-2px); }
.hub-sw { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hub-sw .grow { flex: 1; min-width: 0; } .hub-sw b { display: block; font-size: 15px; } .hub-sw small { display: block; font-size: 13px; line-height: 1.45; color: var(--mu); } .hub-sw small i { font-style: normal; color: var(--accent-text); }
.hub-sw.off b { color: var(--mu); }
.hub-phase { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--mu); white-space: nowrap; } .hub-phase.p2 { background: var(--accent-soft); color: var(--accent-text); }
.hub-toggle { flex: none; position: relative; width: 52px; height: 32px; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .2s ease; }
.hub-toggle i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.hub-toggle[aria-checked="true"] { background: var(--accent); } .hub-toggle[aria-checked="true"] i { transform: translateX(20px); }
.hub-toggle:disabled { opacity: .45; cursor: not-allowed; }
.hub-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hub-links a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--card-2); color: var(--tx); font-size: 14px; font-weight: 600; }
.rv-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; } .rv-photos img { flex: none; width: 132px; height: 132px; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: var(--card-2); }
.rv-video { display: block; width: 100%; max-width: 420px; max-height: 320px; margin: 8px 0; border-radius: 12px; background: #000; }
.rv-item h3 { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .hub-toggle, .hub-toggle i, a.hub-tile { transition: none; } }
.pa-sub { margin: 12px 4px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mu); }
.pa-row.sg small { display: block; font-size: 12px; font-weight: 400; color: var(--mu); }
