/* Kế toán Hà Thành – giao diện chính.
   Màu thương hiệu lấy từ logo: xanh #2665a6, đỏ #f0031c.
   Chữ: tiêu đề Lora (có chân, trang trọng), nội dung Be Vietnam Pro (thiết kế cho tiếng Việt). */
:root {
  --brand: #2665a6; --brand-700: #1b4d82; --brand-900: #0f2a47;
  --brand-50: #f1f6fb; --brand-100: #dce8f5;
  --red: #d9101e; --red-700: #b30d18; --red-50: #fdeeef;
  --text: #17263a; --text-2: #3b4a5e; --muted: #5b6a7e; --line: #e3e8ef; --bg: #f7f9fb; --surface: #fff;
  --ok: #137a3a; --ok-50: #e9f7ef; --ok-line: #bfe5cd;
  --warn: #8a5a07; --warn-50: #fdf5e4; --warn-line: #f2dcac;
  --bad: #b4232c; --bad-50: #fdeeef; --bad-line: #f5c9cc;
  --radius: 12px; --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, .05);
  --shadow: 0 1px 2px rgba(15, 42, 71, .04), 0 12px 32px rgba(15, 42, 71, .08);
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--brand-900); margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; line-height: 1.45; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(38, 101, 166, .4); outline-offset: 2px; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--brand-900); color: #b7c6d8; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar a { color: #e8eef6; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 14px; height: 14px; color: #8fb3dc; }
.topbar .group { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 860px) { .topbar .addr { display: none; } .topbar .container { justify-content: center; } }
@media (max-width: 480px) { .topbar .mst { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 74px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 48px; width: auto; }
.brand-name { display: block; font-weight: 700; color: var(--red); font-size: 1.14rem; letter-spacing: .02em; line-height: 1.1; white-space: nowrap; }
.brand-tag { display: block; font-size: .66rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav .link { font: inherit; font-size: .94rem; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 8px;
             background: none; border: 0; cursor: pointer; position: relative; }
.nav .link:hover { color: var(--brand); background: var(--brand-50); }
.nav .link.active { color: var(--brand); }
.nav .link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px; }
.nav form { margin: 0; }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand-900); cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
         background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 16px 24px rgba(15, 42, 71, .08); }
  .site-header.open .nav { display: flex; }
  .nav .link { padding: 12px; text-align: left; width: 100%; }
  .nav .link.active::after { display: none; }
  .nav .sep { width: auto; height: 1px; margin: 6px 0; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 400px) { .brand img { height: 40px; } .brand-name { font-size: 1rem; } .brand-tag { font-size: .58rem; } }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
       text-decoration: none; padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
       transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-900); border-color: #cfdbe9; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand-900); }
