/* Kế toán Hà Thành – giao diện chính. Màu thương hiệu lấy từ logo: xanh #2665a6, đỏ #f0031c. */
:root {
  --brand: #2665a6; --brand-700: #1b4d82; --brand-900: #0e2a4a;
  --brand-50: #f0f6fc; --brand-100: #dbe8f6;
  --red: #d9101e; --red-700: #b30d18;
  --text: #14243a; --muted: #5a6b80; --line: #e3e9f1; --bg: #f7f9fc; --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: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 74, .06);
  --shadow: 0 1px 2px rgba(14, 42, 74, .05), 0 10px 28px rgba(14, 42, 74, .08);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::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(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
       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); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--brand-900); margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.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, .45); outline-offset: 2px; }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--brand-900); color: #b9c8db; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: #8fb3dc; }
.topbar .group { display: flex; gap: 20px; 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: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 50px; width: auto; }
.brand-name { display: block; font-weight: 800; color: var(--red); font-size: 1.18rem; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.brand-tag { display: block; font-size: .68rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .09em; margin-top: 4px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav .link { font: inherit; font-size: .95rem; font-weight: 500; color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav .link:hover { background: var(--brand-50); color: var(--brand); }
.nav form { margin: 0; }
.nav .sep { width: 1px; height: 24px; 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(14, 42, 74, .08); }
  .site-header.open .nav { display: flex; }
  .nav .link { padding: 12px; text-align: left; width: 100%; }
  .nav .sep { width: auto; height: 1px; margin: 6px 0; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 400px) { .brand img { height: 42px; } .brand-name { font-size: 1.02rem; } .brand-tag { font-size: .6rem; } }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .96rem; 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, transform .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(38, 101, 166, .25); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(217, 16, 30, .22); }
.btn-accent:hover { background: var(--red-700); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand-100); }
.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; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px;
        background: radial-gradient(900px 480px at 88% -8%, var(--brand-100), transparent 62%), linear-gradient(180deg, var(--brand-50), var(--bg)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
               background-image: radial-gradient(rgba(38, 101, 166, .12) 1px, transparent 1px); background-size: 22px 22px;
               mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
           color: var(--brand-900); background: #fff; border: 1px solid var(--brand-100); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.hero h1 .hl { color: var(--brand); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--brand-900); font-weight: 500; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--ok); width: 18px; height: 18px; }
@media (max-width: 960px) { .hero { padding: 44px 0 56px; } .hero .container { grid-template-columns: 1fr; gap: 40px; } }

.preview { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px rgba(14, 42, 74, .14); padding: 22px 22px 14px; }
.preview-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview-head img { height: 42px; width: auto; }
.preview-head strong { display: block; color: var(--brand-900); line-height: 1.2; }
.preview-head small { color: var(--muted); font-size: .8rem; }
.preview-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-weight: 500; font-size: .94rem; }
.preview-row:last-of-type { border-bottom: 0; }
.preview-row .ico-box { width: 38px; height: 38px; border-radius: 10px; margin: 0; }
.preview-row .ico-box .icon { width: 20px; height: 20px; }
.preview-row .badge { margin-left: auto; }
.preview-note { font-size: .75rem; color: var(--muted); text-align: center; margin: 6px 0 0; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
@media (max-width: 700px) { .section { padding: 52px 0; } .section-head { margin-bottom: 32px; } }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 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.15rem; margin: 0; }
@media (max-width: 600px) { .card { padding: 20px; } }

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

.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); color: inherit; }
.service-card p { color: var(--muted); flex: 1; font-size: .96rem; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); font-size: .94rem; }
.more .icon { width: 16px; height: 16px; transition: transform .15s; }
.service-card:hover .more .icon { transform: translateX(4px); }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico-box { margin: 0; width: 48px; height: 48px; border-radius: 12px; }
.feature .ico-box .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 4px; font-size: 1.02rem; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }

.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem;
            display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 8px var(--brand-50); position: relative; z-index: 1; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 40px); right: calc(-50% + 40px); border-top: 2px dashed var(--brand-100); }
}

