/* BOC F demo — nền tảng chung: token, header, footer, thẻ tin, form, modal */
:root {
  --navy: #31419C;
  --cyan: #00ADEE;
  --brand: #2456A8;
  --brand-d: #1C4384;
  --brand-50: #EAF1FB;
  --orange: #F26B1D;
  --orange-d: #D9560C;
  --orange-50: #FEF0E7;
  --price: #D9480F;
  --ink: #1A1D1F;
  --ink-2: #41484D;
  --muted: #6B7378;
  --line: #E4E7EA;
  --soft: #F5F7F8;
  --white: #fff;
  --danger: #C92A2A;
  --wrap: 96%;
  --r: 10px;
  --r-lg: 16px;
  --hd: 72px;
  --f-head: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --sh: 0 1px 2px rgba(16, 24, 32, .06), 0 4px 16px rgba(16, 24, 32, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-y: scroll; } /* chỉ 1 thanh cuộn của trang, luôn hiện */
body { margin: 0; background: var(--white); color: var(--ink); font: 300 15px/1.6 var(--f-body); letter-spacing: .005em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.kicker { font: 500 13px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.req { color: var(--danger); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font: 500 14.5px/1 var(--f-body); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; border: 1px solid transparent; }
.btn .ic { width: 18px; height: 18px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-green { background: var(--brand); color: #fff; }
.btn-green:hover { background: var(--brand-d); }
.btn-blue { background: var(--brand); color: #fff; }
.btn-blue:hover { background: var(--brand-d); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); }
.btn-line.danger { color: var(--danger); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 500; font-size: 14.5px; }
.linkbtn { color: var(--brand); font-weight: 500; }
.linkbtn:disabled { color: var(--muted); cursor: default; }

/* Header kiểu Facebook theo thiết kế khách: logo + ô tìm · 4 tab giữa · Đăng tin + tin nhắn + thông báo + avatar. Luôn cố định. */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 4px 14px rgba(16, 24, 32, .05); }
.hd-in { width: 96%; margin-inline: auto; height: var(--hd); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.hd-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 48px; width: auto; }
.hd-search { flex: 1; min-width: 0; max-width: 300px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: var(--soft); }
.hd-search > .ic { color: var(--muted); width: 18px; height: 18px; flex: none; }
.hd-search input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; height: 100% !important; outline: 0; font-size: 14.5px; }
.hd-tabs { display: flex; height: var(--hd); }
.hd-tabs a { position: relative; width: 104px; display: grid; place-items: center; color: var(--muted); }
.hd-tabs a::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
.hd-tabs a:hover::before { content: ''; position: absolute; inset: 6px 4px; border-radius: 10px; background: var(--soft); z-index: -1; }
.hd-tabs a .ic { width: 25px; height: 25px; }
.hd-tabs a.on { color: var(--brand); }
.hd-tabs a.on::after { background: var(--brand); }
.hd-tabs a.on .ic { fill: var(--brand-50); }
.hd-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--brand-d); }
.hd-post { flex: none; height: 40px; padding: 0 16px; margin-right: 4px; }
.hd-ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--ink); }
.hd-ic:hover { background: #E7EBF0; }
.hd-ic .ic { width: 20px; height: 20px; }
.hd-ic .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #E5383B; color: #fff; font: 600 10.5px/18px var(--f-body); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.hd-av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font: 600 14px/1 var(--f-head); }
.hd-av:hover { background: var(--brand-d); }
.noti { position: absolute; right: 2%; top: calc(var(--hd) - 6px); width: 360px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(16, 24, 32, .16); padding: 8px; }
.noti-h { display: flex; justify-content: space-between; padding: 10px 12px; font-weight: 600; }
.noti-h a { color: var(--brand); font-weight: 500; font-size: 13.5px; }
.noti > a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.noti > a:hover { background: var(--soft); }
.noti small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.saved-pop { width: 380px; }
.sv-row { position: relative; }
.sv-row > a { display: flex; gap: 10px; align-items: center; padding: 8px 40px 8px 8px; border-radius: 10px; }
.sv-row > a:hover { background: var(--soft); }
.sv-row img { width: 64px; height: 52px; flex: none; border-radius: 8px; object-fit: cover; }
.sv-row span { min-width: 0; }
.sv-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.sv-row i { display: block; font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--price); }
.sv-row small { margin: 0; }
.sv-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sv-x:hover { background: #E7EBF0; color: var(--danger); }
.sv-more { display: block; padding: 10px 12px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--brand); }
.sv-empty { margin: 0; padding: 18px 12px 22px; text-align: center; font-size: 14px; color: var(--muted); }
.sv-empty .ic { display: block; width: 28px; height: 28px; margin: 0 auto 8px; color: var(--line); }
.acc { width: 300px; }
.acc > a { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.acc > a .ic { width: 20px; height: 20px; color: var(--brand); }
.acc .acc-me { margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.acc-me .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 14px/1 var(--f-head); flex: none; }
.acc-me b { display: block; font-weight: 600; }
.acc-me small { margin: 0; }

/* Section chung */
.sec { width: var(--wrap); margin: 0 auto 64px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { font-size: 28px; }
.lead { color: var(--ink-2); font-size: 16px; margin: 8px 0 0; max-width: 60ch; }
.more { display: flex; justify-content: center; margin-top: 28px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 400; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs.line { gap: 0; border-bottom: 1px solid var(--line); }
.tabs.line button { border: 0; border-radius: 0; height: 46px; padding: 0 16px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs.line button[aria-selected="true"] { background: none; color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }

/* Lưới */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Thẻ tin */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); transition: box-shadow .2s; }
.card:hover { box-shadow: 0 2px 4px rgba(16, 24, 32, .06), 0 12px 30px rgba(16, 24, 32, .1); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-n { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 500; }
.card-n .ic { width: 14px; height: 14px; }
.card-vip { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: var(--orange); color: #fff; font: 600 11px/1.4 var(--f-body); letter-spacing: .04em; }
.card-save { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink-2); z-index: 2; }
.card-save .ic { width: 18px; height: 18px; }
.card-save.on { color: var(--danger); }
.card-save.on .ic { fill: currentColor; }
.card-b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-t { font: 500 15px/1.4 var(--f-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card-t a::after { content: ''; position: absolute; inset: 0; }
.card-attrs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-2); }
.card-p { font: 600 17px/1.3 var(--f-body); color: var(--price); margin-top: auto; }
.card-p small { font-weight: 400; font-size: 13px; color: var(--muted); }
.card-m { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.card-m span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-m .ic { width: 14px; height: 14px; }
.card-m .km { color: var(--cyan); font-weight: 600; }
.card-s { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.card-s .ic { width: 14px; height: 14px; color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font: 500 12px/1.4 var(--f-body); background: var(--soft); color: var(--ink-2); }
.badge.ok { background: var(--brand-50); color: var(--brand-d); }
.badge.cond { background: var(--orange-50); color: var(--orange-d); }
.badge .ic { width: 14px; height: 14px; }

/* Danh sách dạng hàng */
.rows .card { flex-direction: row; }
.rows .card-img { width: 260px; flex: none; aspect-ratio: auto; min-height: 190px; }
.rows .card-t { font-size: 16.5px; }
.rows { grid-template-columns: 1fr !important; }

/* Form */
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.fld > span, .fld-l { font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 14.5px; font-weight: 400; outline: 0; transition: border-color .2s, box-shadow .2s; }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 86, 168, .12); }
.hd-search input:focus { box-shadow: none; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fld-row.three { grid-template-columns: repeat(3, 1fr); }
.ck { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 8px 0; cursor: pointer; }
.ck input, .radio input { accent-color: var(--brand); width: 17px; height: 17px; margin-top: 2px; flex: none; }
.ck a { color: var(--brand); font-weight: 500; }
.radio { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; cursor: pointer; font-size: 14.5px; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.seg { display: flex; padding: 4px; background: var(--soft); border-radius: 999px; }
.seg button { flex: 1; height: 40px; border-radius: 999px; font-weight: 500; color: var(--muted); font-size: 14.5px; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.seg.small { display: inline-flex; }
.seg.small button { height: 32px; padding: 0 14px; font-size: 13.5px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--ink-2); margin: 2px 4px 2px 0; }
.chip button { display: grid; place-items: center; color: var(--muted); }
.chip .ic { width: 14px; height: 14px; }

/* Hộp lưu ý */
.tips { border-radius: var(--r-lg); background: var(--soft); padding: 16px 18px; font-size: 14px; }
.tips b { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tips ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.tips li { margin: 4px 0; }
.warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--orange-50); color: #7A3209; font-size: 14px; margin-top: 14px; }
.warn .ic { color: var(--orange-d); margin-top: 2px; }
.warn p { margin: 4px 0 0; }
.warn a { color: var(--orange-d); font-weight: 600; text-decoration: underline; }

/* Modal, toast, drawer */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(480px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal::backdrop { background: rgba(16, 24, 32, .45); }
.modal-in { padding: 22px; }
.modal-in.center { text-align: center; padding: 32px 26px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 4px; }
.modal-in textarea { margin-top: 6px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-in.center .modal-f { justify-content: center; }
.ok-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.ok-ic .ic { width: 32px; height: 32px; }
.big { display: block; font: 600 19px/1.4 var(--f-head); margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 400; z-index: 200; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.ft { background: #F3F6FB; color: var(--ink-2); margin-top: 40px; }
.ft-in { width: var(--wrap); margin-inline: auto; padding: 56px 0 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ft-brand p { font-size: 14px; margin: 14px 0; max-width: 46ch; }
.ft-info { list-style: none; padding: 0; margin: 0; font-size: 13.5px; display: grid; gap: 4px; }
.ft-info b { color: var(--navy); }
.ft-info a { color: var(--brand); font-weight: 500; }
.ft-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ft-col h4 { color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.ft-col a:hover { color: var(--brand); }
.ft-bot { width: var(--wrap); margin-inline: auto; padding: 18px 0 24px; border-top: 1px solid #DDE4EF; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.ft-bct i { opacity: .7; }

/* Thanh điều hướng mobile */
.mnav { display: none; }

/* Chuyển trang demo */
.demo-nav { position: fixed; left: 16px; bottom: 16px; z-index: 90; font-size: 13.5px; }
body[data-page="chat"] .demo-nav { display: none; } /* trang tin nhắn: không che ô nhập */
.demo-nav summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.demo-nav summary::-webkit-details-marker { display: none; }
.demo-nav summary .ic { width: 16px; height: 16px; }
.demo-nav div { position: absolute; left: 0; bottom: 44px; width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(16, 24, 32, .2); padding: 6px; display: flex; flex-direction: column; }
.demo-nav a { padding: 8px 12px; border-radius: 8px; }
.demo-nav a:hover { background: var(--soft); color: var(--brand); }

@media (max-width: 1360px) {
  .hd-tabs a { width: 80px; }
}
@media (max-width: 1180px) {
  .hd-tabs a { width: 64px; }
  .hd-post span { display: none; }
  .hd-post { width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
}
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(3, 1fr); }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --hd: 60px; }
  body { font-size: 14px; padding-bottom: 66px; }
  /* Header điện thoại theo mockup: logo · ô tìm kiếm · tin nhắn · thông báo · avatar */
  .hd-tabs, .hd-post { display: none; }
  .hd-in { display: flex; gap: 6px; }
  .hd-l { flex: 1; gap: 8px; }
  .hd-r { gap: 4px; }
  .logo img { height: 36px; }
  .hd-search { max-width: none; height: 38px; padding: 0 12px; gap: 6px; }
  .hd-search input { font-size: 14px !important; }
  .hd-ic, .hd-av { width: 34px; height: 34px; }
  .hd-ic .ic { width: 18px; height: 18px; }
  .hd-ic .dot { min-width: 14px; height: 14px; font-size: 9.5px; line-height: 14px; top: -4px; right: -4px; }
  .hd-av { font-size: 12px; }
  .grid4, .grid3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sec { margin-bottom: 44px; }
  .sec-head h2 { font-size: 22px; }
  .card { border-radius: 12px; }
  .card-b { padding: 10px 10px 12px; gap: 4px; }
  .card-t { font-size: 13.5px; }
  .card-p { font-size: 15px; }
  .card-attrs { display: none; }
  .card-s { display: none; }
  .card-m { font-size: 11.5px; }
  .card-save { width: 30px; height: 30px; }
  .rows .card-img { width: 128px; min-height: 120px; }
  .rows .card-t { font-size: 14px; }
  .fld-row, .fld-row.three { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr; padding-top: 40px; }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 62px; background: #fff; box-shadow: 0 -4px 20px rgba(16, 24, 32, .08); }
  .mnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .mnav a.on { color: var(--brand); }
  .mnav-post .ic { width: 44px; height: 44px; padding: 10px; margin-top: -22px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(49, 65, 156, .35); }
  .demo-nav { bottom: 74px; left: 12px; }
  .noti { right: 2%; width: 96%; }
}

/* Nút 3 gạch + ngăn danh mục (điện thoại) */
.hd-menu { display: none; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 50%; color: var(--ink); margin-right: -2px; }
.hd-menu:hover { background: var(--soft); }
.hd-menu .ic { width: 22px; height: 22px; }
.mdr { position: fixed; inset: 0 auto 0 0; width: min(340px, 86vw); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 12px 24px; border: 0; background: #fff; box-shadow: 8px 0 40px rgba(16, 24, 32, .2); overflow-y: auto; overscroll-behavior: contain; }
.mdr[open] { animation: mdrIn .22s ease-out; }
@keyframes mdrIn { from { transform: translateX(-100%); } }
.mdr::backdrop { background: rgba(16, 24, 32, .45); }
html.mdr-lock { overflow: hidden; }
.mdr-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 60px; margin: 0 -12px; padding: 0 12px 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.mdr-h .logo img { height: 36px; }
.mdr-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.mdr-me { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; padding: 8px; border-radius: 10px; }
.mdr-me:hover { background: var(--soft); }
.mdr-me .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 14px/1 var(--f-head); flex: none; }
.mdr-me b { display: block; font-weight: 600; }
.mdr-me small { display: block; font-size: 12.5px; color: var(--muted); }
.mdr-t { margin: 14px 8px 6px; font: 600 15px/1.3 var(--f-head); color: var(--ink-2); }
.mdr-cats, .mdr-links { display: flex; flex-direction: column; gap: 2px; }
.mdr-cats a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; color: var(--ink); }
.mdr-cats a:hover { background: var(--soft); }
.mdr-cats a.on { background: var(--brand-50); }
.mdr-cats a.on b { color: var(--brand-d); font-weight: 600; }
.mdr-cats i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--navy); }
.mdr-cats a:nth-child(3n + 2) i { background: #1F7FC9; }
.mdr-cats a:nth-child(3n) i { background: var(--cyan); }
.mdr-cats i .ic { width: 17px; height: 17px; }
.mdr-cats span { min-width: 0; }
.mdr-cats b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.mdr-cats small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mdr-links a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; font-size: 14.5px; }
.mdr-links a:hover { background: var(--soft); }
.mdr-links .ic { width: 20px; height: 20px; color: var(--brand); }
.mdr-foot { margin: 16px 8px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .hd-menu { display: grid; }
  .hd-av { display: none; }
  .hd-l { gap: 6px; }
}
.btn-zalo { color: #0068FF; font-weight: 600; }
.btn-zalo:hover { border-color: #0068FF; }
