/* =========================================================
   Tài Chính Công — giao diện 2026
   Một file CSS duy nhất, không phụ thuộc Bootstrap.
   ========================================================= */

:root {
    --navy-950: #071528;
    --navy-900: #0b1f3a;
    --navy-800: #12305a;
    --navy-700: #1d4373;
    --navy-100: #e6edf6;
    --navy-50:  #f3f6fb;

    --gold-600: #b5862c;
    --gold-500: #c99a3b;
    --gold-100: #f6ecd6;

    --ink:      #0f1b2d;
    --ink-2:    #334359;
    --muted:    #5b6b80;
    --line:     #dde4ee;
    --line-2:   #edf1f6;
    --bg:       #f5f7fa;
    --surface:  #ffffff;

    --danger:   #b3261e;
    --danger-bg:#fdf0ef;
    --ok:       #13795b;

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
    --shadow:    0 6px 24px -8px rgba(11, 31, 58, .18), 0 2px 6px rgba(11, 31, 58, .06);
    --shadow-lg: 0 24px 60px -20px rgba(7, 21, 40, .45);

    --header-h: 68px;
    --container: 1200px;
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --z-header: 50;
    --z-menu: 60;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--navy-900); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: #d4a74b; color: var(--navy-950); box-shadow: 0 6px 18px -6px rgba(201, 154, 59, .7); }

.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }

.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .1); }

.btn-outline { border-color: var(--line); background: var(--surface); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }

.spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(11, 31, 58, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(11, 31, 58, .88); backdrop-filter: saturate(140%) blur(10px); }
}

.header-inner {
    max-width: 1440px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand img { height: 46px; width: 46px; }
.brand:hover { color: #fff; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; color: #fff; }
.brand-text strong { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand-text span { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #c9d3e0; white-space: nowrap; }

.main-nav { margin-left: auto; min-width: 0; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }

.header-cta { flex: none; }
.header-cta .btn { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1439px) {
    .site-header .brand-text span { display: none; }
    .main-nav a { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 1320px) {
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        z-index: var(--z-menu);
        background: var(--navy-900);
        border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: var(--shadow-lg);
        padding: 8px 16px 20px;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
    .main-nav .nav-mobile-cta { display: block; margin-top: 14px; }
}
.nav-mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background-color: var(--navy-950);
    background-image:
        linear-gradient(100deg, rgba(7, 21, 40, .96) 0%, rgba(7, 21, 40, .86) 42%, rgba(7, 21, 40, .55) 100%),
        url(../img/hero-960.webp);
    background-size: cover;
    background-position: center 30%;
    overflow: hidden;
}
@media (min-width: 961px) {
    .hero {
        background-image:
            linear-gradient(100deg, rgba(7, 21, 40, .96) 0%, rgba(7, 21, 40, .86) 42%, rgba(7, 21, 40, .5) 100%),
            url(../img/hero.webp);
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: center;
    padding-block: 72px 88px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(201, 154, 59, .14);
    border: 1px solid rgba(201, 154, 59, .35);
    color: #f0d49a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero h1 {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.hero h1 em { font-style: normal; color: #f0d49a; }

.hero-lead {
    margin-top: 18px;
    max-width: 56ch;
    font-size: 17.5px;
    color: rgba(255, 255, 255, .8);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 32px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .78);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--gold-500); }

/* ---------- Lookup card (in bản kê mã vạch) ---------- */
.lookup-card {
    position: relative;
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}
.lookup-card::before {
    content: "";
    position: absolute;
    inset: 0 24px auto 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--gold-500);
}

.lookup-head { display: flex; gap: 14px; align-items: flex-start; }
.lookup-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px; flex: none;
    border-radius: 10px;
    background: var(--navy-50);
    color: var(--navy-800);
}
.lookup-head h2 { font-size: 19px; font-weight: 700; }
.lookup-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
    margin-top: 22px;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .hint a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }

.input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 15.5px;
    font-variant-numeric: tabular-nums;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: #93a1b3; }
.input:hover { border-color: #c4cfdd; }
.input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(29, 67, 115, .15); }
.was-validated .input:invalid { border-color: var(--danger); background: var(--danger-bg); }

.lookup-submit { margin-top: 20px; }
.lookup-submit .btn { min-height: 50px; font-size: 16px; }

.lookup-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 13.5px;
    color: var(--muted);
}
.lookup-foot a { font-weight: 700; color: var(--navy-900); white-space: nowrap; }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 56px; }
}
@media (max-width: 600px) {
    .hero-inner { gap: 24px; padding-block: 28px 48px; }
    .hero h1 { font-size: 27px; margin-top: 14px; }
    .hero-lead, .hero-points { display: none; }
    .hero-actions { margin-top: 18px; }
    .hero-actions .btn { flex: 1 1 0; padding-inline: 12px; font-size: 14px; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .lookup-card { padding: 22px 18px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-2); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-600);
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.015em; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 68ch; }