.cta { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; border-radius: 22px; padding: 48px;
       display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: #c6d5e7; margin: 0; max-width: 520px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 600px) { .cta { padding: 30px 22px; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico-box { width: 46px; height: 46px; border-radius: 12px; margin: 0; }
.contact-list .ico-box .icon { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.contact-list strong, .contact-list a { font-weight: 600; color: var(--brand-900); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #b3c3d7; padding: 60px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.site-footer a { color: #dce7f4; 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.3; text-wrap: balance; }
.footer-brand small { color: #8fb3dc; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.f-item { display: flex; gap: 10px; align-items: flex-start; }
.f-item .icon { width: 18px; height: 18px; color: #8fb3dc; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding: 20px 0; font-size: .84rem; color: #8399b3;
                 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: 13px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: 0 12px 28px rgba(217, 16, 30, .35); }
.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), var(--bg)); 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.5rem, 3vw, 2.1rem); margin: 0; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; max-width: 700px; }
.crumbs { font-size: .87rem; 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: 36px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.layout > .stack, .layout > aside { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.prose { font-size: 1rem; }
.prose p { color: var(--text); }

/* ---------- Đăng ký / đăng nhập ---------- */
.auth-wrap { padding: 40px 0 80px; }
.auth { display: grid; grid-template-columns: 400px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; 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: #cfdcec; padding: 40px 36px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; left: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.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.45rem; }
.auth-side ol, .auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.auth-side .n { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; flex: none; }
.auth-side li strong { color: #fff; display: block; }
.auth-side li > .icon { color: #8fd3aa; margin-top: 2px; }
.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; position: relative; z-index: 1; }
.auth-side .contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.auth-side .contact .icon { width: 16px; height: 16px; color: #8fb3dc; }
.auth-main { padding: 40px; }
.auth-main h1 { font-size: 1.7rem; 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: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; 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: .92rem; 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 var(--line); 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, .13); }
.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 var(--line); 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 span { min-width: 0; }
.side-contact a:hover { color: var(--brand); }
.side-contact .icon { color: var(--brand); width: 18px; height: 18px; }

/* ---------- Kiến thức / bài viết ---------- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head-row h2 { margin-bottom: 6px; }
.section-head-row p { margin: 0; }
.chip { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.cover-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-50); }
.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: 700; 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; }
.article-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .18s, transform .18s, border-color .18s; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-100); color: inherit; }
.article-card:hover .cover { transform: scale(1.04); }
.article-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.07rem; line-height: 1.4; margin-bottom: 8px; }
.article-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.article-card .eff { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; font-size: .88rem; margin-top: 12px; }
.article-card .eff .icon { width: 16px; height: 16px; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.article-card.lead h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
             padding: 12px; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s; }
.news-item:hover { box-shadow: var(--shadow); border-color: var(--brand-100); color: inherit; }
.news-item .thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--brand-50); }
.news-item .thumb .cover-ph span { display: none; }
.news-item .thumb .cover-ph img { height: 34px; }
.news-item h3 { font-size: .98rem; line-height: 1.4; margin: 0; }
.news-item .meta { margin-bottom: 6px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news-item { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; } }

.search { display: flex; gap: 8px; margin-top: 20px; max-width: 560px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: .96rem; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(38, 101, 166, .13); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
       color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.tab:hover { border-color: var(--brand-100); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.count { font-size: .75rem; font-weight: 700; background: rgba(14, 42, 74, .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: 28px; }
.article-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.25; margin: 0 0 14px; }
.article-meta { font-size: .88rem; }
.article-summary { font-size: 1.12rem; color: var(--brand-900); font-weight: 500; line-height: 1.6; margin: 0; }
.legal-box { display: flex; flex-wrap: wrap; gap: 14px 40px; background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 20px; }
.legal-box small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.legal-box strong { color: var(--brand-900); }
.article-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 1.04rem; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--brand); }
.prose img { height: auto; border-radius: 10px; margin: 0 auto; }
.prose figure { margin: 1.6em 0; text-align: center; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--brand-50); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; color: var(--brand-900); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: inherit; }
.prose th { background: var(--brand-50); color: var(--brand-900); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.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); font-weight: 500; }
.cat-list a:hover { color: var(--brand); }
.side-news li { padding: 10px 0; }
.side-news li + li { border-top: 1px solid var(--line); }
.side-news a { display: block; text-decoration: none; color: var(--brand-900); font-weight: 600; line-height: 1.45; font-size: .94rem; }
.side-news a:hover { color: var(--brand); }
.side-news time { font-size: .8rem; color: var(--muted); }
