:root {
  --primary: #0f2d5c;       /* navy */
  --primary-dark: #0a1f42;  /* navy đậm */
  --primary-mid: #16407a;
  --gold: #c8a24a;          /* vàng đồng */
  --gold-dark: #b08a32;
  --accent: #c8a24a;        /* alias gold cho các nút/nhấn cũ */
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e4e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-be-vietnam), 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* Sticky footer: body cao tối thiểu cả màn hình, <main> giãn để footer luôn ở đáy.
     Tránh footer 'trồi lên' khi nội dung trang mới chưa render xong lúc điều hướng. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; min-width: 0; }
body > .site-footer { flex-shrink: 0; }
/* Đảm bảo nút/chữ IN HOA có đủ chiều cao dòng để dấu tiếng Việt không bị cắt */
button, input, select, textarea { font-family: inherit; }
.btn-cta, .hero-search button, .lawyer-card .btn-profile, .doc-band-search button,
.cta-band .ct-btn, .footer-news button, .ls-search button, .mm-cta {
  line-height: 1.35;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
/* Full-bleed: phá khỏi .container của <main> để band rộng toàn màn hình.
   Dùng margin calc(50% - 50vw) + body overflow-x:hidden để tránh tràn ngang do thanh cuộn. */
.bleed { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ===== Top bar ===== */
.topbar {
  background: var(--primary-dark);
  color: #cdd8ea;
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; gap: 18px; padding: 7px 16px; flex-wrap: wrap; }
.topbar .tb-left { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.topbar a { color: #cdd8ea; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .tb-right { display: flex; gap: 14px; }

/* ===== Header (nền trắng) ===== */
.site-header {
  background: #fff;
  color: var(--primary);
  padding: 10px 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(15,23,42,.08);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .brand-logo {
  width: 54px; height: 54px;
  object-fit: contain; display: block;
}
.brand span { color: var(--gold); }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: nowrap; justify-content: center; align-items: center; min-width: 0; }
.nav .nav-link {
  color: var(--primary); font-weight: 800; font-size: 13.2px;
  text-transform: uppercase; letter-spacing: .15px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 8px; border-radius: 10px; line-height: 1.15;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav .nav-link:hover { color: var(--gold); background: #f8fafc; text-decoration: none; box-shadow: inset 0 0 0 1px #eef2f7; }
.nav-caret { font-size: 11px; color: var(--muted); line-height: 1; transform: translateY(-1px); }
.btn-cta {
  background: var(--gold); color: var(--primary-dark) !important;
  padding: 10px 18px; border-radius: 8px; font-weight: 800; font-size: 14px;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.btn-cta:hover { background: #d8b35c; text-decoration: none; }

/* Hamburger + account (mobile only) */
.hdr-burger {
  display: none; flex-direction: column; gap: 4px; justify-content: center;
  width: 40px; height: 40px; padding: 8px; border: none; background: transparent;
  cursor: pointer; flex-shrink: 0;
}
.hdr-burger span { display: block; height: 2.5px; width: 100%; background: var(--primary); border-radius: 2px; }
.hdr-account {
  display: none; font-size: 22px; width: 42px; height: 42px;
  align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none;
  border: 1px solid #cfd7e6; border-radius: 4px; background: #fff; color: var(--primary);
}
.hdr-account-link { padding: 0; overflow: hidden; }
.hdr-account-av { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdr-account-initial {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff;
  font-size: 18px; font-weight: 900;
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,31,66,.58);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-panel {
  position: absolute; top: 0; left: 0; height: 100%; width: 88%; max-width: 390px;
  background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
  box-shadow: 18px 0 45px rgba(10,31,66,.22);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.mm-head span { display:block; font-weight: 900; color: var(--primary); text-transform: uppercase; font-size: 15px; letter-spacing:.3px; }
.mm-head small { display:block; margin-top:2px; color: var(--muted); font-size: 12px; }
.mm-close { border: 1px solid #e5e7eb; background: #f8fafc; border-radius: 10px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; color: var(--primary); }
.mm-contact { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin: 2px 0 8px; }
.mobile-menu-panel .mm-contact a { background:#f8fafc; color: var(--primary); border:1px solid #edf1f7; border-radius: 12px; padding: 9px 10px; font-size: 12px; font-weight: 700; text-align:center; }
.mobile-menu-panel a { padding: 12px 10px; color: var(--primary); font-weight: 750; border-radius: 10px; }
.mobile-menu-panel a:hover { background: var(--bg); text-decoration: none; }
.mobile-menu-panel .mm-cta { background: linear-gradient(135deg, var(--gold), #d8b35c); color: var(--primary-dark); text-align: center; font-weight: 900; text-transform: uppercase; margin-top: 10px; box-shadow: 0 8px 18px rgba(200,162,74,.28); }

/* ===== Header responsive ===== */
@media (max-width: 1024px) {
  .topbar { display: none; }
  .site-header .container { justify-content: space-between; gap: 10px; }
  .nav { display: none; }
  .btn-cta { display: none; }
  .hdr-burger { display: flex; order: 1; }
  .brand { order: 2; margin: 0 auto; }
  .hdr-account { display: flex; order: 3; }
  .brand .brand-logo { width: 46px; height: 46px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--primary-dark);
  color: #fff; padding: 70px 0 56px;
}
/* Ảnh nền bên phải, fade mềm vào nền navy (blend, không khung) */
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 60%; z-index: 0;
  background: url('/img/hero-lawyers.jpg') no-repeat center right;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 55%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--primary-dark) 8%, rgba(15,45,92,.45) 45%, rgba(15,45,92,.12) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 560px; margin-bottom: 36px; }
.hero h1 {
  font-size: 40px; margin: 0 0 6px; font-weight: 800; line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero h1 .gold { color: var(--gold); display: block; font-size: 56px; letter-spacing: .5px; line-height: 1.2; padding-bottom: 4px; }
.hero h1 .hero-h1-line { display: block; font-size: 30px; margin-top: 6px; }
.hero p { font-size: 17px; color: #d4ddec; margin: 16px 0 0; max-width: 480px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }

/* Hero search (3 trường) */
.hero-search {
  display: flex; gap: 0; max-width: 100%; margin: 0;
  background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.28);
  flex-wrap: wrap;
}
.hero-search input, .hero-search select {
  border: none; padding: 14px 14px; font-size: 15px; color: var(--text);
  background: transparent; min-width: 0;
}
.hero-search .f-kw { flex: 2; border-right: 1px solid var(--border); }
.hero-search .f-sel { flex: 1; border-right: 1px solid var(--border); appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4l3 3 3-3' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 12px center; }
.hero-search button {
  border: none; background: var(--gold); color: var(--primary-dark);
  padding: 0 30px; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 800;
  text-transform: uppercase; margin: 2px;
}
.hero-search button:hover { background: #d8b35c; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 44px; }
  .hero-bg { width: 100%; opacity: .28;
    -webkit-mask-image: none; mask-image: none; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,31,66,.85), var(--primary-dark)); }
  .hero-text { max-width: 100%; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; } .hero h1 .gold { font-size: 40px; line-height: 1.25; padding-bottom: 4px; }
  .hero h1 .hero-h1-line { font-size: 22px; margin-top: 8px; }
  .hero-search { flex-direction: column; }
  .hero-search .f-kw, .hero-search .f-sel { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-search button { padding: 14px; }
}

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: -38px auto 8px; position: relative; z-index: 5; max-width: 1000px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; text-align: center; box-shadow: 0 6px 20px rgba(15,23,42,.06);
  display: flex; align-items: center; gap: 14px; justify-content: center;
}
.stat-card:hover { text-decoration: none; box-shadow: 0 10px 26px rgba(15,23,42,.1); }
.stat-card .ico { font-size: 26px; color: var(--gold); }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card .label { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; gap: 12px; }
  .stat-card { padding: 16px 10px; gap: 8px; }
  .stat-card .ico { font-size: 22px; }
  .stat-card .num { font-size: 21px; }
  .stat-card .label { font-size: 12px; }
}
@media (max-width: 380px) {
  .stat-card { flex-direction: column; gap: 4px; }
}

/* ===== Section ===== */
.section { margin: 46px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; margin: 0; color: var(--primary); font-weight: 800; }
.section-head h2::after {
  content: ''; display: block; width: 64px; height: 3px; background: var(--gold);
  margin: 10px auto 0; border-radius: 2px;
}
.section h2 { font-size: 22px; margin: 0 0 18px; }
/* tiêu đề cột (cũ) vẫn dùng border-left */
.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.col-head h2 { font-size: 20px; margin: 0; border-left: 4px solid var(--gold); padding-left: 12px; color: var(--primary); }
.col-head a.more { font-size: 13px; color: var(--gold-dark); font-weight: 600; }

/* ===== Lĩnh vực pháp lý ===== */
.fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .fields-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }
.field-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: .15s;
}
.field-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.1); border-color: var(--gold); }
.field-card .fc-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #fbf6ea; color: var(--gold-dark); display: grid; place-items: center; font-size: 26px;
}
.field-card .fc-name { font-weight: 700; color: var(--text); font-size: 15px; }
.field-card .fc-desc { color: var(--muted); font-size: 12px; margin-top: 4px; }
.center-link { text-align: center; margin-top: 22px; }
.center-link a { color: var(--gold-dark); font-weight: 700; font-size: 14px; }

/* ===== Two-column block (luật sư | công ty) ===== */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Lawyer cards - card dọc: ảnh lớn trên, thông tin dưới */
.lawyer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1024px) { .lawyer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lawyer-grid { grid-template-columns: 1fr; } }
.lawyer-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: .15s; display: flex; flex-direction: column;
}
.lawyer-card:hover { text-decoration: none; box-shadow: 0 12px 28px rgba(15,23,42,.12); transform: translateY(-3px); }
.lawyer-card .lc-photo { width: 100%; aspect-ratio: 1 / 1; background: #eef2f7; overflow: hidden; }
.lawyer-card .lc-photo { display: block; }
.lawyer-card .avatar {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease;
}
.lawyer-card:hover .avatar { transform: scale(1.04); }
.lawyer-card .avatar-fb {
  width: 100%; height: 100%;
  background: var(--primary); color: var(--gold); display: grid; place-items: center;
  font-size: 64px; font-weight: 800;
}
.lawyer-card .lc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.lawyer-card .ln { font-weight: 800; color: var(--primary); font-size: 17px; margin: 0; }
.lawyer-card .ln a { color: inherit; }
.lawyer-card .ln a:hover { color: var(--gold-dark); text-decoration: none; }
.lawyer-card .lf { color: var(--muted); font-size: 13px; margin: 3px 0 12px; }
.lawyer-card .lc-meta { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lawyer-card .lc-meta li { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.lawyer-card .lc-meta .lc-ic { font-size: 13px; opacity: .85; flex: 0 0 auto; }
.lawyer-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; margin-bottom: 14px; }
.lawyer-card .stars .rate { color: var(--muted); font-size: 12px; letter-spacing: 0; margin-left: 4px; }
.lawyer-card .btn-profile {
  display: block; margin-top: auto; text-align: center; font-size: 13px; font-weight: 800;
  color: #fff; background: var(--primary); border-radius: 8px; padding: 11px 14px;
  text-transform: uppercase; letter-spacing: .3px;
}
.lawyer-card .btn-profile:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* Firm grid */
.firm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .firm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .firm-grid { grid-template-columns: 1fr; } }
.firm-list { display: flex; flex-direction: column; gap: 12px; }
.firm-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; gap: 12px; align-items: center; transition: .15s;
}
.firm-item:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.firm-item .logo {
  width: 48px; height: 48px; border-radius: 8px; flex: 0 0 48px;
  background: var(--primary); color: var(--gold); display: grid; place-items: center;
  font-weight: 800; font-size: 16px; object-fit: cover;
}
.firm-item .fn { font-weight: 700; color: var(--text); font-size: 14px; margin: 0; }
.firm-item .fmeta { color: var(--muted); font-size: 12px; }

/* ===== Tra cứu văn bản band ===== */
.doc-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff; border-radius: 14px; padding: 30px; margin: 46px 0;
}
.doc-band h2 { color: #fff; text-align: center; margin: 0 0 18px; font-size: 22px; }
.doc-band h2::after { content:''; display:block; width:64px; height:3px; background:var(--gold); margin:10px auto 0; border-radius:2px; }
.doc-band-search { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-band-search input, .doc-band-search select {
  border: none; border-radius: 8px; padding: 12px 14px; font-size: 14px; flex: 1; min-width: 140px;
}
.doc-band-search button {
  border: none; background: var(--gold); color: var(--primary-dark); font-weight: 800;
  padding: 0 26px; border-radius: 8px; cursor: pointer; text-transform: uppercase;
}
.doc-band-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
.doc-band-tags a {
  color: #dbe4f3; font-size: 13px; border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 999px;
}
.doc-band-tags a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ===== Tin tức + Hỏi đáp / Quy trình ===== */
.news-feature { display: block; transition: .15s; margin-bottom: 18px; }
.news-feature:hover { text-decoration: none; }
.news-feature .nf-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.news-feature .nf-tag { position: absolute; left: 12px; bottom: 12px; background: var(--gold); color: var(--primary-dark); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.news-feature .nf-body { padding: 12px 0 0; }
.news-feature h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; color: var(--text); font-weight: 700; }
.news-feature:hover h3 { color: var(--primary); }
.news-feature .ex { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 8px; }
.news-feature .nf-meta { font-size: 12.5px; color: #94a3b8; }

.news-mini { display: flex; flex-direction: column; }
.news-mini a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--border); }
.news-mini a:first-child { border-top: none; padding-top: 0; }
.news-mini a:hover { text-decoration: none; }
.news-mini .nm-thumb { width: 108px; height: 72px; border-radius: 8px; object-fit: cover; flex: 0 0 108px; background: #eef2f7; }
.news-mini .nm-txt { display: flex; flex-direction: column; }
.news-mini .nm-t { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.news-mini a:hover .nm-t { color: var(--primary); }
.news-mini .nm-ex { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-mini .nm-meta { font-size: 12px; color: #94a3b8; margin-top: 5px; }

/* Hỏi đáp list */
.qa-list { display: flex; flex-direction: column; gap: 14px; }
.qa-item { display: flex; gap: 12px; }
.qa-item .q-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #fbf6ea; color: var(--gold-dark); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.qa-item .q-t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.qa-item .q-by { font-size: 12px; color: var(--muted); margin-top: 2px; }
.qa-item a:hover { text-decoration: none; }

/* ===== Xem nhiều nhất (widget cột phải) ===== */
.most-viewed { list-style: none; margin: 0; padding: 0; counter-reset: mv; }
.most-viewed li { border-top: 1px solid var(--border); }
.most-viewed li:first-child { border-top: none; }
.most-viewed a { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.most-viewed a:hover { text-decoration: none; }
.most-viewed .mv-rank { flex: 0 0 24px; font-size: 24px; font-weight: 800; line-height: 1; color: var(--gold); text-align: center; }
.most-viewed .mv-thumb { width: 72px; height: 54px; flex: 0 0 72px; border-radius: 6px; object-fit: cover; background: #eef2f7; }
.most-viewed .mv-t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.most-viewed a:hover .mv-t { color: var(--primary); }

/* Quy trình */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .sn { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.step .st { font-weight: 700; font-size: 14px; color: var(--text); }
.step .sd { font-size: 12px; color: var(--muted); }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.testi .quote { font-size: 14px; color: #334155; font-style: italic; }
.testi .stars { color: var(--gold); margin: 8px 0; letter-spacing: 1px; }
.testi .who { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.testi .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.testi .who .n { font-weight: 700; font-size: 14px; }
.testi .who .r { font-size: 12px; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark); border-radius: 14px; padding: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 46px 0;
}
.cta-band .ct-t { font-size: 24px; font-weight: 800; }
.cta-band .ct-s { font-size: 14px; }
.cta-band .ct-btn {
  background: var(--primary-dark); color: #fff !important; padding: 14px 26px; border-radius: 8px;
  font-weight: 800; text-transform: uppercase; white-space: nowrap;
}
.cta-band .ct-btn:hover { background: #06152f; text-decoration: none; }

/* ===== Generic card grid (trang list/detail cũ) ===== */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 4px 18px rgba(15,23,42,.08); transform: translateY(-1px); }
.card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.card .meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.card .summary { color: #334155; font-size: 14px; margin-top: 8px; }

/* Badge */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }

/* List page layout */
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin: 24px 0; }
@media (max-width: 860px) { .list-layout { grid-template-columns: 1fr; } }
.filters { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: fit-content; }
.filters h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; color: var(--muted); }
.filters a { display: block; padding: 5px 0; font-size: 14px; }
.filters a.active { font-weight: 700; color: var(--gold-dark); }

/* Detail */
.detail { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.detail h1 { font-size: 26px; margin: 0 0 14px; }
.doc-meta { width: 100%; border-collapse: collapse; margin: 18px 0; }
.doc-meta th, .doc-meta td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.doc-meta th { width: 200px; color: var(--muted); font-weight: 600; }
.rich-text { margin-top: 24px; font-size: 15px; }
.rich-text p { margin: 0 0 12px; }
.rich-text h2, .rich-text h3 { margin: 20px 0 10px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 14px; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Footer ===== */
.site-footer { background: var(--primary-dark); color: #aab8cf; padding: 40px 0 22px; margin-top: 52px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a { color: #aab8cf; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-about .brand { margin-bottom: 12px; }
.footer-about p { font-size: 13px; line-height: 1.6; }
.footer-news input { width: 100%; border: none; border-radius: 8px; padding: 11px 12px; font-size: 14px; margin-bottom: 10px; }
.footer-news button { border: none; background: var(--gold); color: var(--primary-dark); font-weight: 800; padding: 11px 18px; border-radius: 8px; cursor: pointer; text-transform: uppercase; width: 100%; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.footer-social a:hover { background: var(--gold); color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; text-align: center; font-size: 13px; color: #8294b0; }

.breadcrumb { font-size: 13px; color: var(--muted); margin: 16px 0; }
.empty { text-align: center; padding: 48px; color: var(--muted); }

/* ===== Trang tìm kiếm (/tim-kiem) ===== */
.search-page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(200,162,74,.18), transparent 34%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 20px;
  padding: 34px;
  margin: 18px 0 24px;
  box-shadow: 0 18px 48px rgba(15,45,92,.18);
}
.search-page-hero::after {
  content: '';
  position: absolute;
  inset: auto -40px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.search-page-copy { position: relative; z-index: 1; max-width: 760px; margin-bottom: 22px; }
.search-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.search-page-copy h1 { margin: 14px 0 8px; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.search-page-copy p { margin: 0; color: #d8e2f2; max-width: 680px; }
.search-page-form {
  position: relative;
  z-index: 1;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: 920px;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
}
.search-page-form .search-form-icon {
  display: grid;
  place-items: center;
  width: 44px;
  color: var(--gold-dark);
  font-size: 24px;
  flex: 0 0 44px;
}
.search-page-form input { flex: 1; min-height: 54px; }
.search-page-form input:focus { outline: none; }
.search-page-form:focus-within { box-shadow: 0 0 0 3px rgba(200,162,74,.28), 0 16px 44px rgba(0,0,0,.22); }
.search-page-form button { min-height: 50px; }
.search-empty-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  margin: 0 0 44px;
}
.search-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbf6ea;
  color: var(--gold-dark);
  font-size: 34px;
}
.search-empty-state h2 { margin: 0 0 8px; color: var(--primary); font-size: 24px; }
.search-empty-state p { max-width: 680px; margin: 0 auto; color: var(--muted); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 26px; }
.search-suggestions a {
  border: 1px solid #eadcb9;
  background: #fffaf0;
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  transition: .15s ease;
}
.search-suggestions a:hover { background: var(--gold); color: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.search-empty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.search-empty-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  transition: .15s ease;
}
.search-empty-card:hover { text-decoration: none; border-color: var(--gold); box-shadow: 0 12px 26px rgba(15,23,42,.09); transform: translateY(-2px); }
.search-empty-card span { font-size: 30px; line-height: 1; }
.search-empty-card strong { color: var(--primary); font-size: 16px; }
.search-empty-card small { color: var(--muted); line-height: 1.55; }
@media (max-width: 760px) {
  .search-page-hero { padding: 24px 18px; border-radius: 16px; }
  .search-page-form { flex-direction: column; }
  .search-page-form .search-form-icon { display: none; }
  .search-page-form input { width: 100%; border-bottom: 1px solid var(--border); }
  .search-empty-state { padding: 26px 16px; }
  .search-empty-grid { grid-template-columns: 1fr; }
  .search-empty-card { min-height: auto; }
}

/* ===================================================================
   Trang Danh bạ luật sư (/luat-su)
   =================================================================== */
.ls-hero {
  background:
    linear-gradient(135deg, rgba(10,31,66,.95), rgba(15,45,92,.88)),
    radial-gradient(circle at 85% 15%, rgba(200,162,74,.18), transparent 45%);
  background-color: var(--primary-dark);
  color: #fff; padding: 34px 0 38px;
}
.ls-hero .ls-crumb { font-size: 13px; color: #c7d2e3; margin-bottom: 12px; }
.ls-hero .ls-crumb a { color: #c7d2e3; }
.ls-hero .ls-crumb a:hover { color: var(--gold); text-decoration: none; }
.ls-hero .ls-crumb span { margin: 0 4px; opacity: .6; }
.ls-hero h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.ls-hero p { font-size: 15px; color: #cdd8ea; margin: 0 0 20px; max-width: 680px; }
.ls-hero p strong { color: var(--gold); }
.ls-hero .ls-seo-intro { margin-top: -10px; margin-bottom: 20px; color: #e6eefb; font-size: 14px; }
.ls-search { display: flex; max-width: 560px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ls-search input { flex: 1; border: none; padding: 13px 16px; font-size: 15px; outline: none; color: var(--text); }
.ls-search button { border: none; background: var(--gold); color: var(--primary-dark); font-weight: 800; padding: 0 22px; cursor: pointer; white-space: nowrap; }
.ls-search button:hover { background: #d8b35c; }

.ls-layout { align-items: start; }
.ls-filters { position: sticky; top: 84px; }
.flt-block { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.flt-block:last-of-type { border-bottom: none; }
.flt-block h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; color: var(--primary); font-weight: 800; letter-spacing: .3px; }
.ls-filters a { display: block; padding: 6px 0; font-size: 14px; color: #334155; }
.ls-filters a:hover { color: var(--gold-dark); text-decoration: none; }
.ls-filters a.active { font-weight: 700; color: var(--gold-dark); }
.flt-reset { display: inline-block; margin-top: 6px; color: #dc2626 !important; font-size: 13px; font-weight: 600; }

.ls-resbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; font-size: 14px; color: var(--muted); }
.ls-resbar strong { color: var(--primary); font-size: 17px; }
.ls-page { font-size: 13px; }
.ls-seo-block {
  margin: 34px 0 54px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.ls-seo-block h2 { margin: 0 0 10px; color: var(--primary); font-size: 22px; }
.ls-seo-block p { margin: 0 0 10px; color: var(--muted); line-height: 1.75; }
.ls-seo-block p:last-child { margin-bottom: 0; }

.ls-list { display: flex; flex-direction: column; gap: 14px; }
.lwc {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; display: grid; grid-template-columns: 96px 1fr auto; gap: 18px;
  align-items: center; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.lwc:hover { box-shadow: 0 10px 28px rgba(15,23,42,.1); transform: translateY(-2px); border-color: #d4dcea; }
.lwc-avatar { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; display: block; background: var(--primary); flex-shrink: 0; }
.lwc-avatar img { width: 96px; height: 96px; object-fit: cover; display: block; }
.lwc-initials { width: 96px; height: 96px; display: grid; place-items: center; color: var(--gold); font-size: 28px; font-weight: 800; }
.lwc-verified { position: absolute; bottom: 4px; right: 4px; width: 22px; height: 22px; background: #16a34a; color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; border: 2px solid #fff; }

.lwc-body { min-width: 0; }
.lwc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lwc-head h3 { margin: 0; font-size: 18px; }
.lwc-head h3 a { color: var(--primary); }
.lwc-head h3 a:hover { color: var(--gold-dark); text-decoration: none; }
.lwc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.lwc-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.lwc-badge.verified { background: #dcfce7; color: #15803d; }
.lwc-badge.vip { background: #fef3c7; color: #b45309; }
.lwc-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.lwc-addr { color: #475569; font-size: 13.5px; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lwc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.lwc-tag { font-size: 12px; background: var(--bg); color: var(--primary); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }

.lwc-actions { display: flex; flex-direction: column; gap: 8px; min-width: 132px; }
.lwc-call { background: var(--primary); color: #fff !important; text-align: center; padding: 10px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lwc-call:hover { background: var(--primary-mid); text-decoration: none; }
.lwc-view { background: var(--gold); color: var(--primary-dark) !important; text-align: center; padding: 10px 14px; border-radius: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.lwc-view:hover { background: #d8b35c; text-decoration: none; }

@media (max-width: 860px) {
  .ls-filters { position: static; }
}

/* ===== Collapsible filter (mobile) ===== */
.flt-wrap { display: contents; }
.flt-toggle { display: none; }
@media (max-width: 860px) {
  .flt-wrap { display: block; margin-bottom: 16px; }
  .flt-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 13px 16px; cursor: pointer;
    font-size: 15px; font-weight: 700; color: var(--primary); font-family: inherit;
  }
  .flt-toggle-caret { color: var(--gold-dark); font-size: 12px; }
  .flt-wrap .filters { display: none; margin-top: 10px; }
  .flt-wrap .filters.flt-open { display: block; }
}
@media (max-width: 620px) {
  .lwc { grid-template-columns: 72px 1fr; }
  .lwc-avatar, .lwc-avatar img, .lwc-initials { width: 72px; height: 72px; }
  .lwc-actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .lwc-call, .lwc-view { flex: 1; }
  .ls-hero h1 { font-size: 24px; }
}

.flt-scroll { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.flt-scroll::-webkit-scrollbar { width: 6px; }
.flt-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== DANH SÁCH CÔNG TY LUẬtT (fm list) ===== */
.ls-hl { color: var(--gold); }
.fm-search { max-width: 100%; display: flex; flex-wrap: wrap; gap: 0; }
.fm-search input { flex: 2 1 240px; }
.fm-search select { flex: 1 1 150px; border: none; border-left: 1px solid var(--border); padding: 13px 14px; font-size: 14px; color: var(--text); background: #fff; outline: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4l3 3 3-3' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.fm-search button { flex: 0 0 auto; }

/* Stats band */
.fm-stats-band { background: var(--bg); border-bottom: 1px solid var(--border); }
.fm-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 16px; }
.fm-stat { display: flex; align-items: center; gap: 12px; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; }
.fm-stat-ic { width: 40px; height: 40px; border-radius: 10px; background: #fbf6ea; color: var(--gold-dark); display: grid; place-items: center; font-size: 19px; flex: 0 0 40px; }
.fm-stat strong { display: block; color: var(--primary); font-size: 21px; font-weight: 800; line-height: 1.1; }
.fm-stat-l { color: var(--muted); font-size: 12.5px; }

.fm-list-layout { margin-top: 22px; }

/* Card dạng row */
.fm-cards { gap: 16px; }
.fm-row { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: grid; grid-template-columns: 120px 1fr 200px; gap: 20px; align-items: start; transition: box-shadow .15s, transform .15s, border-color .15s; }
.fm-row:hover { box-shadow: 0 10px 28px rgba(15,23,42,.1); transform: translateY(-2px); border-color: #d4dcea; }
.fm-row-logo { width: 120px; height: 120px; border-radius: 12px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; overflow: hidden; padding: 8px; }
.fm-row-logo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s ease; }
.fm-row:hover .fm-row-logo img { transform: scale(1.04); }
.fm-row-logo-fb { width: 100%; height: 100%; display: grid; place-items: center; background: var(--primary); color: var(--gold); font-size: 34px; font-weight: 800; border-radius: 8px; }

.fm-row-body { min-width: 0; }
.fm-row-body h3 { margin: 0 0 7px; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-row-body h3 a { color: var(--primary); }
.fm-row-body h3 a:hover { color: var(--gold-dark); text-decoration: none; }
.fm-row-verified { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; }
.fm-row-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.fm-stars { color: var(--gold); letter-spacing: 1px; }
.fm-row-rate strong { color: var(--text); }
.fm-row-team { border-left: 1px solid var(--border); padding-left: 10px; }
.fm-row-addr { color: #475569; font-size: 13.5px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fm-row-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fm-row-tag { font-size: 12px; background: var(--bg); color: var(--primary); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }
.fm-row-desc { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }

.fm-row-side { display: flex; flex-direction: column; gap: 8px; }
.fm-row-meta { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.fm-row-meta strong { color: var(--primary); }
.fm-row-btn { text-align: center; padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.fm-row-btn.view { background: var(--primary); color: #fff !important; }
.fm-row-btn.view:hover { background: var(--primary-mid); text-decoration: none; }
.fm-row-btn.consult { background: var(--gold); color: var(--primary-dark) !important; font-weight: 800; }
.fm-row-btn.consult:hover { background: #d8b35c; text-decoration: none; }

/* Đối tác tiêu biểu */
.fm-partners { margin-top: 8px; }
.fm-partner-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.fm-partner { background: #fff; border: 1px solid var(--border); border-radius: 12px; height: 64px; display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 13px; letter-spacing: .3px; }

@media (max-width: 980px) {
  .fm-stats-row { grid-template-columns: repeat(3, 1fr); }
  .fm-row { grid-template-columns: 90px 1fr; }
  .fm-row-logo { width: 90px; height: 90px; }
  .fm-row-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .fm-row-meta { flex-direction: row; gap: 14px; flex: 1 1 100%; }
  .fm-row-btn { flex: 1; }
  .fm-partner-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .fm-stats-row { grid-template-columns: repeat(2, 1fr); }
  .fm-search input, .fm-search select { flex: 1 1 100%; border-left: none; border-bottom: 1px solid var(--border); }
  .fm-search button { width: 100%; }
  .fm-row { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
  .fm-row-logo { width: 64px; height: 64px; }
  .fm-row-meta { flex-wrap: wrap; gap: 8px 14px; }
  .fm-partner-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Auth buttons (topbar / mobile) ===== */
.tb-auth {
  background: none; border: none; color: #cdd8ea; cursor: pointer;
  font-size: inherit; font-family: inherit; padding: 0; line-height: inherit;
}
.tb-auth:hover { color: #fff; }
.tb-acct { position: relative; }
.tb-acct-btn { display: inline-flex; align-items: center; gap: 6px; }
.tb-acct-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.tb-caret { font-size: 10px; opacity: .8; }
/* ===== Reset & Isolate User Dropdown Menu from .topbar inheritance ===== */
.topbar .tb-menu,
.tb-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1200;
  width: 310px;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.topbar .tb-menu-head,
.tb-menu-head {
  background: #fdf6e7 !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid #fef08a !important;
  text-align: left;
}
.topbar .tb-menu-email,
.tb-menu-email {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #0f172a !important;
  word-break: break-all;
  line-height: 1.35;
}
.topbar .tb-menu-tier,
.tb-menu-tier {
  font-size: 13.5px !important;
  color: #334155 !important;
  margin-top: 6px;
  font-weight: 500;
}
.topbar .tb-menu-tier strong.tier-pro,
.tb-menu-tier strong.tier-pro {
  color: #dc2626 !important;
  font-weight: 800 !important;
}
.topbar .tb-menu-tier strong.tier-standard,
.tb-menu-tier strong.tier-standard {
  color: #d97706 !important;
  font-weight: 800 !important;
}
.topbar .tb-menu-tier strong.tier-enterprise,
.tb-menu-tier strong.tier-enterprise {
  color: #7c3aed !important;
  font-weight: 800 !important;
}
.topbar .tb-menu-tier strong.tier-free,
.tb-menu-tier strong.tier-free {
  color: #475569 !important;
  font-weight: 700 !important;
}
.topbar .tb-menu-expire,
.tb-menu-expire {
  font-size: 12.5px !important;
  color: #475569 !important;
  margin-top: 4px;
}
.topbar .tb-menu-body,
.tb-menu-body {
  padding: 8px 0 !important;
  background: #ffffff !important;
}
.topbar .tb-menu a,
.topbar .tb-menu button,
.topbar .tb-menu-item,
.tb-menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 18px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}
.topbar .tb-menu a:hover,
.topbar .tb-menu button:hover,
.topbar .tb-menu-item:hover,
.tb-menu-item:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}
.topbar .tb-menu-item-left,
.tb-menu-item-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit !important;
}
.topbar .tb-menu-item-left span,
.tb-menu-item-left span {
  color: inherit !important;
}
.topbar .tb-menu-ic,
.tb-menu-ic {
  font-size: 16px !important;
  width: 20px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  color: #475569 !important;
}
.topbar .tb-badge-new,
.tb-badge-new {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
}
.topbar .tb-badge-count,
.tb-badge-count {
  font-size: 13.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}
.topbar .tb-submenu-caret,
.tb-submenu-caret {
  font-size: 12px !important;
  color: #475569 !important;
  font-weight: 700 !important;
}
.topbar .tb-submenu-list,
.tb-submenu-list {
  background: #f8fafc !important;
  padding: 4px 0 6px 48px !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.topbar .tb-submenu-list a,
.topbar .tb-sub-item,
.tb-sub-item {
  display: block !important;
  padding: 6px 14px 6px 0 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  line-height: 1.4 !important;
}
.topbar .tb-submenu-list a:hover,
.topbar .tb-sub-item:hover,
.tb-sub-item:hover {
  color: #dc2626 !important;
  font-weight: 600 !important;
  background: transparent !important;
}
.tb-menu-sep {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 0;
}
.topbar .tb-menu-item.danger,
.tb-menu-item.danger {
  color: #0f172a !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 4px !important;
}
.topbar .tb-menu-item.danger:hover,
.tb-menu-item.danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}
.mobile-menu-panel .mm-acct-sep {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.mm-user {
  padding: 8px 10px; border-radius: 8px;
  background: var(--bg); color: var(--primary); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.mm-user-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mobile-menu-panel .mm-auth-link {
  display: block; margin-top: 4px; padding: 11px 10px; border-radius: 8px;
  background: transparent; color: var(--primary); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.mobile-menu-panel .mm-auth-link:hover { background: var(--bg); }
.mm-auth {
  margin-top: 10px; width: 100%; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; padding: 12px; font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.mm-auth:hover { background: var(--primary-dark); }
/* Toggle chuyển mục lớn trong drawer mobile */
.mm-mega-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 8px; border: none; background: transparent;
  color: var(--primary); font-weight: 600; font: inherit; font-weight: 600;
  border-radius: 8px; cursor: pointer; text-align: left;
}
.mm-mega-toggle:hover { background: var(--bg); }
.mm-caret { transition: transform .2s ease; font-size: 12px; color: var(--muted); }
.mm-mega-toggle.open .mm-caret { transform: rotate(180deg); }

/* ===== Account page ===== */
.acct-card {
  display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap;
  background: #fff; border: 1px solid #e6ebf3; border-radius: 14px;
  padding: 24px; box-shadow: 0 8px 24px rgba(10,20,45,.05); margin-top: 12px;
}
.acct-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-info { flex: 1; min-width: 0; }
.acct-name { font-size: 22px; font-weight: 800; color: #1f2a44; margin-bottom: 14px; word-break: break-word; }
.acct-meta { margin: 0 0 18px; }
.acct-meta > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f3f8; }
.acct-meta dt { width: 130px; flex: none; color: #6b7790; font-weight: 600; margin: 0; }
.acct-meta dd { margin: 0; color: #1f2a44; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 560px) {
  .acct-card { gap: 16px; padding: 18px; }
  .acct-meta > div { flex-direction: column; gap: 2px; }
  .acct-meta dt { width: auto; }
}
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700;
  font-size: 14px; cursor: pointer; border: none; text-decoration: none;
  background: var(--primary); color: #fff;
}
.acct-btn:hover { background: var(--primary-dark); }
.acct-btn.ghost { background: #eef2f8; color: #1f2a44; }
.acct-btn.ghost:hover { background: #e2e8f2; }
.acct-btn.danger { background: #fbeaea; color: #c0392b; }
.acct-btn.danger:hover { background: #f5d9d9; }

/* ===== Auth modal ===== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 20, 45, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: authFade .18s ease;
}
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
.auth-modal {
  width: 100%; max-width: 820px; background: #fff; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; box-shadow: 0 30px 80px rgba(10,20,45,.45);
  animation: authPop .22s cubic-bezier(.2,.8,.3,1.1);
}
@keyframes authPop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* Cột thương hiệu */
.auth-aside {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 38px 30px; display: flex; flex-direction: column; justify-content: center;
}
.auth-aside .auth-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; }
.auth-aside h3 { margin: 18px 0 8px; font-size: 22px; color: #fff; }
.auth-aside p { color: #cdd8ea; font-size: 14px; margin: 0 0 20px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { font-size: 14px; color: #e7eefb; }

/* Cột form */
.auth-main { padding: 34px 34px 30px; position: relative; }
.auth-close {
  position: absolute; top: 16px; right: 18px; background: none; border: none;
  font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1;
}
.auth-close:hover { color: var(--text); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.auth-tabs button {
  background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 700;
  color: var(--muted); padding: 10px 4px 14px; position: relative; font-family: inherit;
}
.auth-tabs button.active { color: var(--primary); }
.auth-tabs button.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--gold); border-radius: 3px 3px 0 0;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { font-size: 13px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.auth-form input {
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; font-size: 14px;
  font-family: inherit; width: 100%; background: #fbfcfe;
}
.auth-form input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(15,45,92,.1); }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 42px; }
.auth-pass button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px;
}
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; flex-wrap: nowrap; }
.auth-check { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important; color: var(--muted); white-space: nowrap; }
.auth-check input { width: auto !important; flex: 0 0 auto; margin: 0; }
.auth-row .auth-link { white-space: nowrap; flex: 0 0 auto; }
.auth-link {
  background: none; border: none; cursor: pointer; color: var(--primary); font-weight: 600;
  font-size: inherit; font-family: inherit; padding: 0; text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-submit {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 13px; font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 4px;
  text-transform: uppercase; letter-spacing: .3px; transition: .15s;
}
.auth-submit:hover { background: var(--primary-dark); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.auth-alert { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.auth-alert.err { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }
.auth-alert.ok { background: #ecfdf3; color: #027a48; border: 1px solid #a6f4c5; }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #fff; border: 1px solid #d4dae5; border-radius: 8px; padding: 11px 14px;
  font: inherit; font-weight: 600; font-size: 14px; color: #1f2a44; cursor: pointer;
}
.auth-google:hover { background: #f5f8fc; border-color: #b9c3d4; }
.auth-or { display: flex; align-items: center; text-align: center; margin: 16px 0; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-or span { padding: 0 12px; font-size: 12px; }

@media (max-width: 680px) {
  .auth-modal { grid-template-columns: 1fr; max-width: 440px; }
  .auth-aside { display: none; }
  .auth-main { padding: 28px 22px 24px; }
}

/* ===================== TRANG CHI TIẾT LUẬT SƯ ===================== */
.lw-detail { background: var(--bg); }
.lw-detail .container { max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
/* Breadcrumb: dải navy full-width liền mạch với hero bên dưới */
.lw-crumb-band { background: var(--primary-dark); }
.lw-crumb { font-size: 13px; color: #aebbd0; padding: 16px 16px 6px; }
.lw-crumb a { color: #aebbd0; }
.lw-crumb a:hover { color: #fff; }
.lw-crumb span { color: #fff; font-weight: 600; }

/* HERO */
.lw-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)); color: #fff; padding: 4px 0 30px; }
.lw-hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; align-items: stretch; }
.lw-hero-card { display: flex; gap: 22px; align-items: flex-start; }
.lw-photo { flex: 0 0 190px; width: 190px; }
.lw-photo img { width: 100%; height: auto; border-radius: 12px; border: 3px solid rgba(200,162,74,.6); display: block; object-fit: cover; }
.lw-photo-fb { width: 190px; height: 230px; border-radius: 12px; background: var(--primary); color: var(--gold); display: grid; place-items: center; font-size: 70px; font-weight: 800; }
.lw-id { flex: 1; min-width: 0; }
.lw-badge { display: inline-block; background: var(--gold); color: var(--primary-dark); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 6px; letter-spacing: .4px; }
.lw-role { color: #cdd8ea; font-size: 14px; margin: 12px 0 2px; }
.lw-id h1 { color: #fff; font-size: 30px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lw-verified { background: var(--gold); color: var(--primary-dark); width: 22px; height: 22px; border-radius: 50%; font-size: 13px; display: inline-grid; place-items: center; }
.lw-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.lw-stars { color: var(--gold); letter-spacing: 1px; }
.lw-stars.sm { font-size: 13px; }
.lw-rating strong { color: #fff; }
.lw-rating-c { color: #cdd8ea; }
.lw-exp { color: #cdd8ea; border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; margin-left: 4px; }
.lw-contact { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; color: #e7eefb; font-size: 14px; }
.lw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lw-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; }
.lw-btn.gold { background: var(--gold); color: var(--primary-dark) !important; }
.lw-btn.gold:hover { background: #d8b35c; text-decoration: none; }
.lw-btn.ghost { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.3); }
.lw-btn.ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.lw-btn.full { width: 100%; justify-content: center; }

/* Stats box */
.lw-stats { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.lw-stat { display: flex; align-items: center; gap: 14px; }
.lw-stat-ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(200,162,74,.18); display: grid; place-items: center; font-size: 20px; flex: 0 0 42px; }
.lw-stat strong { display: block; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.1; }
.lw-stat-l { color: #cdd8ea; font-size: 13px; }

/* Tabs */
.lw-tabs { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.lw-tabs nav { display: flex; gap: 4px; overflow-x: auto; }
.lw-tabs nav::-webkit-scrollbar { height: 0; }
.lw-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 15px 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; }
.lw-tabs a:hover { color: var(--primary); text-decoration: none; }
.lw-tabs a.active { color: var(--primary); border-bottom-color: var(--gold); }
.lw-tab-ic { font-size: 14px; }

/* Body layout */
.lw-body { display: grid; grid-template-columns: 1fr 360px; gap: 26px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.lw-main { display: flex; flex-direction: column; gap: 20px; }
.lw-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.lw-card h2 { font-size: 20px; color: var(--primary); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); position: relative; }
.lw-card h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 54px; height: 2px; background: var(--gold); }
.lw-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lw-card-head h2 { margin: 0; border: none; padding: 0; }
.lw-card-head h2::after { display: none; }
.lw-more { font-size: 13px; color: var(--gold-dark); font-weight: 700; }
.lw-bio { color: var(--text); font-size: 14.5px; line-height: 1.8; }

.lw-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
.lw-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.lw-info li span { color: var(--muted); margin-right: 4px; }
.lw-spec-box { background: #f7f9fc; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.lw-spec-box h4 { margin: 0 0 12px; color: var(--primary); font-size: 15px; }
.lw-spec-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text); }

/* Lĩnh vực hành nghề */
.lw-fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lw-field { background: #f7f9fc; border: 1px solid var(--border); border-radius: 12px; padding: 18px 10px; text-align: center; color: var(--text); transition: .15s; }
.lw-field:hover { text-decoration: none; box-shadow: 0 6px 16px rgba(15,23,42,.1); transform: translateY(-2px); background: #fff; }
.lw-field-ic { display: block; font-size: 28px; margin-bottom: 8px; }
.lw-field span:last-child { font-size: 13px; font-weight: 600; }

/* Kinh nghiệm */
.lw-exp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.lw-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 20px; }
.lw-timeline li { position: relative; }
.lw-timeline li::before { content: ''; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.lw-tl-year { display: block; color: var(--gold-dark); font-weight: 800; font-size: 14px; }
.lw-tl-text { color: var(--text); font-size: 14px; }
.lw-exp-stats { background: #f7f9fc; border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lw-exp-stats div { display: flex; flex-direction: column; }
.lw-exp-stats strong { color: var(--primary); font-size: 20px; font-weight: 800; }
.lw-exp-stats span { color: var(--muted); font-size: 13px; }

/* Bài viết */
.lw-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lw-article { color: var(--text); }
.lw-article img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.lw-article-t { font-weight: 700; font-size: 14px; margin: 0 0 4px; line-height: 1.4; }
.lw-article:hover .lw-article-t { color: var(--gold-dark); }
.lw-article-m { color: var(--muted); font-size: 12px; }

/* Đánh giá */
.lw-reviews { display: flex; flex-direction: column; gap: 16px; }
.lw-review { background: #f7f9fc; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.lw-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lw-review-av { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.lw-review-n { font-weight: 700; font-size: 14px; margin: 0; }
.lw-review-r { color: var(--muted); font-size: 12px; }
.lw-review-q { font-size: 13.5px; color: var(--text); margin: 8px 0 0; line-height: 1.6; }
.lw-reviews-empty { color: var(--muted); font-size: 14px; margin: 0; }

/* Form viết đánh giá */
.lw-rv-wrap { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.lw-rv-wrap h3 { font-size: 16px; margin: 0 0 12px; color: var(--primary); }
.lw-rv-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.lw-rv-stars { display: flex; gap: 4px; }
.lw-rv-star {
  background: none; border: none; cursor: pointer; padding: 0; line-height: 1;
  font-size: 30px; color: #d7dde6; transition: color .12s;
}
.lw-rv-star.on { color: var(--gold); }
.lw-rv-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font: inherit; resize: vertical; color: var(--text);
}
.lw-rv-form textarea:focus { outline: none; border-color: var(--primary); }
.lw-rv-form > button[type="submit"] {
  align-self: flex-start; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; padding: 11px 26px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.lw-rv-form > button[type="submit"]:hover { background: var(--primary-dark); }
.lw-rv-form > button[type="submit"]:disabled { opacity: .6; cursor: default; }
.lw-rv-note { font-size: 12px; color: var(--muted); margin: 0; }
.lw-rv-err { color: #c0392b; font-size: 13px; background: #fbeaea; padding: 8px 12px; border-radius: 8px; }
.lw-rv-login {
  margin-top: 22px; padding: 18px 20px; border-top: 1px solid var(--border);
  background: #f7f9fc; border-radius: 12px;
}
.lw-rv-login p { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.lw-rv-login button {
  background: var(--gold); color: var(--primary); border: none; border-radius: 8px;
  padding: 10px 22px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.lw-rv-ok { display: flex; align-items: center; gap: 12px; background: #eaf7ee; border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.lw-rv-ok-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #2e9e57; color: #fff; display: grid; place-items: center; font-weight: 800; }
.lw-rv-ok p { margin: 0; color: #1f6b3a; font-size: 14px; }

/* Phản hồi đánh giá */
.lw-reply { margin-top: 12px; }
.lw-reply-box {
  border-left: 3px solid var(--border); background: #f7f9fc; border-radius: 0 8px 8px 0;
  padding: 12px 14px; margin: 8px 0 0 6px;
}
.lw-reply-box.staff { border-left-color: var(--gold); background: #fffdf5; }
.lw-reply-head { font-weight: 700; font-size: 13px; color: var(--primary); margin-bottom: 4px; }
.lw-reply-text { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.lw-reply-edit, .lw-reply-add {
  background: none; border: none; padding: 0; margin-top: 8px; cursor: pointer;
  color: var(--primary); font-size: 13px; font-weight: 600; font-family: inherit;
}
.lw-reply-edit:hover, .lw-reply-add:hover { text-decoration: underline; }
.lw-reply-add { margin-top: 6px; }
.lw-reply-form { margin-top: 8px; }
.lw-reply-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font: inherit; resize: vertical; color: var(--text); box-sizing: border-box;
}
.lw-reply-form textarea:focus { outline: none; border-color: var(--primary); }
.lw-reply-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lw-reply-save {
  background: var(--primary); color: #fff; border: none; border-radius: 7px;
  padding: 8px 18px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.lw-reply-save:hover { background: var(--primary-dark); }
.lw-reply-save:disabled { opacity: .6; cursor: default; }
.lw-reply-cancel {
  background: #eef2f8; color: #1f2a44; border: none; border-radius: 7px;
  padding: 8px 18px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.lw-reply-cancel:hover { background: #e2e8f2; }

/* Sidebar */
.lw-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 70px; }
.lw-side-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.lw-side-card h3 { margin: 0 0 16px; font-size: 17px; color: var(--primary); }
.lw-side-form { background: linear-gradient(160deg, #fff, #f7f9fc); }
.lw-consult-form { display: flex; flex-direction: column; gap: 11px; }
.lw-consult-form input, .lw-consult-form select, .lw-consult-form textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; font-size: 14px; font-family: inherit; width: 100%; background: #fbfcfe;
}
.lw-consult-form input:focus, .lw-consult-form select:focus, .lw-consult-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(15,45,92,.1); }
.lw-consult-form button { background: var(--gold); color: var(--primary-dark); border: none; border-radius: 8px; padding: 13px; font-weight: 800; font-size: 14px; cursor: pointer; text-transform: uppercase; letter-spacing: .2px; line-height: 1.5; }
.lw-consult-form button:hover { background: #d8b35c; }
.lw-consult-form button:disabled { opacity: .6; cursor: not-allowed; }
.lw-form-note { text-align: center; color: var(--muted); font-size: 12px; margin: 2px 0 0; }
.lw-form-ok { text-align: center; padding: 14px 4px; }
.lw-form-ok-ic { width: 52px; height: 52px; border-radius: 50%; background: #ecfdf3; color: #027a48; font-size: 26px; display: grid; place-items: center; margin: 0 auto 12px; }
.lw-form-ok h4 { margin: 0 0 6px; color: var(--primary); }
.lw-form-ok p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.lw-form-ok button { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer; }

.lw-side-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lw-side-contact li { font-size: 14px; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.lw-side-contact li span { color: var(--gold-dark); font-weight: 700; font-size: 13px; }
.lw-side-contact a { color: var(--text); }

.lw-side-cta { background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: #fff; }
.lw-side-cta h3 { color: #fff; }
.lw-side-cta p { color: #cdd8ea; font-size: 14px; margin: 0 0 16px; }

/* FAQ */
.lw-faq { display: flex; flex-direction: column; }
.lw-faq-item { border-bottom: 1px solid var(--border); }
.lw-faq-item:last-child { border-bottom: none; }
.lw-faq-item button { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--text); font-family: inherit; }
.lw-faq-ic { color: var(--gold-dark); font-size: 18px; flex: 0 0 auto; }
.lw-faq-a { padding: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* CTA band */
.lw-cta-band { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); margin-top: 10px; }
.lw-cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.lw-cta-band h3 { color: var(--primary-dark); margin: 0 0 4px; font-size: 22px; }
.lw-cta-band p { color: #4a3a12; margin: 0; font-size: 15px; }
.lw-cta-band .lw-btn.gold { background: var(--primary); color: #fff !important; }
.lw-cta-band .lw-btn.gold:hover { background: var(--primary-dark); }

/* ===== CÔNG TY LUẬT (fm-*) ===== */
.fm-hero-grid { grid-template-columns: 1fr; }
.fm-hero-card { gap: 24px; width: 100%; }
.fm-logo { flex: 0 0 130px; width: 130px; height: 130px; background: #fff; border-radius: 14px; border: 3px solid rgba(200,162,74,.6); display: grid; place-items: center; overflow: hidden; padding: 10px; }
.fm-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fm-logo-fb { width: 100%; height: 100%; background: var(--primary); color: var(--gold); display: grid; place-items: center; font-size: 56px; font-weight: 800; border-radius: 8px; }
.fm-slogan { color: var(--gold); font-weight: 700; letter-spacing: .5px; font-size: 13px; margin: 0 0 12px; }
.fm-stats { display: grid; grid-template-columns: 1fr; }

/* Lĩnh vực hành nghề - thẻ có mô tả */
.fm-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fm-field { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: .15s; }
.fm-field:hover { text-decoration: none; border-color: var(--gold); box-shadow: 0 8px 22px rgba(15,23,42,.08); transform: translateY(-2px); }
.fm-field-ic { font-size: 26px; color: var(--gold-dark); }
.fm-field-name { font-weight: 700; color: var(--primary); font-size: 15px; }
.fm-field-desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* Đội ngũ luật sư */
.fm-team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fm-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.fm-member-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #eef2f7; display: block; }
.fm-member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fm-member:hover .fm-member-photo img { transform: scale(1.05); }
.fm-member-fb { width: 100%; height: 100%; display: grid; place-items: center; background: var(--primary); color: var(--gold); font-size: 40px; font-weight: 800; }
.fm-member-name { font-weight: 700; color: var(--primary); font-size: 14px; margin-top: 8px; }
.fm-member:hover .fm-member-name { color: var(--gold-dark); }
.fm-member-role { color: var(--muted); font-size: 12px; }
.fm-member-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 980px) {
  .lw-hero-grid { grid-template-columns: 1fr; }
  .lw-body { grid-template-columns: 1fr; }
  .lw-side { position: static; }
  .lw-fields { grid-template-columns: repeat(3, 1fr); }
  .lw-exp-grid { grid-template-columns: 1fr; }
  .fm-fields { grid-template-columns: repeat(2, 1fr); }
  .fm-team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .lw-hero-card { flex-direction: column; align-items: center; text-align: center; }
  .lw-photo { flex-basis: 160px; width: 160px; }
  .lw-contact, .lw-actions { align-items: center; justify-content: center; }
  .lw-hide-mobile { display: none !important; }
  .lw-id h1 { justify-content: center; font-size: 25px; }
  .lw-rating { justify-content: center; }
  .lw-fields { grid-template-columns: repeat(2, 1fr); }
  .lw-articles { grid-template-columns: 1fr; }
  .lw-info-grid { grid-template-columns: 1fr; }
  .fm-hero-card { flex-direction: column; align-items: center; text-align: center; }
  .fm-fields { grid-template-columns: 1fr; }
  .fm-team { grid-template-columns: repeat(2, 1fr); }
  .lw-contact { align-items: center; }
}

/* ============================================================
   VĂN BẢN PHÁP LUẬT
   ============================================================ */

/* --- Search bar 4 cột giống công ty luật --- */
.vb-search { max-width: 100%; flex-wrap: wrap; }
.vb-search input { flex: 2 1 240px; }
.vb-search select { flex: 1 1 150px; border: none; border-left: 1px solid var(--border); padding: 0 14px; font-size: 14px; color: var(--text); background: #fff; outline: none; appearance: none; cursor: pointer; }
@media (max-width: 720px) {
  .vb-search input, .vb-search select { flex-basis: 100%; border-left: none; border-bottom: 1px solid var(--border); }
  .vb-search select { padding: 12px 14px; }
}

/* --- Year grid filter --- */
.vb-year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vb-year { text-align: center; padding: 7px 4px !important; font-size: 13px !important; border: 1px solid var(--border); border-radius: 6px; color: #475569 !important; }
.vb-year:hover { border-color: var(--gold); color: var(--gold-dark) !important; }
.vb-year.active { background: var(--primary); border-color: var(--primary); color: #fff !important; font-weight: 700; }

/* --- List rows --- */
.vb-list { display: flex; flex-direction: column; gap: 14px; }
.vb-row { display: grid; grid-template-columns: 120px 1fr 190px; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: box-shadow .15s, transform .15s; }
.vb-row:hover { box-shadow: 0 8px 24px rgba(15,23,42,.09); transform: translateY(-2px); border-color: #d3dbe8; }
.vb-row-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, #f3f6fb, #e9eef7); border-radius: 10px; padding: 14px 8px; text-align: center; }
.vb-row-type-ic { font-size: 30px; }
.vb-row-type-l { font-size: 12px; font-weight: 700; color: var(--primary); line-height: 1.25; }
.vb-row-body { min-width: 0; }
.vb-row-body h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.vb-row-body h3 a { color: var(--primary); }
.vb-row-body h3 a:hover { color: var(--gold-dark); }
.vb-row-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.vb-row-meta strong { color: var(--text); }
.vb-tag.num { background: #eef2f9; color: var(--primary); font-weight: 700; padding: 2px 9px; border-radius: 6px; }
.vb-row-desc { margin: 10px 0 0; font-size: 13.5px; color: #475569; line-height: 1.6; }
.vb-row-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-content: flex-start; border-left: 1px solid var(--border); padding-left: 16px; }
.vb-row-side .badge { text-align: center; }
.vb-row-btn { text-align: center; background: var(--primary); color: #fff !important; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.vb-row-btn:hover { background: var(--primary-dark); text-decoration: none; }
.vb-row-dl { text-align: center; font-size: 12.5px; color: var(--gold-dark) !important; font-weight: 600; }
.vb-row-dl:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .vb-row { grid-template-columns: 1fr; gap: 12px; }
  .vb-row-type { flex-direction: row; justify-content: flex-start; padding: 8px 12px; }
  .vb-row-type-ic { font-size: 20px; }
  .vb-row-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 12px; }
}

/* --- Detail hero --- */
.vb-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)); color: #fff; padding: 22px 0 30px; }
.vb-hero-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.vb-hero-type { background: var(--gold); color: var(--primary-dark); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 4px 12px; border-radius: 6px; }
.vb-hero h1 { font-size: 26px; line-height: 1.4; margin: 0 0 16px; font-weight: 800; max-width: 980px; }
.vb-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #cdd8ea; margin-bottom: 20px; }
.vb-hero-meta strong { color: var(--gold); }
.vb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .vb-hero h1 { font-size: 21px; } }

/* --- Props table --- */
.vb-props { width: 100%; border-collapse: collapse; }
.vb-props th, .vb-props td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.vb-props tr:last-child th, .vb-props tr:last-child td { border-bottom: none; }
.vb-props th { width: 190px; color: var(--muted); font-weight: 600; background: #fafbfd; }
.vb-props td a { color: var(--primary); font-weight: 600; }
.vb-props td a:hover { color: var(--gold-dark); }
.vb-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vb-cat-tag { background: #eef2f9; color: var(--primary) !important; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.vb-cat-tag:hover { background: var(--gold); color: var(--primary-dark) !important; text-decoration: none; }
.vb-muted { color: var(--muted); font-style: italic; }

/* --- Summary & content --- */
.vb-summary { background: #f1f5f9; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.7; color: #334155; margin: 0; }
.vb-content {
  font-size: 15px;
  line-height: 1.85;
  color: #1f2937;
  max-width: 624px;
  margin: 0 auto;
}
.vb-content p { margin: 0 0 14px; }
.vb-content h2, .vb-content h3 { color: var(--primary); }
.vb-content-empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.vb-content-empty-ic { font-size: 42px; display: block; margin-bottom: 12px; opacity: .6; }
.vb-content-empty p { margin: 0 0 16px; }
.vb-recipients { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* --- Tải về grid --- */
.vb-dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vb-dl-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.vb-dl-item:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(15,23,42,.07); text-decoration: none; }
.vb-dl-item.primary { background: linear-gradient(160deg, #fbf6ea, #fff); border-color: var(--gold); }
.vb-dl-ic { font-size: 22px; flex: 0 0 auto; }
.vb-dl-item strong { display: block; color: var(--primary); font-size: 14px; }
.vb-dl-item em { display: block; color: var(--muted); font-size: 12px; font-style: normal; }
@media (max-width: 560px) { .vb-dl-grid { grid-template-columns: 1fr; } }

/* Chia sẻ mạng xã hội */
.vb-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.vb-share-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.vb-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vb-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; border: none; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s; text-decoration: none; }
.vb-share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.18); text-decoration: none; opacity: .95; }
.vb-share-btn svg { display: block; }
.vb-share-btn.sh-fb { background: #1877f2; }
.vb-share-btn.sh-x { background: #0f1419; }
.vb-share-btn.sh-in { background: #0a66c2; }
.vb-share-btn.sh-tg { background: #229ed9; }
.vb-share-btn.sh-zl { background: #0068ff; }
.vb-share-btn.sh-copy { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.vb-share-btn.sh-copy:hover { border-color: var(--gold); color: var(--gold); }
.vb-share-btn.sh-copy.is-copied { background: #16a34a; color: #fff; border-color: #16a34a; }

/* --- Related --- */
.vb-related { display: flex; flex-direction: column; gap: 10px; }
.vb-related-item { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; align-items: flex-start; }
.vb-related-item:hover { border-color: var(--gold); background: #fafbfd; text-decoration: none; }
.vb-related-ic { font-size: 20px; flex: 0 0 auto; }
.vb-related-body strong { display: block; color: var(--primary); font-size: 14px; line-height: 1.45; margin-bottom: 5px; }
.vb-related-item:hover .vb-related-body strong { color: var(--gold-dark); }
.vb-related-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.vb-related-meta em { font-style: normal; }

/* --- Sidebar tình trạng --- */
.vb-status-box { border: 2px solid; border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 15px; text-align: center; background: #fff; }
.vb-status-reason { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.vb-timeline { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vb-timeline li { display: flex; gap: 12px; align-items: flex-start; }
.vb-tl-ic { width: 34px; height: 34px; border-radius: 9px; background: #f3f6fb; display: grid; place-items: center; font-size: 16px; flex: 0 0 34px; }
.vb-timeline em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; }
.vb-timeline strong { display: block; color: var(--text); font-size: 14px; }

/* Print: chỉ giữ nội dung */
@media print {
  .lw-tabs, .lw-side, .vb-hero-actions, .lw-cta-band, .site-footer, .vb-dl-grid, .vb-share, #lien-quan { display: none !important; }
  .lw-body { grid-template-columns: 1fr !important; }
}

/* Nút viền navy dùng trên nền sáng (sidebar trắng) */
.lw-btn.outline { background: #fff; color: var(--primary) !important; border: 1.5px solid var(--primary); }
.lw-btn.outline:hover { background: var(--primary); color: #fff !important; text-decoration: none; }

/* --- Lược đồ quan hệ văn bản (3 cột accordion) --- */
.vb-diag-note { background: #fff7e6; border: 1px solid #f3dfa6; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #8a6d1f; line-height: 1.6; margin-bottom: 16px; }
.vb-diagram { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 12px; align-items: start; }
.vb-diag-col { display: flex; flex-direction: column; gap: 10px; }

.vb-rel-grp { border: 1px solid var(--border); border-radius: 8px; background: #fafbfd; overflow: hidden; }
.vb-rel-grp > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: #64748b; text-align: left; cursor: default; line-height: 1.4; }
.vb-rel-grp.has > button { cursor: pointer; color: var(--primary); }
.vb-rel-grp.has { background: #fff; }
.vb-rel-grp em { font-style: normal; color: #dc2626; font-weight: 700; }
.vb-rel-grp.accent em { color: #dc2626; }
.vb-rel-grp.accent > button { color: #b91c1c; }
.vb-rel-caret { color: var(--gold-dark); font-size: 12px; flex: 0 0 auto; }
.vb-rel-grp ul { list-style: none; margin: 0; padding: 0 13px 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.vb-rel-grp ul li { font-size: 13px; line-height: 1.5; }
.vb-rel-grp ul a { color: var(--primary); }
.vb-rel-grp ul a:hover { color: var(--gold-dark); }
.vb-rel-grp ul strong { color: var(--primary-mid); }
.vb-rel-grp ul span { color: #475569; }

/* Cột giữa - văn bản đang xem */
.vb-diag-current { border: 1px solid var(--gold); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.vb-diag-current-head { background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; font-weight: 800; font-size: 14px; padding: 11px 14px; text-align: center; }
.vb-diag-current-body { padding: 14px; }
.vb-diag-current-title { font-weight: 700; color: var(--primary); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.vb-diag-current dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; font-size: 13px; }
.vb-diag-current dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
.vb-diag-current dd { margin: 0; color: var(--text); }

@media (max-width: 900px) {
  .vb-diagram { grid-template-columns: 1fr; }
  .vb-diag-current { order: -1; }
}

/* ============ TIN TỨC (/tin-tuc) – bố cục báo tin tức ============ */
/* Search + chips trong hero */
.tn-search { max-width: 560px; }
.tn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tn-chip {
  display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: #dbe4f3 !important; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.tn-chip:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.tn-chip.active { background: var(--gold); color: var(--primary-dark) !important; border-color: var(--gold); }

/* Khối nổi bật */
.tn-featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin: 26px auto; align-items: stretch; }
.tn-lead {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; color: var(--text) !important;
}
.tn-lead:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(15,45,92,.12); }
.tn-lead-img { position: relative; aspect-ratio: 16/9; background: #e8edf6; }
.tn-lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-lead-badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--primary-dark);
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 6px;
}
.tn-lead-body { padding: 16px 18px 18px; }
.tn-lead-body h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.35; font-weight: 800; color: var(--primary); }
.tn-lead-sum { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.tn-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 40px; background: #e8edf6; }
.tn-noimg.sm { font-size: 24px; }

.tn-sub { display: flex; flex-direction: column; gap: 14px; }
.tn-sub-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: var(--text) !important; }
.tn-sub-item:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(15,45,92,.1); }
.tn-sub-img { aspect-ratio: 1/1; background: #e8edf6; }
.tn-sub-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-sub-body { padding: 10px 12px 10px 0; align-self: center; }
.tn-sub-body h3 { margin: 0 0 6px; font-size: 14.5px; line-height: 1.4; font-weight: 700; color: var(--primary); }

/* Meta dùng chung */
.tn-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.tn-meta.sm { font-size: 12.5px; gap: 8px; }
.tn-cat { background: rgba(15,45,92,.08); color: var(--primary) !important; font-weight: 700; padding: 2px 9px; border-radius: 5px; font-size: 12px; }
a.tn-cat:hover { background: var(--primary); color: #fff !important; text-decoration: none; }

/* Layout chính */
.tn-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin: 8px auto 40px; align-items: start; }
.tn-sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 18px; }
.tn-sec-head h2 { margin: 0; font-size: 20px; color: var(--primary); font-weight: 800; }
.tn-count { font-size: 13px; color: var(--muted); }

.tn-list { display: flex; flex-direction: column; gap: 18px; }
.tn-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.tn-row:last-child { border-bottom: none; }
.tn-row-img { display: block; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #e8edf6; }
.tn-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tn-row-img:hover img { transform: scale(1.04); }
.tn-row-body h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; font-weight: 700; }
.tn-row-body h3 a { color: var(--primary); }
.tn-row-body h3 a:hover { color: var(--gold-dark); text-decoration: none; }
.tn-row-sum { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* Sidebar */
.tn-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.tn-widget { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.tn-widget-h { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--primary); padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tn-pop { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.tn-pop li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.tn-pop li:last-child { border-bottom: none; }
.tn-pop-num { flex: 0 0 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--primary-dark); font-weight: 800; border-radius: 6px; font-size: 13px; }
.tn-pop a { font-size: 13.5px; line-height: 1.4; color: var(--text); font-weight: 600; }
.tn-pop a:hover { color: var(--gold-dark); text-decoration: none; }
.tn-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-cats a { font-size: 13px; padding: 5px 12px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); color: #334155; }
.tn-cats a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.tn-cats a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tn-cta { background: var(--primary); color: #fff; text-align: center; }
.tn-cta h4 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.tn-cta p { margin: 0 0 14px; font-size: 13.5px; color: #cdd8ea; }

/* ===== Landing dạng tạp chí theo chuyên mục ===== */
.tn-sections { display: flex; flex-direction: column; gap: 34px; }
.tn-catsec { }
.tn-cathead { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 18px; }
.tn-cathead h2 { margin: 0; font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.tn-cathead h2 a { color: var(--primary); }
.tn-cathead h2 a:hover { color: var(--gold-dark); text-decoration: none; }
.tn-catbar { display: inline-block; width: 5px; height: 20px; background: var(--gold); border-radius: 3px; }
.tn-more { font-size: 13px; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.tn-more:hover { text-decoration: none; color: var(--primary); }

.tn-catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tn-catbig { display: block; color: var(--text) !important; }
.tn-catbig:hover { text-decoration: none; }
.tn-catbig-img { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #e8edf6; margin-bottom: 12px; }
.tn-catbig-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.tn-catbig:hover .tn-catbig-img img { transform: scale(1.04); }
.tn-catbig h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--primary); }
.tn-catbig:hover h3 { color: var(--gold-dark); }
.tn-catbig p { margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }

.tn-catlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tn-catlist li { border-bottom: 1px dashed var(--border); }
.tn-catlist li:last-child { border-bottom: none; }
.tn-catitem { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; color: var(--text) !important; align-items: center; }
.tn-catitem:hover { text-decoration: none; }
.tn-catitem-img { aspect-ratio: 16/11; border-radius: 8px; overflow: hidden; background: #e8edf6; }
.tn-catitem-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tn-catitem-body h4 { margin: 0 0 5px; font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--primary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tn-catitem:hover .tn-catitem-body h4 { color: var(--gold-dark); }
.tn-catitem-date { font-size: 12px; color: var(--muted); }

.tn-allcta { text-align: center; margin-top: 8px; }

@media (max-width: 980px) {
  .tn-featured { grid-template-columns: 1fr; }
  .tn-layout { grid-template-columns: 1fr; }
  .tn-side { position: static; }
  .tn-catgrid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .tn-row { grid-template-columns: 130px 1fr; gap: 12px; }
  .tn-row-body h3 { font-size: 15px; }
  .tn-lead-body h2 { font-size: 18px; }
  .tn-catitem { grid-template-columns: 84px 1fr; }
}

/* ============================================================
   TRANG CHI TIẾT BÀI VIẾT (kiểu VnExpress) — .art-*
   ============================================================ */
.art { background: var(--card); }
.art .container { max-width: 1140px; }

.art-crumb-band { border-bottom: 1px solid var(--border); background: #fff; }
.art-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 12px 16px; }
.art-crumb a { color: var(--muted); }
.art-crumb a:hover { color: var(--primary); }
.art-crumb span { color: #c2cad8; }

.art-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 26px 16px 48px; align-items: start; }
.art-main { min-width: 0; }

.art-cat { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--gold-dark); margin-bottom: 12px; }
.art-cat:hover { color: var(--primary); text-decoration: none; }

.art-title { font-size: 30px; line-height: 1.35; font-weight: 800; color: var(--text); margin: 0 0 16px; }
.art-lead { font-size: 18px; line-height: 1.6; font-weight: 700; color: #1f2937; margin: 0 0 18px; }

.art-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.art-byline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.art-date { color: var(--muted); }
.art-author { font-weight: 700; color: var(--primary); }

.art-share { display: flex; align-items: center; gap: 8px; }
.art-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 14px; font-weight: 800; cursor: pointer; color: var(--primary); line-height: 1; }
.art-share-btn:hover { background: var(--bg); text-decoration: none; }
.art-share-btn.fb { color: #1877f2; }
.art-share-btn.tw { color: #0f172a; }
.art-fontsize { display: inline-flex; gap: 4px; margin-left: 4px; }
.art-fontsize button { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--primary); }
.art-fontsize button:disabled { opacity: .4; cursor: default; }
.art-fontsize button:not(:disabled):hover { background: var(--bg); }

.art-figure { margin: 0 0 22px; }
.art-figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.art-figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; font-style: italic; }

.art-body-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; }
.sample-actions-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -2px 0 16px; padding: 10px 12px; background: #fffaf0; border: 1px solid #f1d18a; border-radius: 10px; }
.art-body-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--primary); font-size: 14px; font-weight: 700; padding: 9px 13px; cursor: pointer; }
.sample-actions-inline .art-body-action { padding: 8px 12px; font-size: 13px; }
.art-body-action:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.art-body-action.download { color: var(--gold-dark); }
.art-body-action.download:hover { color: #fff; background: var(--gold-dark); border-color: var(--gold-dark); }
.art-body { font-size: 16px; line-height: 1.85; color: #222; text-align: justify; text-justify: inter-word; }
.art-body .rich-text { margin-top: 0; font-size: inherit; }
.art-body p { margin: 0 0 18px; }
.art-body h2 { font-size: 22px; color: var(--primary); margin: 28px 0 12px; font-weight: 800; text-align: left; }
.art-body h3 { font-size: 19px; color: var(--primary); margin: 24px 0 10px; font-weight: 700; text-align: left; }
.art-body ul, .art-body ol { margin: 0 0 18px; padding-left: 24px; }
.art-body li { margin-bottom: 8px; }
.art-body a { color: var(--primary-mid); text-decoration: underline; }
.art-body blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--bg); color: #334155; font-style: italic; border-radius: 0 8px 8px 0; }
.art-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }

.art-signoff { text-align: right; font-weight: 700; color: var(--primary); font-style: italic; margin: 6px 0 24px; }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--border); }
.art-tag { display: inline-block; font-size: 13px; padding: 6px 13px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); color: #334155; }
.art-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

.art-docs { margin: 22px 0; padding: 18px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.art-docs h3 { font-size: 16px; color: var(--primary); margin: 0 0 12px; }
.art-docs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.art-docs a { font-size: 14px; color: var(--primary-mid); }

.art-sec-title { font-size: 18px; font-weight: 800; color: var(--primary); margin: 30px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.art-related { margin-top: 14px; }
.art-related-list { display: flex; flex-direction: column; gap: 16px; }
.art-related-item { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.art-related-item.no-thumb { grid-template-columns: 1fr; }
.art-related-thumb img { width: 100%; height: 94px; object-fit: cover; border-radius: 8px; }
.art-related-body { display: flex; flex-direction: column; gap: 5px; }
.art-related-body strong { font-size: 16px; line-height: 1.4; color: var(--text); font-weight: 700; }
.art-related-item:hover strong { color: var(--primary-mid); }
.art-related-body em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.5; }
.art-related-date { font-size: 12px; color: #94a3b8; }

/* Sidebar */
.art-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 70px; }
.art-side-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.art-side-title { font-size: 16px; font-weight: 800; color: var(--primary); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.art-mostread { list-style: none; margin: 0; padding: 0; counter-reset: mr; display: flex; flex-direction: column; }
.art-mostread li { border-bottom: 1px dashed var(--border); }
.art-mostread li:last-child { border-bottom: none; }
.art-mostread a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.art-mostread a:hover { text-decoration: none; }
.art-mr-num { flex: 0 0 auto; font-size: 22px; font-weight: 800; color: var(--gold); line-height: 1; width: 24px; }
.art-mr-text { font-size: 14px; line-height: 1.5; color: #334155; font-weight: 600; }
.art-mostread a:hover .art-mr-text { color: var(--primary-mid); }

.art-side-cta { background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: #fff; }
.art-side-cta h3 { color: #fff; margin: 0 0 8px; font-size: 17px; }
.art-side-cta p { color: #cdd8ea; font-size: 14px; margin: 0 0 16px; }

@media (max-width: 900px) {
  .art-grid { grid-template-columns: 1fr; gap: 28px; }
  .art-side { position: static; }
  .art-title { font-size: 24px; }
  .art-lead { font-size: 16px; }
  .art-related-item { grid-template-columns: 120px 1fr; }
  .art-related-item.no-thumb { grid-template-columns: 1fr; }
  .art-related-thumb img { height: 76px; }
}

/* ============================================================
   BÌNH LUẬN BÀI VIẾT — .cmt-*
   ============================================================ */
.art-cmt-count { display: inline-block; margin: -8px 0 18px; font-size: 13px; color: var(--primary-mid); font-weight: 600; }
.art-cmt-count:hover { text-decoration: underline; }

.cmt { margin-top: 30px; }
.cmt-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.cmt-login p { margin: 0; font-size: 14px; color: #334155; }
.cmt-login button { background: var(--gold); color: var(--primary-dark); font-weight: 700; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.cmt-login button:hover { background: #d8b35c; }
.cmt-empty { color: var(--muted); font-size: 14px; padding: 14px 0; }

.cmt-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cmt-av-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 16px; }

.cmt-form { display: flex; gap: 12px; margin-bottom: 24px; }
.cmt-form-body { flex: 1; min-width: 0; }
.cmt-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; resize: vertical; line-height: 1.6; color: var(--text); }
.cmt-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,.15); }
.cmt-form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.cmt-form-actions .lw-btn { padding: 9px 18px; font-size: 13px; }
.cmt-form-reply { margin: 12px 0 6px; }
.cmt-err { color: #dc2626; font-size: 13px; margin: 8px 0 0; }

.cmt-list { display: flex; flex-direction: column; gap: 20px; }
.cmt-item { display: flex; gap: 12px; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.cmt-author { font-size: 14px; color: var(--text); font-weight: 700; }
.cmt-badge { font-size: 11px; font-weight: 700; background: var(--gold); color: var(--primary-dark); padding: 2px 8px; border-radius: 20px; }
.cmt-time { font-size: 12px; color: #94a3b8; }
.cmt-text { font-size: 14px; line-height: 1.65; color: #1f2937; margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }
.cmt-meta { display: flex; gap: 16px; }
.cmt-link { background: none; border: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cmt-link:hover { color: var(--primary-mid); }
.cmt-del:hover { color: #dc2626; }

.cmt-replies { margin-top: 16px; padding-left: 20px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 560px) {
  .cmt-av { width: 34px; height: 34px; }
  .cmt-replies { padding-left: 12px; }
}

/* ============================================================
   FORM LIÊN HỆ — .ct-*
   ============================================================ */
.ct-form { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-form label { display: flex; flex-direction: column; gap: 6px; }
.ct-form label span { font-size: 13px; font-weight: 600; color: var(--text); }
.ct-form input, .ct-form textarea { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit; color: var(--text); width: 100%; }
.ct-form textarea { resize: vertical; line-height: 1.6; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,.15); }
.ct-form .lw-btn { align-self: flex-start; }
.ct-err { color: #dc2626; font-size: 13px; margin: 0; }
.ct-ok { margin-top: 18px; display: flex; align-items: center; gap: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 18px 22px; max-width: 720px; }
.ct-ok-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: #16a34a; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.ct-ok p { margin: 0; color: #166534; font-weight: 600; }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; } }

.lw-form-err { color: #dc2626; font-size: 13px; margin: 0 0 4px; }

/* ===== Trang tiến độ số hóa văn bản (van-ban/tien-do) ===== */
.td-progress { margin: 18px 0 6px; max-width: 760px; }
.td-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.td-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 999px; transition: width .4s; }
.td-pct { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gold); }
.td-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.td-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 12px 18px; min-width: 130px; }
.td-stat strong { display: block; font-size: 24px; line-height: 1.1; }
.td-stat em { font-style: normal; font-size: 13px; color: var(--muted); }
.td-stat.ok strong { color: #16a34a; }
.td-stat.warn strong { color: var(--gold); }
.td-tabs { display: flex; gap: 10px; margin: 22px 0 16px; flex-wrap: wrap; }
.td-tabs a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; font-size: 14px; }
.td-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.td-search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.td-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.td-count { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.td-list { display: flex; flex-direction: column; gap: 10px; }
.td-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.td-item:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.td-item-ic { font-size: 20px; line-height: 1.4; }
.td-item-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.td-item-body strong { font-weight: 600; color: var(--text); line-height: 1.4; }
.td-item-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.td-item-meta em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.td-tag { padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 12px !important; }
.td-tag.ok { background: rgba(22,163,74,.12); color: #16a34a !important; }
.td-tag.warn { background: rgba(217,119,6,.14); color: #b45309 !important; }
.td-empty { padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 560px) { .td-stat { min-width: 110px; flex: 1; } }

/* ===== Sắp có / sắp hết hiệu lực trong 30 ngày (UpcomingEffect) ===== */
/* ===== Khối nổi bật /van-ban: 2/3 nội dung + 1/3 banner ===== */
.vb-feat-band { background: var(--bg); padding: 28px 0; border-bottom: 1px solid var(--border); }
.vb-feat-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.vb-feat-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 980px) { .vb-feat-layout { grid-template-columns: 1fr; } }

/* Cột phải: banner + CTA + liên kết */
.vb-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.vb-side-banners { display: flex; flex-direction: column; gap: 12px; }
.vb-banner {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-radius: 12px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.vb-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,45,92,.14); text-decoration: none; }
.vb-banner-ic { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.vb-banner-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vb-banner-tx strong { font-size: 15px; font-weight: 800; line-height: 1.3; }
.vb-banner-tx em { font-style: normal; font-size: 12.5px; opacity: .85; line-height: 1.35; }
.vb-banner.navy { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; }
.vb-banner.navy em { color: #d7e2f4; }
.vb-banner.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.vb-banner.gold em { color: #fff7e6; }
.vb-banner.light { background: #fff; border-color: var(--border); color: var(--primary); }
.vb-banner.light em { color: var(--muted); }
.vb-side-cta { background: var(--primary-dark); color: #fff; border-radius: 12px; padding: 18px 16px; }
.vb-side-cta h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.vb-side-cta p { margin: 0 0 12px; font-size: 13px; color: #cdd8ea; line-height: 1.5; }
.vb-side-cta-btn {
  display: inline-block; background: var(--gold); color: #fff; font-weight: 800; font-size: 14px;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.vb-side-cta-btn:hover { background: var(--gold-dark); text-decoration: none; }
.vb-side-links { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.vb-side-links h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--primary); }
.vb-side-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vb-side-links a { font-size: 13.5px; color: var(--text); display: flex; gap: 6px; align-items: center; }
.vb-side-links a::before { content: '🔗'; font-size: 12px; }
.vb-side-links a:hover { color: var(--primary); }
@media (max-width: 980px) { .vb-side { position: static; } }

.ue-section { background: transparent; padding: 0; }
.ue-inner, .mv-inner { width: 100%; }
.ue-tabs-wrap { position: relative; }
.ue-radio { position: absolute; opacity: 0; pointer-events: none; }
.ue-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ue-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: #fff; color: var(--primary); border: 1px solid var(--border);
  transition: all .15s; user-select: none;
}
.ue-tab em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(15,45,92,.08); color: var(--primary); }
.ue-tab:hover { border-color: var(--primary-mid); }
/* tab active theo radio :checked */
#ue-tab-coming:checked ~ .ue-tabs .ue-tab-coming,
#ue-tab-ending:checked ~ .ue-tabs .ue-tab-ending {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
#ue-tab-coming:checked ~ .ue-tabs .ue-tab-coming em,
#ue-tab-ending:checked ~ .ue-tabs .ue-tab-ending em { background: rgba(255,255,255,.22); color: #fff; }
/* panel hiển thị theo radio */
.ue-panel { display: none; }
#ue-tab-coming:checked ~ .ue-panel-coming { display: block; }
#ue-tab-ending:checked ~ .ue-panel-ending { display: block; }
.ue-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ue-card {
  display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.ue-card:hover { box-shadow: 0 6px 22px rgba(15,45,92,.10); border-color: var(--primary-mid); }
.ue-card-main { min-width: 0; }
.ue-card-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ue-new { background: #e23a45; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: 7px; white-space: nowrap; }
.ue-type { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ue-title { font-size: 18px; line-height: 1.5; margin: 0 0 14px; font-weight: 700; }
.ue-title a { color: var(--primary); }
.ue-title a:hover { color: var(--gold-dark); text-decoration: underline; }
.ue-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ue-act {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 14px; text-decoration: none; transition: all .15s;
}
.ue-act:hover { border-color: var(--primary-mid); color: var(--primary); background: #f7f9fc; text-decoration: none; }
.ue-card-side { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; border-left: 1px solid var(--border); }
.ue-side-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ue-side-l { color: var(--muted); white-space: nowrap; }
.ue-side-v { font-weight: 700; color: var(--text); text-align: right; }
.ue-side-v.in { color: #047857; }
.ue-side-v.out { color: #b45309; }
.ue-date.in { color: #047857; }
.ue-date.out { color: #b45309; }
.ue-more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--primary); text-decoration: none; }
.ue-more:hover { text-decoration: underline; }
.ue-empty { padding: 32px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 760px) {
  .ue-card { grid-template-columns: 1fr; gap: 16px; }
  .ue-card-side { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 14px; }
}
@media (max-width: 560px) { .ue-tab { flex: 1; justify-content: center; font-size: 14px; padding: 11px 12px; } .ue-title { font-size: 16px; } }

/* ===== Văn bản xem nhiều trong 30 ngày (MostViewedDocs) ===== */
.mv-section { background: transparent; padding: 0; border-top: none; }
.mv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mv-head h2 { font-size: 20px; font-weight: 800; color: var(--primary); margin: 0; }
.mv-all { font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.mv-all:hover { text-decoration: underline; }
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mv-card {
  display: flex; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.mv-card:hover { box-shadow: 0 6px 22px rgba(15,45,92,.10); transform: translateY(-2px); border-color: var(--primary-mid); }
.mv-rank {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; background: rgba(15,45,92,.08); color: var(--primary);
}
.mv-rank.top { background: var(--gold); color: #fff; }
.mv-body { min-width: 0; flex: 1; }
.mv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mv-type { font-size: 12px; color: var(--muted); font-weight: 600; }
.mv-badge { color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mv-title {
  font-size: 14px; line-height: 1.45; margin: 0 0 8px; font-weight: 700; color: var(--primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mv-card:hover .mv-title { text-decoration: underline; }
.mv-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.mv-num { font-weight: 600; color: var(--text); }
.mv-views { font-weight: 700; color: var(--gold-dark); }
@media (max-width: 560px) { .mv-grid { grid-template-columns: 1fr; } .mv-head h2 { font-size: 17px; } }

/* ===== Bảng điều khiển SEO (/seo) ===== */
.seo-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 64px; }
.seo-wrap h1 { font-size: 26px; margin: 0 0 4px; }
.seo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.seo-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.seo-user { font-size: 13px; color: var(--muted); }
.seo-role { display: inline-block; background: var(--gold, #d4af37); color: #1a1a2e; font-weight: 700; border-radius: 6px; padding: 1px 8px; text-transform: uppercase; font-size: 11px; }
.seo-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #e6e6ef; margin-bottom: 20px; }
.seo-tab { background: none; border: none; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.seo-tab:hover { color: var(--text); }
.seo-tab.active { color: var(--navy, #1a2b5e); border-bottom-color: var(--gold, #d4af37); }
.seo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.seo-card { background: #fff; border: 1px solid #e6e6ef; border-radius: 12px; padding: 16px; text-align: center; }
.seo-card.good { border-color: #2e7d32; background: #f3fbf4; }
.seo-card.warn { border-color: #d98a00; background: #fff8ec; }
.seo-card-v { font-size: 26px; font-weight: 800; color: var(--navy, #1a2b5e); }
.seo-card-l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.seo-note { font-size: 13px; color: var(--muted); background: #f7f7fb; border-left: 3px solid var(--gold, #d4af37); padding: 10px 12px; border-radius: 6px; }
.seo-ok { color: #2e7d32; font-weight: 600; }
.seo-msg { background: #fff8ec; border: 1px solid #f0d9a8; color: #8a5a00; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; }
.seo-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 13.5px; }
.seo-table th, .seo-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.seo-table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.seo-table tr.is-owner { background: #fffdf3; }
.seo-table a { color: var(--navy, #1a2b5e); text-decoration: none; }
.seo-table a:hover { text-decoration: underline; }
.seo-group { border: 1px solid #e6e6ef; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.seo-group-h { font-size: 15px; margin-bottom: 4px; }
.seo-badge { background: #ffe9a8; color: #8a5a00; border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.seo-btn { display: inline-block; background: var(--navy, #1a2b5e); color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.seo-btn:hover { opacity: .92; }
.seo-btn.sm { padding: 4px 10px; font-size: 12.5px; }
.seo-search, .seo-claim { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.seo-search input, .seo-claim input { flex: 1; min-width: 160px; padding: 9px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; }
.seo-tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; margin-right: 4px; }
.seo-tag.warn { background: #ffe1e1; color: #b22; }
.seo-tools section { margin-bottom: 26px; }
.seo-tools h3 { font-size: 16px; margin: 0 0 8px; }
.seo-sugg ul { list-style: none; padding: 0; margin: 6px 0 0; }
.seo-sugg li { padding: 3px 0; font-size: 13.5px; }
.seo-dim { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .seo-table th:nth-child(3), .seo-table td:nth-child(3) { display: none; } }

/* ===== Mega menu chuyên mục lớn (Header) ===== */
.nav-mega { position: relative; display: inline-flex; }
.nav-mega > a { cursor: pointer; }
.nav-mega-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60;
  width: min(620px, calc(100vw - 32px)); max-height: min(72vh, 620px); overflow-y: auto;
  background: #fff; border: 1px solid #e6eaf2; border-radius: 16px;
  box-shadow: 0 22px 55px rgba(10,31,66,.18); padding: 14px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .16s ease;
  scrollbar-width: thin;
}
.nav-mega-menu::before { content:''; position:absolute; left:0; right:0; top:-12px; height:12px; }
.nav-mega-menu::after { content:''; position:absolute; left:50%; top:-7px; width:14px; height:14px; background:#fff; border-left:1px solid #e6eaf2; border-top:1px solid #e6eaf2; transform:translateX(-50%) rotate(45deg); }
.nav-mega:hover .nav-mega-menu, .nav-mega:focus-within .nav-mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-mega-head { padding: 4px 8px 12px; border-bottom: 1px solid #edf1f7; margin-bottom: 10px; }
.nav-mega-head strong { display:block; color: var(--primary); font-size: 15px; font-weight: 900; }
.nav-mega-head span { display:block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
/* Menu tỉnh khá rộng: căn theo tâm màn hình desktop thay vì tâm mục “Luật sư”,
   tránh bị dồn lệch về bên trái khi rê chuột vào menu. */
.nav-province { position: static; }
.nav-province-menu { width: min(760px, calc(100vw - 32px)); }
.nav-province-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav .nav-mega-menu a {
  padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--text, #1a1a2e);
  white-space: normal; text-transform: none; letter-spacing: 0; line-height: 1.35;
}
.nav .nav-mega-menu a:hover { background: #f8f4e8; color: var(--primary); box-shadow: none; }
.mm-mega-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; border:0; background:transparent; padding:12px 10px; color:var(--primary); font:inherit; font-weight:800; border-radius:10px; cursor:pointer; }
.mm-mega-toggle:hover, .mm-mega-toggle.open { background:var(--bg); }
.mm-caret { transition: transform .15s ease; }
.mm-mega-toggle.open .mm-caret { transform: rotate(180deg); }
.mm-subcats { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 4px 0 8px; }
.mobile-menu-panel .mm-subcats a { font-size: 13px; color: var(--primary); padding: 9px 10px; background:#f8fafc; border:1px solid #edf1f7; border-radius:10px; font-weight:700; white-space: normal; line-height: 1.3; }
@media (max-width: 960px) { .nav-mega-menu { display: none; } }
@media (max-width: 420px) { .mm-contact { grid-template-columns: 1fr; } }

/* ===== Bảng trong nội dung Lexical (văn bản pháp luật) ===== */
.rt-table-wrap { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
.rich-text .rt-table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.6; }
.rich-text .rt-table th, .rich-text .rt-table td {
  border: 1px solid #d6d6e0; padding: 8px 12px; vertical-align: top; text-align: left;
  /* Cho phép ngắt chuỗi dài (vd dấu '---------------' của Word) để bảng co vừa màn hình */
  overflow-wrap: anywhere; word-break: break-word;
}
.rich-text .rt-table th { background: #f5f3ea; font-weight: 700; }
.rich-text .rt-table p { margin: 0 0 6px; }
.rich-text .rt-table p:last-child { margin-bottom: 0; }
/* Khối tiêu đề văn bản (bảng 2 cột: cơ quan ban hành | quốc hiệu) trông cân đối */
.rich-text .rt-table tr:first-child td { text-align: center; }
/* Mobile: thu nhỏ chữ + padding để bảng tiêu đề 2 cột vừa khung, không bị cắt ngang */
@media (max-width: 560px) {
  .rich-text .rt-table { font-size: 13px; }
  .rich-text .rt-table th, .rich-text .rt-table td { padding: 6px 8px; }
}

/* Thông báo nhẹ khi tải file gặp giới hạn / lỗi (không lộ con số giới hạn) */
.vb-dl-msg { display:block; margin-top:8px; font-size:13px; color:#b45309; }
.vb-dl-grid a[aria-busy="true"], .lw-btn[aria-busy="true"] { opacity:.6; pointer-events:none; }

/* ===== Bảng điều khiển luật sư (/luat-su-bang-dieu-khien) ===== */
.ldash-wrap { max-width: 1080px; margin: 0 auto; padding: 8px 0 48px; }
.admin-featured-modes {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.admin-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.admin-featured-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
@media (max-width: 768px) {
  .admin-featured-modes {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .admin-featured-modes button {
    width: 100%;
    text-align: left;
  }
  .admin-featured-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-featured-card {
    padding: 16px !important;
  }
  .udash-tabs {
    flex-direction: column;
    gap: 6px;
    border-bottom: none;
  }
  .udash-tabs .ldash-tab {
    display: block;
    width: 100%;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 0;
  }
  .udash-tabs .ldash-tab.active {
    background: #0f172a;
    color: #d8b35c;
    border-color: #0f172a;
  }
}
.ldash-title { font-size: 26px; margin: 6px 0 16px; color: #1f2a44; }
.ldash-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid #e2e8f0; margin-bottom: 24px; }
.ldash-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; font-size: 15px; font-weight: 600; color: #475569; cursor: pointer; margin-bottom: -2px; transition: color .15s ease, border-color .15s ease; }
.ldash-tab:hover { color: #0f172a; }
.ldash-tab.active { color: #0f172a; border-bottom-color: #d8b35c; font-weight: 700; }
.ldash-section { animation: ldfade .2s ease; }
@keyframes ldfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.ldash-statusbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ldash-name { font-size: 18px; font-weight: 700; color: #0f172a; margin-right: 10px; }
.ldash-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-right: 6px; }
.ldash-badge.ok { background: #dcfce7; color: #16a34a; }
.ldash-badge.warn { background: #fef3c7; color: #b45309; }
.ldash-badge.vip { background: #d8b35c; color: #0f172a; }
.ldash-badge.mute { background: #e2e8f0; color: #334155; }
.ldash-link { color: #0f172a; font-weight: 600; font-size: 14.5px; }
.ldash-alert { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

.ldash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ldash-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 12px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
.ldash-card .lc-num { font-size: 26px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.ldash-card .lc-lbl { font-size: 13px; font-weight: 600; color: #334155; margin-top: 6px; }

.ldash-block { background: #fff; border: 1px solid #e8edf6; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.ldash-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ldash-block-head h3 { margin: 0; font-size: 16px; color: #1f2a44; }
.ldash-pct { font-size: 20px; font-weight: 800; color: #d8b35c; }
.ldash-bar { height: 12px; background: #e8edf6; border-radius: 999px; overflow: hidden; }
.ldash-bar-fill { height: 100%; background: linear-gradient(90deg, #d8b35c, #c79a3f); border-radius: 999px; transition: width .4s ease; }
.ldash-hint { font-size: 13.5px; color: #475569; margin: 12px 0 8px; }
.ldash-hint.ok { color: #16a34a; }
.ldash-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ldash-chip { background: #fef3c7; color: #b45309; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.ldash-chips.select .ldash-chip.pick { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; cursor: pointer; }
.ldash-chip.pick.on { background: #1f2a44; color: #fff; border-color: #1f2a44; }

.ldash-chart { display: flex; align-items: flex-end; gap: 5px; height: 140px; padding-top: 8px; }
.ldash-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ldash-bar-v { width: 70%; min-height: 2px; background: #1f2a44; border-radius: 4px 4px 0 0; }
.ldash-bar-x { font-size: 10px; color: #94a3b8; margin-top: 4px; }

.ldash-btn { background: #f1f5f9; border: 1px solid #e2e8f0; color: #1f2a44; padding: 9px 16px; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: 14px; }
.ldash-btn.primary { background: #d8b35c; border-color: #d8b35c; color: #1f2a44; }
.ldash-btn.danger { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.ldash-btn:disabled { opacity: .6; cursor: default; }

/* ===== Frontend Biên tập viên (/bien-tap-vien) ===== */
.editor-dash-wrap .ldash-title { margin-bottom: 4px; }
.editor-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 10px; margin-bottom: 18px; }
.editor-toolbar input, .editor-toolbar select {
  width: 100%; padding: 9px 12px; border: 1px solid #cdd8ea; border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff;
}
.editor-article-list { display: flex; flex-direction: column; gap: 12px; }
.editor-article-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e8edf6; }
.editor-article-row:last-child { border-bottom: 0; }
.editor-article-row strong { color: #1f2a44; font-size: 16px; }
.editor-article-row p { margin: 8px 0 0; color: #475569; font-size: 14px; }
.editor-article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: #64748b; font-size: 12.5px; }
.editor-article-meta span { background: #f1f5f9; border-radius: 999px; padding: 3px 8px; }
.editor-row-actions { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.editor-cat-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 220px; overflow: auto; padding: 6px 0; }
.editor-notion {
  border: 1px solid #dbe5f3; border-radius: 16px; background: #fff; overflow: hidden;
  box-shadow: 0 14px 36px rgba(15,23,42,.06);
}
.editor-notion-toolbar {
  position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #e8edf6; background: rgba(248,250,252,.96); backdrop-filter: blur(8px);
}
.editor-notion-toolbar button {
  border: 1px solid #dbe5f3; background: #fff; color: #1f2a44; border-radius: 9px; padding: 7px 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1;
}
.editor-notion-toolbar button:hover { border-color: #d8b35c; background: #fffbeb; }
.editor-tool-sep { width: 1px; height: 24px; background: #dbe5f3; margin: 0 4px; }
.editor-notion-shell { display: grid; grid-template-columns: 34px minmax(0, 1fr); min-height: 420px; background: #fff; }
.editor-block-handle { color: #cbd5e1; font-size: 20px; line-height: 1; padding-top: 24px; text-align: center; user-select: none; }
.editor-notion-body {
  position: relative; min-height: 420px; padding: 22px 26px 32px 6px; outline: none; color: #1f2937; font-size: 16px; line-height: 1.78; white-space: pre-wrap;
}
.editor-placeholder { position: absolute; top: 22px; left: 6px; color: #94a3b8; pointer-events: none; user-select: none; }
.editor-p { margin: 0 0 12px; }
.editor-h2, .editor-notion-body h2 { font-size: 26px; line-height: 1.35; margin: 22px 0 10px; color: #111827; }
.editor-h3, .editor-notion-body h3 { font-size: 21px; line-height: 1.4; margin: 18px 0 8px; color: #1f2937; }
.editor-quote, .editor-notion-body blockquote { margin: 16px 0; padding: 10px 14px; border-left: 4px solid #d8b35c; background: #fffbeb; color: #475569; border-radius: 0 10px 10px 0; }
.editor-ul, .editor-ol, .editor-notion-body ul, .editor-notion-body ol { padding-left: 24px; margin: 10px 0 14px; }
.editor-li { margin: 4px 0; }
.editor-link { color: #0b63ce; text-decoration: underline; text-underline-offset: 3px; }
.editor-bold { font-weight: 700; }
.editor-italic { font-style: italic; }
.editor-underline { text-decoration: underline; }
.editor-notion-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.editor-notion-help { margin: 8px 0 0; color: #64748b; font-size: 12.5px; }
@media (max-width: 760px) {
  .editor-toolbar { grid-template-columns: 1fr; }
  .editor-article-row { grid-template-columns: 1fr; }
  .editor-row-actions { justify-content: flex-start; }
}
.ldash-actions { margin-top: 18px; }
.ldash-err { color: #dc2626; font-size: 14px; }
.ldash-ok { color: #16a34a; font-size: 14px; }

.ldash-form .ldash-field { display: block; margin-bottom: 16px; }
.ldash-field > span { display: block; font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.ldash-field input, .ldash-field select, .ldash-field textarea { width: 100%; padding: 9px 12px; border: 1px solid #cdd8ea; border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; }
.ldash-field textarea { resize: vertical; }
.ldash-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.ldash-reviews { display: flex; flex-direction: column; gap: 12px; }
.ldash-review { background: #fff; border: 1px solid #e8edf6; border-radius: 12px; padding: 14px 16px; }
.ldash-review.pending { border-color: #fde68a; background: #fffbeb; }
.lr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lr-stars { color: #d8b35c; font-size: 14px; }
.lr-date { font-size: 12.5px; color: #94a3b8; margin-left: auto; }
.lr-body { margin: 8px 0 0; font-size: 14px; color: #334155; }
.lr-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid #e8edf6; display: flex; flex-direction: column; gap: 6px; }
.lr-reply { font-size: 13.5px; color: #475569; }
.lr-reply.staff { border-left: 2px solid #d8b35c; padding-left: 8px; margin-left: -10px; }

@media (max-width: 860px) {
  .ldash-cards { grid-template-columns: repeat(3, 1fr); }
  .ldash-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ldash-cards { grid-template-columns: repeat(2, 1fr); }
  .ldash-card .lc-num { font-size: 20px; }
}

/* ===== Dashboard người dùng (/nguoi-dung) — bổ sung ===== */
.ud-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ud-avatar { width: 56px; height: 56px; border-radius: 50%; background: #e8edf6; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; flex-shrink: 0; }
.ud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ldash-card.as-btn { cursor: pointer; border: 1px solid #e2e8f0; background: #ffffff; transition: all .15s ease; }
.ldash-card.as-btn:hover { border-color: #d8b35c; background: #fdfaf3; box-shadow: 0 4px 12px rgba(216, 179, 92, .15); }
.ldash-btn.danger { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.ud-cmt-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.ud-replies { font-size: 12.5px; color: #94a3b8; margin-right: auto; }
.ud-link-btn { background: none; border: none; padding: 0; font-size: 13.5px; font-weight: 600; color: #1f2a44; cursor: pointer; }
.ud-link-btn.danger { color: #dc2626; }
.ud-link-btn:disabled { opacity: .5; cursor: default; }
.ud-edit textarea { width: 100%; padding: 9px 12px; border: 1px solid #cdd8ea; border-radius: 9px; font-size: 14px; font-family: inherit; resize: vertical; }

/* Thẻ hội viên VIP / Gói tài khoản trong Dashboard */
.ud-tier-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
  border: 1px solid #334155;
}
.ud-tb-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f59e0b;
  color: #0f172a;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.ud-tb-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.ud-tb-expire {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-top: 4px;
}
.ud-tb-upgrade {
  background: linear-gradient(90deg, #d8b35c, #c79a3f);
  color: #0f172a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(216, 179, 92, .3);
  transition: transform .15s ease;
}
.ud-tb-upgrade:hover {
  transform: translateY(-2px);
  color: #000;
}

/* Thanh sub-tabs cho mục Lưu trữ */
.ud-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ud-subnav-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s ease;
}
.ud-subnav-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* Bảng so sánh các gói tài khoản */
.ud-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.ud-plan-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ud-plan-card.featured {
  border-color: #d8b35c;
  box-shadow: 0 8px 24px rgba(216, 179, 92, .18);
}
.ud-plan-popular {
  position: absolute;
  top: -10px;
  right: 18px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.ud-plan-card h4 {
  font-size: 18px;
  margin: 0 0 6px 0;
  color: #0f172a;
}
.ud-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 16px;
}
.ud-plan-price span {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
}
.ud-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
}
.ud-plan-features li {
  font-size: 13px;
  color: #334155;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ud-plan-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
}
.ud-plan-btn.gold {
  background: linear-gradient(90deg, #d8b35c, #c79a3f);
  color: #0f172a;
}

@media (max-width: 800px) {
  .ud-pricing-grid { grid-template-columns: 1fr; }
}


/* Skeleton loading (giữ chỗ khi điều hướng, tránh footer nhảy) */
.sk { display: block; background: linear-gradient(90deg,#eef1f6 25%,#e2e7f0 37%,#eef1f6 63%); background-size: 400% 100%; border-radius: 6px; animation: sk-shimmer 1.2s ease-in-out infinite; }
.sk-line { border-radius: 4px; }
.sk-block { border-radius: 10px; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ===== PWA / app-like mobile experience ===== */
.pwa-hero { display: none; }
.pwa-bottom-nav { display: none; }

@media (min-width: 1025px) {
  .site-header { padding: 12px 0; }
  .site-header .container { gap: 18px; }
  .brand .brand-logo { width: 58px; height: 58px; }
  .nav { justify-content: flex-start; gap: 2px; }
  .nav .nav-link { padding: 11px 10px; border-radius: 999px; font-size: 13px; }
  .btn-cta { border-radius: 999px; box-shadow: 0 10px 22px rgba(200,162,74,.22); }
}

@media (max-width: 760px) and (display-mode: standalone) {
  :root { --radius: 16px; }
  body { background: #f6f8fc; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body > main.container { padding: 0 12px; }
  .topbar, .site-header, .hero { display: none !important; }

  .pwa-hero {
    display: block; color: #fff; padding: calc(14px + env(safe-area-inset-top)) 14px 28px;
    background:
      radial-gradient(circle at 85% 8%, rgba(255,255,255,.14), transparent 28%),
      linear-gradient(180deg, #082a63 0%, #061f4e 100%);
    border-radius: 0 0 24px 24px; overflow: hidden;
  }
  .pwa-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .pwa-logo { color: #fff; display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
  .pwa-logo span { font-family: Georgia, serif; font-size: 34px; letter-spacing: -1px; }
  .pwa-logo small { font-size: 9px; opacity: .82; margin-top: 4px; white-space: nowrap; }
  .pwa-hotline { color: #ffd98a; border: 1px solid rgba(255,217,138,.45); border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 900; background: rgba(255,255,255,.06); text-decoration: none; }
  .pwa-hero-content { margin-top: 24px; }
  .pwa-hero h1 { font-size: 24px; line-height: 1.18; margin: 0 0 16px; font-weight: 900; letter-spacing: -.35px; }
  .pwa-search { height: 48px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 0 10px 0 16px; box-shadow: 0 16px 28px rgba(0,0,0,.22); }
  .pwa-search span { color: #8a98ad; font-size: 18px; }
  .pwa-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #0f172a; font-size: 13px; }
  .pwa-search button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4f7fb; color: #082a63; font-size: 17px; font-weight: 900; }
  .pwa-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .pwa-quick-actions a { position: relative; min-height: 92px; border-radius: 12px; padding: 13px 12px; color: #fff; overflow: hidden; text-decoration: none; box-shadow: 0 12px 22px rgba(0,0,0,.18); }
  .pwa-quick-actions .consult { background: linear-gradient(135deg, #0a3677, #082a63); }
  .pwa-quick-actions .docs { background: linear-gradient(135deg, #d6a33d, #b77d21); }
  .pwa-quick-actions strong { display: block; font-size: 13px; margin-bottom: 5px; }
  .pwa-quick-actions span { display: block; font-size: 10.5px; line-height: 1.35; opacity: .9; }
  .pwa-quick-actions em { position: absolute; right: 12px; bottom: 8px; font-style: normal; font-size: 32px; opacity: .9; }

  .pwa-stats {
    grid-template-columns: repeat(4, 1fr); gap: 0; margin: -18px 0 20px; padding: 12px 4px;
    background: #fff; border-radius: 20px; box-shadow: 0 12px 28px rgba(15,23,42,.12); max-width: none;
  }
  .pwa-stats .stat-card { display: flex; flex-direction: column; gap: 4px; padding: 8px 2px; border: 0; box-shadow: none; border-radius: 0; background: transparent; }
  .pwa-stats .ico { font-size: 17px; }
  .pwa-stats .num { font-size: 13px; }
  .pwa-stats .label { font-size: 8.8px; line-height: 1.15; display: inline-block; }

  .section { margin: 24px 0; }
  .pwa-section-head, .col-head { align-items: center; justify-content: space-between; text-align: left; margin-bottom: 12px; }
  .pwa-section-head h2, .col-head h2 { border: 0; padding-left: 0; margin: 0; font-size: 16px; color: #0b2148; }
  .pwa-section-head h2::after { display: none; }
  .pwa-section-head .more, .col-head .more { font-size: 11px; color: #0c4a8a; font-weight: 800; }
  .center-link { display: none; }

  .fields-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .field-card { padding: 12px 4px; border-radius: 14px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
  .field-card .fc-ico { width: 34px; height: 34px; margin-bottom: 7px; font-size: 18px; border-radius: 10px; }
  .field-card .fc-name { font-size: 10px; line-height: 1.2; }
  .field-card .fc-desc { display: none; }

  .lawyer-grid { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
  .lawyer-card { min-width: 142px; border-radius: 14px; scroll-snap-align: start; }
  .lawyer-card .lc-photo { aspect-ratio: 1 / 1.05; }
  .lawyer-card .lc-body { padding: 9px; }
  .lawyer-card .ln { font-size: 11px; line-height: 1.25; }
  .lawyer-card .lf, .lawyer-card .lc-meta, .lawyer-card .btn-profile { display: none; }
  .lawyer-card .stars { font-size: 10px; margin: 4px 0 0; letter-spacing: 0; }

  .firm-grid, .testi-grid, .cta-band { display: none; }
  .doc-band { border-radius: 18px; padding: 18px 14px; margin: 26px 0; }
  .doc-band h2 { text-align: left; font-size: 17px; }
  .doc-band h2::after { margin-left: 0; }
  .doc-band-search { flex-direction: column; }
  .doc-band-search button { padding: 12px; }
  .doc-band-tags { justify-content: flex-start; }

  .two-col { gap: 22px; }
  .news-feature { display: none; }
  .news-mini a { padding: 10px; gap: 10px; border: 0; background: #fff; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
  .news-mini .nm-thumb { width: 92px; height: 66px; flex-basis: 92px; border-radius: 10px; }
  .news-mini .nm-t { font-size: 12.5px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .news-mini .nm-ex { display: none; }
  .news-mini .nm-meta { font-size: 10.5px; margin-top: 4px; }
  .qa-list { gap: 8px; }
  .qa-item { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
  .steps { grid-template-columns: 1fr; position: relative; gap: 12px; }
  .step { background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
  .step .sn { background: linear-gradient(135deg, #082a63, #0c4a8a); color: #fff; }

  .site-footer { display: none; }
  .pwa-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    border-top: 1px solid #e6ecf5; box-shadow: 0 -10px 28px rgba(15,23,42,.12); backdrop-filter: blur(12px);
  }
  .pwa-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #6b7890; font-size: 10px; font-weight: 750; text-decoration: none; }
  .pwa-bottom-nav .pwa-bn-ico { width: 24px; height: 24px; display: grid; place-items: center; font-size: 17px; line-height: 1; }
  .pwa-bottom-nav a.active { color: #082a63; }
}

/* ===== User questions / Q&A submit ===== */
.qa-submit-wrap { margin: 10px 0 34px; background: linear-gradient(135deg, #082a63, #0f3c7e); color: #fff; border-radius: 24px; padding: 30px; box-shadow: 0 18px 42px rgba(8,42,99,.18); }
.qa-submit-head { max-width: 720px; margin-bottom: 20px; }
.qa-kicker { display: inline-block; color: #ffe2a1; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.qa-submit-head h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; color: #fff; }
.qa-submit-head p { margin: 0; color: #d7e2f4; }
.qa-submit-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.qa-submit-form, .qa-manage-card { background: rgba(255,255,255,.98); color: #0f172a; border-radius: 18px; padding: 20px; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.qa-submit-form label { display: block; margin-bottom: 14px; }
.qa-submit-form label span { display: block; font-size: 13px; font-weight: 800; color: #24324b; margin-bottom: 6px; }
.qa-submit-form input, .qa-submit-form select, .qa-submit-form textarea { width: 100%; border: 1px solid #d9e2ef; border-radius: 12px; padding: 11px 13px; font-family: inherit; font-size: 14px; outline: 0; background: #fff; }
.qa-submit-form textarea { resize: vertical; }
.qa-submit-form input:focus, .qa-submit-form select:focus, .qa-submit-form textarea:focus { border-color: #c8a24a; box-shadow: 0 0 0 3px rgba(200,162,74,.14); }
.qa-submit-btn, .qa-login-box button { border: 0; background: linear-gradient(135deg, #d8b35c, #c59637); color: #071d42; border-radius: 999px; padding: 12px 20px; font-weight: 900; cursor: pointer; }
.qa-submit-btn:disabled { opacity: .65; cursor: default; }
.qa-alert { border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.qa-alert.ok { background: #dcfce7; color: #166534; }
.qa-alert.err { background: #fee2e2; color: #b91c1c; }
.qa-login-box { background: #f8fafc; border: 1px dashed #cdd8ea; border-radius: 16px; padding: 18px; }
.qa-login-box p { color: #64748b; margin: 6px 0 14px; }
.qa-manage-card h3 { margin: 0 0 8px; color: #082a63; }
.qa-manage-card p { color: #64748b; margin-top: 0; }
.qa-manage-link { display: inline-flex; align-items: center; background: #082a63; color: #fff !important; border-radius: 999px; padding: 10px 14px; font-weight: 800; margin-bottom: 14px; }
.qa-manage-link:hover { text-decoration: none; background: #0f3c7e; }
.qa-mini-list { border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; padding: 12px 0; margin: 6px 0 12px; display: grid; gap: 8px; }
.qa-mini-list strong { color: #24324b; font-size: 13px; }
.qa-mini-list a { display: grid; gap: 3px; color: #0f172a; }
.qa-mini-list a span { font-size: 13px; font-weight: 750; line-height: 1.35; }
.qstatus { width: max-content; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-style: normal; font-weight: 800; background: #f1f5f9; color: #475569; }
.qstatus.pending { background: #fef3c7; color: #b45309; }
.qstatus.answered { background: #dcfce7; color: #16a34a; }
.qa-manage-card ul { list-style: none; padding: 0; margin: 12px 0 0; color: #475569; font-size: 13px; display: grid; gap: 6px; }
.q-answer { margin-top: 12px; padding: 12px 14px; border-left: 4px solid #16a34a; border-radius: 12px; background: #f0fdf4; color: #14532d; }
.q-answer p { margin: 5px 0 0; white-space: pre-wrap; }
.qadmin-list { display: flex; flex-direction: column; gap: 12px; }
.qadmin-wrap .ldash-field textarea { margin-top: 6px; }
.review-mod-head { align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.review-mod-tabs { margin-bottom: 18px; }
.review-mod-list { gap: 14px; }
.review-mod-review-head { flex-wrap: wrap; }
.review-mod-lawyer { margin: 8px 0 0; color: #64748b; font-size: 13px; }
.review-mod-lawyer a { color: #0b4f9f; font-weight: 800; }
.review-mod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 760px) { .review-mod-head { display: block; } .review-mod-head .ldash-btn { margin-top: 10px; } }
.ud-edit input { width: 100%; padding: 9px 12px; border: 1px solid #cdd8ea; border-radius: 9px; font-size: 14px; font-family: inherit; margin-bottom: 8px; }

@media (max-width: 860px) {
  .qa-submit-wrap { border-radius: 0 0 24px 24px; margin: 0 calc(50% - 50vw) 24px; padding: 22px 16px; }
  .qa-submit-head h2 { font-size: 23px; }
  .qa-submit-head p { font-size: 13px; }
  .qa-submit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .qa-submit-wrap { margin-top: 0; padding: 20px 12px 24px; }
  .qa-submit-form, .qa-manage-card { border-radius: 18px; padding: 15px; }
  .qa-submit-form input, .qa-submit-form select, .qa-submit-form textarea { border-radius: 13px; font-size: 13px; }
  .qa-submit-btn { width: 100%; padding: 13px; }
  .qadmin-wrap { padding-bottom: 90px; }
  .qadmin-wrap .ldash-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .qadmin-wrap .ldash-tab { white-space: nowrap; }
}

@media (max-width: 760px) and (display-mode: standalone) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body > main.container { width: 100%; max-width: 100%; margin: 0; padding-left: 12px; padding-right: 12px; }
  .pwa-hero.bleed {
    width: auto; max-width: none; margin-left: -12px; margin-right: -12px;
    border-radius: 0 0 24px 24px;
  }
  .pwa-hero-top, .pwa-hero-content, .pwa-stats, .pwa-fields-section, .section, .doc-band, .two-col { min-width: 0; }
  .pwa-quick-actions, .pwa-stats, .fields-grid { width: 100%; }
  .pwa-quick-actions a { min-width: 0; }
}

/* ===== PWA push notification toggle ===== */
.push-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dbe6f3; background: #f8fafc; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.push-toggle b { display: block; color: #082a63; font-size: 14px; }
.push-toggle span { display: block; color: #64748b; font-size: 12.5px; margin-top: 2px; }
.push-toggle button { border: 0; border-radius: 999px; background: #082a63; color: #fff; padding: 9px 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.push-toggle button.off { background: #e2e8f0; color: #334155; }
.push-toggle button:disabled { opacity: .65; cursor: default; }
.push-toggle.compact { align-items: flex-start; flex-direction: column; margin: 10px 0 14px; }
.push-toggle.compact button { width: 100%; }
.push-note { font-size: 12.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; }
@media (max-width: 760px) { .push-toggle { align-items: flex-start; flex-direction: column; } .push-toggle button { width: 100%; } }

/* ===== Admin gửi Web Push thủ công (/quan-ly-thong-bao) ===== */
.push-admin-grid { align-items: start; }
.push-admin-wrap .ldash-block h3 { margin-top: 0; color: #1f2a44; }
.push-preview { border: 1px solid #dbe6f3; border-radius: 14px; background: #f8fafc; padding: 13px 14px; display: grid; gap: 4px; margin-top: 8px; }
.push-preview b { color: #082a63; font-size: 15px; }
.push-preview span { color: #334155; font-size: 13.5px; white-space: pre-wrap; }
.push-preview em { color: #94a3b8; font-size: 12px; font-style: normal; }
.push-recipient-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.push-recipient { text-align: left; width: 100%; border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 3px; }
.push-recipient:hover { border-color: #d8b35c; background: #fffbeb; }
.push-recipient b { color: #1f2a44; font-size: 13.5px; overflow-wrap: anywhere; }
.push-recipient span { color: #475569; font-size: 12.5px; }
.push-recipient em { color: #94a3b8; font-size: 12px; font-style: normal; }
@media (max-width: 760px) {
  .push-admin-wrap { padding-bottom: 90px; }
  .push-recipient-list { max-height: none; }
}

/* Giảm kích thước tiêu đề trong danh sách Văn bản pháp luật (/van-ban) */
.vb-cards .ue-title {
  font-size: 15.5px;
  line-height: 1.42;
  margin-bottom: 12px;
  font-weight: 700;
}
.vb-cards .ue-card-tags { margin-bottom: 8px; }
@media (max-width: 560px) {
  .vb-cards .ue-title { font-size: 14.5px; line-height: 1.42; }
}

/* Giảm kích thước tiêu đề mục Văn bản xem nhiều trong 30 ngày */
.mv-title {
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 7px;
  font-weight: 700;
}
.mv-meta { font-size: 11.5px; }
.mv-type { font-size: 11.5px; }
.mv-badge { font-size: 10.5px; padding: 2px 7px; }
@media (max-width: 560px) {
  .mv-title { font-size: 12.5px; }
}

/* ===== Mobile UX polish: trang Văn bản pháp luật ===== */
@media (max-width: 760px) {
  .lw-detail .container { padding-left: 12px; padding-right: 12px; }
  .lw-body { gap: 14px; padding-top: 16px; padding-bottom: 28px; }
  .lw-main { gap: 14px; }
  .lw-card, .lw-side-card { border-radius: 16px; padding: 18px 16px; box-shadow: 0 8px 24px rgba(15,23,42,.045); }
  .lw-card h2 { font-size: 18px; margin-bottom: 14px; padding-bottom: 10px; }
  .lw-side-card h3 { font-size: 18px; margin-bottom: 14px; line-height: 1.35; }
  .lw-side { gap: 14px; min-width: 0; }
  .lw-side-card, .lw-side-card * { max-width: 100%; }
  .lw-btn.full { min-width: 0; white-space: normal; text-align: center; line-height: 1.45; padding-left: 12px; padding-right: 12px; }

  .vb-status-box {
    width: 100%; min-width: 0; border-radius: 12px; padding: 12px 14px;
    font-size: 15px; line-height: 1.35; overflow-wrap: anywhere;
  }
  .vb-timeline { margin-top: 14px; gap: 12px; }
  .vb-timeline li { align-items: center; gap: 10px; }
  .vb-tl-ic { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; background: #f7f9fc; }
  .vb-timeline em { font-size: 12px; }
  .vb-timeline strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }

  .lw-side-form p { font-size: 13.5px !important; line-height: 1.6; margin-bottom: 14px; }
  .lw-side-form .lw-btn { min-height: 46px; }
  .lw-side-cta p { font-size: 13.5px; line-height: 1.6; }

  .vb-props, .vb-props tbody, .vb-props tr, .vb-props th, .vb-props td { display: block; width: 100%; }
  .vb-props tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .vb-props tr:last-child { border-bottom: 0; }
  .vb-props th, .vb-props td { border: 0; padding: 0; }
  .vb-props th { background: transparent; margin-bottom: 4px; font-size: 12.5px; }
  .vb-props td { font-size: 14px; overflow-wrap: anywhere; }

  .vb-hero { padding: 16px 0 22px; }
  .vb-hero h1 { font-size: 20px; line-height: 1.35; }
  .vb-hero-meta { gap: 7px; font-size: 13px; }
  .vb-hero-meta span { width: 100%; overflow-wrap: anywhere; }
  .vb-hero-actions .lw-btn { width: 100%; justify-content: center; white-space: normal; }
}

@media (max-width: 560px) {
  .lw-detail .container { padding-left: 10px; padding-right: 10px; }
  .lw-card, .lw-side-card { padding: 16px 14px; border-radius: 15px; }
  .lw-card h2, .lw-side-card h3 { font-size: 17px; }

  .vb-cards { gap: 10px; }
  .vb-cards .ue-card { padding: 14px; gap: 12px; border-radius: 14px; overflow: hidden; }
  .vb-cards .ue-card-tags { gap: 6px; flex-wrap: wrap; }
  .vb-cards .ue-type, .vb-cards .vb-tag.num, .vb-cards .ue-new { font-size: 11px; line-height: 1.25; }
  .vb-cards .ue-title { font-size: 14px; line-height: 1.4; margin-bottom: 10px; overflow-wrap: anywhere; }
  .vb-cards .ue-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .vb-cards .ue-act { justify-content: center; padding: 8px 6px; font-size: 12px; min-width: 0; }
  .vb-cards .ue-card-side { gap: 8px; padding-top: 12px; }
  .vb-cards .ue-side-row { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12.5px; }
  .vb-cards .ue-side-l { white-space: normal; }
  .vb-cards .ue-side-v { text-align: left; overflow-wrap: anywhere; }

  .vb-related-item { padding: 11px 12px; }
  .vb-related-body strong { font-size: 13.5px; overflow-wrap: anywhere; }
}

/* ===== Chat widget Lusi (Dify) — .cw-* ===== */
.cw-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px 13px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff; font-weight: 800; font-size: 14px; line-height: 1.35;
  box-shadow: 0 12px 28px rgba(15,45,92,.38), 0 0 0 3px rgba(200,162,74,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cw-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15,45,92,.45), 0 0 0 3px var(--gold); }
.cw-fab-ic { font-size: 20px; line-height: 1; }
.cw-badge {
  position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.cw-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1100; width: 380px; max-width: calc(100vw - 24px);
  height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(8,25,55,.35); border: 1px solid var(--border);
}
.cw-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-bottom: 3px solid var(--gold);
}
.cw-head-t { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cw-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.cw-head-a { display: flex; gap: 4px; }
.cw-head-a button {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
}
.cw-head-a button:hover { background: rgba(255,255,255,.25); }
.cw-body { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.cw-row { display: flex; gap: 8px; align-items: flex-end; }
.cw-row.user { justify-content: flex-end; }
.cw-av {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--gold); font-size: 15px; font-weight: 800; border: 1.5px solid var(--gold);
}
.cw-bub { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.cw-row.bot .cw-bub { background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.cw-row.user .cw-bub { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.cw-bub.err { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.cw-bub a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.cw-row.user .cw-bub a { color: #ffe2a1; }
.cw-li { display: block; padding-left: 2px; }
.cw-quick { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 38px; }
.cw-quick button {
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.35;
  background: #fff; color: var(--primary); border: 1.5px solid var(--gold);
}
.cw-quick button:hover { background: var(--gold); color: var(--primary-dark); }
.cw-typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px !important; }
.cw-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: cwb 1.1s infinite ease-in-out; }
.cw-typing i:nth-child(2) { animation-delay: .15s; }
.cw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cwb { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.cw-foot { padding: 10px 12px 8px; background: #fff; border-top: 1px solid var(--border); }
.cw-foot form { display: flex; gap: 8px; }
.cw-foot input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; outline: none; background: #f8fafc;
}
.cw-foot input:focus { border-color: var(--primary); background: #fff; }
.cw-foot form button {
  flex: 0 0 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; font-size: 16px;
  background: var(--gold); color: var(--primary-dark); font-weight: 800;
}
.cw-foot form button:disabled { opacity: .45; cursor: not-allowed; }
.cw-note { margin-top: 7px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.45; }
@media (max-width: 760px) {
  .cw-fab { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px 16px 12px 13px; }
  .cw-panel { right: 0; bottom: 0; left: 0; width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; }
  .cw-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cw-foot input { font-size: 16px; }
}
@media print { .cw-fab, .cw-panel { display: none; } }

/* ===== Chat widget User Bar, Auth Gate & History View ===== */
.cw-user-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px; background: #ebf3ff; border-bottom: 1px solid #d4e4fa;
  font-size: 11.5px; color: #1e3a68;
}
.cw-ub-info { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.cw-ub-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.cw-ub-tag { background: #d0e4ff; color: #0b3474; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.cw-ub-info.guest { color: #64748b; font-size: 11.5px; }
.cw-ub-login-btn {
  background: var(--primary); color: #fff; border: 0; border-radius: 6px; padding: 3px 8px;
  font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.cw-ub-login-btn:hover { background: var(--primary-mid); }

/* Gate View */
.cw-gate-view {
  flex: 1; padding: 24px 20px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; background: #fff; overflow-y: auto;
}
.cw-gate-icon {
  width: 58px; height: 58px; border-radius: 50%; background: #f0f4fa; border: 2px solid var(--gold);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 12px;
}
.cw-gate-title {
  font-size: 19px; font-weight: 800; color: var(--primary); margin: 0 0 6px;
}
.cw-gate-desc {
  font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; max-width: 320px;
}
.cw-gate-box {
  width: 100%; background: #f8fafc; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 14px 16px; margin-bottom: 12px; text-align: left;
}
.cw-gate-benefit {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #334155; margin-bottom: 8px;
  line-height: 1.4;
}
.cw-gb-ic {
  color: #16a34a; font-weight: 900; font-size: 13px; flex-shrink: 0; line-height: 1.3;
}
.cw-gate-btn-login {
  width: 100%; margin-top: 10px; padding: 11px 16px; border-radius: 8px; border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff;
  font-weight: 800; font-size: 13.5px; cursor: pointer; box-shadow: 0 4px 12px rgba(15,45,92,.22);
}
.cw-gate-btn-login:hover { background: var(--primary-dark); }
.cw-gate-divider {
  position: relative; width: 100%; text-align: center; margin: 4px 0 10px;
}
.cw-gate-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border);
}
.cw-gate-divider span {
  position: relative; background: #fff; padding: 0 10px; font-size: 11.5px; color: var(--muted);
}
.cw-gate-btn-guest {
  width: 100%; padding: 10px 16px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; color: #475569; font-weight: 700; font-size: 13px; cursor: pointer;
}
.cw-gate-btn-guest:hover { background: #f1f5f9; color: var(--text); border-color: #cbd5e1; }
.cw-gate-note {
  font-size: 11px; color: #94a3b8; margin-top: 10px; line-height: 1.4;
}

/* History View */
.cw-history-view {
  flex: 1; display: flex; flex-direction: column; background: #fff; overflow: hidden;
}
.cw-hv-head {
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text);
}
.cw-hv-new-btn {
  background: var(--gold); color: var(--primary-dark); border: 0; border-radius: 6px;
  padding: 4px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.cw-hv-new-btn:hover { background: #d8b35c; }
.cw-hv-list {
  flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;
}
.cw-hv-item {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--border); background: #fdfdfd; cursor: pointer;
  transition: all .15s ease;
}
.cw-hv-item:hover { background: #f0f7ff; border-color: #bfdbfe; }
.cw-hv-item.current { background: #eff6ff; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.cw-hv-item-main { flex: 1; min-width: 0; }
.cw-hv-item-title { font-weight: 700; font-size: 13px; color: var(--primary); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-hv-item-snippet { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-hv-item-meta { font-size: 10.5px; color: #94a3b8; display: flex; gap: 6px; }
.cw-hv-del-btn {
  background: transparent; border: 0; cursor: pointer; font-size: 14px; padding: 6px;
  opacity: .5; border-radius: 6px; margin-left: 6px;
}
.cw-hv-del-btn:hover { opacity: 1; background: #fee2e2; }
.cw-hv-empty {
  padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6;
}
.cw-head-a button.active {
  background: var(--gold) !important; color: var(--primary-dark) !important; font-weight: 800;
}

/* ===== Quản lý Lịch sử Chat AI (Admin) ===== */
.admin-chat-wrap { margin-top: 6px; }
.admin-chat-stats { margin-bottom: 20px; }

.admin-chat-filter-bar {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; background: #fff; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px;
}
.admin-chat-search-form {
  display: flex; gap: 8px; flex: 1; min-width: 280px; align-items: center; flex-wrap: wrap;
}
.admin-chat-search-input {
  flex: 1; min-width: 220px; padding: 9px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13.5px; outline: none; background: #f8fafc;
}
.admin-chat-search-input:focus {
  border-color: var(--primary); background: #fff;
}

.admin-chat-layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 18px; min-height: 640px;
  align-items: stretch;
}
.admin-chat-list-col {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.admin-chat-list-header {
  padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #1e293b;
}
.admin-chat-list-body {
  flex: 1; overflow-y: auto; max-height: 660px; padding: 12px; display: flex;
  flex-direction: column; gap: 10px;
}
.admin-chat-card {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fdfdfd; cursor: pointer; transition: all .15s ease;
}
.admin-chat-card:hover {
  background: #f1f7ff; border-color: #bfdbfe;
}
.admin-chat-card.active {
  background: #eff6ff; border-color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary);
}
.admin-chat-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.admin-chat-user-box {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.admin-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0;
  display: grid; place-items: center; font-size: 15px; overflow: hidden; flex-shrink: 0;
}
.admin-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-chat-user-meta { min-width: 0; }
.admin-chat-name {
  font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 170px;
}
.admin-chat-email {
  font-size: 11px; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 170px;
}
.admin-chat-role-badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap;
}
.admin-chat-card-title {
  font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-chat-card-snippet {
  font-size: 12px; color: #64748b; margin-bottom: 8px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.admin-chat-card-footer {
  display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #94a3b8;
}
.admin-chat-del-btn {
  background: transparent; border: 0; cursor: pointer; font-size: 13px; padding: 4px 6px;
  border-radius: 4px; opacity: .5; transition: opacity .15s ease;
}
.admin-chat-del-btn:hover { opacity: 1; background: #fee2e2; }

.admin-chat-pagination {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  background: #f8fafc; border-top: 1px solid var(--border);
}

.admin-chat-detail-col {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.admin-chat-detail-inner {
  display: flex; flex-direction: column; height: 100%;
}
.admin-chat-detail-header {
  padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.admin-chat-detail-title {
  margin: 0 0 4px; font-size: 16.5px; font-weight: 800; color: var(--primary);
}
.admin-chat-detail-user-line {
  font-size: 12.5px; color: #475569; display: flex; gap: 8px; flex-wrap: wrap;
}
.admin-chat-back-mobile {
  display: none; background: none; border: 0; padding: 0 0 6px; color: var(--primary);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.admin-chat-messages-container {
  flex: 1; overflow-y: auto; max-height: 580px; padding: 20px; display: flex;
  flex-direction: column; gap: 16px; background: #f8fafc;
}

.admin-msg-row {
  display: flex; gap: 10px; align-items: flex-start; max-width: 82%;
}
.admin-msg-row.user {
  align-self: flex-end; flex-direction: row-reverse;
}
.admin-msg-row.bot {
  align-self: flex-start;
}
.admin-msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--gold);
  display: grid; place-items: center; font-size: 14px; font-weight: 800; border: 1.5px solid var(--gold);
  flex-shrink: 0;
}
.admin-msg-avatar.user {
  background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1;
}
.admin-msg-content-box {
  display: flex; flex-direction: column; min-width: 0;
}
.admin-msg-row.user .admin-msg-content-box {
  align-items: flex-end;
}
.admin-msg-sender-label {
  font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 3px;
}
.admin-msg-bubble {
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  overflow-wrap: anywhere;
}
.admin-msg-row.bot .admin-msg-bubble {
  background: #fff; color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,.04); border-bottom-left-radius: 4px;
}
.admin-msg-row.user .admin-msg-bubble {
  background: var(--primary); color: #fff; border-bottom-right-radius: 4px;
}
.admin-msg-row.user .admin-msg-bubble a { color: #ffe2a1; }
.admin-msg-row.bot .admin-msg-bubble a { color: var(--primary); text-decoration: underline; font-weight: 600; }
.admin-msg-time {
  font-size: 10px; color: #94a3b8; margin-top: 4px;
}

.admin-chat-detail-placeholder {
  height: 100%; min-height: 480px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
  color: #64748b;
}
.admin-chat-detail-placeholder h4 {
  margin: 0 0 6px; font-size: 18px; color: var(--primary); font-weight: 700;
}
.admin-chat-detail-placeholder p {
  margin: 0; font-size: 13.5px; color: var(--muted); max-width: 360px; line-height: 1.5;
}
.admin-chat-empty {
  padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.admin-chat-spinner {
  width: 32px; height: 32px; border: 3px solid #e2e8f0; border-top-color: var(--primary);
  border-radius: 50%; animation: spin 1s infinite linear; margin-bottom: 12px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .admin-chat-layout { grid-template-columns: 1fr; }
  .admin-chat-list-col.has-active-mobile { display: none; }
  .admin-chat-detail-col { display: none; }
  .admin-chat-detail-col.is-active-mobile { display: flex; }
  .admin-chat-back-mobile { display: block; }
}

/* Link số điện thoại & email inline trong footer */
.site-footer p a { display: inline; color: #aab8cf; padding: 0; }
.site-footer p a:hover { color: var(--gold); text-decoration: underline; }

/* ==========================================================================
   PWA INSTALL UI COMPONENTS (SMART BANNER, HERO BADGE, DRAWER, MODAL, /cai-app)
   ========================================================================== */

/* 1. Smart App Banner (Top sticky bar on mobile) */
.pwa-smart-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #061e47 0%, #0a3677 100%);
  color: #fff;
  border-bottom: 1px solid rgba(200, 162, 74, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  animation: pwaBannerSlideDown 0.3s ease-out;
}

@keyframes pwaBannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-sb-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.pwa-sb-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-sb-close:hover { color: #fff; }

.pwa-sb-icon img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  border: 1px solid rgba(255, 217, 138, 0.4);
}

.pwa-sb-info {
  flex: 1;
  min-width: 0;
}

.pwa-sb-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.pwa-sb-desc {
  font-size: 11px;
  color: #ffd98a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  opacity: 0.95;
}

.pwa-sb-btn {
  background: linear-gradient(135deg, #e5be68 0%, #c8a24a 100%);
  color: #08275a;
  border: none;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200, 162, 74, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pwa-sb-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
}

/* 2. Topbar & Header Links */
.tb-pwa-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffd98a !important;
  font-weight: 700;
  font-size: 12px;
  margin-left: 14px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 217, 138, 0.12);
  border: 1px solid rgba(255, 217, 138, 0.28);
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.tb-pwa-link:hover {
  background: rgba(255, 217, 138, 0.22);
  color: #fff !important;
  border-color: #ffd98a;
}

/* 3. Mobile Menu Drawer PWA Card */
.mm-pwa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  background: linear-gradient(135deg, #092a61 0%, #061c42 100%);
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.mm-pwa-card:hover {
  transform: translateY(-1px);
  border-color: #e5be68;
}
.mm-pwa-ic {
  font-size: 26px;
  line-height: 1;
}
.mm-pwa-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mm-pwa-info strong {
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}
.mm-pwa-info small {
  font-size: 11px;
  color: #ffd98a;
  line-height: 1.3;
}
.mm-pwa-tag {
  background: #c8a24a;
  color: #08275a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* 4. Hero PWA Badge on Homepage */
.hero-pwa-badge-wrap {
  margin-top: 14px;
  margin-bottom: 4px;
}
.hero-pwa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 217, 138, 0.38);
  border-radius: 999px;
  color: #ffd98a;
  text-decoration: none;
  font-size: 12.5px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.hero-pwa-badge:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffd98a;
  color: #fff;
  transform: translateY(-1px);
}
.hero-pwa-badge strong {
  color: #fff;
}
.hero-pwa-icon {
  font-size: 15px;
}
.hero-pwa-arrow {
  font-size: 13px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.hero-pwa-badge:hover .hero-pwa-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* 5. PWA Modal Guide Backdrop & Card */
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pwaFadeIn 0.2s ease-out;
}

@keyframes pwaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: pwaPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaPopUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pwa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #092a61 0%, #061c42 100%);
  color: #fff;
}
.pwa-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-modal-icon {
  border-radius: 10px;
  border: 1px solid rgba(255, 217, 138, 0.4);
}
.pwa-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.pwa-modal-sub {
  font-size: 11.5px;
  color: #ffd98a;
  display: block;
  margin-top: 2px;
}
.pwa-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.pwa-modal-close:hover { color: #fff; }

.pwa-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.pwa-steps-intro {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 600;
}
.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pwa-step-item {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  align-items: flex-start;
}
.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #08275a;
  color: #ffd98a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.pwa-step-content {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.45;
}
.pwa-share-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #0284c7;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 15px;
  vertical-align: middle;
  font-weight: 700;
}

.pwa-modal-benefits {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pwa-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.pwa-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.pwa-modal-link-more {
  font-size: 12.5px;
  color: #08275a;
  font-weight: 700;
  text-decoration: none;
}
.pwa-modal-link-more:hover {
  color: #c8a24a;
  text-decoration: underline;
}
.pwa-modal-btn-ok {
  background: #08275a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pwa-modal-btn-ok:hover {
  background: #0d387f;
}

/* 6. Dedicated /cai-app Page Styles */
.cai-app-page {
  max-width: 920px;
  margin: 28px auto 48px;
  padding: 0 16px;
}

.cai-app-hero {
  background: linear-gradient(135deg, #061c42 0%, #0a3575 100%);
  border-radius: 24px;
  padding: 44px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 36px rgba(8, 39, 90, 0.25);
  border: 1px solid rgba(255, 217, 138, 0.3);
}

.cai-app-icon-wrap {
  margin-bottom: 16px;
}
.cai-app-logo {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 217, 138, 0.6);
}

.cai-app-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.cai-app-tagline {
  font-size: 14.5px;
  color: #ffd98a;
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.cai-app-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cai-app-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e5be68 0%, #c8a24a 100%);
  color: #08275a;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(200, 162, 74, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cai-app-btn-main:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.02);
}
.cai-btn-icon {
  font-size: 20px;
}
.cai-app-hint {
  font-size: 12px;
  color: #cbd5e1;
}

.cai-app-installed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #a7f3d0;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.cai-check-icon {
  font-size: 18px;
}

.cai-app-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 36px 0;
}
.cai-feat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: center;
}
.cai-feat-ico {
  font-size: 30px;
  margin-bottom: 12px;
}
.cai-feat-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #08275a;
  font-weight: 700;
}
.cai-feat-card p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

.cai-app-guides-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.cai-app-guides-section h2 {
  font-size: 20px;
  color: #08275a;
  margin: 0 0 24px;
  text-align: center;
  font-weight: 800;
}

.cai-guide-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cai-guide-box {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 20px 22px;
  background: #f8fafc;
}
.cai-guide-box.ios {
  border-left: 5px solid #0284c7;
}
.cai-guide-box.android {
  border-left: 5px solid #16a34a;
}
.cai-guide-box.desktop {
  border-left: 5px solid #d97706;
}

.cai-guide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cai-guide-os-ico {
  font-size: 28px;
}
.cai-guide-head h3 {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
}
.cai-guide-head small {
  font-size: 12px;
  color: #64748b;
}

.cai-guide-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
}
.cai-guide-steps code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: #08275a;
}

.cai-app-back-home {
  text-align: center;
  margin-top: 32px;
}
.btn-back-home {
  display: inline-block;
  color: #08275a;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.btn-back-home:hover {
  color: #c8a24a;
  text-decoration: underline;
}