.sub-head { margin: 56px 0 20px; font-size: 21px; font-weight: 700; }

@media (max-width: 720px) {
    .section { padding-block: 60px; }
    .section-head { margin-bottom: 28px; }
}

/* ---------- Service overview ---------- */
.services-overview { margin-top: -44px; position: relative; z-index: 2; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.service-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px 24px;
    color: var(--ink);
    border-right: 1px solid var(--line-2);
    transition: background-color .2s ease;
}
.service-item:last-child { border-right: 0; }
.service-item:hover { background: var(--navy-50); color: var(--ink); }
.service-item .svc-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--navy-900);
    color: var(--gold-500);
}
.service-item h3 { font-size: 16.5px; font-weight: 700; margin-top: 6px; }
.service-item p { font-size: 14.5px; color: var(--muted); }
.service-item .more {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--navy-700);
}
.service-item:hover .more .ic { transform: translateX(3px); }
.service-item .more .ic { transition: transform .2s ease; }

@media (max-width: 960px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-item:nth-child(2) { border-right: 0; }
    .service-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 560px) {
    .services-overview { margin-top: -28px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-item { border-right: 0; border-bottom: 1px solid var(--line-2); }
    .service-item:last-child { border-bottom: 0; }
}

/* ---------- Product intro (2 columns) ---------- */
.product {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
}
.product .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.product .prose p + p { margin-top: 12px; }

.feature-list { list-style: none; display: grid; gap: 2px; }
.feature-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-2);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .ic { margin-top: 3px; color: var(--ok); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
    padding: 7px 12px;
    border-radius: 6px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    font-size: 14px;
    color: var(--ink-2);
}

.panel-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 24px;
}
.panel + .panel-title { margin-top: 28px; }

@media (max-width: 960px) {
    .product { grid-template-columns: 1fr; gap: 28px; }
    .product .section-head { position: static; }
}

