/* xnkvietnam.vn — giao diện cẩm nang xuất khẩu */
:root {
  --ink: #0f1e2e;
  --ink-2: #3b4a5c;
  --muted: #6a7788;
  --line: #e2ded5;
  --paper: #faf8f3;
  --card: #ffffff;
  --sea: #0b5d7a;
  --sea-2: #0e7596;
  --sea-soft: #e3f0f4;
  --navy: #0c2a43;
  --cargo: #e0782f;
  --cargo-soft: #fbeadd;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 30, 46, .06), 0 8px 24px rgba(15, 30, 46, .06);
  --wrap: 1180px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16.5px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-2); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c9d6e2; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav > a, .nav .dd > button { white-space: nowrap; font: inherit; font-size: .94rem; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current] { color: var(--sea); background: var(--sea-soft); }
.nav .cta { background: var(--cargo); color: #fff; margin-left: 8px; }
.nav .cta:hover { background: #c9651f; color: #fff; }
.dd { position: relative; }
.dd-panel { display: none; position: absolute; top: calc(100% + 8px); left: -40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; width: 560px; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { display: grid; }
.dd-panel::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dd-panel a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; }
.dd-panel a:hover { background: var(--sea-soft); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Mã thị trường ---------- */
.code { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 6px; border-radius: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--sea); flex-shrink: 0; }
.code.r-chau-au { background: #274f9e; }
.code.r-chau-my { background: #b33a3a; }
.code.r-chau-a { background: #0b7a63; }
.code.r-chau-uc { background: #c07a12; }
.code.r-trung-dong { background: #6b4aa0; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ffb27a; }
.hero p.sub { color: #c9d6e2; font-size: 1.12rem; max-width: 34em; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div { font-size: .85rem; color: #9fb3c6; }
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; font-weight: 800; }
.routes { position: absolute; right: -40px; bottom: -30px; width: 520px; opacity: .18; pointer-events: none; }

/* ---------- Công cụ ---------- */
.tool { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.tool h2 { font-size: 1.2rem; margin-bottom: 4px; }
.tool .hint { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
select, input[type=text], input[type=tel], input[type=email], textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #cfd6de; border-radius: 10px; background: #fff; color: var(--ink); }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--sea-2); outline-offset: 1px; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; background: var(--sea); color: #fff; }
.btn:hover { background: var(--sea-2); color: #fff; }
.btn.orange { background: var(--cargo); }
.btn.orange:hover { background: #c9651f; }
.btn.ghost { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn.block { width: 100%; }
.tool-result { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; display: none; }
.tool-result.show { display: block; }
.tool-result h3 { font-size: 1rem; margin-bottom: 8px; }
.tool-result ul { margin: 0 0 12px; padding-left: 18px; font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chip { display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); text-decoration: none; }
a.chip:hover { background: var(--sea); color: #fff; }

/* ---------- Khối trang chủ ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.block-head p { color: var(--muted); margin: 0; max-width: 40em; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cargo); margin-bottom: 6px; display: block; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--sea-2); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.card .meta { font-size: .8rem; color: var(--muted); margin-top: auto; }
.card-top { display: flex; align-items: center; gap: 10px; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cargo); }
.region-label { font-size: .8rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 28px 0 10px; }
.region-label:first-child { margin-top: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--cargo); font-size: 1.4rem; display: block; margin-bottom: 6px; }
.steps { padding: 0; margin: 0; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: .92rem; }

/* ---------- Trang chi tiết ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.page-head { padding: 18px 0 28px; border-bottom: 1px solid var(--line); background: #fff; }
.page-head .lead-row { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.page-head .code { height: 36px; min-width: 52px; font-size: .9rem; }
.page-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.answer { background: var(--sea-soft); border-left: 4px solid var(--sea); border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 1.05rem; margin: 18px 0 0; max-width: 60em; }
.answer b { color: var(--sea); display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 64px; align-items: start; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; background: #fff; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f1eee6; font-weight: 700; }
.aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.box h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts { margin: 0; }
.facts div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-size: .93rem; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--sea); }
.sectors { display: grid; gap: 12px; margin: 0 0 1em; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.sector h3 { margin: 0 0 6px; font-size: 1rem; }
.sector ul { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--sea); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 14px; color: var(--ink-2); }
.sources { font-size: .86rem; color: var(--muted); }
.sources ol { padding-left: 1.3em; }
.sources a { word-break: break-word; }
.note { font-size: .85rem; color: var(--muted); background: #f1eee6; border-radius: 10px; padding: 12px 14px; }

/* ---------- Hộp nhận checklist ---------- */
.cta-box { background: var(--navy); color: #fff; border-radius: 18px; padding: 28px; margin: 36px 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.cta-box h2 { color: #fff; margin-bottom: 6px; font-size: 1.35rem; }
.cta-box p { color: #c9d6e2; margin: 0; }
.cta-box .btn { justify-self: end; }
.side-cta { background: var(--cargo-soft); border-color: #f1cfb3; }
.side-cta h3 { color: #a14d12; }
.side-cta p { font-size: .9rem; margin-bottom: 12px; }

/* ---------- Form ---------- */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 4px 0 14px; }
.checks label, .consent { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.checks input, .consent input { margin-top: 5px; accent-color: var(--sea); }
.consent { color: var(--ink-2); font-size: .85rem; margin: 6px 0 16px; }
.form-msg { margin-top: 12px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b33a3a; }

/* ---------- Danh sách bài ---------- */
.list-head { padding: 28px 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.list-head p { color: var(--ink-2); max-width: 44em; margin: 0; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cat-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.cat-tabs a[aria-current], .cat-tabs a:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: #a9bacb; padding: 48px 0 24px; font-size: .92rem; margin-top: 0; }
.site-foot a { color: #dfe8f0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand .brand-name small { color: #9fb3c6; }

/* ---------- Nút nổi ---------- */
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .dd-panel { position: static; display: grid; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 8px; grid-template-columns: 1fr 1fr; }
  .float-cta { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box .btn { justify-self: start; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head .wrap { gap: 12px; }
  .brand-name small { display: none; }
  .topbar { display: none; }
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .lead-form .row, .checks { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 44px 0; }
  .tool, .lead-form { padding: 20px; }
}
@media print {
  .site-head, .topbar, .site-foot, .aside, .cta-box, .float-cta { display: none; }
  .layout { display: block; }
}

/* =========================================================
   Lớp thẩm mỹ: ảnh, banner, hiệu ứng (v2)
   ========================================================= */
/* Hero có ảnh */
.hero { min-height: 620px; display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 22s ease-out forwards; }
.hero.has-img::before { background-image: linear-gradient(90deg, rgba(8,26,43,.94) 0%, rgba(8,26,43,.78) 42%, rgba(8,26,43,.25) 100%); background-size: auto; mask-image: none; z-index: 1; }
.hero.has-img .wrap, .hero.has-img .routes { z-index: 2; }
.hero.has-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(8,26,43,.6)); z-index: 1; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero .tool { animation: rise 1s .3s cubic-bezier(.2,.7,.2,1) both; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-stats b { color: #ffb27a; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Dải hiệp định chạy ngang */
.marquee { background: #081a2b; color: #cfe0ee; display: flex; align-items: center; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.marquee-label { flex-shrink: 0; padding: 14px 20px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffb27a; background: #0c2a43; position: relative; z-index: 1; box-shadow: 12px 0 18px #081a2b; }
.marquee-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-row { display: flex; gap: 44px; width: max-content; animation: slide 38s linear infinite; padding: 14px 0; }
.marquee-row span { font-weight: 800; letter-spacing: .04em; font-size: .95rem; white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.marquee-row span::after { content: '◆'; font-size: .5rem; color: var(--cargo); }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Thẻ có ảnh */
.card.media { padding: 0; overflow: hidden; gap: 0; }
.card.media .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0c2a43, #0b5d7a 60%, #e0782f); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.thumb.no-img::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 16px 16px; }
a.card.media:hover .thumb img { transform: scale(1.07); }
.card.media .card-top .code { box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* Thẻ chứng nhận */
.card.cert { position: relative; padding: 22px; }
.card.cert .ico { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--sea-soft); stroke: var(--sea); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, stroke .2s; }
.card.cert .arrow { position: absolute; right: 18px; top: 20px; color: var(--muted); transition: transform .2s, color .2s; }
a.card.cert:hover .ico { background: var(--sea); stroke: #fff; }
a.card.cert:hover .arrow { transform: translateX(4px); color: var(--cargo); }

/* Dòng thời gian quy định */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.tl-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--sea); transition: transform .2s, box-shadow .2s; }
.tl-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tl-item.next { border-top-color: var(--cargo); }
.tl-item.now { border-top-color: #c0392b; background: linear-gradient(#fff, #fff7f1); }
.tl-date { font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.tl-state { position: absolute; top: 16px; right: 14px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--sea-soft); color: var(--sea); }
.tl-item.next .tl-state { background: var(--cargo-soft); color: #a14d12; }
.tl-item.now .tl-state { background: #c0392b; color: #fff; animation: pulse 2s infinite; }
.tl-text { color: var(--ink-2); font-size: .9rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(192,57,43,.15); } }

/* Ô chuyên mục có ảnh */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; min-height: 260px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; background: var(--navy) var(--bg) center / cover no-repeat; isolation: isolate; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,43,.05) 20%, rgba(8,26,43,.9)); z-index: -1; transition: background .3s; }
.tile.no-img { background-image: linear-gradient(135deg, #0c2a43, #0b5d7a); }
.tile b { font-size: 1.4rem; }
.tile span:not(.tile-count) { font-size: .88rem; color: #d7e3ee; }
.tile-count { position: absolute; top: 16px; left: 16px; background: var(--cargo); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.tile:hover { color: #fff; }
.tile:hover::before { background: linear-gradient(180deg, rgba(11,93,122,.15) 10%, rgba(8,26,43,.95)); }

/* Banner đầu trang */
.page-head.banner, .list-head { position: relative; background: var(--navy) var(--bg, none) center / cover no-repeat; color: #fff; border-bottom: 0; padding: 8px 0 44px; isolation: isolate; overflow: hidden; }
.page-head.banner::before, .list-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,26,43,.95) 0%, rgba(8,26,43,.8) 55%, rgba(8,26,43,.45) 100%); }
.list-head::after, .page-head.no-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-head.banner h1, .list-head h1 { color: #fff; max-width: 22em; }
.page-head.banner .page-meta { color: #b9cad9; }
.page-head.banner .tag, .list-head .tag { color: #ffb27a; }
.list-head p { color: #c9d6e2; }
.page-head.banner .crumbs, .list-head .crumbs { color: #9fb3c6; padding: 18px 0 14px; }
.page-head.banner .crumbs a, .list-head .crumbs a { color: #cfe0ee; }
.page-head.banner + .wrap .answer { margin-top: -26px; position: relative; background: #fff; border-left-color: var(--cargo); box-shadow: var(--shadow); }
.page-head.banner + .wrap .answer b { color: var(--cargo); }
.list-head .cat-tabs a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #e6eef5; }
.list-head .cat-tabs a[aria-current], .list-head .cat-tabs a:hover { background: var(--cargo); border-color: var(--cargo); color: #fff; }

/* Hiện dần khi cuộn */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.prose h2 { position: relative; }
.prose h2::before { content: ''; position: absolute; left: -18px; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: var(--cargo); }

@media (max-width: 1024px) { .timeline, .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .timeline, .tiles { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .tile { min-height: 200px; }
  .prose h2::before { display: none; }
  .marquee-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v3 — Sang, nhiều màu, tin cậy, tối ưu di động
   ========================================================= */
:root {
  --gold: #d9a441; --gold-2: #f3c96b; --teal: #12a594; --violet: #6b4aa0; --rose: #d9485f;
  --grad-warm: linear-gradient(120deg, #e0782f 0%, #f0a13c 55%, #f3c96b 100%);
  --grad-sea: linear-gradient(120deg, #0b5d7a 0%, #12a594 100%);
  --grad-lux: linear-gradient(120deg, #0c2a43 0%, #123c5e 45%, #0b5d7a 100%);
  --shadow-lg: 0 2px 4px rgba(15,30,46,.04), 0 18px 48px -12px rgba(15,30,46,.22);
  --bnav-h: 0px;
}
body { background: #f7f5f0; }
::selection { background: #ffd9b8; }

/* Thanh tiến độ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; background: var(--grad-warm); transform-origin: 0 50%; transform: scaleX(0); }

/* Header kính mờ */
.site-head { transition: box-shadow .3s, background .3s; }
.site-head.scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 6px 24px -10px rgba(15,30,46,.25); }
.nav { order: 2; }
.search-btn { order: 3; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .88rem; color: var(--muted); background: #f1efe9; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px 7px 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.search-btn:hover { border-color: var(--sea-2); background: #fff; }
.search-btn svg, .bnav svg, .share svg, .trust-list svg, .pillar svg, .secure svg, .to-top svg, .search-field svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-btn kbd { font: inherit; font-size: .72rem; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.menu-btn { order: 4; }
.nav .cta, .btn.orange { background: var(--grad-warm); background-size: 160% 100%; transition: background-position .4s, transform .2s, box-shadow .2s; box-shadow: 0 8px 20px -8px rgba(224,120,47,.7); position: relative; overflow: hidden; }
.nav .cta:hover, .btn.orange:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(224,120,47,.8); }
.btn.orange::after, .nav .cta::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s infinite 1.5s; }
@keyframes shine { 0% { left: -60%; } 18%, 100% { left: 130%; } }
.btn { transition: transform .2s, box-shadow .2s, background .2s; }
.btn:not(.orange):not(.ghost) { background: var(--grad-sea); box-shadow: 0 8px 20px -10px rgba(11,93,122,.8); }
.btn:active { transform: scale(.98); }

/* Chữ chuyển màu */
.grad { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad-warm); border-radius: 2px; }
.block-head h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

/* Hero sang hơn */
.hero { background: radial-gradient(1200px 600px at 85% 20%, rgba(18,165,148,.28), transparent 60%), radial-gradient(900px 500px at 10% 110%, rgba(224,120,47,.25), transparent 60%), var(--grad-lux); }
.hero h1 em { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-badges span { font-size: .82rem; font-weight: 600; color: #e6f0f7; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero .tool { position: relative; border: 0; }
.hero .tool::before { content: ''; position: absolute; inset: -2px; border-radius: 20px; padding: 2px; background: conic-gradient(from var(--ang, 0deg), #e0782f, #f3c96b, #12a594, #0b5d7a, #e0782f); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.hero .tool h2 { font-size: 1.3rem; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; animation: float 14s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(30px, -24px) scale(1.08); } }

/* Nền khối có màu */
section.block.alt { background: radial-gradient(700px 300px at 0% 0%, rgba(18,165,148,.08), transparent 70%), radial-gradient(700px 300px at 100% 100%, rgba(224,120,47,.08), transparent 70%), #fff; }

/* Thẻ: ánh sáng theo chuột + viền màu */
.card, .tl-item, .pillar { position: relative; isolation: isolate; }
.card::after, .tl-item::after, .pillar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(18,165,148,.12), transparent 45%); z-index: 1; }
.card:hover::after, .tl-item:hover::after, .pillar:hover::after { opacity: 1; }
a.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.card.media .thumb::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(8,26,43,.35)); }
.card.cert { border-top: 3px solid transparent; }
.card.cert:has(.ico) { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--line), var(--line)) border-box; }
/* màu theo nhóm chứng nhận */
.card.cert .ico { background: #e3f0f4; stroke: #0b5d7a; }
a.card.cert:nth-child(4n+2) .ico { background: #e3f6f2; stroke: #0f8a7b; }
a.card.cert:nth-child(4n+3) .ico { background: #fbeadd; stroke: #c0601f; }
a.card.cert:nth-child(4n+4) .ico { background: #efe9f7; stroke: #6b4aa0; }
a.card.cert:hover .ico { background: var(--grad-sea); stroke: #fff; }

/* Khối tin cậy */
.trust { background: radial-gradient(900px 400px at 100% 0%, rgba(217,164,65,.12), transparent 60%), radial-gradient(900px 400px at 0% 100%, rgba(18,165,148,.1), transparent 60%), #fbfaf6; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--grad-lux); color: #fff; border-radius: 18px; padding: 24px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.stat::before { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(243,201,107,.35), transparent 70%); }
.stat:nth-child(2) { background: linear-gradient(120deg, #0b5d7a, #12a594); }
.stat:nth-child(3) { background: linear-gradient(120deg, #7a3b12, #e0782f); }
.stat:nth-child(4) { background: linear-gradient(120deg, #3c2a6b, #6b4aa0); }
.stat b { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: #d9e6f0; font-size: .9rem; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pillar svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; color: #fff; background: var(--grad-sea); }
.pillar:nth-child(2) svg { background: var(--grad-warm); }
.pillar:nth-child(3) svg { background: linear-gradient(120deg, #3c2a6b, #6b4aa0); }
.pillar:nth-child(4) svg { background: linear-gradient(120deg, #0c2a43, #0b5d7a); }
.pillar span { color: var(--ink-2); font-size: .92rem; }
.bodies { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.bodies-label { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.body-chip { font-size: .85rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* Hộp tin cậy bên phải bài */
.trust-box { background: linear-gradient(160deg, #0c2a43, #0b5d7a); color: #fff; border: 0; }
.trust-box h3 { color: #9fd6e4; }
.trust-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.trust-list li { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: #d9e6f0; }
.trust-list svg { color: var(--gold-2); }
.trust-list b { color: #fff; }
.trust-link { color: var(--gold-2); font-size: .85rem; font-weight: 700; text-decoration: none; }
.trust-link:hover { color: #fff; }

/* Chia sẻ */
.share { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .84rem; font-weight: 600; color: #e6f0f7; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .2s; }
.share button:hover { background: rgba(255,255,255,.2); }
.share svg { width: 16px; height: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bnav-h)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; z-index: 120; box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Bảo mật form */
.secure { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.secure svg { width: 16px; height: 16px; color: var(--ok); }
.lead-form { border: 0; box-shadow: var(--shadow-lg); position: relative; }
.lead-form::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad-warm); }

/* Câu trả lời nhanh sang hơn */
.answer { background: linear-gradient(120deg, #fff, #f3fbfa); }
.prose h2::before { background: var(--grad-warm); width: 8px; height: 8px; }
.prose table th { background: linear-gradient(#f4f1ea, #eee9df); }
.prose tr:nth-child(even) td { background: #fbfaf7; }
.faq details { transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: #bfe3dd; box-shadow: 0 8px 24px -14px rgba(18,165,148,.5); }
.cta-box { background: radial-gradient(600px 240px at 100% 0%, rgba(243,201,107,.25), transparent 60%), radial-gradient(500px 240px at 0% 100%, rgba(18,165,148,.3), transparent 60%), var(--grad-lux); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }

/* Tìm kiếm */
.search { position: fixed; inset: 0; z-index: 110; background: rgba(8,26,43,.55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; opacity: 0; transition: opacity .2s; }
.search.open { opacity: 1; }
.search[hidden] { display: none; }
.search-box { width: 100%; max-width: 640px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-10px); transition: transform .25s; max-height: 80vh; display: flex; flex-direction: column; }
.search.open .search-box { transform: none; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field input { border: 0; padding: 6px 0; font-size: 1.1rem; outline: none !important; }
.search-close { font: inherit; font-size: .75rem; border: 1px solid var(--line); background: #f5f3ee; border-radius: 6px; padding: 3px 8px; cursor: pointer; color: var(--muted); }
.search-hint { padding: 10px 16px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); }
.search-hint button { font: inherit; font-size: .8rem; font-weight: 700; color: var(--sea); background: var(--sea-soft); border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 0 8px 8px; overflow-y: auto; }
.search-results a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: #f3f8f9; outline: none; }
.search-results b { font-size: .98rem; }
.search-results span:not(.sr-k) { font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-k { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--cargo); }
.sr-empty { padding: 16px; color: var(--muted); font-size: .92rem; }
body.no-scroll { overflow: hidden; }

/* Lên đầu trang */
.to-top { position: fixed; right: 18px; bottom: calc(18px + var(--bnav-h)); z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad-lux); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .2s; }
.to-top:hover { transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* Mục lục di động */
.toc-m { display: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 24px; overflow: hidden; }
.toc-m summary { list-style: none; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.toc-m summary span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.toc-m summary::after { content: '▾'; color: var(--sea); transition: transform .2s; }
.toc-m[open] summary::after { transform: rotate(180deg); }
.toc-m ol { margin: 0; padding: 0 16px 14px 34px; font-size: .95rem; }
.toc-m li { padding: 5px 0; }
.toc-m a { color: var(--ink-2); text-decoration: none; }

/* Menu nút 3 gạch */
.menu-btn { width: 44px; height: 44px; padding: 0; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 12px; }
.menu-btn i { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Thanh điều hướng dưới (di động) */
.bnav { display: none; }
.float-cta { display: none !important; }

@media (max-width: 1100px) {
  .menu-btn { display: flex; }
  .search-btn { margin-left: auto; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; }
  .nav a, .nav .dd > button { padding: 12px; font-size: 1rem; }
}
@media (max-width: 1024px) {
  .stats, .pillars { grid-template-columns: repeat(2, 1fr); }
  .toc-m { display: block; }
  .aside .toc { display: none; }
}
@media (max-width: 900px) {
  :root { --bnav-h: 66px; }
  body { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15,30,46,.2); }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bnav a:active, .bnav button:active { color: var(--sea); }
  .bnav svg { width: 22px; height: 22px; }
  .bnav-main { position: relative; color: #fff !important; }
  .bnav-main svg { width: 50px; height: 50px; padding: 12px; margin-top: -26px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 10px 22px -6px rgba(224,120,47,.8); border: 4px solid #fff; }
  .bnav-main span { color: var(--cargo); font-weight: 800; }
  .hero-stats { gap: 18px; }
  .hero { padding-bottom: 8px; }
}
@media (max-width: 600px) {
  .site-head .wrap { height: 60px; }
  .nav { top: 60px; max-height: calc(100vh - 60px - var(--bnav-h)); }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.05rem; }
  .hero .wrap { padding-top: 28px; padding-bottom: 36px; gap: 24px; }
  .hero h1 { font-size: 1.95rem; }
  .hero p.sub { font-size: 1rem; }
  .hero-badges span { font-size: .75rem; padding: 5px 10px; }
  .hero-stats b { font-size: 1.4rem; }
  .stats { gap: 10px; }
  .stat { padding: 18px; border-radius: 14px; }
  .stat b { font-size: 1.7rem; }
  .stat span { font-size: .8rem; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; }
  .pillar b { display: block; margin-bottom: 2px; }
  .pillar > b, .pillar > span { flex: 1; }
  .pillar { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 2px; }
  .pillar svg { grid-row: span 2; }
  /* Cuộn ngang có nam châm cho danh sách dài */
  .scroll-m, .timeline, .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .scroll-m::-webkit-scrollbar, .timeline::-webkit-scrollbar, .tiles::-webkit-scrollbar { display: none; }
  .scroll-m > *, .timeline > *, .tiles > * { flex: 0 0 80%; scroll-snap-align: start; }
  .tiles > * { flex-basis: 72%; min-height: 220px; }
  .timeline > * { flex-basis: 74%; }
  .block-head { margin-bottom: 18px; }
  .block-head p { font-size: .92rem; }
  .page-head.banner, .list-head { padding-bottom: 34px; }
  .page-head.banner h1, .list-head h1 { font-size: 1.6rem; }
  .answer { font-size: 1rem; padding: 14px 16px; }
  .layout { padding-top: 24px; gap: 24px; }
  .prose { font-size: 1.02rem; }
  .prose table { font-size: .85rem; }
  .cta-box { padding: 22px; margin: 28px 0; }
  .cta-box .btn { width: 100%; }
  .search { padding: 0; align-items: stretch; }
  .search-box { max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .card.media .card-body { padding: 14px 16px 16px; }
  .region-label { margin-top: 20px; }
  select, input[type=text], input[type=tel], input[type=email], textarea { font-size: 16px; min-height: 48px; }
  .btn { min-height: 48px; }
  .share { gap: 6px; }
  .share button span { display: none; }
  .share button { padding: 9px; }
  .crumbs { font-size: .8rem; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
}
.search-btn { white-space: nowrap; margin-left: 6px; }
@media (max-width: 1320px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { width: 40px; height: 40px; padding: 0; justify-content: center; } .nav > a, .nav .dd > button { padding: 8px 10px; } .topbar .hide-sm { display: none; } }
.stat b.stat-date { font-size: clamp(1.3rem, 2.2vw, 1.75rem); padding-top: .35em; }
.region-tag { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-top { width: 100%; }

/* Khối "Chúng tôi giúp bạn" */
.help { background: radial-gradient(900px 420px at 0% 0%, rgba(224,120,47,.10), transparent 60%), radial-gradient(900px 420px at 100% 100%, rgba(11,93,122,.10), transparent 60%), #fbfaf6; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s, color .25s; }
.help-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad-lux); opacity: 0; transition: opacity .3s; }
.help-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: #fff; }
.help-card:hover::before { opacity: 1; }
.help-card:hover span:not(.help-ico) { color: #d4e2ee; }
.help-card:hover em { color: var(--gold-2); }
.help-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad-warm); box-shadow: 0 10px 20px -10px rgba(224,120,47,.8); margin-bottom: 6px; }
.help-card:nth-child(2) .help-ico { background: var(--grad-sea); box-shadow: 0 10px 20px -10px rgba(18,165,148,.8); }
.help-card:nth-child(3) .help-ico { background: linear-gradient(120deg, #3c2a6b, #6b4aa0); }
.help-card:nth-child(4) .help-ico { background: linear-gradient(120deg, #b33a3a, #e0782f); }
.help-card:nth-child(5) .help-ico { background: linear-gradient(120deg, #0c2a43, #0b5d7a); }
.help-card:nth-child(6) .help-ico { background: linear-gradient(120deg, #c07a12, #f3c96b); }
.help-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.help-card b { font-size: 1.12rem; }
.help-card > span:not(.help-ico) { color: var(--ink-2); font-size: .94rem; transition: color .25s; }
.help-card em { font-style: normal; font-weight: 700; font-size: .88rem; color: var(--cargo); margin-top: auto; padding-top: 6px; }
.journey { margin-top: 30px; display: flex; align-items: center; gap: 14px; background: var(--grad-lux); border-radius: 20px; padding: 22px 26px; color: #fff; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.j-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
.j-step span { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; background: var(--grad-warm); box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.j-step b { font-size: 1rem; }
.j-step small { color: #b9cad9; font-size: .82rem; }
.j-line { flex: 1; min-width: 30px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 6px, transparent 6px 12px); }
.j-cta { margin-left: auto; }
@media (max-width: 1024px) { .help-grid { grid-template-columns: repeat(2, 1fr); } .j-line { display: none; } .journey { display: grid; grid-template-columns: 1fr; } .j-cta { margin: 6px 0 0; width: 100%; } }
@media (max-width: 600px) { .help-grid { grid-template-columns: 1fr; gap: 12px; } .help-card { padding: 18px; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px; } .help-ico { grid-row: span 3; margin: 0; } .help-card em { padding-top: 2px; } .journey { padding: 20px; } }
@media (max-width: 1440px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { width: 40px; height: 40px; padding: 0; justify-content: center; } }
@media (min-width: 1025px) { .journey { flex-wrap: nowrap; gap: 12px; } .j-step { flex-shrink: 1; } .j-step small { display: block; } .j-line { flex: 1 1 16px; min-width: 16px; } .j-cta { flex-shrink: 0; } }

/* =================== CÔNG CỤ =================== */
.tools-home { background: radial-gradient(800px 360px at 100% 0%, rgba(18,165,148,.10), transparent 60%), #f7f5f0; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.tool-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(224,120,47,.14), transparent 70%); transition: transform .4s; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.tool-card:hover::after { transform: scale(1.6); }
.tool-card b { font-size: 1.15rem; }
.tool-card > span:not(.tool-ico):not(.tool-tag) { color: var(--ink-2); font-size: .93rem; }
.tool-card em { font-style: normal; font-weight: 800; color: var(--cargo); margin-top: auto; padding-top: 6px; }
.tool-tag { position: absolute; top: 20px; right: 18px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sea); background: var(--sea-soft); padding: 4px 9px; border-radius: 999px; }
.tool-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-sea); color: #fff; box-shadow: 0 10px 22px -10px rgba(11,93,122,.8); flex-shrink: 0; }
.tool-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tools-grid .tool-card:nth-child(2) .tool-ico { background: var(--grad-warm); }
.tools-grid .tool-card:nth-child(3) .tool-ico { background: linear-gradient(120deg, #b33a3a, #e0782f); }
.tools-grid .tool-card:nth-child(4) .tool-ico { background: linear-gradient(120deg, #3c2a6b, #6b4aa0); }
.tools-grid .tool-card:nth-child(5) .tool-ico { background: linear-gradient(120deg, #0c2a43, #0b5d7a); }
.tools-grid .tool-card:nth-child(6) .tool-ico { background: linear-gradient(120deg, #c07a12, #f3c96b); }

.tool-head { padding-bottom: 70px; }
.tool-title { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.tool-title h1 { margin: 2px 0 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.tool-title .tool-ico { width: 64px; height: 64px; background: var(--grad-warm); }
.tool-wrap { margin-top: -46px; position: relative; z-index: 2; }
.tool-ui { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.grid-f { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; }
.grid-f.two { grid-template-columns: repeat(2, 1fr); }
.sub-h { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.hint { font-size: .85rem; color: var(--muted); }
.btn.sm { padding: 8px 14px; font-size: .88rem; min-height: 0; }

/* CBM rows */
.rows { display: grid; gap: 8px; margin-bottom: 12px; }
.row-head, .rows .row { display: grid; grid-template-columns: repeat(5, 1fr) 40px; gap: 8px; align-items: center; }
.row-head span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.rows input { padding: 10px; }
.x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.x:hover { color: #b33a3a; border-color: #b33a3a; }

/* Kết quả */
.results { margin-top: 20px; }
.results h4 { margin: 18px 0 10px; font-size: .95rem; }
.r-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.r-stat { background: #f6f4ef; border-radius: 14px; padding: 14px 16px; }
.r-stat span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.r-stat b { font-size: 1.25rem; color: var(--navy); }
.r-stat.hl { background: var(--grad-lux); }
.r-stat.hl span { color: #b9cad9; } .r-stat.hl b { color: #fff; }
.c-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c-bar { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.c-bar.pick { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,148,.15); background: #f3fbfa; }
.c-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.c-head span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.c-bar.pick .c-head span { color: var(--teal); }
.meter { height: 10px; background: #ece8df; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.meter i { display: block; height: 100%; background: var(--grad-sea); border-radius: 99px; transition: width .4s; }
.c-bar small { color: var(--muted); font-size: .78rem; }
.r-note { background: var(--cargo-soft); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 12px 0 0; }

/* Giá chào */
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.p-card { border-radius: 16px; padding: 18px; background: #f6f4ef; display: flex; flex-direction: column; gap: 2px; position: relative; }
.p-card.hl { background: var(--grad-lux); color: #fff; }
.p-term { font-weight: 800; font-size: .85rem; letter-spacing: .08em; color: var(--cargo); }
.p-card b { font-size: 1.5rem; line-height: 1.2; }
.p-card small { color: var(--muted); } .p-card.hl small, .p-card.hl i { color: #b9cad9; }
.p-card em { font-style: normal; font-weight: 700; font-size: .88rem; margin-top: 6px; }
.p-card i { font-style: normal; font-size: .78rem; color: var(--muted); }

/* Thuế */
.stack { display: flex; height: 18px; border-radius: 99px; overflow: hidden; margin-bottom: 14px; gap: 2px; }
.stack i { display: block; }
.r-table { width: 100%; border-collapse: collapse; }
.r-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.r-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.r-table tr.sum td { font-weight: 700; }
.r-table tr.big td { font-size: 1.15rem; color: var(--sea); border-bottom: 2px solid var(--sea); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

/* Incoterms */
.inco-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.inco-tabs button { font: inherit; font-weight: 800; font-size: .9rem; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); transition: all .2s; }
.inco-tabs button[aria-selected="true"] { background: var(--grad-warm); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(224,120,47,.8); }
.inco-card { border-radius: 16px; background: linear-gradient(160deg, #0c2a43, #0b5d7a); color: #fff; padding: 20px; margin-bottom: 16px; }
.ic-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ic-term { font-size: 1.8rem; font-weight: 800; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic-top b { display: block; font-size: 1.1rem; } .ic-top small { color: #b9cad9; }
.ic-flow { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.ic-leg { border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.ic-leg.s { background: rgba(224,120,47,.9); } .ic-leg.b { background: rgba(18,165,148,.85); } .ic-leg.c { background: rgba(255,255,255,.18); }
.ic-leg span { font-weight: 800; font-size: .8rem; opacity: .8; }
.ic-leg small { font-size: .74rem; line-height: 1.3; flex: 1; }
.ic-leg em { font-style: normal; font-weight: 800; font-size: .74rem; }
.ic-meta { margin-top: 14px; font-size: .92rem; } .ic-meta p { margin: 0 0 6px; color: #dbe7f0; } .ic-meta b { color: #fff; }
.ic-meta .tip { background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.inco-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: .82rem; font-weight: 700; }
.lg::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.lg.s::before { background: var(--cargo); } .lg.b::before { background: var(--teal); } .lg.c::before { background: #cfd6de; }
.inco-wrap { overflow-x: auto; }
.inco-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .8rem; min-width: 760px; }
.inco-table th { font-weight: 800; padding: 6px; cursor: pointer; border-radius: 6px; }
.inco-table td { padding: 6px 4px; text-align: center; border-radius: 6px; font-weight: 700; cursor: pointer; }
.inco-table td:first-child { text-align: left; font-weight: 600; color: var(--ink-2); cursor: default; min-width: 190px; }
.inco-table td.s { background: #fbe3d0; color: #a14d12; } .inco-table td.b { background: #d9f2ee; color: #0f7a6d; } .inco-table td.c { background: #edf0f3; color: var(--muted); }
.inco-table .on { outline: 2px solid var(--navy); }
.inco-table th.on { background: var(--navy); color: #fff; outline: 0; }

/* Invoice */
.inv-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.inv-row { display: grid; grid-template-columns: 2.4fr 1.1fr .9fr .7fr .9fr .8fr .9fr .9fr .8fr 40px; gap: 6px; align-items: end; background: #f6f4ef; padding: 10px; border-radius: 12px; }
.inv-row label span { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-row input { padding: 8px; font-size: .92rem; }
.inv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin-top: 18px; font-size: .88rem; color: #111; }
.doc-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--navy); padding-bottom: 8px; margin-bottom: 14px; }
.doc-h h2 { margin: 0; letter-spacing: .06em; font-size: 1.4rem; }
.doc-h p { margin: 0; font-weight: 600; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.doc-parties small, .doc-terms small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: #667; }
.doc-parties p { margin: 2px 0 0; }
.doc-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #f5f6f8; padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { border: 1px solid #ccd; padding: 6px 8px; text-align: left; }
.doc th { background: #eef1f5; font-size: .78rem; }
.doc td:nth-child(n+4) { text-align: right; }
.doc tfoot td { font-weight: 800; background: #fafbfc; }
.doc-sign { display: flex; justify-content: flex-end; margin-top: 40px; } .doc-sign span { border-top: 1px solid #999; padding-top: 6px; min-width: 220px; text-align: center; font-size: .8rem; color: #555; }

/* FTA */
.fta-h { margin: 14px 0 12px; }
.fta-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.fta-card { border-radius: 16px; padding: 18px; background: linear-gradient(160deg, #0c2a43, #0b5d7a); color: #fff; display: flex; flex-direction: column; gap: 4px; }
.fta-card:nth-child(2) { background: linear-gradient(160deg, #0b5d7a, #12a594); }
.fta-card:nth-child(3) { background: linear-gradient(160deg, #7a3b12, #e0782f); }
.fta-card:nth-child(4) { background: linear-gradient(160deg, #3c2a6b, #6b4aa0); }
.fta-form { align-self: flex-start; background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.fta-card b { font-size: 1.3rem; } .fta-card small { color: #d4e2ee; }
.tool-ui .chips .chip { border: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; }

.mini-tools { display: grid; gap: 8px; }
.mini-tools a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 6px; border-radius: 10px; }
.mini-tools a:hover { background: var(--sea-soft); }
.mini-tools .tool-ico { width: 38px; height: 38px; border-radius: 10px; } .mini-tools .tool-ico svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-f { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .ic-flow { grid-template-columns: repeat(3, 1fr); }
  .inv-row { grid-template-columns: repeat(4, 1fr); } .inv-row label:first-child { grid-column: span 4; } .inv-row .x { grid-column: 4; justify-self: end; }
}
@media (max-width: 600px) {
  .tools-grid, .grid-f, .grid-f.two, .r-grid, .c-bars { grid-template-columns: 1fr; }
  .tool-ui { padding: 18px; border-radius: 16px; }
  .tool-wrap { padding: 0 12px; }
  .row-head { display: none; }
  .rows .row { grid-template-columns: repeat(3, 1fr); background: #f6f4ef; padding: 8px; border-radius: 12px; }
  .rows .row .x { grid-column: 3; justify-self: end; }
  .price-cards { grid-template-columns: 1fr 1fr; }
  .p-card b { font-size: 1.2rem; }
  .ic-flow { grid-template-columns: repeat(2, 1fr); }
  .ic-leg { min-height: 0; }
  .inv-row { grid-template-columns: 1fr 1fr; } .inv-row label:first-child { grid-column: span 2; } .inv-row .x { grid-column: 2; }
  .doc { padding: 14px; font-size: .78rem; overflow-x: auto; }
  .doc-parties, .doc-terms { grid-template-columns: 1fr; }
  .tool-card { padding: 18px; }
  .tool-title .tool-ico { width: 48px; height: 48px; }
}

/* In chứng từ: chỉ in đúng chứng từ được chọn */
@media print {
  body[data-print] * { visibility: hidden; }
  body[data-print="inv"] .doc-inv, body[data-print="inv"] .doc-inv *, body[data-print="pl"] .doc-pl, body[data-print="pl"] .doc-pl * { visibility: visible; }
  body[data-print] .doc { position: absolute; left: 0; top: 0; width: 100%; border: 0; margin: 0; padding: 0; }
  body[data-print] { padding: 0 !important; }
  .bnav, .to-top, .progress { display: none !important; }
}
/* Ô nhập trong lưới được phép co lại */
.rows input, .inv-row input, .grid-f input, .grid-f select { min-width: 0; width: 100%; }
.row-head, .rows .row { grid-template-columns: repeat(5, minmax(0, 1fr)) 40px; }
.inv-row > label { min-width: 0; }
@media (max-width: 1024px) { .inv-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .rows .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rows .row input::placeholder { color: var(--muted); }
  .inv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rows .row { align-items: end; } .rows .row label { min-width: 0; } .rows .row label span { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }

/* =================== TRANG CHỦ KIỂU CỔNG THÔNG TIN =================== */
.phero { position: relative; overflow: hidden; background: linear-gradient(120deg, #07182a, #0c2a43 55%, #0b5d7a); color: #fff; padding: 64px 0 118px; }
.phero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,18,32,.92) 0%, rgba(7,24,42,.78) 38%, rgba(7,24,42,.25) 70%, rgba(7,24,42,.1) 100%), linear-gradient(0deg, rgba(5,18,32,.55), transparent 40%); }
.phero-in { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.phero-copy { max-width: 700px; }
.phero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.phero h1 em { display: block; font-style: normal; background: linear-gradient(90deg, #f3c96b, #f0a13c 60%, #ffd28a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero .sub { color: #dbe6ef; font-size: 1.08rem; max-width: 620px; margin: 0 0 24px; }
.hero-search { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); max-width: 660px; }
.hero-search .hs-ico svg { width: 20px; height: 20px; fill: none; stroke: #6a7788; stroke-width: 2; display: block; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 12px 12px; color: var(--ink); background: transparent; }
.hero-search .btn { border-radius: 10px; padding: 12px 22px; white-space: nowrap; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: .86rem; }
.kw span { color: #b9cad9; font-weight: 600; margin-right: 2px; }
.kw button { font: inherit; font-weight: 600; font-size: .82rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 13px; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.kw button:hover { background: rgba(243,201,107,.25); border-color: #f3c96b; }
.phero-side { display: flex; flex-direction: column; gap: 8px; border-left: 2px solid rgba(243,201,107,.8); padding-left: 16px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #e8eef4; margin-bottom: 8px; }

/* Dải biểu tượng nổi trên banner */
.qwrap { position: relative; z-index: 3; margin-top: -72px; }
.qtiles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.qt { background: #fff; border-radius: 16px; padding: 16px 8px 14px; text-align: center; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px -12px rgba(12,42,67,.35); border: 1px solid #eef1f4; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s, box-shadow .2s; }
.qt:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -12px rgba(12,42,67,.45); color: var(--ink); }
.qt b { font-size: .88rem; line-height: 1.25; }
.qt small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.qt-flag { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 50%; font-weight: 800; font-size: .78rem; color: #fff; background: #0b5d7a; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 14px -6px rgba(0,0,0,.4); }
.qt-flag.r-chau-au { background: radial-gradient(circle at 30% 30%, #2f5fd0, #103a9a); }
.qt-flag.r-chau-my { background: radial-gradient(circle at 30% 30%, #d9485f, #8e1f33); }
.qt-flag.r-chau-a { background: radial-gradient(circle at 30% 30%, #19b39b, #0b6f64); }
.qt-flag.r-chau-uc { background: radial-gradient(circle at 30% 30%, #f0a13c, #b8621a); }
.qt-flag.r-trung-dong { background: radial-gradient(circle at 30% 30%, #7a5ac0, #3c2a6b); }
.qt-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.qt-ico svg, .pt-badge svg, .tt-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-sea { background: var(--grad-sea); } .t-warm { background: var(--grad-warm); } .t-rose { background: linear-gradient(135deg, #e0782f, #d9485f); } .t-violet { background: linear-gradient(135deg, #6b4aa0, #3c2a6b); } .t-gold { background: linear-gradient(135deg, #c07a12, #f3c96b); }

/* Tiêu đề khối gọn */
.block.tight { padding-top: 40px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { font-size: 1.35rem; margin: 0; }
.sec-h a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .88rem; color: var(--sea); text-decoration: none; white-space: nowrap; }
.sec-h a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.duo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }

/* Thị trường nổi bật */
.fms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fm { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.fm:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fm-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg, linear-gradient(135deg, #0c2a43, #0b5d7a)) center / cover; }
.fm-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,24,42,.7), transparent 45%); }
.fm-name { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.02rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.fm-name .qt-flag { min-width: 34px; height: 34px; font-size: .66rem; }
.fm-go { position: absolute; z-index: 1; top: 14px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); }
.fm-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.fm ul { list-style: none; margin: 0; padding: 12px 14px 14px; display: grid; gap: 7px; }
.fm li { position: relative; padding-left: 16px; font-size: .86rem; line-height: 1.35; }
.fm li::before { content: '›'; position: absolute; left: 2px; top: -1px; color: var(--cargo); font-weight: 800; }
.fm li a { color: var(--ink); text-decoration: none; } .fm li a:hover { color: var(--sea); text-decoration: underline; }

/* Cột tin */
.news { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.ntabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.ntabs button { font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #f6f4ef; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ntabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.nlist { display: grid; gap: 4px; }
.ni { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.ni[hidden] { display: none; }
.ni:hover { background: #f6f4ef; color: var(--ink); }
.ni-img { border-radius: 10px; aspect-ratio: 16 / 11; background: var(--bg) center / cover; }
.ni-img.no-img { background: linear-gradient(135deg, #0c2a43, #0b5d7a); }
.ni-img.t-pccc { background: linear-gradient(135deg, #b33a3a, #e0782f); }
.ni-img.t-kien-thuc-chung-nhan { background: linear-gradient(135deg, #0b5d7a, #12a594); }
.ni-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ni-tag { align-self: flex-start; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cargo); background: var(--cargo-soft); padding: 2px 7px; border-radius: 5px; }
.ni b { font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni small { color: var(--muted); font-size: .76rem; }

/* Dải chứng nhận / giấy tờ / công cụ */
.portal-row { padding: 20px 0 44px; }
.prow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pt { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 5px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.pt b { font-size: .84rem; line-height: 1.25; } .pt small { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.pt-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--sea); background: var(--sea-soft); border: 2px solid #cfe4ec; }
.pt-badge .ico { width: 24px; height: 24px; }
.pt-badge.g-thuc-pham { color: #0f7a6d; background: #dcf3ef; border-color: #b8e6de; }
.pt-badge.g-san-pham { color: #a14d12; background: var(--cargo-soft); border-color: #f5d3b8; }
.pt-badge.g-xa-hoi-moi-truong { color: #2f7d4f; background: #e1f2e7; border-color: #c2e3cd; }
.pt-badge.doc { color: #3c2a6b; background: #ece6f6; border-color: #d9cdef; border-radius: 12px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; text-decoration: none; color: #fff; min-height: 84px; transition: transform .2s, box-shadow .2s; }
.tt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.tt b { display: block; font-size: .88rem; line-height: 1.25; } .tt small { font-size: .72rem; opacity: .85; }
.tt-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; }

/* Băng kêu gọi */
.cta-band { padding: 8px 0 56px; }
.cb { position: relative; overflow: hidden; border-radius: 22px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; padding: 34px 38px; color: #fff; background: linear-gradient(90deg, rgba(7,24,42,.95) 0%, rgba(12,42,67,.88) 55%, rgba(11,93,122,.7) 100%), var(--bg, linear-gradient(120deg, #0c2a43, #0b5d7a)) center / cover; box-shadow: var(--shadow-lg); }
.cb-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #1a1a1a; background: var(--grad-warm); padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.cb h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 10px; }
.cb p { color: #d4e2ee; margin: 0 0 18px; max-width: 560px; }
.cb .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; vertical-align: -3px; margin-left: 4px; }
.cb-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cb-points li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(6px); }
.cb-points svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: #f3c96b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb-points b { display: block; font-size: .95rem; } .cb-points span { font-size: .82rem; color: #c9d7e3; }

@media (max-width: 1180px) {
  .qtiles { grid-template-columns: repeat(5, 1fr); }
  .duo, .prow { grid-template-columns: 1fr; }
  .phero-side { display: none; }
}
@media (max-width: 760px) {
  .phero { padding: 38px 0 96px; }
  .phero .sub { font-size: .98rem; }
  .hero-search { padding: 5px 5px 5px 12px; }
  .hero-search .btn { padding: 11px 14px; font-size: .9rem; }
  .kw span { display: none; }
  .kw { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .kw button { flex-shrink: 0; }
  .qwrap { margin-top: -64px; }
  .qtiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .qt { padding: 12px 4px 10px; border-radius: 14px; }
  .qt small { display: none; }
  .qt b { font-size: .74rem; }
  .qt-flag, .qt-ico { min-width: 40px; width: auto; height: 40px; }
  .qt-ico { width: 40px; }
  .fms { grid-template-columns: 1fr; }
  .fm { display: grid; grid-template-columns: 130px 1fr; }
  .fm-img { aspect-ratio: auto; min-height: 140px; }
  .fm-name { font-size: .88rem; flex-direction: column; align-items: flex-start; gap: 4px; }
  .fm-go { display: none; }
  .fm ul { padding: 12px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pt small { display: none; }
  .cb { grid-template-columns: 1fr; padding: 24px 20px; }
  .ni { grid-template-columns: 88px 1fr; }
}
.pt-badge.pdoc { color: #3c2a6b; background: #ece6f6; border-color: #d9cdef; border-radius: 12px; }
.duo { grid-template-columns: 1.8fr 1fr; }
.fm-img { aspect-ratio: 16 / 11; }
.fm-name { font-size: .95rem; right: 52px; }
.fm-go { width: 28px; height: 28px; }
.fm li { font-size: .83rem; }
.tt { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 118px; padding: 14px; }
.tt b { font-size: .86rem; }
.tt small { display: block; line-height: 1.3; margin-top: 2px; }
.tt-ico { width: 36px; height: 36px; }
@media (max-width: 1180px) { .fms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .fms { grid-template-columns: 1fr; } .fm-name { right: auto; } }
@media (max-width: 1180px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo > * { min-width: 0; }
.phero-copy { min-width: 0; flex: 1 1 auto; } .phero .hero-bg { max-width: 100%; }
@media (max-width: 760px) { .fm { grid-template-columns: 120px minmax(0, 1fr); } .fm-img { aspect-ratio: auto; min-width: 0; } .fm-name { right: 8px; } }

/* =================== TÔNG SÁNG XANH – VÀNG (v3) =================== */
:root {
  --ink: #0f1f3a; --ink-2: #334155; --muted: #64748b; --line: #e3e8f0; --paper: #f4f7fc; --card: #fff;
  --sea: #1747a6; --sea-soft: #e8effb; --navy: #0d2f6e; --teal: #0e9f8a;
  --cargo: #d98a00; --cargo-soft: #fff4dc; --gold: #f4b000; --gold-2: #ffcb45;
  --grad-warm: linear-gradient(120deg, #f4b000 0%, #ffcb45 100%);
  --grad-sea: linear-gradient(120deg, #1747a6 0%, #2f7de1 100%);
  --grad-lux: linear-gradient(120deg, #0a2458 0%, #0d2f6e 45%, #1747a6 100%);
  --shadow: 0 1px 2px rgba(15,31,58,.05), 0 6px 20px rgba(15,31,58,.06);
  --shadow-lg: 0 2px 6px rgba(15,31,58,.05), 0 20px 44px -14px rgba(13,47,110,.28);
}
body { background: var(--paper); color: var(--ink); }
.topbar { background: #0a2458; }
.site-head { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.nav > a, .nav .dd > button { color: var(--ink); font-weight: 600; }
.nav > a:hover, .nav .dd > button:hover, .nav > a[aria-current="page"] { color: var(--sea); background: var(--sea-soft); }
.nav .cta, .btn { background: var(--sea); }
.btn.orange, .nav .cta { background: var(--grad-warm); color: #14213d; box-shadow: 0 8px 18px -8px rgba(244,176,0,.7); }
.btn.orange:hover, .nav .cta:hover { color: #14213d; filter: brightness(1.04); }
.grad { background: linear-gradient(90deg, #1747a6, #2f7de1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--sea); }
.eyebrow::before { background: var(--gold); }
.block.alt { background: #fff; }
.site-foot { background: #0a2458; }
.card, .fm, .news, .pt, .qt, .cs { border-color: var(--line); }
.tag, .ni-tag { color: #c2410c; background: #fff1e6; }

/* ---------- Banner slide ---------- */
.hs { position: relative; overflow: hidden; color: #fff; background: #0a2458; padding: 70px 0 128px; min-height: 560px; }
.hs-bg { position: absolute; inset: 0; background: var(--bg, linear-gradient(120deg, #0a2458, #1747a6)) center 60% / cover; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 7s ease; }
.hs-bg.is-on { opacity: 1; transform: scale(1); }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,26,64,.93) 0%, rgba(10,36,88,.8) 40%, rgba(10,36,88,.25) 75%, rgba(10,36,88,.1) 100%), linear-gradient(0deg, rgba(8,26,64,.5), transparent 45%); }
.hs-in { position: relative; z-index: 2; }
.hs-slides { display: grid; max-width: 720px; }
.hs-slide { grid-area: 1 / 1; opacity: 0; transform: translateX(28px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.hs-slide.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.hs-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.hs-kicker::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.hs h1, .hs h2 { font-family: var(--font); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hs h1 em, .hs h2 em { display: block; font-style: normal; color: var(--gold-2); }
.hs-slide p { color: #dbe5f3; font-size: 1.06rem; max-width: 620px; margin: 0 0 14px; }
.hs-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; margin-bottom: 24px; }
.hs-link svg, .hs-ctrl svg, .car-btn svg, .promo-cta svg, .fm-more svg, .cs em svg, .tl em svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-link:hover { color: var(--gold-2); }
.hs .hero-search { margin-top: 4px; }
.hs .hero-search .btn { background: var(--sea); color: #fff; box-shadow: none; }
.hs-ctrl { position: absolute; right: 20px; bottom: -64px; display: flex; align-items: center; gap: 10px; }
.hs-ctrl > button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.hs-ctrl > button:hover { background: rgba(255,255,255,.25); }
.hs-dots { display: flex; gap: 6px; }
.hs-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hs-dots button.is-on { width: 28px; background: var(--gold); }

/* Ô biểu tượng */
.qwrap { margin-top: -64px; }
.qt { border-radius: 14px; }
.qt-flag.r-chau-au { background: #1d4ed8; } .qt-flag.r-chau-my { background: #dc2626; } .qt-flag.r-chau-a { background: #16a34a; } .qt-flag.r-chau-uc { background: #ea8a00; } .qt-flag.r-trung-dong { background: #7c3aed; }
.qt-flag { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.t-sea { background: #1d4ed8; } .t-green { background: #0e9f6e; } .t-rose { background: #e2553b; } .t-violet { background: #6d28d9; } .t-gold { background: #e7a300; } .t-navy { background: #0d2f6e; }
.qt-ico { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }

/* ---------- Băng lướt ngang ---------- */
.car { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; scroll-behavior: smooth; cursor: grab; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.car-track.drag a { pointer-events: none; }
.car-item { scroll-snap-align: start; min-width: 0; display: flex; }
.car-item > * { flex: 1; }
.car-4 .car-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
.car-1 .car-track { grid-auto-columns: 100%; }
.duo-main .car-3 .car-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
.car-btn { position: absolute; top: calc(50% - 30px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; }
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover { transform: scale(1.08); color: var(--sea); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -20px; } .car-next { right: -20px; }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.car-dots i { width: 8px; height: 8px; border-radius: 99px; background: #cfd8e6; transition: width .3s, background .3s; }
.car-dots i.on { width: 24px; background: var(--sea); }

/* Thẻ thị trường trong băng */
.fm { display: flex; flex-direction: column; }
.fm-img { aspect-ratio: 16 / 10; }
.fm-reg { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(13,47,110,.7); padding: 3px 8px; border-radius: 6px; }
.fm ul { flex: 1; }
.fm-more { display: flex; align-items: center; gap: 6px; margin: 0 14px 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; font-size: .86rem; color: var(--sea); text-decoration: none; }

/* Thẻ chứng nhận trong băng */
.cs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.cs:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cs b { font-size: 1.05rem; } .cs small { color: var(--muted); font-size: .8rem; }
.cs-lead { font-size: .84rem; color: var(--ink-2); line-height: 1.45; flex: 1; }
.cs em { font-style: normal; font-weight: 700; font-size: .84rem; color: var(--sea); display: inline-flex; gap: 4px; align-items: center; }

/* Banner quảng bá */
.promo { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; border-radius: 20px; padding: 26px 30px; color: #fff; text-decoration: none; min-height: 140px; position: relative; overflow: hidden; }
.promo::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); }
.promo.t-sea { background: linear-gradient(120deg, #0d2f6e, #1747a6 60%, #2f7de1); }
.promo.t-gold { background: linear-gradient(120deg, #b45309, #e7a300 60%, #f4b000); }
.promo.t-rose { background: linear-gradient(120deg, #9f1239, #e2553b); }
.promo.t-violet { background: linear-gradient(120deg, #3b0764, #6d28d9); }
.promo:hover { color: #fff; }
.promo-ico { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.promo-ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promo-body { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.promo small { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.promo b { font-size: 1.35rem; line-height: 1.25; }
.promo-body > span { opacity: .9; font-size: .95rem; }
.promo-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); font-weight: 800; padding: 12px 18px; border-radius: 12px; white-space: nowrap; }
.car-promo .car-btn { top: calc(50% - 30px); }

/* Giấy tờ, công cụ */
.gap-24 { height: 26px; }
.pgrid.g6 { grid-template-columns: repeat(6, 1fr); }
.tl { position: relative; border-radius: 18px; padding: 20px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 210px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tl::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); }
.tl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.tl-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.tl-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 6px; }
.tl b { font-size: 1.08rem; line-height: 1.25; }
.tl-lead { font-size: .84rem; opacity: .92; line-height: 1.45; flex: 1; }
.tl em { font-style: normal; font-weight: 800; font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; position: relative; z-index: 1; }
.tl.t-sea { background: linear-gradient(140deg, #1747a6, #2f7de1); } .tl.t-gold { background: linear-gradient(140deg, #c2410c, #e7a300); } .tl.t-rose { background: linear-gradient(140deg, #be123c, #e2553b); } .tl.t-violet { background: linear-gradient(140deg, #4c1d95, #7c3aed); } .tl.t-navy { background: linear-gradient(140deg, #0a2458, #1e3a8a); } .tl.t-green { background: linear-gradient(140deg, #047857, #10b981); }
.tools-strip { background: #fff; padding-bottom: 36px; }
.cb { background: linear-gradient(90deg, rgba(10,36,88,.96) 0%, rgba(13,47,110,.9) 55%, rgba(23,71,166,.7) 100%), var(--bg, linear-gradient(120deg, #0a2458, #1747a6)) center / cover; }
.cb h2 { font-family: var(--font); font-weight: 800; }
.cb-kicker { color: #14213d; }

@media (max-width: 1180px) {
  .car-3 .car-track, .duo-main .car-3 .car-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .car-4 .car-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .pgrid.g6 { grid-template-columns: repeat(3, 1fr); }
  .car-prev { left: -8px; } .car-next { right: -8px; }
}
@media (max-width: 760px) {
  .hs { padding: 40px 0 110px; min-height: 0; }
  .hs h1, .hs h2 { font-size: 1.95rem; }
  .hs-slide p { font-size: .96rem; }
  .hs-ctrl { right: 16px; bottom: -58px; }
  .hs-ctrl > button { display: none; }
  .car-track, .car-3 .car-track, .duo-main .car-3 .car-track, .car-4 .car-track { grid-auto-columns: 82%; gap: 12px; }
  .car-4 .car-track { grid-auto-columns: 64%; }
  .car-1 .car-track { grid-auto-columns: 100%; }
  .car-btn { display: none; }
  .fm { display: flex; }
  .fm-img { aspect-ratio: 16 / 10; min-height: 0; }
  .promo { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .promo-ico { width: 52px; height: 52px; }
  .promo b { font-size: 1.15rem; }
  .promo-cta { justify-self: start; }
  .pgrid.g6 { grid-template-columns: repeat(3, 1fr); }
}

/* =================== Công cụ: thanh chọn, hướng dẫn, thuật ngữ =================== */
.toolbar { background: #fff; border-bottom: 1px solid var(--line); }
.toolbar-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.toolbar-in::-webkit-scrollbar { display: none; }
.toolbar a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: #f7f9fd; color: var(--ink-2); font-weight: 700; font-size: .86rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.toolbar a .tool-ico { width: 30px; height: 30px; border-radius: 50%; box-shadow: none; }
.toolbar a .tool-ico svg { width: 16px; height: 16px; }
.toolbar a:hover { border-color: var(--sea); color: var(--sea); }
.toolbar a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tool-ico { background: var(--grad-sea); }

.howto { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.howto-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.howto-h svg { width: 22px; height: 22px; fill: none; stroke: var(--sea); stroke-width: 2; }
.howto-h b { font-size: 1.05rem; }
.howto-h span { margin-left: auto; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: var(--cargo-soft); padding: 3px 9px; border-radius: 99px; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.howto li { counter-increment: s; position: relative; padding: 12px 12px 12px 50px; background: #f5f8fd; border-radius: 12px; display: flex; flex-direction: column; gap: 3px; }
.howto li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--sea); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.howto li b { font-size: .92rem; } .howto li span { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.howto-note { margin: 12px 0 0; font-size: .86rem; color: var(--ink-2); background: #fffaf0; border: 1px dashed #f1d49a; border-radius: 10px; padding: 10px 12px; }
.fhint { display: block; margin-top: 5px; font-size: .76rem; line-height: 1.4; color: var(--muted); font-weight: 500; }
.field > span { font-weight: 700; }
.terms { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 16px; }
.terms h3 { margin: 0 0 12px; font-size: 1rem; }
.terms dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.terms dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.terms dt { font-weight: 800; color: var(--sea); font-size: .9rem; }
.terms dd { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.tool-wrap { margin-top: -46px; }
.tool-wrap .howto { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .howto ol { grid-template-columns: 1fr; }
  .terms dl { grid-template-columns: 1fr; }
  .terms dl > div { grid-template-columns: 1fr; gap: 2px; }
}
.tool-ui input[type="number"], .tool-ui input[type="text"], .tool-ui input[type="search"], .tool-ui select, .tool-ui textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e6; border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.tool-ui input:focus, .tool-ui select:focus, .tool-ui textarea:focus { outline: 0; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(23,71,166,.14); }
.tool-ui .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.tool-ui .field > span { font-size: .88rem; color: var(--ink); }
.tool-ui .rows input, .tool-ui .inv-row input { padding: 9px 10px; font-size: .95rem; }
.tool-head .tag { background: var(--grad-warm); color: #14213d; padding: 3px 10px; border-radius: 6px; font-size: .72rem; }
.tool-head .tool-title .tool-ico { background: var(--grad-warm); color: #14213d; }
.howto-h span { white-space: nowrap; }

/* =================== Cờ quốc gia & biểu tượng chứng nhận =================== */
.flag { display: inline-grid; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dfe6f0, 0 8px 16px -8px rgba(13,47,110,.45); vertical-align: middle; }
.flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flag.n2 { grid-template-columns: 1fr 1fr; }
.flag.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.flag.qt-flag { min-width: 0; padding: 0; background: #fff; }
.flag.sm { width: 26px; height: 26px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dfe6f0; }
.flag.fm-flag { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 4px 10px rgba(0,0,0,.35); }
.lead-row .flag.sm { width: 40px; height: 40px; }
.dd-panel .flag.sm { width: 22px; height: 22px; margin-right: 8px; }
.card-top .flag.sm { width: 30px; height: 30px; }

.ico.lx { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-badge { width: 54px; height: 54px; border-radius: 50%; color: #1747a6; background: radial-gradient(circle at 30% 25%, #ffffff 0%, #eef3fb 70%); border: 1px solid #d6e0ef; box-shadow: inset 0 0 0 4px #fff, 0 8px 18px -10px rgba(13,47,110,.45); position: relative; }
.pt-badge::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(212,160,23,.55); }
.pt-badge .ico, .pt-badge svg { width: 26px; height: 26px; }
.pt-badge.g-thuc-pham { color: #0f766e; background: radial-gradient(circle at 30% 25%, #fff 0%, #e6f6f2 70%); border-color: #cbe9e1; }
.pt-badge.g-san-pham { color: #b45309; background: radial-gradient(circle at 30% 25%, #fff 0%, #fdf1df 70%); border-color: #f3dcb6; }
.pt-badge.g-xa-hoi-moi-truong { color: #15803d; background: radial-gradient(circle at 30% 25%, #fff 0%, #e7f5ea 70%); border-color: #cde9d4; }
.pt-badge.pdoc { border-radius: 50%; color: #6d28d9; background: radial-gradient(circle at 30% 25%, #fff 0%, #f1ebfc 70%); border-color: #e0d4f7; }
.card.cert .ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; color: #1747a6; background: radial-gradient(circle at 30% 25%, #fff, #eef3fb 70%); border: 1px solid #d6e0ef; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(212,160,23,.45); }
.cs .pt-badge { margin-bottom: 6px; }

/* =================== Menu lớn thả xuống (kiểu thaitin.com) =================== */
.site-head { position: sticky; }
.nav .mi { position: static; }
.mi-a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; position: relative; }
.mi-a .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .25s; opacity: .7; }
.mi-a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.mi.is-open .mi-a, .mi-a:hover, .mi-a[aria-current="page"] { color: var(--sea); }
.mi.is-open .mi-a::after, .mi-a[aria-current="page"]::after { transform: scaleX(1); }
.mi.is-open .chev { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: linear-gradient(180deg, #0a2458 0%, #0d2f6e 100%); color: #e8eef8; box-shadow: 0 24px 48px -12px rgba(5,18,45,.45); border-top: 3px solid var(--gold); opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease; z-index: 60; }
.mega.is-open { opacity: 1; transform: none; }
.mega > .wrap { padding-top: 22px; padding-bottom: 20px; }
.mega a { color: #e8eef8; text-decoration: none; }
.mg-label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 10px; }
.mg-big { font-size: 1.35rem; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.3; }
.mg-intro p:not(.mg-label):not(.mg-big) { color: #b9c7de; font-size: .92rem; line-height: 1.55; margin: 0; }
.mg-grid { display: grid; gap: 6px 18px; }
.mg-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.mg-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.mg-mkt, .mg-cert, .mg-tool { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .2s; }
.mg-mkt:hover, .mg-cert:hover, .mg-tool:hover { background: rgba(255,255,255,.08); }
.mg-mkt b, .mg-cert b, .mg-tool b { display: block; color: #fff; font-size: .95rem; }
.mg-mkt small, .mg-cert small, .mg-tool small { display: block; color: #a9b8d2; font-size: .8rem; line-height: 1.35; }
.mg-mkt:hover b, .mg-cert:hover b, .mg-tool:hover b { color: var(--gold-2); }
.mega .flag.sm { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.mega .pt-badge { width: 40px; height: 40px; flex-shrink: 0; }
.mega .pt-badge::after { display: none; }
.mega .pt-badge svg { width: 20px; height: 20px; }
.mega .tool-ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.mega .tool-ico svg { width: 20px; height: 20px; }
.mg-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.mg-tabs button { font: inherit; font-size: .9rem; font-weight: 600; color: #b9c7de; background: none; border: 0; padding: 8px 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mg-tabs button:hover { color: #fff; }
.mg-tabs button[aria-selected="true"] { color: var(--gold-2); border-bottom-color: var(--gold); }
.mg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 28px; }
.mg-list.two { grid-template-columns: repeat(2, 1fr); }
.mg-list a { display: flex; gap: 10px; padding: 6px 0; font-size: .92rem; line-height: 1.4; color: #e8eef8; }
.mg-list a i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; }
.mg-list a:hover { color: var(--gold-2); }
.mg-split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; }
.mg-split .mg-intro + .mg-list { align-content: start; }
.mg-split:has(.mg-intro) { grid-template-columns: 1fr 2fr; }
.mg-side { border-left: 1px solid rgba(255,255,255,.12); padding-left: 28px; }
.mg-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 16px; padding-top: 12px; }
.mg-foot a { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.mg-foot a:hover { color: #fff; }
.mg-pane .mg-foot { margin-top: 12px; }
@media (max-width: 1024px) {
  .mega { display: none !important; }
  .mi-a { width: 100%; padding: 12px 14px; }
  .mi-a .chev, .mi-a::after { display: none; }
}
.mega > .wrap { display: block; height: auto; } .mi-a { white-space: nowrap; } .site-head .nav { flex-wrap: nowrap; }
.facts dt { font-weight: 800; color: var(--sea); font-size: .8rem; } .facts dd { font-weight: 500; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