.btn-white:hover { background: var(--brand-50); color: var(--brand-900); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more .icon { width: 17px; height: 17px; transition: transform .15s; }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- Mở đầu ---------- */
.hero { background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 18px; }
.hero-lead { font-size: 1.12rem; line-height: 1.7; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.audience { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.audience-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--brand-900); margin: 0 0 6px; }
.audience ul { list-style: none; padding: 0; margin: 0; }
.audience li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.audience li:first-child { border-top: 0; }
.audience .ico-box { width: 44px; height: 44px; margin: 0; }
.audience .ico-box .icon { width: 22px; height: 22px; }
.audience strong { display: block; color: var(--brand-900); font-weight: 600; margin-bottom: 2px; }
.audience li span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.55; }
@media (max-width: 960px) { .hero { padding: 48px 0 44px; } .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.trust-bar { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 24px 20px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.trust-item strong { display: block; color: var(--brand-900); font-weight: 600; font-size: .98rem; margin-bottom: 2px; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); } .trust-item { padding: 16px 4px; } }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.03rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; text-align: left; }
.section-head-row h2 { margin: 0; }
.kicker, .section-head .kicker { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
@media (max-width: 700px) { .section { padding: 56px 0; } .section-head { margin-bottom: 30px; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h2 { font-size: 1.2rem; margin: 0; }
@media (max-width: 600px) { .card { padding: 20px; } }

.ico-box { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.ico-box .icon { width: 24px; height: 24px; }
.ico-box.red { background: var(--red-50); color: var(--red); }

.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s, transform .18s; }
.service-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); flex: 1; font-size: .95rem; line-height: 1.6; margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); font-size: .92rem; }
.more .icon { width: 16px; height: 16px; transition: transform .15s; }
.service-card:hover .more .icon, .article-row:hover .more .icon { transform: translateX(3px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; text-align: center; padding: 0 16px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand); border: 2px solid var(--brand); font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
            display: grid; place-items: center; margin: 0 auto 16px; position: relative; z-index: 1; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: calc(50% + 36px); right: calc(-50% + 36px); border-top: 2px dashed var(--brand-100); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ico-box { width: 44px; height: 44px; margin: 0; }
.contact-list .ico-box .icon { width: 21px; height: 21px; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.contact-list strong, .contact-list a { font-weight: 600; color: var(--brand-900); text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }
.cta-card { background: linear-gradient(140deg, var(--brand-900), var(--brand-700)); color: #c9d7e8; border-radius: var(--radius-lg); padding: 44px; }
.cta-card h2 { color: #fff; }
.cta-card .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 600px) { .cta-card { padding: 30px 22px; } }
.cta { background: linear-gradient(140deg, var(--brand-900), var(--brand-700)); color: #c9d7e8; border-radius: var(--radius-lg); padding: 32px;
       display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #a9bad0; padding: 60px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.site-footer a { color: #dbe5f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.logo-tile { background: #fff; border-radius: 12px; padding: 7px 9px; display: grid; place-items: center; flex: none; }
.logo-tile img { height: 44px; width: auto; }
.footer-brand strong { color: #fff; display: block; line-height: 1.35; font-weight: 600; text-wrap: balance; }
.footer-brand small { color: #8fb3dc; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.f-item { display: flex; gap: 10px; align-items: flex-start; }
.f-item .icon { width: 17px; height: 17px; color: #8fb3dc; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding: 20px 0; font-size: .82rem; color: #7f95ae;
                 display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 8px; background: var(--red); color: #fff;
            padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px rgba(217, 16, 30, .32); }
.fab-call:hover { color: #fff; background: var(--red-700); }
.fab-call .icon { width: 18px; height: 18px; }
@media (max-width: 700px) { .fab-call { display: inline-flex; } .site-footer { padding-bottom: 64px; } }

/* ---------- Trang con ---------- */
.page-head { background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); padding: 36px 0 34px; }
.page-head .row { display: flex; align-items: center; gap: 18px; }
.page-head .ico-box { margin: 0; background: #fff; border: 1px solid var(--brand-100); }
.page-head h1 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin: 0; }
.page-head .sub { color: var(--muted); margin: 8px 0 0; max-width: 720px; font-size: 1.03rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.page { padding: 40px 0 88px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.layout > .stack, .layout > aside { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* ---------- Đăng ký / đăng nhập ---------- */
.auth-wrap { padding: 44px 0 88px; }
.auth { display: grid; grid-template-columns: 400px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); max-width: 1060px; margin: 0 auto; }
.auth.narrow { max-width: 880px; grid-template-columns: 360px minmax(0, 1fr); }
.auth-side { background: linear-gradient(160deg, var(--brand-900), var(--brand-700)); color: #cbd8e8; padding: 40px 36px; }
.auth-side .logo-tile { margin-bottom: 26px; display: inline-grid; }
.auth-side .logo-tile img { height: 56px; }
.auth-side h2 { color: #fff; font-size: 1.5rem; }
.auth-side ol, .auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.auth-side .n { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: .85rem; display: grid; place-items: center; flex: none; }
.auth-side li strong { color: #fff; display: block; font-weight: 600; }
.auth-side li > .icon { color: #8fd3aa; margin-top: 3px; }
.auth-side .contact { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; display: grid; gap: 8px; }
.auth-side .contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.auth-side .contact .icon { width: 16px; height: 16px; color: #8fb3dc; }
.auth-main { padding: 40px; }
.auth-main h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-main > .muted { margin-bottom: 26px; }
@media (max-width: 880px) {
  .auth, .auth.narrow { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px; }
  .auth-side .hide-sm { display: none; }
  .auth-main { padding: 28px 20px; }
}

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-section { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); grid-column: 1 / -1; }
.field { margin-bottom: 18px; min-width: 0; }
.field .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--brand-900); }
.field .req { color: var(--red); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field textarea {
  width: 100%; font: inherit; font-size: .97rem; padding: 12px 14px; border: 1.5px solid #d6dfea; border-radius: 10px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8ba; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38, 101, 166, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.help { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--bad); font-size: .86rem; font-weight: 500; }
.errorlist.nonfield { background: var(--bad-50); border: 1px solid var(--bad-line); padding: 10px 14px; border-radius: 10px; margin: 0 0 18px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #d6dfea; border-radius: 10px; cursor: pointer;
              font-weight: 500; font-size: .93rem; background: #fff; transition: border-color .15s, background-color .15s; }
.check-card:hover { border-color: var(--brand-100); background: var(--brand-50); }
.check-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-900); }
.check-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Thông báo, nhãn, bảng ---------- */
.messages { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: .95rem; }
.alert .icon { margin-top: 2px; }
.alert strong { display: block; }
.alert p { margin: 2px 0 0; }
.alert-success { background: var(--ok-50); border-color: var(--ok-line); color: #0e5c2c; }
.alert-warning { background: var(--warn-50); border-color: var(--warn-line); color: #6f4805; }
.alert-error { background: var(--bad-50); border-color: var(--bad-line); color: #8e1b22; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-900); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pending { background: var(--warn-50); color: var(--warn); }
.badge.approved { background: var(--ok-50); color: var(--ok); }
.badge.rejected { background: var(--bad-50); color: var(--bad); }
.table-wrap { overflow-x: auto; margin: 0 -26px -26px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-align: left; padding: 11px 26px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 26px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .table-wrap { margin: 0 -20px -20px; } th, td { padding-left: 20px; padding-right: 20px; } }
.info-list { margin: 0; display: grid; gap: 14px; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font-size: .78rem; color: var(--muted); font-weight: 500; }
.info-list dd { margin: 0; font-weight: 600; color: var(--brand-900); overflow-wrap: anywhere; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tile-link { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--brand-100); border-radius: 12px; text-decoration: none;
             color: var(--brand-900); background: var(--brand-50); font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.tile-link:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--brand-900); }
.tile-link .ico-box { margin: 0; width: 44px; height: 44px; border-radius: 11px; background: #fff; }
.tile-link .ico-box .icon { width: 22px; height: 22px; }
.tile-link small { display: block; color: var(--brand); font-weight: 500; font-size: .82rem; }
.tile-link > .icon { margin-left: auto; color: var(--brand); width: 18px; height: 18px; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty .ico-box { margin: 0 auto 14px; }
.side-contact { display: grid; gap: 10px; }
.side-contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--brand-900); font-size: .95rem; }
.side-contact a:hover { color: var(--brand); }
.side-contact a span { min-width: 0; }
.side-contact .icon { color: var(--brand); width: 18px; height: 18px; }
aside .card h3 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 12px; }

/* ---------- Kiến thức / bài viết ---------- */
.chip { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--brand); background: var(--brand-50); padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.meta > * + *:not(.chip)::before { content: "·"; margin-right: 12px; color: #a3b0c0; }
.meta .chip + *::before { content: none; }
.article-heading { font-family: var(--serif); font-weight: 600; color: var(--brand-900); line-height: 1.35; letter-spacing: -.003em; }
.excerpt { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; }
.cover-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-50); border-radius: var(--radius); }
.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cover-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--brand); font-weight: 600; font-size: .9rem;
            background: radial-gradient(circle at 30% 20%, #fff, var(--brand-50) 60%, var(--brand-100)); text-align: center; padding: 12px; }
.cover-ph img { height: 44px; width: auto; opacity: .9; }

.news-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.news-lead { display: block; text-decoration: none; color: inherit; }
.news-lead .cover-wrap { margin-bottom: 18px; box-shadow: var(--shadow); }
.news-lead .article-heading { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 10px; }
.news-lead:hover .article-heading, .news-list a:hover .article-heading, .article-row:hover .article-heading, .article-card:hover .article-heading { color: var(--brand); }
.news-lead:hover .cover { transform: scale(1.03); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { display: block; padding: 20px 0; text-decoration: none; color: inherit; }
.news-list li:first-child a { padding-top: 0; }
.news-list .article-heading { font-size: 1.12rem; margin: 0 0 6px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; gap: 28px; } }

.article-rows { display: grid; gap: 0; }
.article-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.article-row:first-child { padding-top: 4px; }
.article-row .article-heading { font-size: 1.32rem; margin: 0 0 8px; }
.article-row .excerpt { margin-bottom: 12px; }
.article-row:hover .cover { transform: scale(1.03); }
@media (max-width: 700px) {
  .article-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .article-row .article-heading { font-size: 1.18rem; }
}

.article-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s; }
.article-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); color: inherit; }
.article-card .cover-wrap { border-radius: 0; }
.article-card .body { padding: 18px 20px 20px; }
.article-card .article-heading { font-size: 1.02rem; margin: 0; }

.search { display: flex; gap: 8px; margin-top: 22px; max-width: 560px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: .96rem; padding: 10px 14px; border: 1.5px solid #d6dfea; border-radius: 10px; background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38, 101, 166, .12); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
       color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .9rem; }
.tab:hover { border-color: var(--brand-100); color: var(--brand); }
.tab.active { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.count { font-size: .72rem; font-weight: 600; background: rgba(15, 42, 71, .07); padding: 1px 8px; border-radius: 999px; }
.tab.active .count { background: rgba(255, 255, 255, .2); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }

.article-page { padding-top: 32px; }
.article-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.25; margin: 0 0 16px; }
.article-meta { font-size: .86rem; }
.article-summary { font-size: 1.15rem; color: var(--text-2); line-height: 1.7; margin: 8px 0 0; padding-left: 18px; border-left: 3px solid var(--red); }
.legal-box { display: flex; flex-wrap: wrap; gap: 14px 40px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 16px 20px; }
.legal-box small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.legal-box strong { color: var(--brand-900); font-weight: 600; }
.article-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 1.065rem; line-height: 1.85; color: var(--text); overflow-wrap: break-word; max-width: 740px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose h3 { font-family: var(--serif); font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--brand-900); font-weight: 600; }
.prose a { color: var(--brand); }
.prose img { height: auto; border-radius: 10px; margin: 0 auto; }
.prose figure { margin: 1.8em 0; text-align: center; }
.prose figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; font-style: italic; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--brand-50); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; color: var(--brand-900); font-size: 1rem; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; line-height: 1.55; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: inherit; white-space: normal; }
.prose th { background: var(--brand-50); color: var(--brand-900); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0 1.2em; }
.prose hr + p em { font-size: .88rem; color: var(--muted); line-height: 1.6; display: block; }
@media (max-width: 700px) { .prose { font-size: 1.02rem; } .prose table { display: block; overflow-x: auto; } }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-list, .side-news { list-style: none; padding: 0; margin: 0; }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .94rem; }
.cat-list a:hover { color: var(--brand); }
.side-news li { padding: 12px 0; }
.side-news li:first-child { padding-top: 0; }
.side-news li + li { border-top: 1px solid var(--line); }
.side-news a { display: block; text-decoration: none; color: var(--brand-900); font-family: var(--serif); font-weight: 600; line-height: 1.45; font-size: .98rem; }
.side-news a:hover { color: var(--brand); }
.side-news time { font-size: .78rem; color: var(--muted); }