/* ---------- Tabs ---------- */
.tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: 10px;
}
.tab {
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab:hover { color: var(--navy-900); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.tab-caption { margin: -8px 0 20px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 560px) {
    .tabs { display: flex; }
    .tab { flex: 1 1 auto; }
}

/* ---------- Pricing ---------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.price-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.price-card:hover { border-color: #c4cfdd; box-shadow: var(--shadow); transform: translateY(-2px); }

.price-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-600);
}
.price-value {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--navy-900);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.price-value small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.price-specs { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.price-specs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 14.5px;
}
.price-specs li span { color: var(--muted); }
.price-specs li strong { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.price-note { margin-top: 16px; font-size: 14px; color: var(--navy-700); }
.price-warn {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 13.5px;
}
.price-card .btn { margin-top: auto; }
.price-card .price-cta { margin-top: 20px; padding-top: 0; }
.price-card .price-cta-spacer { flex: 1; }

.callout {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--navy-900);
    color: rgba(255, 255, 255, .85);
}
.callout p { max-width: 75ch; font-size: 15.5px; }
.callout strong { color: #fff; }

@media (max-width: 960px) {
    .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .price-grid { grid-template-columns: 1fr; }
}

/* ---------- Downloads ---------- */
.dl-group + .dl-group { margin-top: 36px; }
.dl-group h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.dl-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.dl-list.dl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dl-item:hover { border-color: #c4cfdd; box-shadow: var(--shadow-sm); color: var(--ink); }
.dl-item .ftype {
    display: grid; place-items: center;
    width: 42px; height: 42px; flex: none;
    border-radius: 8px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    color: var(--navy-800);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.dl-item.primary { padding-block: 18px; }
.dl-item.primary .ftype { width: 48px; height: 48px; background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-500); }
.dl-item .dl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl-item .dl-text strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.dl-item .dl-text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-item > .ic { color: var(--muted); transition: color .2s ease, transform .2s ease; }
.dl-item:hover > .ic { color: var(--navy-800); transform: translateY(2px); }

@media (max-width: 960px) {
    .dl-list.dl-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .dl-list, .dl-list.dl-3 { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.contact-info { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact-info h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.contact-row { display: flex; gap: 14px; }
.contact-row .ic { margin-top: 2px; color: var(--gold-600); }
.contact-row dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.contact-row dd { margin: 2px 0 0; font-size: 15.5px; color: var(--ink); }
.contact-row dd a { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.contact-row dd a:hover { color: var(--navy-700); text-decoration: underline; }
.contact-info dl { margin: 0; display: grid; gap: 18px; }
.contact-map { position: relative; min-height: 360px; background: var(--navy-50); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
    .contact { grid-template-columns: 1fr; }
    .contact-info { padding: 26px 22px; }
    .contact-map { min-height: 300px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    align-items: center;
    justify-content: space-between;
    padding-block: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand .brand-text strong { font-size: 17px; }
.footer-brand .brand-text span { font-size: 9.5px; }
.footer-brand .brand-text + span { margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .15); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: #fff; }

/* ---------- Videos page ---------- */
.page-hero {
    background: var(--navy-900);
    color: #fff;
    padding-block: 52px 44px;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.page-hero p { margin-top: 10px; color: rgba(255, 255, 255, .75); max-width: 64ch; font-size: 16.5px; }

.video-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    justify-content: space-between;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip span {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--navy-50);
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.chip:hover { border-color: #b9c6d6; color: var(--navy-900); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip[aria-pressed="true"] span { background: var(--gold-500); color: var(--navy-950); }

.search { position: relative; flex: 0 1 340px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; border-radius: 999px; }
.video-count { margin: 18px 0 20px; font-size: 14px; color: var(--muted); }

.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }

.video-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c4cfdd; }

.vthumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: var(--navy-950);
    overflow: hidden;
    cursor: pointer;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vthumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 21, 40, 0) 45%, rgba(7, 21, 40, .55) 100%), rgba(7, 21, 40, .12);
    transition: background-color .25s ease;
}
.video-card:hover .vthumb img { transform: scale(1.05); }
.video-card:hover .vthumb::after { background-color: rgba(7, 21, 40, 0); }

.vnum {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(7, 21, 40, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.vplay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--navy-900);
    box-shadow: 0 8px 24px -6px rgba(7, 21, 40, .6);
    transform: translate(-50%, -50%) scale(.92);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.vplay .ic { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .vplay { transform: translate(-50%, -50%) scale(1.06); background: var(--gold-500); color: var(--navy-950); }

.vbody { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.vtag {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--gold-100);
    color: #7a5a17;
    font-size: 12px;
    font-weight: 600;
}
.vbody h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(15px * 1.45 * 2);
}
.vmeta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-700);
}
.vmeta .ic { width: 14px; height: 14px; }
.video-card:hover .vmeta { color: var(--navy-900); }

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

@media (max-width: 1180px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
    .search { flex: 1 1 100%; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
}
@media (max-width: 520px) {
    .vgrid { grid-template-columns: 1fr; }
}

/* ---------- Message page (kết quả tra cứu) ---------- */
.msg-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}
.msg-card {
    width: 100%;
    max-width: 520px;
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}
.msg-logo { display: inline-block; margin-bottom: 26px; }
.msg-logo img { height: 36px; width: auto; }
.msg-card .msg-icon {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--danger-bg);
    color: var(--danger);
}
.msg-card h1 { font-size: 20px; font-weight: 700; color: var(--navy-900); }
.msg-card .msg-text { margin-top: 10px; color: var(--danger); font-weight: 600; font-size: 16px; }
.msg-card .msg-help { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ---------- Floating contact widget: đồng bộ màu ---------- */
#arcontactus { font-family: var(--font); }

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .contact-map, #arcontactus, .nav-toggle { display: none !important; }
    body { background: #fff; }
}

/* ---------- Video popup ---------- */
html.modal-open { overflow: hidden; }
.video-modal {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--navy-950);
    color: #fff;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7);
    overflow: hidden;
}
.video-modal[open] { animation: vm-in .22s ease-out; }
.video-modal::backdrop { background: rgba(4, 12, 24, .86); }
@keyframes vm-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.vm-box { display: flex; flex-direction: column; }
.vm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 14px 22px;
}
.vm-heading { min-width: 0; }
.vm-counter { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #f0d49a; }
.vm-head h2 { margin-top: 2px; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.4; }
.vm-close {
    flex: none;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.vm-close:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }

.vm-player {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: calc(100dvh - 32px - 150px);
    margin-inline: auto;
    width: 100%;
    background: #000;
}
.vm-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}
.vm-foot .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.vm-yt { font-size: 14px; color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; }
.vm-yt:hover { color: #fff; }

@media (max-width: 600px) {
    .video-modal { width: 100vw; max-height: 100dvh; border-radius: 0; }
    .vm-head { padding: 12px 12px 10px 16px; }
    .vm-head h2 { font-size: 15px; }
    .vm-yt { display: none; }
    .vm-foot { padding: 12px; }
    .vm-foot .btn { flex: 1; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: #c4cfdd; box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: none;
    width: 10px; height: 10px;
    border-right: 2px solid var(--navy-700);
    border-bottom: 2px solid var(--navy-700);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item summary h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.faq-item p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }
#tien-ich { padding-bottom: 64px; }
