/* Đặt lại mặc định trình duyệt */
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: two views. Home = hero search, category grid, latest cards. Listings (#danh-sach) = filter sidebar + result rows; on phones the sidebar becomes a bottom sheet. Detail (#tin-<id>) = content column + sticky contact card; on phones a fixed contact bar. Guides (#tin-tuc, #bai-<slug>) = magazine list + reading column with sticky table of contents. */
:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --fg: #16231f;
  --muted: #5b6b66;
  --line: #dbe3e0;
  --accent: #0e6e5c;
  --accent-fg: #ffffff;
  --accent-soft: #dcefe9;
  --hot: #d9542f;
  --price: #b2401d;
  --hero: #0b3f35;
  --font-display: "Lexend", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1614; --surface: #17211e; --fg: #e5eeeb; --muted: #97a8a2; --line: #2a3733;
    --accent: #3fb69c; --accent-fg: #06201a; --accent-soft: #173a32; --hot: #f07a55; --price: #f39a7a; --hero: #0f2f29;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1614; --surface: #17211e; --fg: #e5eeeb; --muted: #97a8a2; --line: #2a3733;
  --accent: #3fb69c; --accent-fg: #06201a; --accent-soft: #173a32; --hot: #f07a55; --price: #f39a7a; --hero: #0f2f29;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 10px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); }
.brand b { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand b span, .foot-brand b span { color: var(--accent); }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-fg); stroke-width: 2; stroke-linejoin: round; }
.nav { display: flex; gap: 20px; font-size: 14.5px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.btn { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
a.btn { text-decoration: none; display: inline-block; text-align: center; }
.btn.hot { background: var(--hot); color: #fff; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.light { background: #fff; color: #0b3f35; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

.hero { background: var(--hero); color: #f1fbf8; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .09) 1px, transparent 0); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero-in { position: relative; padding-block: 52px 44px; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fd8c6; }
.hero-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.15; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }
.hero-title em { font-style: normal; color: #ffb08f; }
.hero-sub { margin: 0; max-width: 58ch; color: #c5e3db; font-size: 16px; }
.search { margin-top: 10px; display: flex; align-items: center; gap: 6px; background: #fff; color: #16231f; border-radius: 14px; padding: 7px 7px 7px 14px; box-shadow: 0 12px 30px rgb(0 0 0 / .22); max-width: 860px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; outline: none; font-size: 16px; color: #16231f; }
.search select { border: 0; background: transparent; padding: 10px 4px; outline: none; font-size: 15px; color: #16231f; max-width: 200px; color-scheme: light; }
.s-ico svg { width: 20px; height: 20px; fill: none; stroke: #5b6b66; stroke-width: 2; stroke-linecap: round; display: block; }
.s-div { width: 1px; height: 28px; background: #dbe3e0; margin-inline: 6px; }
.s-btn { padding: 12px 22px; border-radius: 10px; background: #0e6e5c; color: #fff; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: #a9cfc5; }
.popular button { border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .06); color: #eaf7f3; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13.5px; }
.popular button:hover { background: rgb(255 255 255 / .14); }

.sec { padding-block: 32px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2, .bar h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 14px; cursor: pointer; text-align: left; font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0; transition: border-color .12s, transform .12s; }
.cat:hover { border-color: var(--c); transform: translateY(-1px); }
.cat i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.cat i svg, .thumb .ph svg { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat i svg { width: 24px; height: 24px; }
.cat small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cat[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nav { display: none; } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .cat { padding: 12px 10px; font-size: 13px; } .cat small { display: none; } }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.cta { margin-block: 32px 40px; background: var(--hero); color: #f1fbf8; border-radius: 16px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.cta p { margin: 0; color: #c5e3db; }
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-block: 32px 20px; }
.foot-brand b { font-family: var(--font-display); font-size: 20px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; max-width: 32ch; }
.foot h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot ul button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--fg); text-align: left; }
.foot ul button:hover { color: var(--accent); }
.foot-note { color: var(--muted); font-size: 12.5px; padding-block: 14px 28px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 34px 14px; scroll-margin-top: 70px; }
.bar h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0; text-wrap: balance; }
.bar .count { color: var(--muted); font-size: 13px; font-weight: 400; font-family: var(--font-body); }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.tabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.sort { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 8px; font-size: 13px; }

.notice { margin-block: 4px 10px; padding: 10px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--fg); font-size: 14px; }
.notice[data-kind="warn"] { background: color-mix(in oklab, var(--hot) 16%, var(--surface)); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; padding-bottom: 40px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .12s, box-shadow .12s; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in oklab, var(--fg) 10%, transparent); }
.thumb { aspect-ratio: 4 / 3; max-width: 100%; position: relative; background: color-mix(in oklab, var(--c) 16%, var(--surface)); display: grid; place-items: center; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .tag { z-index: 1; }
.thumb .ph { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: color-mix(in oklab, var(--c) 14%, var(--surface)); }
.thumb .ph svg { width: 34px; height: 34px; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.tag.off { left: auto; right: 8px; color: var(--hot); }
.body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.body h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--price); font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; color: var(--muted); }
.meta { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.meta span:last-child { flex: none; white-space: nowrap; }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }
.empty b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--fg); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
.dlg-head { position: sticky; top: 0; background: var(--surface); display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); z-index: 1; }
.dlg-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.x { border: 0; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.dlg-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { form .row { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; min-width: 0; }
label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field { border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--bg); font-weight: 400; font-size: 15px; width: 100%; }
.field:focus { border-color: var(--accent); outline: none; }
textarea.field { min-height: 110px; resize: vertical; }
.price-row { display: flex; gap: 8px; }
.price-row .field:first-child { flex: 1; min-width: 0; }
.price-row select { width: auto; }
.form-err { color: var(--hot); font-size: 14px; margin: 0; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; }

.d-hero { aspect-ratio: 21 / 9; max-width: 100%; border-radius: var(--r); }
.d-hero .ph { width: 88px; height: 88px; } .d-hero .ph svg { width: 46px; height: 46px; }
.d-title { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; text-wrap: balance; }
.d-price { font-size: 20px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.d-desc { white-space: pre-wrap; margin: 0; line-height: 1.6; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--bg); border-radius: var(--r); }
.contact .who { flex: 1; min-width: 150px; }
.contact .who b { display: block; }
.contact .phone { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .02em; user-select: all; font-variant-numeric: tabular-nums; }
.owner-tools { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 14px; z-index: 20; }
footer { color: var(--muted); font-size: 12.5px; padding-block: 0 32px; }

/* Listings page */
.lhead { background: var(--surface); border-bottom: 1px solid var(--line); }
.lhead-in { padding-block: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--fg); font-weight: 500; }
.lsearch { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 5px 5px 5px 12px; background: var(--bg); max-width: 860px; }
.lsearch:focus-within { border-color: var(--accent); }
.lsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 8px 4px; font-size: 15px; }
.lsearch select { border: 0; border-left: 1px solid var(--line); background: transparent; outline: none; padding: 8px 8px; max-width: 190px; }
.lsearch .s-ico svg { stroke: var(--muted); }
.lsearch .btn { border-radius: 9px; }

.lbody { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 22px 48px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.f-head { display: none; }
.f-group { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.f-group h3 { margin: 0 0 2px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.f-cat { width: calc(100% + 16px); display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.f-cat:hover { background: var(--bg); }
.f-cat i { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.f-cat i svg { width: 16px; height: 16px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-cat span { flex: 1; min-width: 0; }
.f-cat small { color: var(--muted); font-variant-numeric: tabular-nums; }
.f-cat[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.f-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.f-ranges button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; }
.f-ranges button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.f-minmax { display: flex; align-items: center; gap: 6px; }
.f-minmax input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 9px; background: var(--bg); font-size: 14px; }
.f-minmax input:focus { border-color: var(--accent); outline: none; }
.chk { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 14px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.f-foot { padding: 14px 18px; display: flex; gap: 8px; }
.f-foot .apply { display: none; }

.r-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.r-top h1 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.r-top p { margin: 0; color: var(--muted); font-size: 14px; }
.r-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.r-bar .grow { flex: 1; }
.filter-btn { display: none; align-items: center; gap: 6px; }
.filter-btn svg, .view-tg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter-btn b { background: var(--accent); color: var(--accent-fg); border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding-inline: 5px; }
.view-tg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-tg button { border: 0; background: var(--surface); color: var(--muted); padding: 6px 9px; cursor: pointer; display: grid; place-items: center; }
.view-tg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 18%, transparent); font-size: 13px; line-height: 1; }
.chip.clear { border-color: transparent; background: transparent; color: var(--muted); padding-right: 10px; }
#lNotice { margin-top: 12px; }

.rows { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.rows.grid { display: grid; gap: 14px; padding-bottom: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ritem { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ritem:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 6px 18px color-mix(in oklab, var(--fg) 8%, transparent); }
.ritem .thumb { border-radius: 10px; aspect-ratio: 4 / 3; }
.r-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-block: 2px; }
.r-cat { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--c); }
.r-cat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.r-main h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.r-desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.r-meta span { display: inline-flex; align-items: center; gap: 4px; }
.r-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.r-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; border-left: 1px solid var(--line); padding-left: 16px; text-align: right; }
.r-side .price { font-size: 18px; }
.r-who { font-size: 13px; color: var(--muted); }
.r-who b { display: block; color: var(--fg); font-weight: 600; font-size: 14px; }
.r-side .btn { width: 100%; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.more:empty { display: none; }
.sec-head a.link { text-decoration: none; }

@media (max-width: 1080px) { .ritem { grid-template-columns: 180px minmax(0, 1fr) 170px; } }
@media (max-width: 900px) {
  .lbody { grid-template-columns: minmax(0, 1fr); padding-block: 16px 40px; }
  .filters { position: fixed; inset: 0; z-index: 30; border-radius: 0; border: 0; max-height: none; padding-bottom: env(safe-area-inset-bottom, 0px); padding-top: env(safe-area-inset-top, 0px); transform: translateY(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; display: flex; flex-direction: column; }
  .filters.open { transform: none; visibility: visible; transition: transform .22s ease; }
  .f-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .f-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
  .f-scroll { flex: 1; overflow: auto; }
  .f-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); }
  .f-foot .apply { display: inline-block; flex: 1; }
  .filter-btn { display: inline-flex; }
  .r-bar .tabs { order: 5; }
}
@media (max-width: 640px) {
  .lsearch { flex-wrap: wrap; padding: 5px; }
  .lsearch input { flex: 1 1 calc(100% - 40px); }
  .lsearch select { flex: 1; border-left: 0; max-width: none; border-top: 1px solid var(--line); }
  .r-top h1 { font-size: 20px; }
  .ritem { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 12px; }
  .ritem .thumb { aspect-ratio: 1; }
  .ritem .thumb .ph { width: 48px; height: 48px; border-radius: 14px; } .ritem .thumb .ph svg { width: 26px; height: 26px; }
  .ritem .tag { font-size: 10px; top: 6px; left: 6px; padding: 1px 6px; }
  .r-main h3 { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .r-desc, .r-who, .r-side .btn { display: none; }
  .r-side { grid-column: 2; border: 0; padding: 0; flex-direction: row; align-items: center; margin-top: -6px; }
  .r-side .price { font-size: 15px; }
  .r-meta { font-size: 12px; }
  .r-meta .r-time { display: none; }
  .rows.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Detail page */
.dv-body { padding-block: 18px 56px; display: flex; flex-direction: column; gap: 18px; }
.dv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.dv-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.panel h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.dv-gallery { padding: 10px; }
.dv-gallery .thumb { aspect-ratio: 16 / 9; border-radius: 10px; }
.dv-gallery .ph { width: 96px; height: 96px; border-radius: 26px; } .dv-gallery .ph svg { width: 50px; height: 50px; }
.dv-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in oklab, var(--c) 12%, var(--surface)); border-radius: 999px; padding: 3px 10px 3px 4px; }
.dv-pill i { width: 20px; height: 20px; display: grid; place-items: center; }
.dv-pill svg { width: 14px; height: 14px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv-title { margin: 10px 0 6px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.dv-price { font-size: 26px; }
.dv-price .price small { font-size: 16px; }
.dv-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.dv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dv-meta svg, .tips svg, .side-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; min-width: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.tips { background: color-mix(in oklab, var(--hot) 7%, var(--surface)); border-color: color-mix(in oklab, var(--hot) 25%, var(--line)); }
.tips ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tips li { display: flex; gap: 8px; } .tips li svg { color: var(--hot); margin-top: 3px; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); display: flex; flex-direction: column; gap: 14px; }
.who-card { display: flex; flex-direction: column; gap: 14px; }
.who-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; flex: none; }
.who-row b { display: block; font-size: 16px; }
.who-row small { color: var(--muted); font-size: 13px; }
.phone-box { display: flex; flex-direction: column; gap: 8px; }
.phone-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: .03em; text-align: center; padding: 10px; border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; user-select: all; }
.btn.block { width: 100%; padding: 12px 16px; font-size: 15px; }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.side-note { display: flex; gap: 8px; color: var(--muted); font-size: 13px; margin: 0; }
.owner-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.related .grid { padding-bottom: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.callbar { display: none; }
.dv-missing { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dv-missing h1 { margin: 0; font-family: var(--font-display); font-size: 22px; }
@media (max-width: 900px) {
  .dv-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side .phone-box { display: none; }
  .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #detailView { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .callbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px color-mix(in oklab, var(--fg) 8%, transparent); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .callbar .cb-price { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
  .callbar .cb-price .price { display: block; font-size: 17px; }
  .callbar .btn { padding: 12px 18px; font-size: 15px; }
}
@media (max-width: 640px) {
  .panel { padding: 16px; }
  .dv-gallery { padding: 0; overflow: hidden; } .dv-gallery .thumb { border-radius: 0; aspect-ratio: 4 / 3; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .dv-price { font-size: 22px; }
  .dv-body { gap: 12px; padding-top: 12px; }
  .crumbs.dv-crumbs { display: none; }
}
/* Guides (news) */
.nhead { background: var(--surface); border-bottom: 1px solid var(--line); }
.nhead-in { padding-block: 28px 0; display: flex; flex-direction: column; gap: 6px; }
.nhead h1 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.nhead p { margin: 0; color: var(--muted); max-width: 62ch; }
.ntabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 14px; scrollbar-width: none; }
.ntabs button { flex: none; border: 0; background: none; padding: 10px 14px; font-weight: 500; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; }
.ntabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.nbody { padding-block: 26px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.nmain { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cover { position: relative; background: color-mix(in oklab, var(--c) 14%, var(--surface)); display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--c) 30%, transparent) 1px, transparent 0); background-size: 18px 18px; opacity: .55; }
.cover .ph { position: relative; width: 30%; max-width: 120px; aspect-ratio: 1; border-radius: 28%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 10px 30px color-mix(in oklab, var(--c) 25%, transparent); }
.cover .ph svg { width: 52%; height: 52%; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a-cat { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.a-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; }
.feature .cover { aspect-ratio: auto; min-height: 280px; }
.feature .f-txt { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feature h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.feature p { margin: 0; color: var(--muted); }
.feature .read { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .12s, box-shadow .12s; min-width: 0; }
.acard:hover, .feature:hover { box-shadow: 0 8px 22px color-mix(in oklab, var(--fg) 9%, transparent); }
.acard:hover { transform: translateY(-2px); }
.acard .a-txt { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.acard h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.acard p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard .a-meta { margin-top: auto; padding-top: 4px; }
.nside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
.popular-list { list-style: none; counter-reset: p; margin: 0; padding: 0; display: flex; flex-direction: column; }
.popular-list li { counter-increment: p; border-top: 1px solid var(--line); }
.popular-list li:first-child { border-top: 0; }
.popular-list button { display: grid; grid-template-columns: 28px 1fr; gap: 10px; border: 0; background: none; padding: 11px 0; text-align: left; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.4; width: 100%; }
.popular-list button::before { content: counter(p, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 15px; }
.popular-list button:hover { color: var(--accent); }
.side-cta { background: var(--hero); color: #f1fbf8; border: 0; }
.side-cta h2 { color: #fff; }
.side-cta p { margin: 0 0 12px; color: #c5e3db; font-size: 14px; }

.art { padding-block: 18px 56px; }
.art-grid { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 36px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); font-size: 14px; }
.toc h2 { margin: 0 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc button { border: 0; background: none; text-align: left; cursor: pointer; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc button:hover { color: var(--fg); }
.toc button.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.art-head { display: flex; flex-direction: column; gap: 10px; }
.art-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.art-lead { margin: 0; font-size: 18px; color: var(--muted); line-height: 1.6; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 36px; height: 36px; font-size: 15px; }
.byline b { color: var(--fg); font-weight: 600; display: block; }
.art .cover { border-radius: 16px; margin-block: 22px 6px; aspect-ratio: 21 / 9; }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 34px 0 10px; line-height: 1.3; scroll-margin-top: 84px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { font-weight: 600; }
.callout { margin: 20px 0; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); border-left: 4px solid var(--accent); font-size: 16px; }
.callout b { display: block; margin-bottom: 4px; color: var(--accent); }
.prose .tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.find-box { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.find-box .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--surface)); flex: none; }
.find-box .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.find-box div { flex: 1; min-width: 200px; }
.find-box b { display: block; font-size: 16px; }
.find-box span { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.tags span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.art-related { margin-top: 44px; }
.toc-m { display: none; }
@media (max-width: 1080px) { .art-grid { grid-template-columns: 200px minmax(0, 1fr); } .art-grid > .spacer { display: none; } }
@media (max-width: 900px) {
  .nbody { grid-template-columns: minmax(0, 1fr); }
  .nside { position: static; }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .cover { min-height: 0; aspect-ratio: 16 / 9; }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-m { display: block; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc-m summary { padding: 12px 16px; font-weight: 600; cursor: pointer; }
  .toc-m ol { margin: 0; padding: 0 16px 12px 34px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
  .toc-m button { border: 0; background: none; padding: 4px 0; text-align: left; color: var(--accent); cursor: pointer; }
}
@media (max-width: 640px) {
  .agrid { grid-template-columns: minmax(0, 1fr); }
  .acard { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .acard .cover { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .acard .cover .ph { width: 52px; border-radius: 14px; }
  .acard .a-txt { padding: 10px 12px; gap: 5px; }
  .acard h3 { font-size: 15px; }
  .acard p { display: none; }
  .feature .f-txt { padding: 18px; }
  .feature h2 { font-size: 20px; }
  .prose { font-size: 16px; }
  .art-lead { font-size: 16px; }
  .art .cover { aspect-ratio: 16 / 9; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .filters, .filters.open { transition: none; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
@media (max-width: 640px) {
  #mineBtn { display: none; }
  .hero-in { padding-block: 32px 28px; }
  .search { flex-wrap: wrap; padding: 6px; gap: 4px; }
  .search input { flex: 1 1 calc(100% - 40px); }
  .s-div { display: none; }
  .search select { flex: 1; max-width: none; }
  .s-btn { flex: 1 1 100%; }
  .cta { padding: 22px 20px; }
}

/* ===== Bổ sung cho bản PHP (liên kết thay nút, menu, form, thông báo) ===== */
a.card, a.ritem, a.acard, a.feature, a.cat, a.f-cat, .mine a { color: inherit; text-decoration: none; }

a.feature { display: grid; }
.nav a[aria-current="page"] { color: var(--accent); }
.popular a { border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .06); color: #eaf7f3; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; text-decoration: none; }
.popular a:hover { background: rgb(255 255 255 / .14); }
.foot ul a { color: var(--fg); text-decoration: none; }
.foot ul a:hover { color: var(--accent); }
.f-cat[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.f-ranges a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; color: var(--fg); text-decoration: none; }
.f-ranges a[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.view-tg a { background: var(--surface); color: var(--muted); padding: 6px 9px; display: grid; place-items: center; }
.view-tg a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.ntabs a { flex: none; padding: 10px 14px; font-weight: 500; color: var(--muted); border-bottom: 2.5px solid transparent; text-decoration: none; }
.ntabs a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.chip { text-decoration: none; }
.popular-list a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--fg); text-decoration: none; }
.popular-list a::before { content: counter(p, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 15px; }
.popular-list a:hover { color: var(--accent); }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--fg); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-m a { color: var(--accent); text-decoration: none; }
.f-foot .apply-desk { display: inline-block; }
.f-foot .btn.ghost { text-align: center; }
.side-actions form { margin: 0; }
.owner-tools form { margin: 0; }
.ritem span.btn { text-align: center; }

/* Menu tài khoản / menu điện thoại */
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px color-mix(in oklab, var(--fg) 14%, transparent); padding: 6px; display: flex; flex-direction: column; z-index: 20; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 14.5px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); }
.menu-pop form { margin: 0; }
.avatar.sm { width: 26px; height: 26px; font-size: 13px; }
.icon-btn { padding: 8px 10px; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; }
.mobile-nav { display: none; }
@media (max-width: 980px) { .mobile-nav { display: block; } }
@media (max-width: 640px) { .hide-sm { display: none !important; } .actions { gap: 6px; } }

/* Thông báo */
.flashes { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 74px); left: 50%; transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 14.5px; box-shadow: 0 10px 26px color-mix(in oklab, var(--fg) 25%, transparent); animation: flash-out 0.4s ease 5s forwards; }
.flash-info { background: var(--accent); color: var(--accent-fg); }
@keyframes flash-out { to { opacity: 0; visibility: hidden; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .flash { animation-duration: 0s; } }

/* Trang form, đăng nhập */
.form-page { padding-block: 20px 56px; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.form-card { display: flex; flex-direction: column; gap: 14px; }
.form-card h1, .auth-card h1, .form-page .r-top h1 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.form-tips ul { margin: 0 0 12px; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.f-err { color: var(--hot); font-weight: 500; font-size: 13px; }
.form-alert { margin: 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in oklab, var(--hot) 12%, var(--surface)); color: var(--fg); font-size: 14px; }
.cur-img { display: flex; align-items: center; gap: 14px; }
.cur-img img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.auth-page { padding-block: 40px 64px; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); margin: 0; font-size: 14px; }
.center { text-align: center; }
@media (max-width: 900px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Tin của tôi */
.mine { display: flex; flex-direction: column; gap: 12px; }
.mine-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.mine-thumb .thumb { border-radius: 10px; }
.mine-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mine-main h3 { margin: 0; font-size: 16px; font-weight: 600; }
.status { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.status.paused { background: color-mix(in oklab, var(--hot) 14%, var(--surface)); color: var(--hot); }
.mine-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mine-actions form { margin: 0; }
@media (max-width: 720px) { .mine-item { grid-template-columns: 96px minmax(0, 1fr); } .mine-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Phân trang */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; }
.pg { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 500; }
.pg.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
@media (max-width: 900px) { .f-foot .apply-desk { display: none; } }
.menu:not([open]) .menu-pop { display: none; }
@media (max-width: 420px) { .brand b { font-size: 19px; } .mark { width: 28px; height: 28px; } .top .wrap { gap: 8px; } .btn.hot { padding: 9px 12px; } }

/* Nội dung bài viết soạn từ trang quản trị */
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 26px 0 8px; line-height: 1.35; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose figure { margin: 22px 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; background: var(--line); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }
.preview-bar { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #6b4a00; font-size: 14px; }
.preview-bar a { color: inherit; font-weight: 600; }

/* ===== Giá trị từ “Cài đặt website” ===== */
.brand-img { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.hero.has-img { background: linear-gradient(100deg, rgb(8 40 33 / .9) 0%, rgb(8 40 33 / .62) 50%, rgb(8 40 33 / .2) 100%), var(--hero-img) center / cover no-repeat, var(--hero); }
.hero.has-img::before { display: none; }
.thumb img.def-img, .def-img { object-fit: cover; }
.foot-brand p { margin: 0 0 12px; }
.foot-contact { gap: 8px !important; margin-bottom: 14px !important; }
.foot-contact li { display: flex; align-items: flex-start; gap: 9px; color: var(--fg); }
.foot-contact svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-contact a, .foot-contact span { color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover { color: var(--accent); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.foot-social a:hover { color: var(--accent); border-color: var(--accent); }
.foot-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-contact { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-contact.has-oa { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgb(0 0 0 / .22); }
.fc-call { background: var(--hot); animation: fc-ring 2.4s ease-in-out infinite; }
.fc-call svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-zalo { background: #0068ff; font: 700 13px/1 var(--font-body, system-ui), sans-serif; letter-spacing: .01em; }
@keyframes fc-ring { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .fc-call { animation: none; } }
.policy-h { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 8px; }

.mark svg.pin { width: 24px; height: 24px; stroke: none; color: var(--accent); }
.brand picture { display: block; }
.thumb .def-img { position: absolute; inset: 0; }
.thumb .def-cat { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.thumb .def-cat svg { width: 17px; height: 17px; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Trang chi tiết: hiện trọn ảnh thật (không cắt mất logo đóng dấu) */
.d-hero:has(.real-img), .dv-gallery .thumb:has(.real-img) { aspect-ratio: auto; background: color-mix(in oklab, var(--c) 8%, var(--surface)); }
.d-hero .real-img, .dv-gallery .real-img { position: static; width: 100%; height: auto; max-height: 640px; object-fit: contain; }

/* ===== Tin nổi bật / VIP ===== */
:root { --vip: #b7791f; --vip-soft: #fdf3dc; --feat: #d9542f; --feat-soft: #fde9e2; }
.tier-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tier-badge.tier-vip { background: linear-gradient(135deg, #f6c453, #d99a1e); color: #3d2600; }
.tier-badge.tier-featured { background: var(--feat); color: #fff; }
.tier-badge.tier-normal { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.thumb .tier-pin { position: absolute; top: 8px; right: 8px; z-index: 1; }
.card.tier-vip, .ritem.tier-vip { border-color: #e2b04a; box-shadow: 0 0 0 1px #e2b04a, 0 8px 22px rgb(183 121 31 / .14); }
.card.tier-featured, .ritem.tier-featured { border-color: color-mix(in oklab, var(--feat) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--feat) 40%, transparent); }
.ritem.tier-vip { background: linear-gradient(90deg, var(--vip-soft), var(--surface) 40%); }
.dv-title { margin-top: 8px; }
.dv-pill + .tier-badge { margin-left: 6px; }

/* Chọn gói */
.plans { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.plans legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); font-weight: 400; font-size: 14px; cursor: default; }
label.plan { cursor: pointer; }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 25%, transparent); }
.plan-vip { background: linear-gradient(180deg, var(--vip-soft), var(--surface) 60%); }
.plan-vip:has(input:checked) { border-color: var(--vip); box-shadow: 0 0 0 2px color-mix(in oklab, var(--vip) 30%, transparent); }
.plan-featured:has(input:checked) { border-color: var(--feat); box-shadow: 0 0 0 2px color-mix(in oklab, var(--feat) 25%, transparent); }
.plan-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-head b { font-size: 15px; }
.plan-price { margin-left: auto; font-weight: 700; color: var(--accent); }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.plan-days { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.plan-days label { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 13.5px; background: var(--surface); }
.plan-days label b { margin-left: auto; color: var(--price); }
.plan-days label:has(input:checked) { border-color: currentColor; background: var(--accent-soft); }
.plan input { accent-color: var(--accent); margin: 0; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: minmax(0, 1fr); } }

/* Nâng cấp & thanh toán */
.up-card, .pay-card { max-width: 920px; }
.up-listing { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg); }
.up-listing > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.up-thumb { width: 120px; flex: none; } .up-thumb .thumb { border-radius: 10px; }
.pay-card { display: flex; flex-direction: column; gap: 16px; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pay-head h1 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.pay-head p { margin: 4px 0 0; }
.pay-status { font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.pay-status.st-pending { background: var(--vip-soft); color: #8a5a00; }
.pay-status.st-paid { background: var(--accent-soft); color: var(--accent); }
.pay-status.st-cancelled { background: var(--bg); color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.pay-qr img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block; }
.pay-qr p { margin: 8px 0 0; text-align: center; }
.pay-noqr { padding: 18px; border-radius: 12px; background: var(--bg); line-height: 1.6; }
.pay-info { margin: 0; display: flex; flex-direction: column; }
.pay-info > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pay-info dt { color: var(--muted); font-size: 14px; }
.pay-info dd { margin: 0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: 8px; }
.pay-info dd.price { font-size: 22px; color: var(--price); }
.pay-info code { font-size: 17px; letter-spacing: .04em; background: var(--vip-soft); padding: 3px 8px; border-radius: 6px; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.pay-wait { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 4s; } }
.pay-ok { padding: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-ok .btn { margin-left: auto; }
.pay-ok.cancelled { background: var(--bg); color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13.5px; }
@media (max-width: 720px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } .pay-qr { max-width: 300px; margin: 0 auto; } }

/* Tài khoản */
.acc { gap: 16px; }
.acc-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.acc-who { flex: 1; min-width: 0; }
.acc-who h1 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.acc-who p { margin: 2px 0 0; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acc-stats .panel { padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.acc-stats b { font-family: var(--font-display); font-size: 26px; }
.acc-stats span { color: var(--muted); font-size: 13.5px; }
.acc-alert { padding: 12px 16px; border-radius: 12px; background: var(--vip-soft); color: #6b4500; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.acc-alert a { font-weight: 700; color: inherit; }
.acc-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.acc-item.tier-vip { border-color: #e2b04a; background: linear-gradient(90deg, var(--vip-soft), var(--surface) 45%); }
.acc-item.tier-featured { border-color: color-mix(in oklab, var(--feat) 50%, var(--line)); }
.acc-thumb .thumb { border-radius: 9px; }
.acc-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-main a { color: var(--fg); text-decoration: none; }
.acc-main h3 { margin: 0; font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.acc-tags .status { align-self: auto; }
.acc-act { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; }
.otable { width: 100%; border-collapse: collapse; font-size: 14px; }
.otable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.otable td { padding: 10px; border-bottom: 1px solid var(--line); }
.otable .num { text-align: right; white-space: nowrap; }
.otable a { color: var(--accent); font-weight: 600; }
.acc-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.acc-forms h2 { margin: 0; }
@media (max-width: 760px) {
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-forms { grid-template-columns: minmax(0, 1fr); }
  .acc-item { grid-template-columns: 84px minmax(0, 1fr); }
  .acc-act { grid-column: 1 / -1; }
  .acc-act .btn { flex: 1; text-align: center; }
  .acc-head .btn { width: 100%; text-align: center; }
  .otable thead { display: none; }
  .otable, .otable tbody, .otable tr, .otable td { display: block; }
  .otable tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .otable td { border: 0; padding: 2px 0; text-align: left !important; }
  .otable td::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* ===== Trang đăng tin ===== */
.post-page { padding-bottom: 56px; }
.post-page svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding: 16px 0 0; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 0 18px; }
.ph-row h1 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.ph-row p { margin: 4px 0 0; color: var(--muted); }
.ph-meter { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 10px; max-width: 320px; }
.ph-meter > div:last-child { display: flex; flex-direction: column; font-size: 14px; }
.ph-meter small { color: var(--muted); font-size: 12.5px; }
.ring { --p: 0; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in oklab, var(--accent) 14%, var(--surface)) 0); transition: --p .3s; }
.ring b { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--accent); }
.stepper { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1 1 0; min-width: max-content; }
.stepper a { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; }
.stepper a:hover { color: var(--fg); }
.st-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); flex: none; }
.st-num svg { width: 14px; height: 14px; display: none; stroke-width: 3; }
.stepper a.done .st-num { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.stepper a.done .st-num span { display: none; }
.stepper a.done .st-num svg { display: block; }
.stepper a.on { color: var(--fg); border-bottom-color: var(--accent); }
.stepper a.bad .st-num { border-color: var(--hot); color: var(--hot); }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 22px; }
.post-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; scroll-margin-top: 90px; }
.pcard > header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.pcard > header h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.pcard > header p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pc-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--font-display); }
.pcard.is-done .pc-num { background: var(--accent); color: var(--accent-fg); }
.pcard.has-err { border-color: color-mix(in oklab, var(--hot) 55%, var(--line)); }

.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.cat-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; text-align: center; font-weight: 500; font-size: 13.5px; line-height: 1.3; transition: border-color .12s, background .12s, transform .12s; }
.cat-opt:hover { border-color: color-mix(in oklab, var(--c) 50%, var(--line)); }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 13%, var(--surface)); color: var(--c); }
.co-ico svg { width: 24px; height: 24px; stroke: var(--c); stroke-width: 1.8; }
.cat-opt:has(input:checked) { border-color: var(--c); background: color-mix(in oklab, var(--c) 7%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 18%, transparent); }
.cat-opt:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; display: grid; place-items: center; }
.cat-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.pf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.pf:last-child { margin-bottom: 0; }
.pf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.pf-top label { font-weight: 600; }
.pf-top i { color: var(--hot); font-style: normal; }
.pf-hint { color: var(--muted); font-size: 12.5px; }
.pf-hint a { color: var(--accent); }
.count { color: var(--muted); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.count.warn { color: var(--hot); }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.post-page .field { background: var(--surface); border-radius: 10px; padding: 11px 12px; transition: border-color .12s, box-shadow .12s; }
.post-page .field:focus { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent); }
.post-page .field.invalid, .post-page .field[aria-invalid="true"] { border-color: var(--hot); }
.post-page .field.ok { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.add-chip { border: 1px dashed color-mix(in oklab, var(--accent) 50%, var(--line)); background: transparent; color: var(--accent); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 500; cursor: pointer; }
.add-chip:hover { background: var(--accent-soft); border-style: solid; }
.add-chip.used { opacity: .45; }
.price-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price-in { position: relative; flex: 1 1 180px; min-width: 0; }
.price-in .field { padding-right: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-in em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.price-line select.field { flex: 0 0 120px; width: 120px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; font-size: 14px; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.tg { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .15s; }
.toggle input:checked + .tg { background: var(--accent); }
.toggle input:checked + .tg::after { transform: translateX(16px); }
.toggle input:focus-visible + .tg { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-page .field:disabled { opacity: .55; }

.drop { position: relative; border: 2px dashed var(--line); border-radius: 14px; background: var(--bg); transition: border-color .12s, background .12s; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; cursor: pointer; text-align: center; font-weight: 400; }
.drop-empty b { font-weight: 600; }
.drop-empty u { color: var(--accent); text-underline-offset: 3px; }
.drop-empty small { color: var(--muted); }
.dz-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.dz-ico svg { width: 24px; height: 24px; }
.drop-prev { display: none; }
.drop.has-img { border-style: solid; background: var(--surface); }
.drop.has-img .drop-empty { display: none; }
.drop.has-img .drop-prev { display: block; }
.drop-prev img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: color-mix(in oklab, var(--fg) 5%, var(--surface)); border-radius: 12px 12px 0 0; }
.dp-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.dp-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--muted); }
.btn.sm { padding: 6px 12px; font-size: 13.5px; }
.btn.lg { padding: 13px 26px; font-size: 16px; }
.perks-mini { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.perks-mini li { display: flex; align-items: center; gap: 6px; }
.perks-mini svg { width: 15px; height: 15px; color: var(--accent); stroke-width: 2.5; }
.pcard-tier { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(90deg, var(--vip-soft), var(--surface)); }
.pcard-tier p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.post-page .plans legend { display: none; }
.post-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 4px 0; }
.post-submit .pf-hint { max-width: 420px; }
.ps-act { display: flex; gap: 10px; align-items: center; }
.ps-act [data-total-btn]:not(:empty) { margin-left: 8px; padding-left: 10px; border-left: 1px solid color-mix(in oklab, var(--accent-fg) 40%, transparent); font-weight: 500; }

.post-side { min-width: 0; }
.pside-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.pv { padding: 16px; }
.pv-head { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; color: var(--muted); }
.pv-head svg { width: 18px; height: 18px; }
.pv-head b { color: var(--fg); }
.pv-card { --c: var(--accent); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.pv-card[data-tier=vip] { border-color: var(--vip); box-shadow: 0 0 0 3px color-mix(in oklab, var(--vip) 18%, transparent); background: linear-gradient(180deg, var(--surface) 60%, var(--vip-soft)); }
.pv-card[data-tier=featured] { border-color: var(--feat); }
.pv-thumb { position: relative; aspect-ratio: 16 / 10; background: color-mix(in oklab, var(--c) 14%, var(--surface)); display: grid; place-items: center; overflow: hidden; }
.pv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-thumb img:not([src]), .pv-thumb img[src=""] { display: none; }
.pv-thumb.real img { object-fit: cover; }
.pv-ico { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--c); box-shadow: 0 2px 8px rgb(0 0 0 / .08); }
.pv-ico:empty { display: none; }
.pv-thumb.has-def .pv-ico { position: absolute; width: 34px; height: 34px; border-radius: 10px; right: 8px; bottom: 8px; }
.pv-thumb.real .pv-ico { display: none; }
.pv-ico svg { width: 60%; height: 60%; stroke: var(--c); stroke-width: 1.8; }
.pv-badge { position: absolute; top: 8px; left: 8px; z-index: 1; }
.pv-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pv-cat { font-size: 12.5px; font-weight: 600; color: var(--c); display: flex; align-items: center; gap: 6px; }
.pv-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pv-card h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-card h3.ph, .pv-desc.ph { color: var(--muted); font-weight: 400; }
.pv-desc { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.pv-meta > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.pv-meta svg { width: 13px; height: 13px; flex: none; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.pv-foot .price { color: var(--price); font-size: 16px; }
.pv-foot .price small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.pv-call { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pv-call svg { width: 14px; height: 14px; }
.pv-check { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pv-check ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pv-check li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.pv-check li svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--line); stroke: transparent; stroke-width: 3; flex: none; box-sizing: border-box; }
.pv-check li.ok { color: var(--fg); }
.pv-check li.ok svg { background: var(--accent); border-color: var(--accent); stroke: var(--accent-fg); }
.pv-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pv-total span { color: var(--muted); }
.pv-total b { text-align: right; }
.post-bar { display: none; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { order: -1; }
  .pside-sticky { position: static; }
  .pv-check { display: none; }
  .pv { padding: 12px; }
  .pv-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .pv-thumb { aspect-ratio: auto; min-height: 100%; }
  .pv-desc, .pv-meta { display: none; }
  .pv-body { padding: 10px 12px; gap: 4px; }
  .pv-card h3 { font-size: 14.5px; }
  .pv-foot { margin-top: 2px; padding-top: 6px; }
  .pv-call { display: none; }
  .pv-head { margin-bottom: 8px; }
}
@media (max-width: 760px) {
  .post-page { padding-bottom: 96px; }
  .ph-row { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 12px; }
  .ph-row h1 { font-size: 23px; }
  .ph-meter { max-width: none; }
  .stepper a { padding: 8px 8px 10px; font-size: 13px; gap: 6px; }
  .stepper li { flex: 0 0 auto; }
  .post-grid { padding-top: 14px; gap: 14px; }
  .post-page .wrap.post-grid { padding-left: 12px; padding-right: 12px; }
  .pcard { padding: 16px 14px; border-radius: 14px; }
  .pcard > header { gap: 10px; margin-bottom: 14px; }
  .pcard > header h2 { font-size: 16.5px; }
  .pc-num { width: 28px; height: 28px; border-radius: 8px; }
  .cat-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-opt { padding: 10px 4px; font-size: 12.5px; border-radius: 12px; }
  .co-ico { width: 38px; height: 38px; }
  .pf-row { grid-template-columns: minmax(0, 1fr); }
  .price-line select.field { flex: 1 1 100px; }
  .post-page .field { font-size: 16px; }
  .post-submit { flex-direction: column; align-items: stretch; }
  .post-submit .ps-act { display: none; }
  .pcard-tier { flex-direction: column; align-items: stretch; }
  .post-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); box-shadow: 0 -6px 20px rgb(0 0 0 / .06); }
  .post-bar > div { display: flex; flex-direction: column; min-width: 0; }
  .post-bar small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .post-bar b { font-size: 16px; }
  .post-bar .btn { padding: 12px 26px; font-size: 15.5px; }
  body:has(.post-bar) .float-contact { display: none; }
}
@media (max-width: 360px) { .cat-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-page .pf-top label { display: inline; }
.post-page .toggle { flex-direction: row; }
.post-page .cat-opt { flex-direction: column; }
.post-page .add-chip, .post-page .chips { font-weight: 500; }
.post-grid > .post-side { align-self: stretch; }

/* ===== Trang Bảng giá ===== */
.pricing-page { padding-bottom: 56px; }
.pr-hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); padding: 16px 0 28px; margin-bottom: 24px; }
.pr-hero h1 { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin: 14px 0 6px; }
.pr-hero p { margin: 0; color: var(--muted); max-width: 680px; font-size: 16px; }
.pr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pr-card { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pr-card header h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-from { margin: 6px 0 0; color: var(--muted); }
.pr-from b { font-size: 26px; color: var(--fg); font-family: var(--font-display); }
.pr-featured { border-color: color-mix(in oklab, var(--feat) 55%, var(--line)); }
.pr-vip { border-color: var(--vip); background: linear-gradient(180deg, var(--vip-soft), var(--surface) 45%); box-shadow: 0 10px 30px color-mix(in oklab, var(--vip) 18%, transparent); }
.pr-ribbon { position: absolute; top: -12px; right: 18px; background: var(--vip); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pr-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.pr-perks li { display: flex; gap: 8px; align-items: flex-start; }
.pr-perks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pr-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: auto; }
.pr-tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pr-tbl td { padding: 9px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.pr-tbl td b { color: var(--price); }
.pr-card .btn { text-align: center; padding: 12px; }
.pr-card:first-child .pr-perks { margin-bottom: auto; }
.pr-steps, .pr-faq { margin-top: 36px; }
.pr-steps h2, .pr-faq h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.pr-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.pr-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pr-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 6px; }
.pr-steps li span { color: var(--muted); }
.pr-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.pr-faq summary { cursor: pointer; font-weight: 600; }
.pr-faq p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 900px) { .pr-cards { grid-template-columns: minmax(0, 1fr); } .pr-steps ol { grid-template-columns: 1fr 1fr; } .pr-vip { order: -1; } }
@media (max-width: 520px) { .pr-steps ol { grid-template-columns: minmax(0, 1fr); } .pr-hero h1 { font-size: 26px; } }

/* ===== Phân biệt tin thường / nổi bật / VIP ===== */
.r-tier, .c-tier { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.r-tier-vip, .c-tier-vip { background: linear-gradient(135deg, #f6c453, #d99a1e); color: #3d2600; }
.r-tier-featured, .c-tier-featured { background: var(--feat-soft); color: var(--feat); }
.c-tier { margin: 0 0 4px; align-self: flex-start; }
.ritem.tier-vip h3 { font-size: 1.08em; }
.ritem.tier-vip .price { font-size: 1.12em; }
.card.tier-vip { background: linear-gradient(180deg, var(--surface) 55%, var(--vip-soft)); }
.card.tier-vip .body h3 { font-weight: 700; }
.card.tier-featured .body { border-top: 3px solid var(--feat); }
.card.tier-vip .body { border-top: 3px solid #e2b04a; }
.tier-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; padding: 6px 2px 2px; margin-top: 6px; }
.tier-head:first-child { margin-top: 0; }
.tier-head b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.tier-head span { color: var(--muted); font-size: 13px; }
.tier-head-vip b { color: var(--vip); }
.tier-head-featured b { color: var(--feat); }
.tier-head-normal { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }

.tier-sec { border-radius: 20px; padding: 20px; margin-bottom: 8px; }
.tier-sec .grid { padding-bottom: 0; }
.tier-sec .sec-head { align-items: center; }
.tier-sec .sec-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier-sec .sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tier-sec-vip { background: linear-gradient(135deg, var(--vip-soft), color-mix(in oklab, var(--vip-soft) 40%, var(--surface))); border: 1px solid color-mix(in oklab, var(--vip) 35%, var(--line)); }
.tier-sec-featured { background: color-mix(in oklab, var(--feat-soft) 60%, var(--surface)); border: 1px solid color-mix(in oklab, var(--feat) 25%, var(--line)); }

.dv-tier { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; }
.dv-tier b { font-weight: 700; letter-spacing: .02em; }
.dv-tier-vip { background: linear-gradient(90deg, #f6c453, #f9dc95 70%, var(--vip-soft)); color: #3d2600; }
.dv-tier-featured { background: var(--feat-soft); color: var(--feat); }
.dv-tier-featured span { color: var(--fg); opacity: .75; }
.dv-vip .dv-gallery, .dv-vip .dv-head { border-color: #e2b04a; box-shadow: 0 0 0 1px #e2b04a; }
.dv-vip .dv-head { background: linear-gradient(180deg, var(--surface) 70%, var(--vip-soft)); }
.dv-featured .dv-gallery, .dv-featured .dv-head { border-color: color-mix(in oklab, var(--feat) 55%, var(--line)); }
.who-tier { margin: -20px -22px 0; padding: 9px 22px; border-radius: 13px 13px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.who-vip { border-color: #e2b04a; box-shadow: 0 0 0 1px #e2b04a, 0 10px 26px rgb(183 121 31 / .14); }
.who-vip .who-tier { background: linear-gradient(90deg, #f6c453, #d99a1e); color: #3d2600; }
.who-featured { border-color: color-mix(in oklab, var(--feat) 55%, var(--line)); }
.who-featured .who-tier { background: var(--feat-soft); color: var(--feat); }
.owner-tier { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.callbar .cb-price .tier-badge { font-size: 10.5px; padding: 1px 7px; margin-right: 4px; vertical-align: 1px; }
.callbar-vip { border-top: 2px solid #e2b04a; }
@media (max-width: 760px) {
  .tier-sec { padding: 14px 12px; border-radius: 16px; margin-left: -4px; margin-right: -4px; }
  .r-tier { margin-left: 6px; }
  .who-tier { margin: -16px -16px 0; padding: 9px 16px; }
}
.ritem .tier-pin, .card .tier-pin, .dv-gallery .tier-pin { display: none; }
@media (max-width: 900px) { body:has(.callbar) .float-contact { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

/* ===== Đăng nhập / đăng ký ===== */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 380px); gap: 28px; align-items: center; justify-content: center; width: 100%; }
.auth-card { width: 100%; }
.auth-side { display: flex; flex-direction: column; gap: 14px; padding: 8px; }
.auth-side h2 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.3; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side li { display: flex; flex-direction: column; gap: 2px; padding-left: 34px; position: relative; }
.auth-side li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.auth-side li span { color: var(--muted); font-size: 14px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 600; text-decoration: none; transition: background .12s, border-color .12s; }
.btn-google:hover { background: var(--bg); border-color: color-mix(in oklab, var(--fg) 25%, var(--line)); }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.btn-google.sm { width: auto; display: inline-flex; padding: 7px 14px; font-size: 14px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-hello { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.auth-hello img, .auth-hello .avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.auth-hello .avatar { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.auth-hello div { display: flex; flex-direction: column; min-width: 0; }
.auth-hello small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.auth-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card a.center { display: block; }
.g-link { display: flex; align-items: center; gap: 8px; }
.ok-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); font-weight: 600; }
.ok-dot::before { content: "✓"; }
.note-inline { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--vip-soft); font-size: 14px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-side { order: 2; } .auth-side h2 { font-size: 20px; } }
@media (max-width: 480px) { .auth-card .row { grid-template-columns: minmax(0, 1fr); } }
.auth-page > .auth-card { max-width: 460px; }
.auth-card .row { align-items: end; }
.auth-card label em { display: inline; }

/* ===== Tin cậy: số liệu, vị trí, đánh giá, nhận xét, PWA ===== */
.stats-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.ss-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-block: 14px; }
.ss-in > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 6px; }
.ss-in > div + div { border-left: 1px solid var(--line); }
.ss-in b { font-family: var(--font-display); font-size: 22px; color: var(--accent); line-height: 1.2; }
.ss-in span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .ss-in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ss-in > div:nth-child(3) { border-left: 0; }
  .ss-in b { font-size: 19px; }
}
.near-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 4px; padding: 12px 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--r); }
.near-bar p { margin: 0; flex: 1 1 220px; display: flex; flex-direction: column; }
.near-bar p span { font-size: 13px; color: var(--muted); }
.nb-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--accent); display: grid; place-items: center; flex: none; }
.nb-ico svg { width: 18px; height: 18px; }
.nb-form select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 100%; }
@media (max-width: 560px) { .nb-form { flex: 1 1 100%; } .nb-form select { width: 100%; } .near-bar [data-geo] { flex: 1 1 100%; } }

.trust-line { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 13px; margin-top: 4px; }
.trust-line.lg { font-size: 14.5px; margin-top: 8px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--fg); }
.rating i { font-style: normal; color: #e8a317; }
.rating small { color: var(--muted); font-weight: 400; }
.verified { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 3px; border-radius: 999px; background: #e3f1fd; color: #135f9e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.verified i { font-style: normal; width: 15px; height: 15px; border-radius: 50%; background: #1a73c9; color: #fff; display: grid; place-items: center; font-size: 10px; }
.who-card .verified, .dv-who .verified { margin-left: 6px; vertical-align: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verified { background: #16324a; color: #9fd0ff; } }
:root[data-theme="dark"] .verified { background: #16324a; color: #9fd0ff; }
.stars { color: #e8a317; letter-spacing: 1px; white-space: nowrap; }
.stars > span { color: var(--line); }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.quote blockquote { margin: 0; flex: 1; line-height: 1.6; }
.quote blockquote::before { content: "“"; font-family: var(--font-display); font-size: 30px; line-height: 0; vertical-align: -10px; color: var(--accent); margin-right: 2px; }
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.quote figcaption .avatar { width: 36px; height: 36px; font-size: 15px; }
.quote figcaption span:last-child { display: flex; flex-direction: column; }
.quote figcaption small { color: var(--muted); }

.reviews h2 { margin-top: 0; }
.rv-sum { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.rv-big { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rv-big b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.rv-big small { color: var(--muted); }
.rv-bars { display: flex; flex-direction: column; gap: 4px; }
.rv-bars div { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; }
.rv-bars i { height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.rv-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #e8a317; border-radius: 4px; }
.rv-bars small { color: var(--muted); text-align: right; }
.rv-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--r); margin: 12px 0; }
.rv-form .btn { align-self: flex-start; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; transition: color .12s, transform .12s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #e8a317; }
.star-pick label:hover { transform: scale(1.12); }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rv-login { margin: 12px 0; }
.rv-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rv-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.rv-list p { margin: 6px 0 0 44px; line-height: 1.6; }
.rv-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-who .avatar { width: 36px; height: 36px; font-size: 15px; }
.rv-who small { color: var(--muted); }
@media (max-width: 560px) { .rv-sum { grid-template-columns: 1fr; gap: 12px; } .rv-list p { margin-left: 0; } }

.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.install-li .link-btn { font-weight: 600; }
.offline-page { max-width: 520px; margin: 60px auto; text-align: center; }
.who-row small { display: block; margin-top: 2px; }
.who-row b + .verified { margin-left: 6px; }

/* ===== v5: đẩy tin, ví, gói PRO, nhắn tin, hồ sơ, xác minh, báo cáo ===== */
:root { --ok: #157a4a; --ok-soft: #dcf2e6; --warn: #9a6a00; --warn-soft: #fbefcf; --bad: #b3261e; --bad-soft: #fbe1de; --pro: #6d3fd1; --pro-soft: #ece4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #5fd39a; --ok-soft: #17372a; --warn: #f2c460; --warn-soft: #3a2f12; --bad: #ff8a80; --bad-soft: #3f1d1b; --pro: #b79bff; --pro-soft: #2c2346; } }
:root[data-theme="dark"] { --ok: #5fd39a; --ok-soft: #17372a; --warn: #f2c460; --warn-soft: #3a2f12; --bad: #ff8a80; --bad-soft: #3f1d1b; --pro: #b79bff; --pro-soft: #2c2346; }
.small { font-size: 13px; }
.block { display: block; }
.btn svg, .chat-form .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.btn > svg + span, .btn > svg + * { margin-left: 6px; }

/* Nhãn trạng thái + huy hiệu */
.state-bar { padding: 11px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--fg); border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.state-bar.st-ok { background: var(--ok-soft); border-color: color-mix(in oklab, var(--ok) 30%, transparent); }
.state-bar.st-rejected { background: var(--bad-soft); border-color: color-mix(in oklab, var(--bad) 30%, transparent); }
.state-bar.st-pending { background: color-mix(in oklab, var(--accent-soft) 70%, var(--surface)); border-color: color-mix(in oklab, var(--accent) 25%, transparent); }
.state-bar .btn { margin-left: 8px; vertical-align: middle; }
.pro-badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 1px 7px; border-radius: 6px; background: var(--pro); color: #fff; vertical-align: 2px; line-height: 1.6; }
.pro-badge.lg { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.chip-plain { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.chip-plain svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.vid-pin { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; }
.vid-pin svg { width: 11px; height: 11px; fill: currentColor; }
.reject-note { margin: 6px 0 0; font-size: 13px; color: var(--bad); }
.mine-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mine-sum > * { padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-decoration: none; }
.mine-sum b { color: var(--fg); }
.mine-sum a.link { border-style: dashed; color: var(--accent); }
.dot-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid var(--surface); font-style: normal; }
.dot-count.in { position: static; display: inline-grid; border: 0; margin-left: 4px; }
.msg-btn { position: relative; }
.zalo-chat-widget { z-index: 30 !important; }

/* Tài khoản: ô chức năng */
.acc-head-act { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tile { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); padding: 14px 16px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); }
.tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tile small { color: var(--muted); font-size: 12.5px; }
.tile b { font-size: 16px; font-family: var(--font-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile em { font-style: normal; font-size: 12.5px; color: var(--accent); }
.t-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; font-weight: 700; }
.tile.on .t-ico { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 900px) { .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .acc-tiles { gap: 8px; } .tile { padding: 12px; gap: 10px; } .t-ico { width: 36px; height: 36px; font-size: 16px; } .tile b { font-size: 14.5px; } .tile em { display: none; } .acc-head-act { width: 100%; } .acc-head-act .btn { flex: 1; } }

/* Gói lượt / mức nạp */
.pack-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 400; }
.pack b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.pack .price { font-size: 17px; }
.pack small { color: var(--muted); font-size: 12.5px; }
.pack.pick { cursor: pointer; padding-left: 40px; }
.pack.pick input { position: absolute; left: 14px; top: 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.pack.pick:has(input:checked) { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 45%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 22%, transparent); }
.pack.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.bump-card { max-width: 760px; }
.bump-credit { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--accent-soft), transparent 70%); }
.bump-credit small { display: block; color: var(--muted); font-size: 12.5px; }
.bump-credit b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.bump-credit form { margin: 0; }
.bump-buy { display: flex; flex-direction: column; gap: 10px; }
.bump-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; }
.bump-pay > span { margin-right: auto; }
@media (max-width: 520px) { .bump-credit { flex-direction: column; align-items: stretch; } .bump-credit .btn { width: 100%; } .bump-pay .btn { flex: 1; } .bump-pay > span { width: 100%; } }

/* Ví */
.wallet-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.wallet-card { background: linear-gradient(145deg, var(--hero), color-mix(in oklab, var(--hero) 70%, var(--accent))); color: #fff; border: 0; display: flex; flex-direction: column; gap: 6px; min-height: 200px; }
.wallet-card small, .wallet-card .muted { color: rgb(255 255 255 / .75); }
.wallet-bal { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.wallet-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 auto; }
.wallet-sub span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / .14); }
.otable .num.pos { color: var(--ok); font-weight: 600; }
.pay-wallet { margin: 12px 0 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .wallet-grid { grid-template-columns: minmax(0, 1fr); } .wallet-card { min-height: 0; } .wallet-bal { font-size: 30px; } }

/* Bảng giá: đẩy tin, PRO */
.pr-extra { margin: 28px 0; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: center; }
.pr-extra-h h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; }
.pr-extra-h p { margin: 0; color: var(--muted); font-size: 14px; }
.pr-extra.pr-pro { background: linear-gradient(120deg, var(--pro-soft), var(--surface) 65%); }
.pr-extra .pack .btn { margin-top: 8px; align-self: flex-start; }
.pr-buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.pr-buy .btn { width: 100%; }
@media (max-width: 820px) { .pr-extra { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* Trang tin: video, báo cáo, nhắn tin */
.dv-video h2 { margin-bottom: 10px; }
.vframe { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vframe-tiktok { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chat-form { margin: 0; }
.chat-form .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.chat-form .btn svg { width: 18px; height: 18px; }
.co-name a { color: inherit; }
.report-box { padding: 0; margin-top: 12px; }
.report-box summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.report-box summary::-webkit-details-marker { display: none; }
.report-box summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.report-box summary:hover { color: var(--bad); }
.report-box[open] summary { color: var(--fg); border-bottom: 1px solid var(--line); }
.report-box form { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.report-box form .btn { align-self: flex-start; }
.cb-act { display: flex; gap: 8px; align-items: center; }
.cb-act .chat-form .btn { padding: 12px 14px; }
@media (max-width: 380px) { .cb-act .chat-form span { display: none; } }
.pf-video .field { font-family: inherit; }

/* Danh sách: lưu tìm kiếm */
.save-search { margin: 0; }
.save-search .btn { display: inline-flex; align-items: center; gap: 6px; }
.save-search .btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .save-search .btn span { display: none; } .save-search .btn { padding: 9px 11px; } }
.ss-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ss-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ss-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.ss-main > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ss-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.ss-new { flex: none; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--hot); padding: 3px 10px; border-radius: 999px; }
.ss-act { display: flex; align-items: center; gap: 10px; }
.ss-act form { margin: 0; }
@media (max-width: 560px) { .ss-item { flex-wrap: wrap; } .ss-act { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 8px; } }

/* Hồ sơ người bán */
.prof { display: flex; flex-direction: column; gap: 16px; padding-block: 20px 32px; }
.prof-head { display: flex; gap: 20px; align-items: flex-start; }
.avatar.xl { width: 92px; height: 92px; font-size: 38px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.prof-who { flex: 1; min-width: 0; }
.prof-who h1 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.25; }
.prof-who > p { margin: 2px 0 0; }
.prof-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prof-bio { margin: 12px 0 0; white-space: normal; max-width: 70ch; }
.prof-act { display: flex; flex-direction: column; gap: 8px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prof-stats .panel { display: flex; flex-direction: column; padding: 14px 18px; }
.prof-stats b { font-family: var(--font-display); font-size: 24px; }
.prof-stats span { color: var(--muted); font-size: 13px; }
.prof-sec h2 { font-family: var(--font-display); }
@media (max-width: 720px) {
  .prof-head { flex-direction: column; align-items: center; text-align: center; }
  .prof-badges { justify-content: center; }
  .prof-bio { margin-inline: auto; }
  .prof-act { flex-direction: row; width: 100%; } .prof-act .btn { flex: 1; }
  .prof-act:empty { display: none; }
  .prof-stats { gap: 8px; } .prof-stats .panel { padding: 12px; text-align: center; } .prof-stats b { font-size: 19px; } .prof-stats span { font-size: 12px; }
}

/* Gói thành viên */
.pr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.pr-cards .pr-card { display: flex; flex-direction: column; gap: 14px; }

/* Xác minh danh tính */
.vf-card { max-width: 760px; }
.vf-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vf-why li { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--muted); }
.vf-why b { display: block; color: var(--fg); }
.vf-why svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2; }
.vf-form { display: flex; flex-direction: column; gap: 14px; }
.vf-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.vf-kind legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.vf-kind .chk { display: inline-flex; }
.vf-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vf-file { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.vf-file i { color: var(--hot); font-style: normal; }
.vf-file em { font-weight: 400; font-style: normal; }
.vf-file input[type=file] { font-size: 12.5px; padding: 6px; width: 100%; min-width: 0; }
@media (max-width: 720px) { .vf-why, .vf-files { grid-template-columns: minmax(0, 1fr); } }

/* Nhắn tin */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; padding-block: 18px; height: calc(100dvh - 72px); min-height: 480px; }
.panel.flush { padding: 0; overflow: hidden; }
.chat-list { display: flex; flex-direction: column; min-height: 0; }
.chat-list-h { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-list-h h1 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.chat-list ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.cl-item { display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--fg); position: relative; }
.cl-item:hover { background: var(--bg); }
.cl-item.on { background: var(--accent-soft); }
.cl-item .avatar { width: 44px; height: 44px; font-size: 18px; }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.cl-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.cl-top small { color: var(--muted); font-size: 11.5px; flex: none; }
.cl-listing { color: var(--accent); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-last { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-item.unread .cl-last { color: var(--fg); font-weight: 600; }
.cl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); flex: none; }
.chat-empty, .chat-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 36px 20px; color: var(--muted); font-size: 14px; }
.chat-empty b, .chat-placeholder b { color: var(--fg); font-size: 16px; }
.chat-empty .btn { margin-top: 8px; }
.chat-placeholder { height: 100%; }
.chat-placeholder svg { width: 48px; height: 48px; fill: none; stroke: var(--line); stroke-width: 1.5; margin-bottom: 6px; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; }
.chat-h { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-h .avatar { width: 40px; height: 40px; font-size: 17px; }
.chat-who { display: flex; flex-direction: column; min-width: 0; }
.chat-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-h .chat-back { display: none; }
.chat-listing { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--fg); font-size: 13.5px; }
.chat-listing img, .chat-listing .mini-ico { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.chat-listing > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-listing b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chat-listing .price { font-size: 14px; }
.mini-ico { display: grid; place-items: center; background: color-mix(in oklab, var(--c, var(--accent)) 16%, var(--surface)); color: var(--c, var(--accent)); }
.mini-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: color-mix(in oklab, var(--bg) 60%, var(--surface)); overscroll-behavior: contain; }
.chat-safe { align-self: center; max-width: 420px; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.chat-safe svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--warn); stroke-width: 2; margin-top: 1px; }
.chat-day { text-align: center; margin: 10px 0 6px; }
.chat-day span { font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.msg { max-width: min(76%, 520px); align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 7px 12px 5px; }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-fg); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.msg.me time { color: color-mix(in oklab, var(--accent-fg) 70%, transparent); }
.msg.sending { opacity: .6; }
.msg.failed { background: var(--bad-soft); color: var(--bad); }
.chat-seen { align-self: flex-end; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.chat-quick { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; }
.chat-quick .add-chip { white-space: nowrap; flex: none; }
.chat-form-send { display: flex; gap: 8px; align-items: flex-end; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); margin: 0; }
.chat-form-send textarea { flex: 1; resize: none; max-height: 140px; min-height: 42px; border-radius: 21px; padding: 10px 16px; line-height: 1.4; }
.chat-form-send .btn { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex: none; border-radius: 50%; }
.chat-form-send .btn svg { width: 19px; height: 19px; vertical-align: 0; }
@media (max-width: 860px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; padding-block: 12px; }
  .chat.has-thread { padding: 0; height: calc(100dvh - 61px); }
  .chat.has-thread .chat-list { display: none; }
  .chat:not(.has-thread) .chat-pane { display: none; }
  .chat.has-thread .chat-pane { border-radius: 0; border-inline: 0; border-bottom: 0; }
  .chat-h .chat-back { display: inline-flex; padding: 7px; }
  .msg { max-width: 84%; }
}
@media (max-width: 860px) { body:has(.chat.has-thread) .foot { display: none; } }

/* Thanh điều hướng dưới (điện thoại) */
.bnav { display: none; }
@media (max-width: 760px) {
  body.has-bnav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in oklab, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px env(safe-area-inset-bottom, 0px); }
  .bnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 500; border-radius: 10px; }
  .bnav a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bnav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .bnav a[aria-current="page"] svg { stroke-width: 2.2; }
  .bnav .bn-post i { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--hot); display: grid; place-items: center; box-shadow: 0 6px 16px color-mix(in oklab, var(--hot) 45%, transparent); border: 3px solid var(--surface); }
  .bnav .bn-post svg { stroke: #fff; stroke-width: 2.6; width: 22px; height: 22px; }
  .bnav .bn-post { color: var(--fg); }
  .bnav .dot-count { top: 1px; right: calc(50% - 22px); }
  body.has-bnav .float-contact { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  body.has-bnav .float-contact.has-oa { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  body.has-bnav .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-bnav .zalo-chat-widget { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media print { .bnav, .callbar { display: none !important; } }
.callbar .cb-price { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.callbar .cb-price .price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .callbar { gap: 8px; } .callbar .btn { padding: 11px 14px; } .callbar .cb-price .price { font-size: 15.5px; } }

/* ---------- Trang đích SEO (danh mục × khu vực) ---------- */
.seo-intro { margin: 8px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 72ch; }
.area-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: 13.5px; }
.area-chips > span { color: var(--muted); margin-right: 2px; }
.area-chips a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; }
.area-chips a:hover { border-color: var(--accent); color: var(--accent); }
.area-chips small { color: var(--muted); font-size: 12px; }
.seo-faq, .seo-links, .seo-price, .seo-tips { margin-top: 26px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.seo-faq h2, .seo-links h2, .seo-price h2, .seo-tips h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.seo-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.seo-faq details:first-of-type { border-top: 0; padding-top: 2px; }
.seo-faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.seo-faq details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.seo-links { margin-top: 14px; }
.seo-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; font-size: 14px; }
.seo-links a { color: var(--fg); text-decoration: none; }
.seo-links a:hover { color: var(--accent); text-decoration: underline; }
.seo-links small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .seo-faq, .seo-links { padding: 14px 16px; } .seo-links ul { grid-template-columns: 1fr 1fr; } }

/* ---------- Menu danh mục kiểu Chợ Tốt ---------- */
.mega summary { cursor: pointer; color: var(--muted); font-weight: 500; gap: 4px; }
.mega summary:hover, .mega[open] summary { color: var(--fg); }
.mega summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.mega[open] summary svg { transform: rotate(180deg); }
.mega-pop { left: -120px; right: auto; width: min(920px, calc(100vw - 32px)); padding: 18px 20px 14px; gap: 12px; }
.mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 22px; }
.mega-col h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.mega-pop .mega-col a { display: flex; align-items: center; gap: 8px; padding: 5px 6px; margin-inline: -6px; width: calc(100% + 12px); font-size: 14px; }
.mega-col a i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.mega-col a i svg { width: 15px; height: 15px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.mega-tags b { color: var(--muted); font-weight: 600; margin-right: 2px; }
.mega-pop .mega-tags a { display: inline-block; width: auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.mega-pop .mega-tags a:hover { border-color: var(--accent); color: var(--accent); background: none; }
.m-grp summary { list-style: none; cursor: pointer; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; }
.m-grp summary::-webkit-details-marker { display: none; }
.m-grp summary::after { content: "›"; float: right; color: var(--muted); transition: transform .15s; }
.m-grp[open] summary::after { transform: rotate(90deg); }
.m-grp a { padding-left: 24px !important; font-size: 14px !important; }
.f-grp { display: block; margin: 12px 0 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.f-grp:first-of-type { margin-top: 6px; }
.tag-chips a[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.foot-seo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; padding-block: 18px 22px; border-top: 1px solid var(--line); }
.foot-seo ul { font-size: 13.5px; gap: 5px; }
@media (max-width: 980px) { .mega-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .foot-seo { grid-template-columns: 1fr 1fr; } }
.mobile-nav .menu-pop { max-height: 78vh; overflow-y: auto; min-width: 240px; }

/* ===== v9: trang Dành cho thợ, nhập mã quà tặng ===== */
.pv-page { padding-bottom: 56px; }
.pv-hero { background: var(--hero); color: #fff; padding: 16px 0 40px; margin-bottom: 32px; }
.pv-hero .crumbs, .pv-hero .crumbs a, .pv-hero .crumbs b { color: rgba(255,255,255,.78); }
.pv-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.pv-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.18; letter-spacing: -0.02em; margin: 16px 0 12px; text-wrap: balance; }
.pv-hero p { margin: 0; color: rgba(255,255,255,.86); font-size: 16.5px; max-width: 560px; }
.pv-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pv-cta .btn { padding: 13px 20px; font-size: 15.5px; }
.pv-hero .btn.pv-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.pv-hero .btn.pv-ghost:hover { background: rgba(255,255,255,.1); }
.pv-offer, .promo-card { background: var(--surface); color: var(--fg); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.pv-offer h2, .promo-card h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.pv-offer-tag { align-self: flex-start; background: var(--hot); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.pv-code { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border: 1.5px dashed var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
.pv-code small { color: var(--muted); }
.pv-code b { font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; color: var(--accent); }
.pv-hero .pv-offer-note { margin: 0; color: var(--muted); max-width: none; font-size: 13.5px; }
.pv-offer .btn { text-align: center; padding: 12px; }
.pv-why h2, .pv-cats h2, .pv-after h2, .pv-bottom h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.pv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pv-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.pv-grid i { font-style: normal; font-size: 26px; }
.pv-grid h3 { margin: 10px 0 6px; font-size: 16px; }
.pv-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pv-cats, .pv-after { margin-top: 36px; }
.pv-cats .cat small { font-size: 12px; }
.pv-cats > p { margin: 12px 0 0; }
.pv-after p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.6; }
.pv-bottom { margin-top: 36px; text-align: center; background: var(--accent-soft); border-radius: 18px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pv-bottom h2 { margin: 0; }
.pv-bottom .btn { padding: 13px 22px; }
.promo-wrap { max-width: 560px; }
.promo-form { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .field { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.promo-card { box-shadow: none; border: 1.5px solid var(--line); }
.promo-act { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-card .stack { display: flex; flex-direction: column; gap: 10px; }
.promo-card .stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.promo-card p { margin: 0; }
@media (max-width: 900px) { .pv-hero-in { grid-template-columns: minmax(0, 1fr); } .pv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } .promo-row { flex-direction: column; } }

/* ---------- v10: ảnh minh hoạ danh mục, yêu cầu báo giá, thông báo, thống kê ---------- */
.cover .cover-img, .thumb .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover:has(.cover-img)::before { display: none; }
.notif-btn { position: relative; }
.req-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: color-mix(in oklab, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.req-cta b { display: block; font-size: 1.05rem; } .req-cta span { color: var(--muted); }
.req-list { display: grid; gap: 12px; margin-top: 16px; }
.req-item { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.req-item:hover { border-color: color-mix(in oklab, var(--c) 45%, var(--line)); }
.req-item h3 { margin: 0; font-size: 1.05rem; }
.req-item p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); align-items: center; }
.req-cat { display: inline-flex; gap: 6px; align-items: center; color: var(--c); font-weight: 600; font-size: .85rem; }
.req-cat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.req-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: color-mix(in oklab, var(--c, #0e6e5c) 12%, var(--surface)); color: var(--c, #0e6e5c); }
.req-badge.off { --c: #777; } .req-badge.ok { --c: #1a7f43; }
.req-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.req-filters .field { min-width: 0; }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 12px; }
.req-desc { white-space: pre-line; }
.req-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.req-facts div { padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--c) 7%, var(--surface)); }
.req-facts dt { font-size: .8rem; color: var(--muted); } .req-facts dd { margin: 2px 0 0; font-weight: 600; }
.quote { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.quote.chosen { border-color: #1a7f43; box-shadow: 0 0 0 2px color-mix(in oklab, #1a7f43 25%, transparent); }
.quote-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.quote-price { font-weight: 700; color: var(--hot, #d9542f); font-size: 1.1rem; }
.quote-act { display: flex; gap: 8px; flex-wrap: wrap; }
.notif-list { display: grid; gap: 8px; margin-top: 14px; }
.notif { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.notif.unread { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.notif i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); font-style: normal; }
.notif b { display: block; } .notif small { color: var(--muted); }
.push-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line); margin-top: 12px; }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.st-card { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.st-card b { display: block; font-size: 1.6rem; line-height: 1.2; } .st-card span { color: var(--muted); font-size: .9rem; }
.st-card small { display: block; margin-top: 4px; font-size: .82rem; } .st-up { color: #1a7f43; } .st-down { color: #b4432a; }
.st-chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 160px; padding: 10px 0 0; border-bottom: 1px solid var(--line); }
.st-chart div { display: flex; flex-direction: column-reverse; min-height: 2px; border-radius: 4px 4px 0 0; overflow: hidden; }
.st-chart span { display: block; } .st-chart .v { background: color-mix(in oklab, var(--accent) 55%, var(--surface)); } .st-chart .c { background: var(--hot, #d9542f); } .st-chart .m { background: #2f6fd1; }
.st-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.my-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); align-items: center; }
.my-stats b { color: var(--fg); }
@media (max-width: 900px) { .req-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .st-cards { grid-template-columns: 1fr; } .st-chart { height: 120px; gap: 2px; } }
.req-meta span { display: inline-flex; gap: 4px; align-items: center; }
.req-meta svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- v11: chống spam, đặt lịch hẹn ---------- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; margin: 6px 0; }
.book-btn svg, .cb-book svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book-btn { margin-top: 8px; }
.pf-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; cursor: pointer; }
.pf-check input { margin-top: 4px; accent-color: var(--accent); }
.bk-days, .bk-slots { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk-days legend, .bk-slots legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.bk-days legend i, .bk-slots legend i { color: var(--hot); font-style: normal; }
.bk-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.bk-day, .bk-slot { position: relative; cursor: pointer; flex: none; scroll-snap-align: start; }
.bk-day > input, .bk-slot > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-day > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bk-day small { color: var(--muted); font-size: 12.5px; }
.bk-day b { font-family: var(--font-display); font-size: 17px; }
.bk-other > span { min-width: 150px; }
.bk-other input[type=date] { border: 0; background: transparent; font-size: 14px; position: relative; z-index: 1; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bk-slot > span { display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-variant-numeric: tabular-nums; font-weight: 500; }
.bk-day > input:checked + span, .bk-slot > input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bk-day > input:checked + span small { color: inherit; }
.bk-day > input:focus-visible + span, .bk-slot > input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-tabs { display: inline-flex; margin: 6px 0 16px; border-radius: 12px; padding: 4px; }
.bk-tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.bk-tabs a[aria-current] { background: var(--accent); color: var(--accent-fg); }
.bk-tabs a small { opacity: .8; }
.bk-list { display: flex; flex-direction: column; gap: 12px; }
.bk-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; scroll-margin-top: 90px; }
.bk-item:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.bk-item.past { opacity: .72; }
.bk-when { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); padding: 8px 4px; text-align: center; align-self: start; }
.bk-when b { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.bk-when span { font-size: 12px; font-variant-numeric: tabular-nums; }
.bk-body h3 { margin: 0 0 6px; font-size: 16px; }
.bk-body h3 a { color: var(--fg); text-decoration: none; }
.bk-body p { margin: 4px 0; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; }
.bk-body .small svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.bk-reply { background: var(--bg); border-radius: 8px; padding: 6px 10px; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk-act-form { display: flex; gap: 6px; flex: 1 1 260px; }
.bk-act-form .field { flex: 1; min-width: 0; }
.bk-act-form:not(:has(.field)) { flex: none; }
@media (max-width: 560px) { .bk-item { grid-template-columns: 1fr; } .bk-when { flex-direction: row; gap: 8px; justify-content: flex-start; padding: 6px 10px; } }

/* ---------- Trang chủ: ô tìm kiếm nổi + hàng danh mục ngang ---------- */
.hero:has(+ .home-search) .hero-in { padding-bottom: 76px; }
.home-search { position: relative; z-index: 3; margin-top: -40px; }
.home-search .search { margin: 0 auto; max-width: 980px; padding: 9px 9px 9px 18px; border-radius: 16px; box-shadow: 0 10px 28px rgb(11 63 53 / .18); }
.home-search .s-loc { display: flex; flex-direction: row; margin: 0; align-items: center; gap: 6px; border: 1px solid #dbe3e0; border-radius: 12px; padding: 2px 6px 2px 12px; min-width: 230px; cursor: pointer; }
.home-search .s-loc select { flex: 1; width: auto; margin: 0; max-width: none; font-weight: 600; cursor: pointer; }
.home-search .s-btn { padding: 13px 26px; }
.cat-row-sec { margin-top: 18px; }
.cat-row { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 6px 10px; box-shadow: 0 2px 10px rgb(14 60 50 / .05); }
.cr-track { display: flex; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.cr-track::-webkit-scrollbar { display: none; }
.cr-item { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 4px; text-align: center; color: var(--fg); text-decoration: none; border-radius: 12px; }
.cr-item:hover .cr-name { color: var(--accent); }
.cr-item:hover .cr-ic { transform: translateY(-2px); }
.cr-ic { position: relative; width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 3px 8px rgb(14 60 50 / .12); transition: transform .12s; flex: none; }
.cr-crop { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.cr-crop img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.1); display: block; }
.cr-svg { width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.cr-svg svg { width: 30px; height: 30px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-badge { position: absolute; right: -6px; top: -6px; font-style: normal; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; border: 2px solid var(--surface); }
.cr-name { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 98px; }
.cr-arr { position: absolute; top: 36px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); box-shadow: 0 4px 12px rgb(0 0 0 / .12); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.cr-arr:hover { color: var(--accent); }
.cr-prev { left: -14px; } .cr-next { right: -14px; }
.cr-bar { display: none; }
.home-req { padding-top: 20px; }
.home-req .req-cta { margin-top: 0 !important; }
@media (max-width: 640px) {
  .hero:has(+ .home-search) .hero-in { padding-bottom: 60px; }
  .home-search { margin-top: -44px; }
  .home-search .search { padding: 8px; gap: 6px; }
  .home-search .search input { flex: 1 1 calc(100% - 40px); }
  .home-search .s-loc { min-width: 0; flex: 1 1 0; }
  .home-search .s-btn { flex: 0 0 auto; padding: 12px 16px; }
  .cat-row-sec { margin-top: 14px; }
  .cat-row { padding: 12px 0 10px; border-radius: 16px; }
  .cr-track { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 21.5%; row-gap: 8px; padding-inline: 4px; }
  .cr-item { padding: 4px 2px; }
  .cr-ic { width: 56px; height: 56px; border-radius: 16px; }
  .cr-name { font-size: 12px; max-width: 80px; }
  .cr-arr { display: none !important; }
  .cr-bar { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--line); margin: 10px auto 0; position: relative; overflow: hidden; }
  .cr-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--accent); border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) { .cr-track { scroll-behavior: auto; } .cr-ic { transition: none; } }

/* ---------- Trang chủ: tin VIP, nổi bật gần bạn, lưới tin có tab ---------- */
.hv-sec { position: relative; background: var(--hv-bg); box-shadow: 0 0 0 100vmax var(--hv-bg); clip-path: inset(0 -100vmax); padding-block: 28px 30px; margin-top: 28px; }
.hv-sec .sec-head h2, .hf-sec .sec-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hv-nav { display: flex; gap: 6px; }
.hv-arr { width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--vip) 35%, var(--line)); background: var(--surface); color: var(--fg); font-size: 22px; line-height: 1; padding: 0 0 3px; cursor: pointer; }
.hv-arr:hover { color: var(--vip); }
.hv-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px 10px; margin: -2px -2px -10px; }
.hv-row::-webkit-scrollbar { display: none; }
.hv-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 2px solid #e2b04a; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgb(183 121 31 / .16); min-width: 0; }
.hv-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.hv-ph.thumb, .hf-ph .thumb { aspect-ratio: 4 / 3; border-radius: 0; }
.hv-bd, .hf-bd { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 8px; flex: 1; min-width: 0; }
.hv-t { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-place { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; min-width: 0; }
.hv-place svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.hv-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 4px 14px 14px; }
.hv-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 8px; font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; }
.hv-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hv-call { background: var(--accent); color: var(--accent-fg) !important; }
.hv-zalo { background: #0068ff; }
.hv-call:hover, .hv-zalo:hover { filter: brightness(1.08); }
.hf-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hf-card { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid color-mix(in oklab, var(--feat) 50%, var(--line)); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; min-width: 0; transition: box-shadow .12s, transform .12s; }
.hf-card:hover, .hg-card:hover, .hv-card:hover { box-shadow: 0 10px 24px color-mix(in oklab, var(--fg) 10%, transparent); }
.hf-ph { position: relative; display: block; }
.hf-ph .thumb { aspect-ratio: 16 / 10; }
.hf-area { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 20px); background: rgb(255 255 255 / .94); color: #16231f; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-area svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
.hf-bd { padding-bottom: 14px; }
.hf-bd .hv-t { font-size: 15px; }
.hg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.hg-tabs::-webkit-scrollbar { display: none; }
.hg-tabs a { font-family: var(--font-display); font-weight: 600; font-size: 16px; padding: 8px 14px 10px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.hg-tabs a:hover { color: var(--fg); }
.hg-tabs a[aria-current] { color: var(--fg); border-color: var(--accent); }
.hg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; transition: opacity .15s; }
.hg-grid.loading { opacity: .45; }
.hg-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; min-width: 0; }
.hg-ph.thumb { aspect-ratio: 1 / 1; border-radius: 0; }
.hg-bd { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.hg-t { font-weight: 500; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.hg-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-up { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; border-radius: 12px; background: linear-gradient(160deg, var(--hv-bg), color-mix(in oklab, #f6c453 30%, var(--hv-bg))); border: 1.5px dashed #d9a23a; color: inherit; text-decoration: none; }
.hg-up-ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #f6c453, #d99a1e); color: #3d2600; display: grid; place-items: center; font-size: 22px; flex: none; }
.hg-up b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.hg-up-tx { font-size: 13.5px; color: var(--muted); }
.hg-up-btn { background: var(--vip); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; text-align: center; margin-top: 4px; }
.hg-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.hg-more .btn { padding: 10px 30px; border-color: var(--accent); color: var(--accent); }
@media (max-width: 1080px) { .hv-row { grid-auto-columns: calc((100% - 32px) / 3); } .hf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .hv-row { grid-auto-columns: calc((100% - 16px) / 2); } .hf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hv-sec { padding-block: 22px 24px; margin-top: 22px; }
  .hv-nav { display: none; }
  .hv-row { grid-auto-columns: 80%; gap: 12px; margin-right: -16px; padding-right: 16px; }
  .hv-t { font-size: 15px; }
  .hf-row { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hf-row::-webkit-scrollbar { display: none; }
  .hf-card { scroll-snap-align: start; }
  .hf-bd .hv-t { font-size: 14px; }
  .hg-tabs { margin-right: -16px; }
  .hg-tabs a { font-size: 14.5px; padding: 8px 10px; }
  .hg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hg-up { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; }
  .hg-up b { flex: 1; }
  .hg-up-tx { flex: 1 1 100%; }
  .hg-up-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hv-row { scroll-behavior: auto; } .hg-grid { transition: none; } }
.hv-sec .sec-head p, .hf-sec .sec-head p { margin: 4px 0 0; } .hv-sec .sec-head, .hf-sec .sec-head { align-items: flex-end; }
.hv-sec + .near-bar { margin-top: 22px; }
.hf-sec .sec-head > a.link, .hv-sec .sec-head > a.link { white-space: nowrap; }
.hv-sec, .hg-up { --hv-bg: var(--vip-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.hv-sec, .hg-up) { --hv-bg: #2b2414; } }
:root[data-theme="dark"] :is(.hv-sec, .hg-up) { --hv-bg: #2b2414; }
/* Điện thoại: đầu trang không được rộng hơn màn hình (khi đã đăng nhập có thêm chuông, ảnh đại diện) */
@media (max-width: 640px) {
  .top .wrap { gap: 8px; }
  .brand { min-width: 0; flex-shrink: 1; }
  body:has(.bnav) .actions:has(.notif-btn) .hdr-post { display: none; }
  .actions .icon-btn { padding: 7px 8px; }
  .actions .menu > summary.btn { padding: 5px 8px; }
}
@media (max-width: 380px) { .brand b { font-size: 18px; } .actions { gap: 4px; } }
/* Biểu tượng dịch vụ kiểu ô màu chuyển sắc (theo màu danh mục trong Admin) */
.cr-grad { display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg, hsl(var(--h) 80% 62%), hsl(calc(var(--h) + 22) 72% 44%)); box-shadow: 0 8px 16px -6px hsl(var(--h) 70% 40% / .55), inset 0 1px 0 rgb(255 255 255 / .35); }
.cr-grad::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgb(255 255 255 / .28), transparent 48%); pointer-events: none; }
.cr-grad svg { position: relative; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .15)); }
.cr-grad .cr-badge { z-index: 1; }
@media (max-width: 640px) { .cr-grad { border-radius: 17px; } .cr-grad svg { width: 26px; height: 26px; } }

/* ===== Mô tả chi tiết (HTML định dạng) — dùng chung cho trang chi tiết và trình soạn thảo ===== */
.desc-rich { font-size: 15.5px; line-height: 1.75; color: var(--fg); overflow-wrap: anywhere; }
.desc-rich > :first-child { margin-top: 0; }
.desc-rich > :last-child { margin-bottom: 0; }
.desc-rich p { margin: 0 0 12px; }
.desc-rich p.lead { font-size: 16.5px; line-height: 1.7; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); margin-bottom: 16px; }
.desc-rich strong { font-weight: 700; }
.desc-rich h3 { display: flex; align-items: center; gap: 10px; margin: 24px 0 10px; font-family: var(--font-display); font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.desc-rich h3::before { content: ""; flex: none; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); }
.desc-rich ul, .desc-rich ol { margin: 0 0 14px; padding-left: 22px; }
.desc-rich li { margin: 5px 0; }
.desc-rich li::marker { color: var(--accent); }
.desc-rich ul.check { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 22px; }
.desc-rich ul.check li { position: relative; margin: 0; padding-left: 30px; }
.desc-rich ul.check li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.desc-rich ul.check li::after { content: ""; position: absolute; left: 6px; top: calc(.32em + 5px); width: 8px; height: 5px; border: solid var(--accent); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg); }
.desc-rich ol { list-style: none; padding: 0; counter-reset: dstep; }
.desc-rich ol li { position: relative; padding-left: 34px; counter-increment: dstep; margin: 8px 0; }
.desc-rich ol li::before { content: counter(dstep); position: absolute; left: 0; top: .15em; width: 23px; height: 23px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.desc-rich .tbl { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.desc-rich table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.desc-rich th { text-align: left; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; padding: 10px 14px; }
.desc-rich td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.desc-rich tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--bg) 60%, transparent); }
.desc-rich table.gia th:last-child, .desc-rich table.gia td:last-child { text-align: right; white-space: nowrap; }
.desc-rich table.gia td:last-child { font-weight: 700; color: var(--price); }
.desc-rich .callout { position: relative; margin: 4px 0 16px; padding: 13px 16px 13px 48px; border-radius: 12px; background: color-mix(in oklab, var(--hot) 9%, var(--surface)); border: 1px solid color-mix(in oklab, var(--hot) 25%, transparent); }
.desc-rich .callout::before { content: "★"; position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--hot); color: #fff; font-size: 13px; display: grid; place-items: center; line-height: 1; }
.desc-rich .callout p { margin: 0 0 6px; }
.desc-rich .callout p:last-child { margin: 0; }
.desc-rich .callout strong { color: var(--hot); }
.desc-rich blockquote { margin: 0 0 14px; padding: 4px 0 4px 14px; border-left: 3px solid var(--line); color: var(--muted); font-style: italic; }
.desc-rich hr { border: 0; border-top: 1px dashed var(--line); margin: 18px 0; }
.desc-rich p.area { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14.5px; }
.desc-rich p.area::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-5.5 10.2-7.4 11.8a1 1 0 0 1-1.2 0C9.5 20.2 4 15 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-5.5 10.2-7.4 11.8a1 1 0 0 1-1.2 0C9.5 20.2 4 15 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Trang chi tiết: điểm nổi bật + thu gọn */
.dv-hl { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dv-hl li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.dv-hl i { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.dv-hl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dv-desc.clamped { max-height: var(--clamp, 640px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.dv-more { margin-top: 10px; width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.dv-more:hover { background: var(--accent-soft); }
.dv-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.dv-more.open svg { transform: rotate(180deg); }
@media (max-width: 719px) {
  .desc-rich { font-size: 15px; }
  .desc-rich p.lead { font-size: 15.5px; }
  .desc-rich ul.check { grid-template-columns: 1fr; gap: 7px; }
  .desc-rich th, .desc-rich td { padding: 10px 11px; }
}

/* Trình soạn thảo mô tả */
.de { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.de:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.de.over { border-color: var(--hot); }
.de-bar { position: sticky; top: 64px; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: 12px 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.de-bar::-webkit-scrollbar { display: none; }
.de-b { flex: none; height: 34px; min-width: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.de-b:hover { background: var(--bg); }
.de-b.on { background: var(--accent-soft); color: var(--accent); }
.de-b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.de-sep { flex: none; width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.de-row { display: inline-flex; gap: 2px; padding-left: 4px; margin-left: 2px; border-left: 1px solid var(--line); }
.de-row[hidden] { display: none; }
.de-tpl { flex: none; margin-left: auto; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.de-area { position: relative; min-height: 220px; padding: 16px 18px; outline: none; }
.de-area.is-empty::before { content: attr(data-placeholder); position: absolute; left: 18px; top: 16px; right: 18px; color: var(--muted); pointer-events: none; }
.de-area td:focus-within, .de-area th:focus-within { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
.de-field { display: grid; gap: 6px; }
.de-field > label { font-weight: 600; font-size: 14px; }
@media (max-width: 559px) {
  .de-b.has-l:not(.de-row .de-b) span { display: none; }
  .de-area { padding: 14px; min-height: 200px; }
  .de-area.is-empty::before { left: 14px; top: 14px; }
}
.desc-rich .callout strong:first-child, .desc-rich .callout b { display: inline; margin: 0; color: var(--hot); }

/* ===== Trang danh sách dịch vụ (bản mới 2026-11) ===== */
.lp2-head { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 10%, var(--surface)), var(--bg)); border-bottom: 0; }
.lp2-head .lhead-in { padding-block: 14px 18px; }
.lp2-top { display: flex; align-items: center; gap: 16px; }
.lp2-tt { min-width: 0; }
.lp2-tt h1 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
.lp2-tt p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.lp2-tt p b { color: var(--fg); }
.lp2-star { color: #d99a1e; font-weight: 700; }
.lp2-ic { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, hsl(var(--h) 80% 62%), hsl(calc(var(--h) + 22) 72% 44%)); box-shadow: 0 8px 16px -6px hsl(var(--h) 70% 40% / .55), inset 0 1px 0 rgb(255 255 255 / .35); }
.lp2-ic::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgb(255 255 255 / .28), transparent 48%); pointer-events: none; }
.lp2-ic svg { position: relative; width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.lp2-ic.sm { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 5px 10px -5px hsl(var(--h) 70% 40% / .6); }
.lp2-ic.sm svg { width: 18px; height: 18px; }
.lp2-head .lsearch { background: var(--surface); max-width: 680px; }
.lp2-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.lp2-tags a { background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.lp2-tags a small { color: var(--muted); }
.lp2-tags a:hover, .lp2-tags a[aria-current="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.lp2-nav { padding-top: 6px; }
.lp2-sibs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.lp2-sibs::-webkit-scrollbar { display: none; }
.lp2-sibs a { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 6px 6px; white-space: nowrap; text-decoration: none; color: var(--fg); font-weight: 600; font-size: 14px; transition: border-color .12s; }
.lp2-sibs a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.lp2-sibs a:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.lp2-sibs a[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }

.lp2-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 67px); z-index: 4; padding-block: 4px 8px; background: var(--bg); }
.lp2-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 6px 18px color-mix(in oklab, var(--fg) 6%, transparent); }
.lp2-bar .grow { flex: 1; }
.lp2-bar form { margin: 0; display: contents; }
.fb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; line-height: 1.2; }
.fb:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.fb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.fb-main { background: var(--fg); color: var(--surface); border-color: var(--fg); font-weight: 600; }
.fb-main:hover { border-color: var(--fg); }
.fb-main b { background: var(--hot); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding-inline: 5px; }
select.sort.fb { padding-right: 10px; appearance: auto; }
.lp2-bar .save-search .fb span { display: inline; }
.lp2-bar .view-tg { border-radius: 10px; flex: none; }
.fdd { position: relative; }
.fdd > summary { list-style: none; }
.fdd > summary::-webkit-details-marker { display: none; }
.fdd-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; min-width: 220px; max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px color-mix(in oklab, var(--fg) 16%, transparent); padding: 6px; display: flex; flex-direction: column; }
.fdd-pop a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px; }
.fdd-pop a small { color: var(--muted); }
.fdd-pop a:hover { background: var(--bg); }
.fdd-pop a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.lbody.lp2 { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; padding-top: 16px; }
.lp2 .results { grid-column: 1; grid-row: 1; }
.lp2 .chips { margin-top: 0; margin-bottom: 10px; }
.lp2-count { margin: 0; color: var(--muted); font-size: 13.5px; }
.lp2 .rows { margin-top: 10px; }
.lp2 .seo-intro { margin-top: 0; }

/* Bộ lọc đầy đủ: ngăn kéo bên phải trên máy tính */
@media (min-width: 901px) {
  .lp2 .filters { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 92vw; z-index: 30; border-radius: 0; border: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; box-shadow: -18px 0 40px color-mix(in oklab, var(--fg) 14%, transparent); }
  .lp2 .filters.open { transform: none; visibility: visible; transition: transform .22s ease; }
  .lp2 .filters form { display: flex; flex-direction: column; height: 100%; }
  .lp2 .f-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .lp2 .f-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
  .lp2 .f-head .x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
  .lp2 .f-scroll { flex: 1; overflow: auto; }
  .lp2 .f-foot { border-top: 1px solid var(--line); }
  .lp2 .f-foot .apply { display: inline-flex; flex: 1; justify-content: center; }
  .lp2 .f-foot .apply-desk { display: none; }
}

/* Thẻ tin dạng hàng */
.ritem { position: relative; grid-template-columns: 230px minmax(0, 1fr) 176px; gap: 16px; border-radius: 16px; cursor: default; }
.ritem:hover { box-shadow: 0 10px 26px color-mix(in oklab, var(--fg) 10%, transparent); }
.ritem .thumb { border-radius: 12px; }
.ritem.tier-vip { border: 2px solid #e2b04a; padding: 11px; }
.ritem.tier-featured { border: 1.5px solid color-mix(in oklab, var(--feat) 55%, var(--line)); padding: 11.5px; }
.r-link { color: inherit; text-decoration: none; }
.r-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.r-link:focus-visible { outline: none; }
.ritem:has(.r-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ritem:hover h3 { color: var(--accent); }
.ritem .r-main h3 { font-family: var(--font-display); font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-rib { position: absolute; left: 20px; top: 20px; z-index: 2; pointer-events: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgb(0 0 0 / .2); }
.r-rib-vip { background: linear-gradient(135deg, #f6c453, #d99a1e); color: #3d2600; }
.r-rib-featured { background: var(--feat); color: #fff; }
.ritem .trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.ritem .rating small { color: var(--muted); font-weight: 500; }
.ritem .r-side { border-left: 1px dashed var(--line); padding-left: 14px; gap: 12px; }
.r-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.r-pr .price { font-size: 19px; }
.r-pr .r-who { font-size: 12.5px; }
.r-cta { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.r-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 10px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.r-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r-call { background: var(--accent); color: var(--accent-fg, #fff); }
.r-call:hover { filter: brightness(1.06); }
.r-zalo { background: #0068ff; color: #fff; }
.r-see { border: 1.5px solid var(--accent); color: var(--accent); }
.r-see:hover { background: var(--accent-soft); }
.ritem .tier-pin { display: none; }

.lp2-req { display: flex; flex-direction: column; gap: 4px; background: var(--hero, #0f3d35); color: #eaf7f3; border-radius: 16px; padding: 18px 20px; text-decoration: none; position: relative; overflow: hidden; }
.lp2-req::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .12), transparent 70%); }
.lp2-req span { color: #9fd3c5; font-size: 13px; }
.lp2-req b { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; }
.lp2-req i { font-style: normal; align-self: flex-start; background: var(--hot); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; margin-top: 8px; }
.lp2-req:hover i { filter: brightness(1.08); }

.lp2-side { grid-column: 2; grid-row: 1; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); display: flex; flex-direction: column; gap: 14px; }
.lp2-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.lp2-box > b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.lp2-box p { margin: 0 0 12px; font-size: 13.5px; }
.lp2-box > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.lp2-box.dark { background: var(--hero, #0f3d35); color: #eaf7f3; border: 0; }
.lp2-box.dark p { color: #bfe0d7; }
.lp2-box.dark .btn { width: 100%; justify-content: center; }
.lp2-price { margin: 0; }
.lp2-price div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lp2-price dt { color: var(--muted); }
.lp2-price dd { margin: 0; font-weight: 700; color: var(--price); }
.lp2-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.lp2-areas a { background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--fg); text-decoration: none; }
.lp2-areas a:hover { color: var(--accent); }
.lp2-areas small { color: var(--muted); }

@media (max-width: 1080px) {
  .lbody.lp2 { grid-template-columns: minmax(0, 1fr) 260px; }
  .ritem { grid-template-columns: 180px minmax(0, 1fr) 160px; }
}
@media (max-width: 900px) {
  .lbody.lp2 { grid-template-columns: minmax(0, 1fr); }
  .lp2-side { grid-column: 1; grid-row: auto; position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .lp2-side .dark { grid-column: 1 / -1; }
  .lp2-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; border-radius: 0; border-inline: 0; padding: 8px 16px; }
  .lp2-sticky { top: calc(env(safe-area-inset-top, 0px) + 65px); padding-block: 0; }
  .lp2-bar::-webkit-scrollbar { display: none; }
  .lp2-bar .grow { display: none; }
  .fdd { position: static; }
  .fdd-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); max-height: 60vh; min-width: 0; z-index: 40; box-shadow: 0 -10px 40px color-mix(in oklab, var(--fg) 25%, transparent); }
  .fdd-pop a { padding: 11px 12px; font-size: 15px; }
}
@media (max-width: 640px) {
  .lp2-head .lhead-in { padding-block: 10px 12px; gap: 10px; }
  .lp2-top { gap: 12px; }
  .lp2-ic { width: 52px; height: 52px; border-radius: 16px; }
  .lp2-ic svg { width: 26px; height: 26px; }
  .lp2-tt h1 { font-size: 20px; }
  .lp2-tt p { font-size: 13px; }
  .lp2-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .lp2-tags::-webkit-scrollbar { display: none; }
  .lp2-tags > span { display: none; }
  .lp2-sibs { margin-right: -16px; padding-right: 16px; }
  .lp2-sibs a { padding: 5px 12px 5px 5px; font-size: 13px; }
  .lp2-bar .save-search .fb span { display: none; }
  .lp2-side { grid-template-columns: minmax(0, 1fr); }
  .ritem, .ritem.tier-vip, .ritem.tier-featured { grid-template-columns: 112px minmax(0, 1fr); gap: 10px 12px; padding: 10px; }
  .ritem.tier-vip { padding: 9px; }
  .ritem.tier-featured { padding: 9.5px; }
  .ritem .thumb { aspect-ratio: 1; }
  .r-rib { left: 14px; top: 14px; font-size: 10.5px; padding: 2px 7px; }
  .ritem .r-main h3 { font-size: 15px; }
  .ritem .trust-line { font-size: 12px; gap: 6px; }
  .ritem .verified { font-size: 11px; }
  .ritem .r-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px dashed var(--line); padding: 10px 0 0; margin-top: 0; }
  .r-pr { align-items: flex-start; }
  .r-pr .price { font-size: 17px; }
  .r-pr .r-who { display: none; }
  .ritem .r-cta { flex-direction: row; width: auto; }
  .ritem .r-cta a { display: inline-flex; padding: 8px 14px; }
  .lp2-req b { font-size: 16px; }
}
.ritem.tier-vip { --rv-bg: var(--vip-soft); background: linear-gradient(90deg, var(--rv-bg), var(--surface) 45%); box-shadow: 0 8px 22px rgb(183 121 31 / .13); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ritem.tier-vip { --rv-bg: #2b2414; } }
:root[data-theme="dark"] .ritem.tier-vip { --rv-bg: #2b2414; }
.ritem .thumb .tag { top: auto; bottom: 8px; }
.lp2-sibs-w { position: relative; }
.lp2-sibs-w.fade-r .lp2-sibs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.lp2-sibs-w.fade-l .lp2-sibs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px); mask-image: linear-gradient(90deg, transparent, #000 70px); }
.lp2-sibs-w.fade-l.fade-r .lp2-sibs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); }
.lp2-arr { position: absolute; top: 4px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; box-shadow: 0 4px 12px color-mix(in oklab, var(--fg) 14%, transparent); }
.lp2-arr.prev { left: -6px; } .lp2-arr.next { right: -6px; }
.lp2-arr:hover { border-color: var(--accent); color: var(--accent); }
.lp2-arr[hidden] { display: none; }
select.sort.fb { width: auto; max-width: 150px; }
@media (max-width: 1320px) { .lp2-bar .save-search .fb span { display: none; } .lp2-bar .save-search .fb { padding-inline: 10px; } }
.lp2-tg { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lp2-tg::-webkit-scrollbar { display: none; }
.lp2-tg.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.lp2-bar > * { flex-shrink: 0; }
.lp2-bar > .lp2-tg { flex-shrink: 1; }
@media (max-width: 900px) { .lp2-bar > .lp2-tg { flex: none; overflow: visible; } .lp2-tg.fade-r { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 900px) { .lp2-arr { display: none; } }
/* Bảng lọc: phần giữa cuộn được, đầu và chân đứng yên */
@media (max-width: 900px) {
  .filters form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .filters .f-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .filters .f-head .x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
}
body:has(.filters.open) { overflow: hidden; }
body:has(.filters.open) :is(.float-contact, .bnav, .callbar) { display: none; }
/* Danh sách: nút ♡, nhãn hoạt động, gợi ý khu vực khác, "Xem thêm tin" */
.ritem .heart { position: absolute; z-index: 2; left: calc(12px + 230px - 40px); top: 20px; }
.heart { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .94); color: #5b6b66; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .18); padding: 0; transition: transform .15s; }
.heart svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.heart:hover { color: #e0245e; transform: scale(1.08); }
.heart.on { color: #e0245e; }
.heart.on svg { fill: currentColor; }
.heart.pop { animation: heartPop .35s ease; }
@keyframes heartPop { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .heart.pop { animation: none; } }
.ob { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ob-fast { color: #b7791f; }
.ob-fast i { font-style: normal; }
.ob-on { color: var(--ok, #138a5b); }
.ob-on i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ob-on.live i { box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 25%, transparent); }
.lp2-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 22px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }
.lp2-empty b { font-family: var(--font-display); font-size: 18px; }
.lp2-empty span { color: var(--muted); font-size: 14px; }
.lp2-sug { margin-top: 26px; }
.lp2-sug-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.lp2-sug-h h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.lp2-sug-h p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.lp2-sug-h .link { white-space: nowrap; font-weight: 600; }
.lp2-more { display: flex; justify-content: center; margin-top: 16px; }
.lp2-more[hidden] { display: none; }
.lp2-more .btn { min-width: 220px; justify-content: center; }
.lp2-more small { color: var(--muted); font-weight: 400; }
.pager.pager-hide { display: none; }
@media (max-width: 1080px) { .ritem .heart { left: calc(12px + 180px - 40px); } }
@media (max-width: 640px) {
  .ritem .heart { left: calc(10px + 112px - 34px); top: 14px; width: 28px; height: 28px; }
  .ritem .heart svg { width: 15px; height: 15px; }
  .lp2-sug-h { align-items: flex-start; flex-direction: column; gap: 6px; }
  .lp2-more .btn { width: 100%; }
}

/* ===== Giao diện theo ngành (trang danh sách) ===== */
.tpl-food { --accent: #c2410c; --accent-fg: #fff; }
.tpl-calm { --accent: #334155; --accent-fg: #fff; --hot: #475569; }
.tpl-sos  { --accent: #b91c1c; --accent-fg: #fff; --hot: #dc2626; }
.tpl-book { --accent: #be185d; --accent-fg: #fff; --hot: #be185d; }
.tpl-repair { --accent: #1d4ed8; --accent-fg: #fff; --hot: #ea580c; }
.tpl-clean { --accent: #0e7490; --accent-fg: #fff; --hot: #0891b2; }
.tpl-move  { --accent: #4338ca; --accent-fg: #fff; --hot: #f59e0b; }
.tpl-care  { --accent: #7c3aed; --accent-fg: #fff; --hot: #7c3aed; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tpl-food { --accent: #fb923c; --accent-fg: #2a1206; }
  :root:not([data-theme="light"]) .tpl-calm { --accent: #a5b4c8; --accent-fg: #0f172a; --hot: #64748b; }
  :root:not([data-theme="light"]) .tpl-sos  { --accent: #f87171; --accent-fg: #2a0707; }
  :root:not([data-theme="light"]) .tpl-book { --accent: #f472b6; --accent-fg: #2a0716; --hot: #db2777; }
  :root:not([data-theme="light"]) .tpl-repair { --accent: #60a5fa; --accent-fg: #0b1a33; }
  :root:not([data-theme="light"]) .tpl-clean { --accent: #22d3ee; --accent-fg: #062a33; }
  :root:not([data-theme="light"]) .tpl-move  { --accent: #a5b4fc; --accent-fg: #14123a; }
  :root:not([data-theme="light"]) .tpl-care  { --accent: #c4b5fd; --accent-fg: #1e0b3d; --hot: #8b5cf6; }
}
:root[data-theme="dark"] .tpl-food { --accent: #fb923c; --accent-fg: #2a1206; }
:root[data-theme="dark"] .tpl-calm { --accent: #a5b4c8; --accent-fg: #0f172a; --hot: #64748b; }
:root[data-theme="dark"] .tpl-sos  { --accent: #f87171; --accent-fg: #2a0707; }
:root[data-theme="dark"] .tpl-book { --accent: #f472b6; --accent-fg: #2a0716; --hot: #db2777; }
:root[data-theme="dark"] .tpl-repair { --accent: #60a5fa; --accent-fg: #0b1a33; }
:root[data-theme="dark"] .tpl-clean { --accent: #22d3ee; --accent-fg: #062a33; }
:root[data-theme="dark"] .tpl-move  { --accent: #a5b4fc; --accent-fg: #14123a; }
:root[data-theme="dark"] .tpl-care  { --accent: #c4b5fd; --accent-fg: #1e0b3d; --hot: #8b5cf6; }
.tpl[class*="tpl-"] { --accent-soft: color-mix(in oklab, var(--accent) 13%, var(--surface)); }
.tpl[class*="tpl-"] .lp2-head { background: radial-gradient(circle at 88% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 42%), linear-gradient(180deg, color-mix(in oklab, var(--accent) 9%, var(--surface)), var(--bg)); }
.lp2-lead { margin: 2px 0 0 !important; font-size: 14px; color: var(--muted); }
.tpl-food .lp2-tt h1 { color: color-mix(in oklab, var(--accent) 55%, var(--fg)); }
.tpl-calm .lp2-tt h1 { font-weight: 500; }
.tpl-calm .lp2-ic, .tpl-calm .lp2-sibs .lp2-ic { filter: saturate(.25); }
.tpl-calm .lp2-star { color: var(--muted); }

/* Khung gọi ngay (tang lễ, khẩn cấp) */
.lp2-hot { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; max-width: 860px; background: #1e293b; color: #e2e8f0; border-radius: 16px; padding: 14px 16px; }
.lp2-hot > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.lp2-hot small { color: #94a3b8; font-size: 12.5px; }
.lp2-hot b { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: #fff; }
.lp2-hot span { font-size: 13px; color: #94a3b8; }
.lp2-hot a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 11px 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lp2-hot svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp2-hot-call { background: #e2e8f0; color: #0f172a; }
.lp2-hot-zalo { border: 1px solid #475569; color: #e2e8f0; }
.tpl-sos .lp2-hot { background: linear-gradient(135deg, #7f1d1d, #b91c1c); color: #fff; }
.tpl-sos .lp2-hot small, .tpl-sos .lp2-hot span { color: #fecaca; }
.tpl-sos .lp2-hot-call { background: #fff; color: #b91c1c; font-size: 16px; padding: 13px 22px; box-shadow: 0 0 0 5px rgb(255 255 255 / .18); }
.tpl-sos .lp2-hot-zalo { border-color: rgb(255 255 255 / .45); color: #fff; }

/* Dải nhận báo giá (sửa chữa, dọn dẹp, vận chuyển) và dải an tâm (chăm sóc) */
.lp2-quote, .lp2-care { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; max-width: 860px; border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--fg); background: var(--surface); border: 1.5px solid color-mix(in oklab, var(--accent) 35%, var(--line)); }
.lp2-quote:hover { border-color: var(--accent); }
.lp2-quote > span:nth-child(2), .lp2-care > span:nth-child(2) { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 1px; }
.lp2-quote b, .lp2-care b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.lp2-quote small, .lp2-care small { color: var(--muted); font-size: 13px; }
.lp2-quote-ic, .lp2-care-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 19px; }
.lp2-quote-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp2-quote i { font-style: normal; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lp2-care a { border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; border: 1.5px solid var(--accent); color: var(--accent); }
.lp2-care a.on { background: var(--accent); color: var(--accent-fg); }
.tpl-move .lp2-quote { background: linear-gradient(135deg, #1e1b4b, #3730a3); border: 0; color: #eef2ff; }
.tpl-move .lp2-quote small { color: #c7d2fe; }
.tpl-move .lp2-quote-ic { background: rgb(255 255 255 / .14); color: #fde68a; }
.tpl-move .lp2-quote i { background: #f59e0b; color: #1e1b4b; }
.tpl-repair .lp2-quote i { background: var(--hot); color: #fff; }
.tpl-care .verified { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) {
  .lp2-quote > span:nth-child(2), .lp2-care > span:nth-child(2) { min-width: 0; flex-basis: calc(100% - 60px); }
  .lp2-quote i, .lp2-care a { flex: 1; text-align: center; }
}

/* Ô "Hôm nay có gì?" bên phải đầu trang (chỉ máy tính) */
.lp2-today { display: none; }
@media (min-width: 1100px) {
  .lhead-in.has-today { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; row-gap: 12px; align-content: start; }
  .lhead-in.has-today > * { grid-column: 1; }
  .lhead-in.has-today > .lp2-today { grid-column: 2; grid-row: 1 / span 6; align-self: start; display: flex; }
}
.lp2-today { flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--line)); border-radius: 20px; padding: 16px; box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--accent) 35%, transparent); }
.lp2-today > b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.lp2-today-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lp2-today-g a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; background: var(--accent-soft, var(--bg)); text-decoration: none; color: var(--fg); transition: transform .15s, box-shadow .15s; }
.lp2-today-g a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px color-mix(in oklab, var(--fg) 40%, transparent); }
.lp2-today-g img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.lp2-today-g .lp2-ic { width: 52px; height: 52px; border-radius: 15px; }
.lp2-today-g .lp2-ic svg { width: 26px; height: 26px; }
.lp2-today-g small { font-size: 11.5px; line-height: 1.3; text-align: center; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.lp2-today-g a:hover small { color: var(--accent); }
.lp2-today-g em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.tpl-calm .lp2-today-g em { color: var(--fg); }
.lp2-today-f { font-size: 12px; color: var(--muted); }

/* Mẹo / việc cần làm ở cột phải */
.lp2-tips ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.lp2-tips li { counter-increment: s; display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.lp2-tips li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tpl-calm .lp2-side .lp2-tips { order: -1; }

/* Tang lễ: không ruy băng vàng, không viền nổi bật */
.tpl-calm .ritem.tier-vip, .tpl-calm .ritem.tier-featured { border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); background: var(--surface); box-shadow: none; padding: 12px; }
.r-rec { position: absolute; right: 16px; top: -10px; z-index: 2; font-size: 11.5px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 1px 10px; }
.r-from { display: block; font-size: 12px; color: var(--muted); }
.tpl-calm .r-pr .price { color: var(--fg); }
.tpl-calm .ob-fast { color: var(--muted); }

/* Khẩn cấp: nút gọi đỏ, to */
.tpl-sos .r-call { background: #dc2626; color: #fff; font-size: 15px; padding: 11px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tpl-sos .r-call { background: #ef4444; } }

/* Đặt lịch */
.r-book { background: var(--accent); color: var(--accent-fg); }
.r-book svg { width: 16px; height: 16px; }
.r-call.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* Thực phẩm: lưới món kiểu cửa hàng */
.rows.grid.food { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.fcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: 0 12px 28px color-mix(in oklab, var(--fg) 12%, transparent); transform: translateY(-2px); }
.fcard.tier-vip { border: 2px solid #e2b04a; }
.fcard.tier-featured { border: 1.5px solid color-mix(in oklab, var(--feat) 55%, var(--line)); }
.fcard .fc-ph { aspect-ratio: 1; border-radius: 0; }
.fcard .heart { position: absolute; z-index: 2; right: 10px; top: 10px; }
.fcard .r-rib { left: 10px; top: 10px; }
.fcard .thumb .tag { top: auto; bottom: 10px; left: auto; right: 10px; }
.fc-bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fc-bd h3 { margin: 0; font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.fcard:hover h3 { color: var(--accent); }
.fc-shop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.fc-shop .verified { font-size: 11px; }
.fc-rate { font-size: 13px; }
.fc-rate .rating small { color: var(--muted); font-weight: 400; }
.fcard .price { font-size: 19px; margin-top: 2px; }
.fc-cta { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.fc-cta a { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 9px; font-weight: 600; font-size: 14px; text-decoration: none; }
.fc-zalo { flex: 1; background: #0068ff; color: #fff; }
.fc-tel { width: 42px; border: 1.5px solid var(--line); color: var(--fg); }
.fc-tel svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-tel:hover { border-color: var(--accent); color: var(--accent); }
.fc-open { display: flex; flex-direction: column; justify-content: center; gap: 8px; border-radius: 18px; padding: 22px; background: linear-gradient(160deg, #431407, #7c2d12); color: #fff7ed; text-decoration: none; }
.fc-open span { font-size: 44px; line-height: 1; }
.fc-open b { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.fc-open p { margin: 0; color: #fed7aa; font-size: 14px; }
.fc-open i { font-style: normal; align-self: flex-start; background: #fb923c; color: #431407; font-weight: 700; border-radius: 999px; padding: 9px 16px; margin-top: 6px; }
@media (max-width: 640px) {
  .lp2-hot { padding: 12px; }
  .lp2-hot > div { flex-basis: 100%; }
  .lp2-hot a { flex: 1; }
  .rows.grid.food { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fc-bd { padding: 10px; }
  .fc-bd h3 { font-size: 14px; }
  .fc-shop .verified, .fc-rate .rating small { display: none; }
  .fcard .price { font-size: 16px; }
  .fc-cta a { padding: 8px 4px; font-size: 13px; }
  .fc-tel { width: 36px; flex: none; }
  .fcard .heart { width: 28px; height: 28px; right: 6px; top: 6px; }
  .fcard .r-rib { left: 6px; top: 6px; }
  .fc-open { grid-column: 1 / -1; padding: 18px; }
}
.fcard .tier-pin { display: none; }
.tpl-calm .lp2-box.dark { background: #1e293b; }
.tpl-calm .lp2-price dd { color: var(--fg); }
.tpl-calm .r-pr .price { font-size: 17px; }

/* Ô chọn tỉnh/thành, phường/xã có tìm kiếm (addr.js) */
.addr-wrap { position: relative; }
.addr-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0; pointer-events: none; }
.addr-prov { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378857f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.addr-pop { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px -12px color-mix(in oklab, var(--fg) 30%, transparent); padding: 4px; }
.addr-opt { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; line-height: 1.3; color: var(--fg); }
.addr-opt.on, .addr-opt:hover { background: var(--accent-soft, color-mix(in oklab, var(--accent) 12%, var(--surface))); color: var(--accent); }
.addr-more { padding: 8px 12px; font-size: 12.5px; color: var(--muted); }

/* Tìm nhanh trong ô thả xuống của thanh lọc */
.fdd-q { position: sticky; top: -6px; z-index: 1; margin: -6px -6px 6px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; outline: none; }
.fdd-q:focus { border-bottom-color: var(--accent); }
.fdd-wide { min-width: 260px; max-height: 380px; }
.fdd-h { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fdd-none { padding: 10px; font-size: 13px; color: var(--muted); }
.fdd-pop a[hidden], .fdd-pop [hidden] { display: none; }

/* Nhắc người đăng thêm ảnh thật */
.photo-nudge { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in oklab, var(--accent) 9%, var(--surface)); border: 1px dashed color-mix(in oklab, var(--accent) 45%, var(--line)); }
.photo-nudge > span { font-size: 26px; line-height: 1; }
.photo-nudge > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.photo-nudge b { font-size: 15px; }
.photo-nudge small { color: var(--muted); font-size: 13px; }
.photo-tip { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.photo-tip a { color: var(--accent); font-weight: 600; }

/* ===== Thông tin riêng theo ngành ===== */
/* Nhãn trên thẻ tin, trang tin */
.xbs { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0; }
.xb { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; line-height: 1.5; border-radius: 999px; padding: 1px 9px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.xb.ok { background: #dcfce7; color: #15803d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xb.ok { background: #12351f; color: #86efac; } }
:root[data-theme="dark"] .xb.ok { background: #12351f; color: #86efac; }
.dv-xbs { margin: 0 0 12px; }
.dv-xbs .xb { font-size: 13px; padding: 3px 11px; }
.dv-xspec { margin-bottom: 4px; }
.xfb { border-style: dashed; }
.xfb.on { border-style: solid; }
/* Thẻ món ăn */
.fc-xtags { position: absolute; z-index: 1; left: 0; right: 0; top: 0; aspect-ratio: 1; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 5px; pointer-events: none; }
.fc-xtag, .fc-xreg { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; box-shadow: 0 2px 6px rgb(0 0 0 / .14); }
.fc-xtag { background: #fff; color: #c2410c; }
.fc-xreg { background: rgb(15 23 42 / .72); color: #fff; }
.fc-min { align-self: flex-start; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.fc-shop .xb { font-size: 10.5px; padding: 0 7px; }

/* Form đăng tin */
.xf-grp .xf-num { background: var(--accent-soft); color: var(--accent); }
.xf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.xf-ck { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.xf-ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xf-ck i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--accent); display: grid; place-items: center; }
.xf-ck i::after { content: "✓"; color: var(--accent-fg); font-size: 13px; font-style: normal; font-weight: 800; opacity: 0; }
.xf-ck span { display: flex; flex-direction: column; gap: 1px; }
.xf-ck b { font-size: 14.5px; }
.xf-ck small { color: var(--muted); font-size: 12.5px; }
.xf-ck:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.xf-ck:has(input:checked) i { background: var(--accent); }
.xf-ck:has(input:checked) i::after { opacity: 1; }
.xf-ck:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.xf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.xf-f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; }
.xf-f .field { font-weight: 400; }
.xf-num-in { position: relative; display: block; }
.xf-num-in .field { width: 100%; padding-right: 54px; }
.xf-num-in em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.xf-pk, .xf-slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.xf-pk > small, .xf-slots > small { color: var(--muted); font-size: 12.5px; margin-top: -6px; }
.xf-pk-row { display: grid; grid-template-columns: 1fr 2fr 150px; gap: 8px; }
.xf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.xf-pills label { position: relative; cursor: pointer; }
.xf-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xf-pills span { display: inline-block; min-width: 52px; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.xf-pills input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.xf-pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.xf-doc { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.xf-doc-ic { font-size: 26px; line-height: 1; }
.xf-doc > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.xf-doc small { color: var(--muted); font-size: 12.5px; }
.xf-doc .xf-doc-st { color: #b45309; font-weight: 600; }
.xf-doc .xf-doc-st.ok { color: #15803d; }
.xf-doc input[type=file] { font-size: 13px; max-width: 100%; }
.xf-doc-adm { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.xf-doc-adm a { color: var(--accent); font-weight: 600; }
.xf-doc-del { font-size: 12.5px; color: var(--muted); }
.xf-admin { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.xf-h { margin: 0 0 10px; font-size: 15px; }
@media (max-width: 640px) {
  .xf-checks { grid-template-columns: 1fr; }
  .xf-pk-row { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
}

/* Trang tin: bảng gói, lịch tuần */
.pk-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.pk-tbl th, .pk-tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk-tbl th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pk-tbl td b { font-family: var(--font-display); font-weight: 600; }
.pk-pr { white-space: nowrap; font-weight: 700; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.wk-d { display: flex; flex-direction: column; gap: 6px; text-align: center; min-width: 0; }
.wk-d b { font-size: 13px; }
.wk-d small { font-size: 11.5px; color: var(--muted); margin-top: -6px; }
.wk-s { display: block; border: 1.5px solid color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: 10px; padding: 7px 0; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
a.wk-s:hover { background: var(--accent); color: var(--accent-fg); }
.wk-s.off { border-color: var(--line); color: var(--muted); font-weight: 400; text-decoration: line-through; }
.wk-none { font-size: 12px; color: var(--muted); padding: 7px 0; }
@media (max-width: 640px) {
  .wk { grid-template-columns: repeat(7, 74px); overflow-x: auto; padding-bottom: 6px; }
  .pk-tbl thead { display: none; }
  .pk-tbl tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .pk-tbl td { border: 0; padding: 2px 0; }
  .pk-tbl td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 13px; }
}
.xf-doc .xf-doc-adm label, .xf-doc label.xf-doc-del { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.xf-doc .xf-doc-adm input, .xf-doc .xf-doc-del input { width: auto; margin: 0; }

/* ---------- Đánh giá nâng cao + hồ sơ người bán (2026-11) ---------- */
:root { --ok-bg: #e6f4ea; --ok-fg: #1c7a3c; --ok-line: #bfe3cb; --star: #f2a516; --star-soft: #fff4dc; --zalo: #0068ff; --pro-bg: #fff1d6; --pro-fg: #9a5b00; --note-bg: #fff8e6; --note-line: #f1d9a0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok-bg: #173a26; --ok-fg: #7fd59b; --ok-line: #24533a; --star-soft: #3a2f14; --pro-bg: #3a2a10; --pro-fg: #f2c46b; --note-bg: #2e2714; --note-line: #4d3f1c; } }
:root[data-theme="dark"] { --ok-bg: #173a26; --ok-fg: #7fd59b; --ok-line: #24533a; --star-soft: #3a2f14; --pro-bg: #3a2a10; --pro-fg: #f2c46b; --note-bg: #2e2714; --note-line: #4d3f1c; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.zalo { background: var(--zalo); color: #fff; }
.rv-ok { font-size: 12px; font-weight: 600; color: var(--ok-fg); background: var(--ok-bg); border-radius: 99px; padding: 2px 9px; }
.rv-item p { margin: 6px 0 0 44px; line-height: 1.6; }
.rv-photos, .rv-tags, .rv-reply, .rv-for, .rv-reply-form { margin-left: 44px; }
.rv-photos { display: flex; gap: 6px; margin-top: 8px; }
.rv-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; background: var(--line); }
.rv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.rv-tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.rv-for { display: inline-block; margin-top: 6px; }
.rv-reply { margin-top: 8px; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 11px; font-size: 14px; }
.rv-reply-form { margin-top: 6px; }
.rv-reply-form summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 600; }
.rv-reply-form form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rv-reply-form .btn { align-self: flex-start; }
.rv-tagsum { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.rv-tagsum span { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.rv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r); margin: 12px 0; }
.rv-cta > span { flex: 1 1 220px; font-size: 14px; }
.rv-cta-stars, .bk-stars, .notif-rv { display: inline-flex; gap: 2px; }
.rv-cta-stars a, .bk-stars a, .notif-rv a { font-size: 26px; line-height: 1; color: var(--line); text-decoration: none; transition: color .1s, transform .1s; }
.rv-cta-stars:hover a, .bk-stars:hover a, .notif-rv:hover a { color: var(--star); }
.rv-cta-stars a:hover ~ a, .bk-stars a:hover ~ a, .notif-rv a:hover ~ a { color: var(--line); }
.rv-cta-stars a:hover, .bk-stars a:hover, .notif-rv a:hover { transform: scale(1.15); }
.bk-stars { margin-right: 8px; vertical-align: middle; }
.notif-rv { margin: -4px 0 8px 52px; padding: 4px 10px; background: var(--star-soft); border-radius: 10px; }
.notif-rv a { font-size: 24px; color: var(--star); opacity: .55; }
.notif-rv a:hover { opacity: 1; }
.bk-rv { margin-top: 10px; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.bk-rv b { color: var(--ok-fg); }
.bk-rv.done { display: block; }
.bk-rv-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 560px) { .rv-item p, .rv-photos, .rv-tags, .rv-reply, .rv-for, .rv-reply-form { margin-left: 0; } .notif-rv { margin-left: 0; } }

/* Trang chấm sao */
.rvp { max-width: 560px; padding-block: 20px 40px; }
.rvp-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; }
.rvp-h { margin: 0; font-family: var(--font-display); font-size: 21px; }
.rvp-who { display: flex; gap: 12px; align-items: center; }
.rvp-who .avatar { background: hsl(165 45% 38%); color: #fff; overflow: hidden; }
.rvp-who > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.rvp-who b { font-size: 16px; }
.rvp-stars { border: 0; margin: 4px 0 0; padding: 0; text-align: center; }
.star-pick.big { justify-content: center; gap: 8px; }
.star-pick.big label { font-size: 46px; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--star); }
.rvp-word { margin: 4px 0 0; color: var(--muted); font-weight: 600; min-height: 1.5em; }
.rvp-word.on { color: #c27c00; }
.rvp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.rvp-tags label { cursor: pointer; }
.rvp-tags input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rvp-tags span { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-size: 14px; background: var(--surface); transition: background .1s, border-color .1s; }
.rvp-tags input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rvp-tags input:checked + span::before { content: "✓ "; }
.rvp-tags input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rvp-lbl { font-weight: 600; font-size: 14px; margin-bottom: -6px; }
.rvp-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.rvp-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; }
.rvp-old { position: relative; cursor: pointer; }
.rvp-old input { position: absolute; top: 4px; left: 4px; }
.rvp-old span { display: none; }
.rvp-old:has(input:not(:checked)) img { opacity: .35; }
.rvp-add { width: 72px; height: 72px; border: 1.5px dashed var(--line); border-radius: 12px; display: grid; place-items: center; align-content: center; cursor: pointer; color: var(--muted); position: relative; }
.rvp-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rvp-add span { font-size: 22px; line-height: 1; }
.rvp-add small { font-size: 11px; }
.rvp-send { padding: 13px; font-size: 16px; }
.rvp-note { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.rvp-pick { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rvp-pick a { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; }
.rvp-pick a:hover { border-color: var(--accent); }
.rvp-pick .rvp-th { width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; aspect-ratio: auto; }
.rvp-pick a > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.rvp-pick i { font-style: normal; font-size: 22px; color: var(--muted); }

/* Hồ sơ người bán */
.pf { padding-block: 0 32px; }
.pf-cover { height: 150px; border-radius: 0 0 22px 22px; background: linear-gradient(120deg, hsl(var(--h) 70% 15%) 0%, hsl(var(--h) 75% 25%) 55%, hsl(var(--h) 50% 50%) 100%); position: relative; overflow: hidden; }
.pf-cover::after { content: ""; position: absolute; right: -40px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.pf-head { display: flex; gap: 20px; align-items: flex-start; padding: 0 22px; position: relative; }
.pf-av { width: 118px; height: 118px; margin-top: -56px; border-radius: 28px; background: hsl(var(--h) 45% 38%); border: 5px solid var(--bg); color: #fff; font: 700 40px var(--font-display); display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); overflow: hidden; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { flex: 1; min-width: 0; padding-top: 12px; }
.pf-name h1 { margin: 0; font: 700 28px/1.25 var(--font-display); letter-spacing: -.02em; }
.pf-name p { margin: 2px 0 0; color: var(--muted); }
.pf-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 14px; }
.pf-acts .btn, .pf-mbar .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pf-acts svg, .pf-mbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 22px 0; }
.pf-badges span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.pf-badges svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pf-badges .ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.pf-badges .pro { background: var(--pro-bg); border-color: var(--note-line); color: var(--pro-fg); }
.pf-badges .open { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.pf-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.pf-stats b { font: 700 24px var(--font-display); }
.pf-stats b em { font-style: normal; color: var(--star); font-size: 20px; }
.pf-stats span { color: var(--muted); font-size: 13px; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.pf-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 14px; position: sticky; top: 70px; z-index: 3; }
.pf-tabs a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.pf-tabs a.on { background: var(--accent); color: var(--accent-fg); }
.pf-sec, .pf-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; scroll-margin-top: 140px; }
.pf-sec h2 { margin: 0 0 12px; font: 600 19px var(--font-display); }
.pf-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pf-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-photos a { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; background: var(--line); }
.pf-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photos span { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: fit-content; max-width: calc(100% - 12px); }
.pf-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.pf-bio { margin: 0; line-height: 1.65; }
.pf-box { padding: 16px; }
.pf-box h3 { margin: 0 0 10px; font: 600 16px var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pf-now { font: 600 12px var(--font-body); color: var(--ok-fg); background: var(--ok-bg); border-radius: 99px; padding: 3px 9px; }
.pf-hint p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pf-hours { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pf-hours td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.pf-hours td + td { text-align: right; color: var(--muted); }
.pf-hours tr.today td { font-weight: 700; color: var(--fg); }
.pf-hours tr.off td + td { color: var(--hot); }
.pf-area { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-area span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.pf-area span.main { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.pf-docs { list-style: none; margin: 0; padding: 0; }
.pf-docs li { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 9px; font-size: 13.5px; }
.pf-docs i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.pf-docs small { display: block; color: var(--muted); font-size: 12px; }
.pf-share-in { display: flex; gap: 12px; align-items: center; }
.pf-qr { width: 116px; height: 116px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 6px; }
.pf-qr svg { width: 104px; height: 104px; display: block; }
.pf-share p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.pf-mine { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px; padding: 9px 11px; font-size: 12.5px; margin-top: 10px; line-height: 1.55; word-break: break-word; }
.pf-mine .btn { margin-top: 6px; }
.pf-mbar { display: none; }
.pf-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-edit legend { font-weight: 700; padding: 0 6px; }
.pf-exp { max-width: 120px; }
.pf-edit-h { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pf-day { display: grid; grid-template-columns: 110px 1fr auto 1fr; gap: 6px; align-items: center; }
.pf-day label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.pf-day .field { padding: 6px 8px; }
.pf-edit-h .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-side { order: -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 12px; }
}
@media (max-width: 700px) {
  .pf { padding-bottom: 80px; }
  .pf-cover { height: 110px; border-radius: 0 0 18px 18px; margin: 0 -16px; }
  .pf-head { flex-direction: column; gap: 4px; padding: 0 2px; }
  .pf-av { width: 88px; height: 88px; margin-top: -46px; border-radius: 22px; font-size: 30px; }
  .pf-name { padding-top: 0; }
  .pf-name h1 { font-size: 23px; }
  .pf-acts { justify-content: flex-start; padding-top: 8px; }
  .pf-acts .hot, .pf-acts .zalo, .pf-acts .primary { display: none; }
  .pf-badges { margin: 10px 2px 0; }
  .pf-badges span { font-size: 12px; padding: 4px 9px; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pf-stats div { padding: 11px 12px; }
  .pf-stats b { font-size: 20px; }
  .pf-tabs { top: 58px; overflow-x: auto; }
  .pf-tabs a { font-size: 13px; padding: 8px 10px; }
  .pf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-photos { grid-template-columns: repeat(3, 1fr); }
  .pf-sec, .pf-box { padding: 14px; border-radius: 16px; }
  .pf-mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 9px 12px calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; }
  .pf-mbar .btn { flex: 1; justify-content: center; padding: 11px 8px; }
  .pf-day { grid-template-columns: 1fr 1fr auto 1fr; }
}
.pf-cards { padding-bottom: 0; }
.pf-week-btn { background: none; border: 0; padding: 6px 0 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.pf-hours.short tr:not(.today) { display: none; }
.rvp-pick .rvp-th .tier-pin, .rvp-pick .rvp-th .tag, .rvp-pick .rvp-th .vid-pin { display: none; }
.rvp-pick .rvp-th img { width: 100%; height: 100%; object-fit: cover; }
.rvp-pick .trust-line { display: flex; }
@media (max-width: 700px) { .pf-share:not(.mine) { display: none; } }
/* Đang nhận khách */
.open-now { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ok-fg); }
.open-now::before, .fb-open i { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22a55a; box-shadow: 0 0 0 3px color-mix(in oklab, #22a55a 22%, transparent); display: inline-block; }
.fb-open { display: inline-flex; align-items: center; gap: 7px; }
/* Thẻ người bán trên trang tin */
.who-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--fg); }
.who-stats:hover { border-color: var(--accent); }
.who-stats > span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; min-width: 0; }
.who-stats > span + span { border-left: 1px solid var(--line); }
.who-stats b { font: 700 16px var(--font-display); line-height: 1.2; }
.who-stats b em { font-style: normal; color: var(--star); }
.who-stats small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.who-open b { color: var(--muted); }
.who-open.on b { color: var(--ok-fg); }
.who-open.on b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22a55a; margin-right: 5px; vertical-align: 2px; }
/* Trang tổng quan cho thợ */
.tq { padding-block: 20px 40px; }
.tq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tq-head h1 { margin: 0; font-family: var(--font-display); }
.tq-head p { margin: 2px 0 0; }
.tq-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tq-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tq-conv { margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.tq-conv b { color: var(--fg); }
.tq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tq-main, .tq-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tq-h { margin: 0 0 12px; font: 600 17px var(--font-display); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tq-h small { font: 500 12.5px var(--font-body); color: var(--muted); }
.tq-table-wrap { overflow-x: auto; }
.tq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tq-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tq-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tq-table td:first-child { max-width: 320px; }
.tq-table td:first-child a { color: var(--fg); font-weight: 600; text-decoration: none; display: block; }
.tq-table td small { display: block; color: var(--muted); font-size: 12px; }
.tq-table td small.warn { color: var(--hot); }
.tq-table th:not(:first-child), .tq-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.tq-table tr.off td { opacity: .6; }
.tq-todo ul, .tq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tq-todo li { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13.5px; padding: 9px 10px; border-radius: 10px; background: var(--note-bg); border: 1px solid var(--note-line); }
.tq-todo .btn { flex: none; text-decoration: none; }
.tq-list a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 13.5px; }
.tq-list a:hover { border-color: var(--accent); }
.tq-list span { color: var(--muted); font-size: 12.5px; }
.tq-list em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--hot); }
.tq-rv { display: flex; gap: 12px; align-items: center; }
.tq-rv b { font: 700 28px var(--font-display); white-space: nowrap; }
.tq-rv b em { font-style: normal; color: var(--star); font-size: 22px; }
.tq-rv span { font-size: 13px; color: var(--muted); }
.tq-msg p { margin: 0 0 6px; font-size: 14px; }
.tq .panel { padding: 16px; }
@media (max-width: 960px) { .tq-grid { grid-template-columns: 1fr; } .tq-side { order: -1; } }
@media (max-width: 700px) {
  .tq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tq-table thead { display: none; }
  .tq-table, .tq-table tbody, .tq-table tr { display: block; }
  .tq-table tr { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tq-table td { border: 0; padding: 2px 4px; text-align: left !important; font-size: 13px; }
  .tq-table td:first-child { grid-column: 1 / -1; max-width: none; }
  .tq-table td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 11.5px; }
  .tq-table td:last-child { text-align: right !important; }
}

/* Bảng giá theo dịch vụ con + lưu ý khi thuê (trang danh mục) */
.seo-price-wrap { overflow-x: auto; margin: 0 -4px; }
.seo-price table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.seo-price th, .seo-price td { padding: 9px 8px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.seo-price thead th { border-top: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seo-price td { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--price); font-weight: 600; }
.seo-price td:last-child { text-align: right; color: var(--muted); font-weight: 400; }
.seo-price thead th:last-child { text-align: right; }
.seo-price tbody th { font-weight: 600; }
.seo-price tbody th a { color: var(--fg); text-decoration: none; }
.seo-price tbody th a:hover { color: var(--accent); text-decoration: underline; }
.seo-price tr.on { background: var(--accent-soft); }
.seo-price p { margin: 10px 0 0; }
.seo-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.seo-tips li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; }
.seo-tips li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 640px) { .seo-price table { min-width: 0; font-size: 13.5px; } .seo-price thead th:nth-child(3), .seo-price td:nth-child(3) { display: none; } }

/* Trang Bảng giá dịch vụ tổng hợp (/bang-gia-dich-vu) */
.ph { padding-top: 14px; padding-bottom: 40px; max-width: 920px; }
.ph-head h1 { font-family: var(--font-display); font-size: clamp(22px, 3.2vw, 30px); line-height: 1.25; margin: 6px 0 8px; }
.ph-head p { color: var(--muted); margin: 0 0 12px; max-width: 70ch; }
.ph-prov { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ph-prov label { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ph-prov select { max-width: 260px; }
.ph-jump { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; margin: 6px 0 0; scrollbar-width: thin; }
.ph-jump a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-size: 13.5px; }
.ph-jump a:hover { border-color: var(--accent); color: var(--accent); }
.ph-grp th { background: var(--bg); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted) !important; }
.seo-price td.ph-range { color: var(--fg); font-weight: 400; }
.ph-gname { font-family: var(--font-display); font-size: 20px; margin: 34px 0 0; }
.ph-cat { scroll-margin-top: 80px; }
.ph-cat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ph-cat-h h3 { margin: 0; font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.ph-cat-h a { flex: none; font-size: 14px; }
.ph-one { margin: 0; }
.ph-cta { margin-top: 28px; }
.seo-price-more { display: inline-block; margin-top: 8px; font-size: 14px; }
.seo-price thead th:last-child { white-space: nowrap; }

/* Nhắc xác nhận tin còn nhận việc */
.mine-stale { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.mine-stale.hl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 35%, transparent); }
.mine-stale b { display: block; }
.mine-stale span { font-size: 14px; color: var(--muted); }
.stale-tip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); font-size: 14px; }
.stale-tip form { margin: 0; }
.mine-item:target { box-shadow: 0 0 0 2px var(--accent); }
.dv-ok { color: var(--ok); font-weight: 600; }

/* Cẩm nang: link tự gắn + khung thợ gần bạn */
.prose a.auto-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-near { margin: 26px 0 8px; }
.art-near .sec-head h2 { font-size: 18px; }
.art-near-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .art-near-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.claim-list { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 8px; }
.claim-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; }
.claim-list a { font-weight: 600; color: var(--fg); }
.claim-list small { color: var(--muted); }
/* Giới thiệu thợ */
.ref-page h1 { margin-bottom: 6px; }
.ref-box { padding: 16px 18px; margin: 16px 0; }
.ref-row { display: flex; gap: 8px; margin: 8px 0 10px; }
.ref-row .field { flex: 1; min-width: 0; }
.ref-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.ref-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 2px; }
.ref-stats b { font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.ref-stats span { font-size: 13px; color: var(--muted); }
.ref-list { padding: 16px 18px; }
.ref-list h2, .ref-rules h2 { font-size: 17px; margin: 0 0 10px; }
.ref-list ul { list-style: none; margin: 0; padding: 0; }
.ref-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ref-list li:first-child { border-top: 0; }
.ref-list em { margin-left: auto; font-style: normal; font-size: 13.5px; color: var(--muted); }
.ref-list em.ok { color: var(--ok); font-weight: 600; }
.ref-rules { margin-top: 18px; }
.ref-rules ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.pv-ref { display: inline-block; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.14); }
@media (max-width: 560px) { .ref-stats { grid-template-columns: 1fr; } .ref-stats div { grid-template-columns: auto 1fr; align-items: center; gap: 10px; } }

/* ---------- Menu danh mục 2 cột (danh mục › dịch vụ con), kiểu Chợ Tốt ---------- */
.mega-pop[data-mx-home] { width: min(1000px, calc(100vw - 32px)); left: -150px; padding: 0; display: block; overflow: hidden; }
.mx { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: min(640px, calc(100vh - 90px)); }
.mx a { color: var(--fg); text-decoration: none; }
.mx-left { overflow-y: auto; padding: 8px; border-right: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 60%, var(--surface)); overscroll-behavior: contain; }
.mx-left h5 { margin: 10px 8px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mx .mx-left a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; font-size: 14px; color: var(--fg); width: 100%; }
.mx .mx-left a span { flex: 1; min-width: 0; }
.mx .mx-left a small { color: var(--muted); font-size: 12px; }
.mx .mx-left a:hover { background: var(--surface); }
.mx .mx-left a.on { background: var(--surface); box-shadow: 0 1px 3px color-mix(in oklab, var(--fg) 12%, transparent); font-weight: 600; }
.mx-left a i, .mx-head i, .mx-sub i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.mx-left a i svg, .mx-head i svg, .mx-sub i svg { width: 16px; height: 16px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mx-right { overflow-y: auto; overscroll-behavior: contain; }
.mx-panel { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.mx-panel[hidden] { display: none; }
.mx-head { display: flex; align-items: center; gap: 12px; }
.mx-head > div { min-width: 0; flex: 1; }
.mx-head i { width: 42px; height: 42px; border-radius: 12px; }
.mx-head i svg { width: 24px; height: 24px; }
.mx-head b { display: block; font-size: 18px; }
.mx-head span { color: var(--muted); font-size: 13px; }
.mx .mx-all { width: auto; padding: 0; color: var(--accent); font-weight: 600; white-space: nowrap; }
.mx .mx-all:hover { background: none; text-decoration: underline; }
.mx-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx a.mx-sub { display: flex; align-items: center; gap: 10px; width: auto; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 500; line-height: 1.25; }
.mx a.mx-sub:hover { border-color: var(--accent); background: var(--accent-soft); }
.mx-sub small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.mx-sub em, .st em { font-style: normal; color: var(--price); font-weight: 600; }
.mx-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.mx-row:has(> :only-child) { grid-template-columns: 1fr; }
.mx-row h6 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.mx-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.mx .mx-areas a { display: inline-block; width: auto; font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.mx .mx-areas a:hover { border-color: var(--accent); color: var(--accent); background: none; }
.mx .mx-more a { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 14px; }
.mx .mx-more a:hover { background: none; color: var(--accent); }
.mx-more svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-cta { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.mx .mx-cta a { margin-left: auto; width: auto; background: var(--hot); color: #fff; font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.mx .mx-cta a:hover { background: var(--hot); filter: brightness(1.05); }
@media (max-width: 1100px) { .mx-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Màn hình Danh mục trên điện thoại */
.menu-pop a.m-cats { font-weight: 600; display: flex; justify-content: space-between; }
html.ms-lock, html.ms-lock body { overflow: hidden; }
.msheet { position: fixed; inset: 0; z-index: 60; background: var(--surface); display: flex; flex-direction: column; }
.msheet[hidden] { display: none; }
.ms-top { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.ms-top b { font-size: 17px; }
.ms-x { margin-left: auto; width: 40px; height: 40px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; border-radius: 10px; }
.ms-q { display: flex; align-items: center; gap: 8px; margin: 10px 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; }
.ms-q svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.ms-q input { flex: 1; border: 0; background: none; padding: 10px 0; font: inherit; font-size: 15px; color: var(--fg); outline: none; min-width: 0; }
.ms-body { flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.msheet .mx { grid-template-columns: 90px minmax(0, 1fr); height: 100%; }
.msheet .mx-left { padding: 0; }
.msheet .mx-left h5 { display: none; }
.msheet .mx .mx-left a { flex-direction: column; gap: 4px; padding: 10px 4px; border-radius: 0; font-size: 11.5px; text-align: center; line-height: 1.2; border-left: 3px solid transparent; }
.msheet .mx .mx-left a small { display: none; }
.msheet .mx .mx-left a.on { border-left-color: var(--accent); box-shadow: none; font-weight: 700; }
.msheet .mx-left a i { width: 34px; height: 34px; border-radius: 10px; }
.msheet .mx-left a i svg { width: 18px; height: 18px; }
.msheet .mx-panel { padding: 14px; gap: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.msheet .mx-head { flex-wrap: wrap; }
.msheet .mx-head b { font-size: 16px; }
.msheet .mx .mx-all { flex-basis: 100%; text-align: center; background: var(--accent); color: var(--accent-fg); padding: 9px; border-radius: 999px; font-weight: 700; }
.msheet .mx-subs { grid-template-columns: 1fr; gap: 0; }
.msheet .mx a.mx-sub { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 2px; }
.msheet .mx-sub i { width: 32px; height: 32px; }
.msheet .mx-row { grid-template-columns: 1fr; }
.msheet .mx-cta { flex-direction: column; align-items: stretch; text-align: center; }
.msheet .mx .mx-cta a { margin: 0; text-align: center; }

/* Trang danh mục: ô dịch vụ con có biểu tượng (thay hàng chữ “Phổ biến”) */
.st-wrap { display: flex; flex-direction: column; gap: 8px; }
.st-wrap > h2 { margin: 0; font-size: 15px; }
.st-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; scroll-snap-type: x proximity; }
.st-row::-webkit-scrollbar { display: none; }
.st { flex: none; width: 118px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--fg); font-size: 13px; font-weight: 600; line-height: 1.25; }
.st:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.st[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.st i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--surface)); }
.st i svg { width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.st-areas { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.st-areas a { padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--fg); text-decoration: none; }
.st-areas a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .st { width: 104px; } .st-areas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-bottom: 2px; } .st-areas a { flex: none; } }
.mx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Ô tìm kiếm có gợi ý */
form.has-sug { position: relative; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px color-mix(in oklab, var(--fg) 16%, transparent); padding: 6px; max-height: min(430px, 60vh); overflow-y: auto; text-align: left; }
.sug[hidden] { display: none; }
.sug-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.sug-h button, .rc-head button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 2px 4px; font-weight: 600; }
.sug-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 15px; line-height: 1.3; }
.sug-i:hover, .sug-i.on { background: var(--accent-soft); }
.sug-i small { display: block; color: var(--muted); font-size: 12.5px; }
.sug-i i, .rc-list a i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
.sug-i svg, .rc-list a svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sug .sug-i { color: var(--fg); }
.sug .sug-i.sug-all { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; color: var(--accent); font-weight: 600; }
/* Bạn vừa xem */
.recent-sec { margin-top: 14px; }
.recent-sec[hidden], .ms-recent[hidden] { display: none; }
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.rc-head b { font-size: 15px; }
.rc-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rc-list::-webkit-scrollbar { display: none; }
.rc-list a { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-size: 14px; white-space: nowrap; max-width: 280px; }
.rc-list a span { overflow: hidden; text-overflow: ellipsis; }
.rc-list a i { width: 26px; height: 26px; border-radius: 999px; }
.rc-list a:hover { border-color: var(--accent); }
.ms-recent { padding: 0 14px 10px; }
.ms-recent .rc-head { margin-bottom: 6px; font-size: 13px; }
.ms-recent .rc-head b { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ms-q { position: relative; z-index: 2; }
/* Trang không có tin: nút báo khi có thợ, dịch vụ gần giống, khu vực có thợ */
.er-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.er-btns form { margin: 0; }
.er-btns .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; vertical-align: -3px; }
.er-sec { width: 100%; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.er-sec h3 { margin: 0 0 8px; font-size: 15px; }
.er-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.er-links a { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.er-links a small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.er-links a:hover, .er-chips a:hover { border-color: var(--accent); background: var(--accent-soft); }
.er-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.er-chips a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 14px; }
.er-chips a small { color: var(--muted); }

/* Hồ sơ thợ: nút chia sẻ Zalo / Facebook / Messenger */
.pf-sharebtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn.fb { background: #1877f2; color: #fff; }
@media (pointer: fine) { [data-mobile-only] { display: none; } }

/* Điểm chất lượng tin (Tin của tôi, Tổng quan) */
.qbox { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.qbox summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
.qbox summary::-webkit-details-marker { display: none; }
.qbox summary > span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.qbox summary small { color: var(--muted); font-size: 12.5px; }
.qbox summary::after { content: "›"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.qbox[open] summary::after { transform: rotate(90deg); }
.q-ring { --c: var(--accent); flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.q-ring b { width: 31px; height: 31px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.q-ok .q-ring { --c: #d69e2e; }
.q-low .q-ring { --c: var(--hot); }
.qbox ul { list-style: none; margin: 0; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.qbox li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.qbox li .link { white-space: nowrap; font-size: 13.5px; }
.qbox li .link small { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .qbox li { flex-direction: column; gap: 4px; } }
.tq-demand ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tq-demand li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.tq-demand li small { display: block; color: var(--hot); font-size: 12.5px; }

/* ---------- Khu thành viên (zipwork32) ---------- */
.mi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.mnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.mnav-in::-webkit-scrollbar { display: none; }
.mnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; }
.mnav a:hover { background: var(--bg); color: var(--fg); }
.mnav a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mn-n { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
@media (max-width: 760px) { .mnav a { padding: 7px 11px; font-size: 13.5px; } .mnav .mi { width: 16px; height: 16px; } }

.umenu .menu-pop.um-pop { min-width: 268px; max-height: min(78vh, 640px); overflow-y: auto; }
.um-pop a, .um-pop button { display: flex; align-items: center; gap: 10px; }
.um-pop .mi { color: var(--muted); }
.um-pop .dot-count.in { margin-left: auto; }
.um-h { margin: 8px 12px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.um-pop a.um-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 2px; }
.um-who .avatar { width: 40px; height: 40px; font-size: 17px; }
.um-who span { display: flex; flex-direction: column; min-width: 0; }
.um-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who small { color: var(--accent); font-size: 12.5px; }
summary .avatar.sm img, .avatar img { display: block; }
.avatar { overflow: hidden; }

.seg-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.seg-tabs a { flex: 1 0 auto; text-align: center; padding: 9px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg-tabs a:hover { color: var(--fg); background: var(--bg); }
.seg-tabs a[aria-current] { background: var(--accent); color: var(--accent-fg); }
.seg-tabs a[aria-current] .mn-n { background: #fff; color: var(--hot); }
.acc2 .acc-tabs { margin: 16px 0; }

.acc-av { position: relative; display: block; text-decoration: none; flex: none; }
.acc-av i { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.acc-av i .mi { width: 14px; height: 14px; }
.acc-done { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ad-top { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.ad-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ad-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.ad-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-steps a, .ad-steps span { font-size: 13px; padding: 4px 10px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ad-steps a { border: 1px dashed var(--accent); color: var(--accent); font-weight: 600; }
.ad-steps a:hover { background: var(--accent-soft); }
.ad-ok { color: var(--muted); background: var(--bg); }
.ad-ok .mi { width: 13px; height: 13px; color: var(--accent); }

.acc-todo h2 { margin: 0 0 6px; font-size: 18px; }
.acc-todo ul { list-style: none; margin: 0; padding: 0; }
.acc-todo li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-todo li:first-child { border-top: 0; }
.at-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.at-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.at-t small { color: var(--muted); font-size: 13px; }
.acc-calm { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; }

.acc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; align-items: start; }
.acc-side { display: flex; flex-direction: column; gap: 12px; }
.acc-side h2 { margin: 0; font-size: 18px; }
.acc-side > p { margin: -6px 0 0; }
.acc-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc-quick a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--fg); transition: border-color .15s, background .15s; }
.acc-quick a:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 40%, var(--surface)); }
.acc-quick b { font-weight: 600; font-size: 15px; }
.acc-quick small { color: var(--muted); font-size: 12.5px; }
.q-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.acc-recent .rc-head { margin-bottom: 6px; font-size: 14px; }
.acc-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acc-mini a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--fg); min-width: 0; }
.acc-mini b { font-family: var(--font-display); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-mini span { font-size: 12.5px; color: var(--muted); }
.acc-list.compact .acc-item { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 8px; gap: 10px; }
.acc-list.compact h3 { font-size: 14.5px; }
.acc-act .btn .mi { width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; }
.acc-nudge { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--vip-soft, #fff4dc); color: #6b4500; text-decoration: none; }
.acc-nudge span { display: flex; flex-direction: column; }
.acc-nudge small { font-size: 12.5px; }
.acc-become p { margin: 0; }
.acc-become ol { margin: 10px 0 14px; padding-left: 20px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.acc-become-act { display: flex; gap: 8px; flex-wrap: wrap; }

.acc-avatar { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.acc-avatar h2 { margin: 0 0 4px; font-size: 18px; }
.acc-avatar p { margin: 0 0 10px; }
.av-form { display: flex; gap: 8px; flex-wrap: wrap; }
.av-pick { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.av-pick .mi { width: 16px; height: 16px; }
.pf-more { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.pf-more[open] { padding-bottom: 16px; }
.pf-more summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pf-more summary::-webkit-details-marker { display: none; }
.pf-more summary::before { content: "›"; transition: transform .15s; display: inline-block; font-weight: 700; color: var(--accent); }
.pf-more[open] summary::before { transform: rotate(90deg); }
.pf-more[open] > * + * { margin-top: 12px; }
.pf-edit-h { display: flex; flex-direction: column; gap: 8px; }
.pf-lab { font-size: 14px; font-weight: 500; }
.pf-day { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.pf-day .pf-dn { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; font-weight: 500; }
.pf-day .pf-dn input { width: 18px; height: 18px; accent-color: var(--accent); }
.pf-day > span { color: var(--muted); font-size: 13px; }
.pf-day:has(input:not(:checked)) select { opacity: .45; }
.pf-exp { max-width: 120px; }
.pf-edit-h > .btn { align-self: flex-start; }
.fchip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.fchip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13.5px; }
.fchip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.otable td.act { text-align: right; }
.acc-logins { list-style: none; margin: 0 0 14px; padding: 0; }
.acc-logins li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.acc-logins li:first-child { border-top: 0; }
.acc-logins li > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.acc-logins small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.acc-logins .mi { color: var(--muted); }
.acc-logins em { font-style: normal; font-size: 13px; }
.r-top-act { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .acc-two { grid-template-columns: minmax(0, 1fr); }
  .acc-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .acc-quick a { padding: 12px; }
  .pf-day { grid-template-columns: 1fr 1fr; }
  .pf-day .pf-dn { grid-column: 1 / -1; }
  .pf-day > span { display: none; }
  .acc-avatar { align-items: flex-start; }
  .acc-avatar .avatar.xl { width: 72px; height: 72px; }
  .acc-list.compact .acc-item { grid-template-columns: 56px minmax(0, 1fr); }
  .acc-todo li { flex-wrap: wrap; }
  .acc-todo li .btn { margin-left: 50px; }
  .acc-head .acc-av { order: 0; }
}
.pf-day { grid-template-columns: 130px 130px auto 130px; justify-content: start; }
.pf-day label.pf-dn, label.av-pick { flex-direction: row !important; align-items: center; }
.pf-day label.pf-dn { margin: 0; }
@media (max-width: 560px) { .pf-day { grid-template-columns: 1fr 1fr; justify-content: stretch; } .seg-tabs a { flex: 1 1 0; padding: 9px 8px; font-size: 14px; } }
/* Đơn vị tính theo danh mục (zipwork33) */
.unit-pick { display: flex; gap: 8px; align-items: center; flex: 0 1 auto; min-width: 0; }
.unit-pick select.field { width: auto; min-width: 110px; flex: 0 0 auto; }
.unit-pick .unit-other { width: 130px; flex: 0 0 auto; }
.unit-pick .unit-other[hidden] { display: none; }
@media (max-width: 560px) { .price-line .unit-pick { flex: 1 1 100%; } .unit-pick select.field { flex: 1 1 0; } .unit-pick .unit-other { flex: 1 1 0; width: auto; } }
/* Trang đăng tin trên điện thoại: thanh Đăng tin/Huỷ không bị thanh menu dưới che (zipwork33) */
@media (max-width: 900px) {
  body:has(.post-bar) .bnav { display: none; }
  body:has(.post-bar) { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .post-bar .pb-act { display: flex; gap: 8px; flex: none; }
  .post-bar .pb-act .btn.ghost { padding: 12px 16px; }
}
